Skip to content

Instantly share code, notes, and snippets.

Avatar

Steven Collins lomin

  • it-agile GmbH
View GitHub Profile
@lomin
lomin / core_test.clj
Created Nov 6, 2019
St. Pauli TDD style Diamond Kata
View core_test.clj
(ns diamond-kata.core-test
(:require [clojure.test :refer :all]))
(defn surround
([s] (surround "_" s))
([delim s]
(str delim s delim)))
(defn indexed-alphabet [start end]
(map-indexed vector
@lomin
lomin / build.gradle
Last active Aug 29, 2015
Init Java Project
View build.gradle
apply plugin: 'idea'
apply plugin: 'java'
sourceCompatibility = 1.7
targetCompatibility = 1.7
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
repositories {
mavenCentral()
View gol
(ns gol)
(defn grid-with-center [[x y]]
(let [deltas [-1 0 1]]
(for [delta-x deltas delta-y deltas]
[(+ x delta-x) (+ y delta-y)])))
(defn center? [center]
(partial = center))
@lomin
lomin / ccc-kata-client.py
Created Aug 31, 2011
example for ccc-kata in python
View ccc-kata-client.py
import sys
import socket
SERVER = 1
CLIENT = 2
FUNCTION_IDX = 0
ID_IDX = 1
FIRST_PARAMETER_IDX = 2
You can’t perform that action at this time.