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
| <html> | |
| <head> | |
| <meta charset="utf-8" /> | |
| </head> | |
| <body> | |
| <script> | |
| const KEY_NAMES = { | |
| enter: 'ret', | |
| ' ': 'spc', | |
| escape: 'esc', |
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 toTest(a, b) { | |
| return a + b | |
| } | |
| function debug(fn) { | |
| return function() { | |
| console.log(`Going to call ${fn.name} with ${[].slice.call(arguments).join(', ')}`) | |
| result = fn.apply(this, arguments) | |
| console.log(`Got result from ${fn.name} of`, result); | |
| return result |
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
| <html> | |
| <head> | |
| <meta charset="utf-8" /> | |
| </head> | |
| <body> | |
| <script> | |
| function parseKeyname(keyname) { | |
| const parts = keyname.toLowerCase().split('-') | |
| const modifiers = parts.slice(0, -1) | |
| const key = parts[parts.length - 1] |
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 album --argument the_album | |
| set script (echo "\ | |
| for f in \"$the_album\"*.{flac,mp3,m4a}; | |
| afplay \"\$f\"; | |
| end | |
| ") | |
| begin | |
| fish -c "$script" | |
| 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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>Disabled</key> | |
| <false/> | |
| <key>KeepAlive</key> | |
| <false/> | |
| <key>RunAtLoad</key> | |
| <true/> |
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
| bind \ct transpose-chars | |
| # emacs ansi-term support | |
| if test -n "$EMACS" | |
| set -x TERM eterm-color | |
| end | |
| # this function may be required | |
| function fish_title | |
| true |
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
| # Defined in /var/folders/7v/b0z6dsqj1fx8k5rf8x121l580000gn/T//fish.n55H23/music.fish @ line 2 | |
| function music | |
| cd ~/Music/iTunes/iTunes\ Media/Music/ | |
| set song (fzf -1 -q "$argv") | |
| afplay $song | |
| 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
| #!/usr/bin/env python3.7 | |
| import argparse | |
| import sys | |
| from ripgrepy import Ripgrepy | |
| parser = argparse.ArgumentParser() | |
| parser.add_argument('symbol') | |
| parser.add_argument('repository') | |
| args = parser.parse_args() |
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 toTest(a, b) { | |
| return a + b | |
| } | |
| function debug(fn) { | |
| return function() { | |
| console.log(`Going to call ${fn.name} with ${[].slice.call(arguments).join(', ')}`) | |
| result = fn.apply(this, arguments) | |
| console.log(`Got result from ${fn.name} of`, result); | |
| return result |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta name="viewport" content="initial-scale=1.0, user-scalable=no"> | |
| <meta charset="utf-8"> | |
| <title>Draggable Polygons</title> | |
| <style> | |
| /* Always set the map height explicitly to define the size of the div | |
| * element that contains the map. */ | |
| #map { |