Skip to content

Instantly share code, notes, and snippets.

@semperos
semperos / clojure-deftype-scaffolding.clj
Created October 4, 2012 18:16
Clojure Scaffolding for deftype (Christophe Grand) - Show which methods a class implements and for which interfaces
;; Big thanks to Christophe Grand - https://groups.google.com/d/msg/clojure/L1GiqSyQVVg/m-WJogaqU8sJ
(defn scaffold [iface]
(doseq [[iface methods] (->> iface .getMethods
(map #(vector (.getName (.getDeclaringClass %))
(symbol (.getName %))
(count (.getParameterTypes %))))
(group-by first))]
(println (str " " iface))
(doseq [[_ name argcount] methods]
(println
@harlantwood
harlantwood / index.md
Created September 27, 2012 07:32 — forked from runlevel5/gist:2866534
Spree 1.0.x deployment on Heroku
layout title date comments categories tags author
post
Spree 1.0 deployment on Heroku
2012-02-21 06:40
true
spree, heroku, ruby, deployment, cedar stack
Trung Lê