Skip to content

Instantly share code, notes, and snippets.

View belucid's full-sized avatar
💭
Coding up a storm.

Sean Johnson belucid

💭
Coding up a storm.
View GitHub Profile
@belucid
belucid / gist:5900746
Created July 1, 2013 13:26
Define a macro with defmacro, and see what expands to with macroexpand.
=> (defmacro test-it [& body] `(do (def foo "bar") ~@body))
#'fcms.app/test-it
fcms.app=> (test-it (println foo))
bar
nil
> (macroexpand '(test-it (println foo)))
(do (def fcms.app/foo "bar") (println foo))
@belucid
belucid / gist:2419995
Created April 19, 2012 09:44 — forked from axelav/gist:1839777
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Shortcuts (Mac OS X)

Keys

control
alt
command
shift
enter