I got nerd sniped on Twitter!
Originally the prompt was to do the installing of the interpretter in the shebang, but I was able to fit it all in one file and that felt close enough.
I got nerd sniped on Twitter!
Originally the prompt was to do the installing of the interpretter in the shebang, but I was able to fit it all in one file and that felt close enough.
| /* Non-Italics */ | |
| @font-face { | |
| font-family: "VictorMono Nerd Font"; | |
| font-style: normal; | |
| font-weight: 200; | |
| src: url(https://github.com/ryanoasis/nerd-fonts/blob/master/patched-fonts/VictorMono/Light/complete/Victor%20Mono%20Light%20Nerd%20Font%20Complete.ttf?raw=true); | |
| } | |
| @font-face { | |
| font-family: "VictorMono Nerd Font"; | |
| font-style: normal; |
| #!/usr/bin/env bash | |
| FILES_TO_TRY=$(rg '# typed: false' -l --glob "**/*.rb") | |
| for FILE in $FILES_TO_TRY | |
| do | |
| sed -i.tmp 's/typed: false/typed: true/' "$FILE" | |
| rm "$FILE.tmp" | |
| srb tc || ( | |
| sed -i.tmp 's/typed: true/typed: false/' "$FILE" && |
| use std::collections::HashMap; | |
| fn prime_decomposition(n: u32) -> Vec<u32> { | |
| let mut output = vec![]; | |
| let mut curr = n; | |
| for i in 2..(n + 1) { | |
| while curr % i == 0 { | |
| output.push(i); | |
| curr = curr / i; |
| # This is the alias to actually launch the AppleScript. | |
| # Put this in your `.bash_profile` or wherever you like to keep aliases | |
| # This assumes the AppleScript is located in `~/AppleScripts/autopush.applescript` | |
| alias veep="osascript ~/AppleScripts/autopush.applescript" |
| Hide Icon: | |
| /usr/libexec/PlistBuddy -c 'Add :LSUIElement bool true' /Applications/iTerm.app/Contents/Info.plist | |
| Show Icon: | |
| /usr/libexec/PlistBuddy -c 'Delete :LSUIElement' /Applications/iTerm.app/Contents/Info.plist |
I hereby claim:
To claim this, I am signing this object: