Skip to content

Instantly share code, notes, and snippets.

@halcyon
halcyon / railwaycat-emacs-shell-functions.sh
Last active June 18, 2016 02:18
Start railwaycat's OSX emacs port from the shell
alias e='/usr/local/bin/emacs'
is_arg_p() {
[[ ${1} == $'-'* ]]
}
file_not_found_p() {
[[ ! -f ${1} ]]
}
@halcyon
halcyon / 00_destructuring.md
Created June 6, 2016 16:13 — forked from john2x/00_destructuring.md
Clojure Destructuring Tutorial and Cheat Sheet

Clojure Destructuring Tutorial and Cheat Sheet

(Related blog post)

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.

Vectors

@halcyon
halcyon / emacsconf2013-sacha.org
Created February 19, 2016 04:37 — forked from sachac/emacsconf2013-sacha.org
Source code for my Emacs conference talk

Comments? [email protected]

  • Emacs learning curve?

Meta information

Assumptions

  • 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!)

Outcomes

@halcyon
halcyon / org-mode-reference-in.org
Created February 11, 2016 05:59 — forked from drj42/org-mode-reference-in.org
This is a cheat sheet for Emacs org-mode... in org-mode format!
-- 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);
@halcyon
halcyon / fix-slow-emacs.sh
Created November 26, 2015 19:09
emacs is slow to start without an FQDN
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.

What is Relay?

Relay is a new framework from Facebook that provides data-fetching functionality for React applications. It was announced at React.js Conf (January 2015).

@halcyon
halcyon / iterm-tmux
Last active October 19, 2015 11:29
iterm tmux config
/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"
@halcyon
halcyon / xrandr
Created November 14, 2014 00:53
xrandr
/usr/bin/xrandr --auto --output VBOX0 --left-of VBOX1
update-alternatives --install /usr/bin/x-window-manager x-window-manager /usr/local/bin/stumpwm 100