Skip to content

Instantly share code, notes, and snippets.

View Dirklectisch's full-sized avatar

Dirk Geurs Dirklectisch

View GitHub Profile
@Dirklectisch
Dirklectisch / berlin-clock.cljs
Last active July 20, 2016 19:07 — forked from skuro/berlin-clock.cljs
Berlin Clock kata as implemented at the Amsterdam Clojurians cljs dojo, meetup #80
# Amsterdam Clojurians meetup #80
# A ClojureScript dojo: the Berlin Clock!
#
# Fork this gist and put your solution in
(ns berlinclock.core
(:require [goog.dom :as gdom]
[dommy.core :as dommy :refer-macros [sel sel1]]))
(defn set-color [element colorClass]
@Dirklectisch
Dirklectisch / core-test.clj
Created May 16, 2014 11:23
Bowling Kata in Clojure
(ns bowling.core-test
(:require [clojure.test :refer :all]
[bowling.core :refer :all]))
(deftest spare?-test
(testing "Test spare predicate"
(is (spare? [5 5]))
(is (spare? [0 10]))
(is (not (spare? [2 3])))
(is (not (spare? [10 0]))) ))
@Dirklectisch
Dirklectisch / git.plist
Created January 20, 2011 21:01
Property list used to launch a Git Daemon on Mac OS X
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>UserName</key>
<string>git</string>
<key>KeepAlive</key>
<true/>
<key>Label</key>
<string>git</string>