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 dbg [body] | |
`(let [x# ~body] | |
(println "dbg:" '~body "=" x#) | |
x#)) |
You need to have SketchTool installed somewhere in your path.
Add this in your ~/.gitconfig
file (for some reason, it won't work in a local .gitconfig file):
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
{:paths ["."] | |
:deps {clansi/clansi {:mvn/version "1.0.0"}}} |
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
;; "human" date/time format parsing | |
(def human-time-parser | |
(insta/parser | |
"S = H (':' M)? ' '? P? (' ' Z)? | |
H = #'[1-9]' | #'1[0-2]' | |
M = #'0[0-9]' | #'[1-5][0-9]' | |
P = AM | PM | |
AM = 'A' 'M'? | |
PM = 'P' 'M'? |
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
(defn qualify-definitions | |
[d prefix] | |
(let [p (str prefix ".") | |
p' (str "#/definitions/" p)] | |
(into | |
{} | |
(map (fn [[k v]] | |
[(str p k) | |
(walk/postwalk | |
(fn [o] |