Skip to content

Instantly share code, notes, and snippets.

View neilprosser's full-sized avatar

Neil Prosser neilprosser

View GitHub Profile

Keybase proof

I hereby claim:

  • I am neilprosser on github.
  • I am neilprosser (https://keybase.io/neilprosser) on keybase.
  • I have a public key whose fingerprint is 4893 BA3B 5623 414A 2EFB 4B6B 81BC D7B5 090F 6571

To claim this, I am signing this object:

@neilprosser
neilprosser / bots.clj
Last active December 19, 2015 00:19 — forked from cgrand/bots.clj
;; random-fritz
(ns tron.bots
(:require [tron.core :as tron]))
(defn empty-look
"A mock look function which just checks for the arena
boundaries."
[pos]
(when-not (tron/valid-pos? pos) :wall))
@neilprosser
neilprosser / add_doc.sh
Last active December 10, 2015 18:28
Using an Elasticsearch template file from $ES_HOME/config/templates does not allow me to specify a custom analyzer.
curl -XPOST http://localhost:9200/test/thing/1 -d '{
"something": "/hello/world"
}'
@neilprosser
neilprosser / ExampleSpec.scala
Created March 20, 2012 23:18
Problem combining BeforeAfter and Around context traits in Specs2
package specs2.example
import org.junit.runner.RunWith
import org.specs2.execute._
import org.specs2.mutable._
import org.specs2.runner.JUnitRunner
@RunWith(classOf[JUnitRunner])
class ExampleSpec extends SpecificationWithJUnit {