Skip to content

Instantly share code, notes, and snippets.

@wvdlaan
wvdlaan / berlin-clock.cljs
Last active July 20, 2016 19:15 — forked from skuro/berlin-clock.cljs
Berlin Clock kata as implemented at the Amsterdam Clojurians cljs dojo, meetup #80
(ns berlin-clock.core
(:require
[sablono.core :as sab :include-macros true])
(:require-macros
[devcards.core :as dc :refer [defcard deftest]]))
(enable-console-print!)
(defn get-clock-data
[hh mm ss]
@wvdlaan
wvdlaan / advocaat.clj
Last active March 11, 2016 13:31 — forked from skuro/README.md
Lotsa advocaat
(ns advocaat.core)
(def barrels [50 44 11 49 42 46 18 32 26 40 21 7 18 43 10 47 36 24 22 40])
(def advocaat-amount 150)
;; imagine there are only two barrels: [50 44]
;; with these two barrels the complete list of all possible combinations is:
;; 50*0 + 44*0 => 0
;; 50*0 + 44*1 => 44
;; 50*1 + 44*0 => 50
@wvdlaan
wvdlaan / nonograms.clj
Last active August 29, 2015 14:11 — forked from skuro/nonograms.clj
(ns dojo3.core)
(def x {:size [10 10]
:rows [[] [1 1] [1] [2 1 1] [1 1 1] [1 2 1 1] [1] [1] [] []]
:cols [[] [1] [] [3] [1 1] [] [5] 1 [] [1 4 []]]})
(def nono1 {:size [3 3]
:rows [[1] [3] [1]]
:cols [[1] [3] [1]]})