Skip to content

Instantly share code, notes, and snippets.

View aaronc's full-sized avatar

Aaron Craelius aaronc

View GitHub Profile
set -x
curl http://nodejs.org/dist/v0.10.28/node-v0.10.28-linux-x64.tar.gz | tar xz
mv node-v0.10.28-linux-x64 /opt/nodejs
ln -s /opt/nodejs/bin/node /usr/local/bin/node
ln -s /opt/nodejs/bin/npm /usr/local/bin/npm
curl https://install.meteor.com | /bin/sh
npm i -g meteorite
(ns simpleschema)
(defn make-validator
([name func] (make-validator name func nil))
([name func params]
(with-meta func
{:validator-name name
:validator-params params})))
(defmacro defvalidator [name validator-args & body]
@aaronc
aaronc / auto-save.el
Created February 24, 2012 02:14
A simple minor mode that can be added to emacs to automatically save a file while you are typing.
(define-minor-mode auto-save-mode
"Auto-save mode"
nil " Reload" nil
(if auto-save-mode
;; Edit hook buffer-locally.
(add-hook 'post-command-hook 'auto-save nil t)
(remove-hook 'post-command-hook 'auto-save t)))
(defun auto-save ()
(when (buffer-modified-p)