This file contains 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
# with debugging options | |
#!/usr/bin/ruby -w | |
# regular | |
#!/usr/bin/ruby |
This file contains 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/osascript |
This file contains 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 bash | |
# Paste this into a file, chmod 755 it, and try it out | |
while :; do | |
case $1 in | |
## Use this syntax to add an option | |
-o|--otheroption) | |
printf '%s \n' "I'm option $1" |
This file contains 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
// The simple way | |
const hex = (number) => number.toString(16) | |
console.assert(hex(15) === 'f') | |
console.assert(hex(-30) === '-1e') | |
console.assert(hex(100) === '64') |
This file contains 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
### Keybase proof | |
I hereby claim: | |
* I am paulplew on github. | |
* I am plewp (https://keybase.io/plewp) on keybase. | |
* I have a public key whose fingerprint is FA91 E146 2F0E 8E6F 29F1 BEFB D4FE 44E0 D4AE 6B8D | |
To claim this, I am signing this object: |