Skip to content

Instantly share code, notes, and snippets.

View msszczep's full-sized avatar

Mitchell Szczepanczyk msszczep

View GitHub Profile
@msszczep
msszczep / gist:12168573f29159e86dfc
Created July 22, 2014 20:38
Build an evaluator in Clojure (Lambda Jam 2014)
; variable evaluation: find and substitute
; look for Var X in B and substitute a
; environment, symbol
(def MyEnv {"One" 1
"Two" 2
"Three" 3
"MyAdd" +})
@msszczep
msszczep / gist:11266360
Created April 24, 2014 19:22
Reconnection in Langohr
;;adapted from http://clojurerabbitmq.info/articles/error_handling.html
(ns killwabbit.core
(:gen-class)
(:require [langohr.core :as rmq]
[langohr.channel :as lch]
[langohr.queue :as lq]
[langohr.exchange :as lx]
[langohr.consumers :as lc]
[langohr.basic :as lb])
(:import java.io.IOException