This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| brew "fzf" | |
| brew "gh" | |
| brew "git-absorb" | |
| brew "git" | |
| brew "helix" | |
| brew "llvm" | |
| brew "nushell" | |
| brew "readline" | |
| brew "ripgrep" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "version": 1, | |
| "notes": "My awesome keymap", | |
| "documentation": "\"This file is a QMK Configurator export. You can import this at <https://config.qmk.fm>. It can also be used directly with QMK's source code.\n\nTo setup your QMK environment check out the tutorial: <https://docs.qmk.fm/#/newbs>\n\nYou can convert this file to a keymap.c using this command: `qmk json2c {keymap}`\n\nYou can compile this keymap using this command: `qmk compile {keymap}`\"\n", | |
| "keyboard": "lily58/rev1", | |
| "keymap": "lily58_rev1_layout_mine", | |
| "layout": "LAYOUT", | |
| "layers": [ | |
| [ | |
| "ANY(TD(FC_RESET))", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ids = [ | |
| 7147288, | |
| 3747828, | |
| 5351370, | |
| 5164085, | |
| 3027934, | |
| 386650, | |
| 121394, | |
| 7299902, | |
| 2841417, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 14.upto(18).map {|e| "Week #{e}" }.to_c |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| puts 14.upto(18).map {|e| "Week #{e}" } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def copy(text) | |
| IO.popen('pbcopy', 'w') {|f| f << text} | |
| end | |
| class Array | |
| def to_c | |
| copy map(&:to_s).join("\n") | |
| end | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| vscode.commands.executeCommand(list.activeItems[0].command.command) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function parseExtensionCommands( | |
| extensions: Extension<any>[] | |
| ): CommandOption[] { | |
| let options: CommandOption[] = []; | |
| extensions.forEach(ext => { | |
| let { | |
| packageJSON: { contributes: { commands } = { commands: [] } } | |
| } = ext; | |
| if (commands) { | |
| commands.forEach((c: Command) => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| macro example | |
| %a = 5 | |
| a = %a + a | |
| end | |
| a = 4 | |
| example | |
| print(a) // Prints 9 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| macro method_missing(call) | |
| {{call.args}}.reduce {|a,b| a + b } | |
| end | |
| puts(sum 1,2,3,4,5) |
NewerOlder