Skip to content

Instantly share code, notes, and snippets.

View srusskih's full-sized avatar

Serhii Ruskykh srusskih

View GitHub Profile
kornysietsma / wait-until.clj
Created October 24, 2014 11:41
wait until in clojure test
(def default-wait-death (time/seconds 5))
(def default-wait-delay-ms 10)
(defn wait-until*
"wait until a function has become true"
([name fn] (wait-until* name fn default-wait-death))
([name fn wait-death]
(let [die (time/plus (time/now) wait-death)]
(loop []
(if-let [result (fn)]
blaix /
Created April 3, 2012 19:32
Stubbing django settings with Mock
SOME_SETTING = 'some value'
leandrosilva / README
Created May 29, 2011 02:04
Playing with Clojure, Redis, Compojure, and Jedis library
As always, I'm just playing with interesting things to relax a little bit. Just it.
== 1. Dependencies
I tried to use redis-clojure but it sucks and I shifted to Jedis which rocks. So if you want to try
as well, this little joke (ops! I mean...) program depends on:
* org.clojure/clojure "1.2.0"
* org.clojure/clojure-contrib "1.2.0"
* redis.clients/jedis "1.5.2"