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
(defmacro -> (form &rest forms) | |
(reduce | |
(lambda (acc next) | |
(if (listp next) | |
(list* (car next) acc (cdr next)) | |
(list next acc))) | |
forms | |
:initial-value form)) | |
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
#!/bin/sh | |
# Running "eval $(goenv init -)" can take more than 100ms on a recent Macbook, most of that time spent | |
# on generating the commands, rather than evaluating them. But those commands are the same every time, | |
# so this generates those once, and caches it to disk. It doesn't check for freshness though, so it is | |
# prudent to delete ~/.goenv.cached.init.sh after updating goenv. | |
# To use: replace the call to "eval $(goenv init -)" with the following code | |
_cached_goenv_init() { |
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
#!/bin/zsh | |
sudo port selfupdate | |
outdated_ports=$(port echo outdated) | |
if [[ -z $outdated_ports ]]; then | |
exit 0 | |
fi |
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
// Thickness of the bottom of the tray itself. | |
base_z = 0.5; | |
// The width of the rim around the tray. | |
rim_width = 2; | |
// Height of the rim around the tray. This is the height over base_z. | |
rim_z = 2; | |
// Length of the drip tray (not including the notch). |
OlderNewer