A one-liner to get a nested prop using dot-notation with a optional default value as fallback
-
Updated
Sep 10, 2018 - JavaScript
A one-liner to get a nested prop using dot-notation with a optional default value as fallback
Elixir and javascript have the capability of making good looking one liners, but what about Ruby? We can definitely make an awful looking one by adding a ';'. If you want to start defining some better looking one-liners then add the 'nicefn' gem to your project. Since the implementation files are small and this project has no required deps. You …
An one-liner approach to a positive integer decimal to binary conversor
Brainfuck interpreter in a single line of AWK
Super-powerful "one-liner" general purpose utility for re-purposing data from standard input. Supply a RegExp string w/group patterns, supply printf format string, supply group match positional numbers in any order. See the re-formatted output lines. A flexible tool either used as a one-liner or in shell scripts.
A simple notepad intended to be ran by copy and pasting a single line into the address bar.
Toss everything needed to run your script/program in a single of code for an easy installation!
Solving Advent of Code 2022 with one-liners
Converts a somewhat true-ish expression to the equivalent boolean value.
Python one-liners that I created from scratch utilizing complex algorithms and math.
Bashmator is a console script manager based on YAML format.
Demonstrating with random number driven experiments the surprising answer to the Mounty Hall problem.
Assertion groups made easy via a one-liner function call -- like using console.assert(but_drastically_improved, [ allowing, multiple, assertions, and, ()=> functions_too ] )"
Add a description, image, and links to the one-liner topic page so that developers can more easily learn about it.
To associate your repository with the one-liner topic, visit your repo's landing page and select "manage topics."