Skip to content

Instantly share code, notes, and snippets.

View ryfow's full-sized avatar

Ryan Fowler ryfow

  • Edwards, CO
View GitHub Profile
(require '[clojure.spec :as s])
(defmacro tpe [ & forms ]
`(try
~@forms
(catch Exception e#
(println "Form: " (pr-str '~@forms))
(println "Exception Class: " (.getClass e#))
(println "Message: " (.getMessage e#))
(println))))
(def ^:dynamic *indent* 0)
(alter-var-root
#'clojure.core/load
(fn [orig]
(fn [& paths]
(let [t (System/nanoTime)
r (binding [*indent* (inc *indent*)]
(apply orig paths))]
(binding [*out* *err*]
(println (apply str (repeat *indent* " ")) (/ (- (System/nanoTime) t) 1000000.0) paths)

Keybase proof

I hereby claim:

  • I am ryfow on github.
  • I am ryfow (https://keybase.io/ryfow) on keybase.
  • I have a public key whose fingerprint is 1F43 E4A0 BB83 FF21 1BAC 5BD4 4F14 D5F5 4AD6 B09C

To claim this, I am signing this object:

@ryfow
ryfow / Some Animals
Created September 14, 2011 19:24
These animals have something in common
ALCES ALCES
AXIS AXIS
BISON BISON
CAPREOLUS CAPREOLUS
CARACAL CARACAL
CHINCHILLA CHINCHILLA
CHIROPOTES CHIROPOTES
CRICETUS CRICETUS
CROCUTA CROCUTA
DAMA DAMA