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
# A config.ru useful for serving static sites from the "Bamboo" heroku stack. | |
# | |
# Interface: | |
# | |
# Url Path | Action | |
# -------- | ------------------------------------------------------------- | |
# / | contents of: index.html OR | |
# | contents of: 404.html OR | |
# | default 404 message | |
# | |
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
(ns reagent-test.core | |
(:require [reagent.core :as reagent :refer [atom]] | |
[datascript :as d] | |
[cljs-uuid-utils :as uuid])) | |
(enable-console-print!) | |
(defn bind | |
([conn q] | |
(bind conn q (atom nil))) |
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
root@1eec2cd3-2cba-e416-e1b6-845b715b736c:~# uname -a | |
Linux 1eec2cd3-2cba-e416-e1b6-845b715b736c 3.13.0 BrandZ virtual linux x86_64 x86_64 x86_64 GNU/Linux | |
root@1eec2cd3-2cba-e416-e1b6-845b715b736c:~# rustc -Vv | |
rustc 1.0.0-nightly (44a287e6e 2015-01-08 17:03:40 -0800) | |
binary: rustc | |
commit-hash: 44a287e6eb22ec3c2a687fc156813577464017f7 | |
commit-date: 2015-01-08 17:03:40 -0800 | |
host: x86_64-unknown-linux-gnu | |
release: 1.0.0-nightly | |
root@1eec2cd3-2cba-e416-e1b6-845b715b736c:~# cat hello.rs |
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
(defmulti transmogrify | |
"Rewrites the last form of a thread-last to use transducer (if possible)." | |
(fn [f xform src & args] f)) | |
(defmacro transmogrify->> | |
"Like ->> but uses transducers" | |
([x] x) | |
([src & xs] | |
(let [end (last xs) | |
xforms (butlast xs) |