I hereby claim:
- I am simon-brooke on github.
- I am simon_brooke (https://keybase.io/simon_brooke) on keybase.
- I have a public key ASDqWd060Fp973txUuQTP2MwigXHGbjeXF2L3_szPdn6Vgo
To claim this, I am signing this object:
(ns game-of-life.core) | |
(def world [[2 1] [2 2] [1 1]]) | |
(defn neighbours [[x y]] | |
[[(dec x) (dec y)] [x (dec y)] [(inc x) (dec y)] | |
[(dec x) y] [(inc x) y] | |
[(dec x) (inc y)] [x (inc y)] [(inc x) (inc y)]]) | |
(neighbours [2 2]) |
(ns minesweeper.core) | |
;; # minesweeper | |
;; An attempt to solve the Minesweeker kata from http://codingdojo.org/ in Clojure. | |
;; ## Limitations | |
;; The parser cannot handle new lines, as I couldn't think of a regular expression | |
;; to divide the input string on which would produce the new line character as a |
#!/usr/bin/awk -f | |
# Experimental implementation of ifdef in awk | |
BEGIN { | |
depth = 0; | |
defined = ""; | |
printing = 1; | |
} | |
$1 ~ /#DEFINE/ { |
#!/bin/bash | |
# Experimental launcher for LightTable; starts Butterfly if it is not | |
# already running, in order to have a terminal which works inside | |
# LightTable | |
if [ "$#" != "0" ] | |
then | |
shift | |
fi |
;; Taoensso.timbre has been a very good Clojure logging library, but v4.0 was a | |
;; breaking change and it took me a while to get my head round it, although in | |
;; fact it's very simple. If you're having trouble with it, try this, which is | |
;; very simple and works with Timbre 4.7.4 | |
(ns ^{:doc "After upgrading Timbre from 3.x to 4.x, all my applications broke. | |
I wrote this little test piece to understand what was going wrong. It works." | |
:author "Simon Brooke"} | |
chainsaw.core | |
(:require |
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
# Little script for cleaning up all my git repositories (i.e. ones I am responsible | |
# for) in my workspace dir and pushing them back to gihub or to my own server. | |
pushd ~/workspace | |
for dir in * | |
do | |
if [ -d ${dir} ] | |
then |
[user] | |
email = [email protected] | |
name = Simon Brooke | |
[diff] | |
tool = meld | |
[difftool] | |
prompt = false | |
[difftool "meld"] | |
path = C:\\Program Files (x86)\\Meld\\meld.exe |
;; gorilla-repl.fileformat = 1 | |
;; ** | |
;;; # Mountain Sort | |
;;; | |
;;; A sorting function that sorts largest to the middle. | |
;;; | |
;;; ## A bit about Gorilla Repl | |
;;; | |
;;; This file was written in, and can be run and edited in, |
<PropertyGroup> | |
<DocDirectory>..\Documentation\</DocDirectory> | |
<Doxyfile>..\Doxyfile</Doxyfile> | |
</PropertyGroup> | |
<Target Name="Doxygen"> | |
<MakeDir Directories="$(DocDirectory)" /> | |
<Exec Command="doxygen.exe $(Doxyfile)" /> | |
</Target> | |
<Target Name="DoxyClean"> | |
<RemoveDir Directories="$(DocDirectory)\html" /> |