Skip to content

Instantly share code, notes, and snippets.

View CalebMacdonaldBlack's full-sized avatar

Caleb Macdonald Black CalebMacdonaldBlack

View GitHub Profile
@CalebMacdonaldBlack
CalebMacdonaldBlack / query_check.clj
Created April 11, 2018 04:05 — forked from maxweber/query_check.clj
Checks if a Datomic datalog query contains only allowed symbols / functions.
(require '[datomic.api :as d]
'[clojure.string :as str])
(defn normalize-query
"Turns a vector formatted Datomic datalog query into a map formatted
one."
[query]
(let [pairs (partition-by keyword? query)]
(assert (even? (count pairs)))
(into
@CalebMacdonaldBlack
CalebMacdonaldBlack / .treehouse
Last active February 2, 2018 05:03 — forked from ErikGartner/.treehouse
dTree Demo
1.3.1