View core_test.clj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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 |
View build.gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apply plugin: 'idea' | |
apply plugin: 'java' | |
sourceCompatibility = 1.7 | |
targetCompatibility = 1.7 | |
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8' | |
repositories { | |
mavenCentral() |
View gol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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)) |
View ccc-kata-client.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import socket | |
SERVER = 1 | |
CLIENT = 2 | |
FUNCTION_IDX = 0 | |
ID_IDX = 1 | |
FIRST_PARAMETER_IDX = 2 |