Simply put, destructuring in Clojure is a way extract values from a datastructure and bind them to symbols, without having to explicitly traverse the datstructure. It allows for elegant and concise Clojure code.
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
| alias e='/usr/local/bin/emacs' | |
| is_arg_p() { | |
| [[ ${1} == $'-'* ]] | |
| } | |
| file_not_found_p() { | |
| [[ ! -f ${1} ]] | |
| } |
Comments? [email protected]
- Emacs learning curve?
- Mix of Emacs geeks skewed towards people who’ve been using this for a while (after all, takes a certain commitment to come all the way to an Emacs conference!)
Created from the plain text reference card on orgmode.org Download this file, and open it in Emacs org-mode!
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
| -- drop table bleh; | |
| create table bleh (id char(2) Primary Key, | |
| parent_id char(2) ); | |
| insert into bleh VALUES ('A1', null); | |
| insert into bleh VALUES ('A2', 'A1'); | |
| insert into bleh VALUES ('A3', 'A2'); | |
| insert into bleh VALUES ('A4', 'A3'); | |
| insert into bleh VALUES ('B1', null); |
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
| sudo scutil --set HostName myretina.local |
2015-01-29 Unofficial Relay FAQ
Compilation of questions and answers about Relay from React.js Conf.
Disclaimer: I work on Relay at Facebook. Relay is a complex system on which we're iterating aggressively. I'll do my best here to provide accurate, useful answers, but the details are subject to change. I may also be wrong. Feedback and additional questions are welcome.
Relay is a new framework from Facebook that provides data-fetching functionality for React applications. It was announced at React.js Conf (January 2015).
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/local/bin/zsh -c "/usr/local/bin/tmux -q has-session && exec tmux attach-session -d || exec tmux new-session -n$USER -s$USER@$HOSTNAME" | |
| /usr/local/bin/zsh -l -c "/usr/local/bin/tmux -q has-session && exec /usr/local/bin/tmux attach-session -d || exec /usr/local/bin/tmux new-session -n$USER -s$USER@$HOSTNAME" |
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/xrandr --auto --output VBOX0 --left-of VBOX1 |
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
| update-alternatives --install /usr/bin/x-window-manager x-window-manager /usr/local/bin/stumpwm 100 |