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
## macos setup | |
- homebrew | |
- alfred | |
- chrome | |
- clipboard manager: flycut | |
- window manager: spectacle | |
- idea | |
- liteide | |
- vscode |
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
exception ... | |
``` | |
vagrant up | |
dyld: Library not loaded: /vagrant-substrate/staging/embedded/lib/libssl.1.0.0.dylib | |
Referenced from: /opt/vagrant/embedded/bin/openssl | |
Reason: image not found | |
./../lib/init-ssl-ca: line 32: 20343 Abort trap: 6 openssl genrsa -out "$OUTDIR/ca-key.pem" 2048 | |
failed generating SSL CA artifacts | |
``` |
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
Remove all images/containers then: | |
docker rm $(docker ps -a -q) | |
docker rmi $(docker images -q) | |
docker volume rm $(docker volume ls |awk '{print $2}') | |
rm -rf ~/Library/Containers/com.docker.docker/Data/* |
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
dojo.query("[name='_name']").forEach(function(node, index, arr) { | |
var widget = dijit.getEnclosingWidget(node); | |
widget.attr('checked', false); | |
}); |
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
(use '[clojure.core.match :only [match]]) | |
(defn evaluate [env [sym x y]] | |
(match [sym] | |
['Number] x | |
['Add] (+ (evaluate env x) (evaluate env y)) | |
['Multiply] (* (evaluate env x) (evaluate env y)) | |
['Variable] (env x))) | |
(def environment {"a" 3, "b" 4, "c" 5}) |