Skip to content

Instantly share code, notes, and snippets.

@harrywynnwill
harrywynnwill / set-game.clj
Created December 13, 2016 07:04 — forked from cgrand/set-game.clj
the SET game in clojure.spec
;; the SET game in clojure.spec
;; inspired by https://github.com/jgrodziski/set-game
(require '[clojure.spec :as s])
(s/def ::shape #{:oval :diamond :squiggle})
(s/def ::color #{:red :purple :green})
(s/def ::value #{1 2 3})
(s/def ::shading #{:solid :striped :outline})
(s/def ::card (s/keys :req [::shape ::color ::value ::shading]))
@harrywynnwill
harrywynnwill / build.gradle
Created November 1, 2016 12:57 — forked from alexlafroscia/build.gradle
JUnit Testing with Gradle
/*
* This build file was auto generated by running the Gradle 'init' task
* by 'alex' at '1/27/15 7:02 PM' with Gradle 2.2.1
*
* This generated file contains a commented-out sample Java project to get you started.
* For more details take a look at the Java Quickstart chapter in the Gradle
* user guide available at http://gradle.org/docs/2.2.1/userguide/tutorial_java_projects.html
*/
// Apply the java plugin to add support for Java