Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am bloat on github.
  • I am bloat (https://keybase.io/bloat) on keybase.
  • I have a public key ASBzOrH2yIOXRqaWPjyKSbJt2zfjoh9a8SGlJK4H75mj9Ao

To claim this, I am signing this object:

(ns ch3.core)
(defn atom? [e]
(not (list? e)))
(defn wrong [msg] (throw (RuntimeException. msg)))
(declare evaluate)
(defmulti invoke (fn [r & _] (:type r)))

Keybase proof

I hereby claim:

  • I am bloat on github.
  • I am bloat (https://keybase.io/bloat) on keybase.
  • I have a public key whose fingerprint is 405C A9EC 6CE9 F0A2 E5ED 8B25 44FB 4A72 6351 7520

To claim this, I am signing this object:

private volatile Object answerResult;
@Test public void
testSomething() {
final Listener<Object> aListener = mock(Listener.class);
final Object result = new Object();
doAnswer(new Answer<Object>() {
@Override
public Object answer(InvocationOnMock invocation) throws Throwable {
@bloat
bloat / thorny.clj
Created December 4, 2012 20:44
A Thorny Issue In Clojure Java Interop
(ns a-thorny-issue.core
(require [clojure [reflect :as r] [pprint :as pp]]
[clojure.java [javadoc :as jd]])
(import [java.util.concurrent Executors Future ExecutorService]))
(comment (pp/print-table [:name :parameter-types :return-type]
(sort-by :name (:members
(r/reflect java.util.concurrent.ExecutorService))))
(jd/javadoc java.util.concurrent.ExecutorService))
@bloat
bloat / gist:3983804
Created October 30, 2012 23:33
Late October 2012 London Clojure Dojo - Team 2
(ns core-logic-dojo.core
(:use [clojure.core logic]))
(run* [board]
(fresh [cell]
(membero cell [1 2 3 4 5 6 7 8 9])
(== board [[cell]])))
(defne valido [board]
([[]])