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
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 |
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
(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] |
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
(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) |
NewerOlder