Skip to content

Instantly share code, notes, and snippets.

View ourkwest's full-sized avatar
Status not set.

Rachel Westmacott ourkwest

Status not set.
View GitHub Profile

Keybase proof

I hereby claim:

  • I am peterwestmacott on github.
  • I am peterwestmacott (https://keybase.io/peterwestmacott) on keybase.
  • I have a public key ASDFdgzartg6_uwW5lYdmDnZv6t-Rq3SReIod87yZMZyBwo

To claim this, I am signing this object:

@ourkwest
ourkwest / debug-chan.clj
Created August 1, 2017 13:29
Debugging core.async channel buffer occupancy.
(ns debug-chan
(:require [clojure.core.async :as async])
(:import (javax.swing JFrame WindowConstants JPanel)
(java.awt Dimension BorderLayout Graphics Color)
(java.awt.event WindowAdapter)))
(def to-watch (atom []))
(defn debug-buffer [label buf-or-n]