This file contains 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
# Extremely basic development setup to serve the current directory at http://localhost:9001 | |
# Start nginx in this directory with `nginx -p . -c nginx.conf` | |
# Stop nginx with `nginx -p . -s stop` | |
events {} | |
http { | |
# Serve files with correct mimetypes on OSX | |
# location may have to be adjusted depending on your OS and nginx install | |
include /usr/local/etc/nginx/mime.types; |
This file contains 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
(defmacro afor | |
"Like for but eagerly builds a JS array. | |
Usually for react consumption." | |
[[item coll] & body] | |
`(reduce (fn [neue# ~item] | |
(.push neue# (do ~@body)) | |
neue#) | |
(cljs.core/array) ~coll)) | |
(defmacro arfor |
This file contains 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
(defun c6e/pres-forward () | |
(interactive) | |
(let ((saved (point))) | |
(forward-line) | |
(let ((beg (point))) | |
(search-forward-regexp "^;;; " nil t) | |
(if (= beg (point)) | |
(goto-char saved) | |
(progn | |
(recenter 0) |