Skip to content

Instantly share code, notes, and snippets.

brew "fzf"
brew "gh"
brew "git-absorb"
brew "git"
brew "helix"
brew "llvm"
brew "nushell"
brew "readline"
brew "ripgrep"
{
"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))",
ids = [
7147288,
3747828,
5351370,
5164085,
3027934,
386650,
121394,
7299902,
2841417,
14.upto(18).map {|e| "Week #{e}" }.to_c
puts 14.upto(18).map {|e| "Week #{e}" }
def copy(text)
IO.popen('pbcopy', 'w') {|f| f << text}
end
class Array
def to_c
copy map(&:to_s).join("\n")
end
end
vscode.commands.executeCommand(list.activeItems[0].command.command)
function parseExtensionCommands(
extensions: Extension<any>[]
): CommandOption[] {
let options: CommandOption[] = [];
extensions.forEach(ext => {
let {
packageJSON: { contributes: { commands } = { commands: [] } }
} = ext;
if (commands) {
commands.forEach((c: Command) => {
@laginha87
laginha87 / macro_example.cr
Created May 2, 2018 18:20
Macro Example cr
macro example
%a = 5
a = %a + a
end
a = 4
example
print(a) // Prints 9
macro method_missing(call)
{{call.args}}.reduce {|a,b| a + b }
end
puts(sum 1,2,3,4,5)