Skip to content

Instantly share code, notes, and snippets.

View cwhitey's full-sized avatar
🤓

Callum White cwhitey

🤓
View GitHub Profile
@cwhitey
cwhitey / test-hook-orchestration.clj
Created July 3, 2018 00:51
Try out test-ns-hook
(ns test-hook-orchestration
(:require [clojure.test :require :all]
[test-helper]))
(deftest passing-tests
(testing "happy scenario"
(is (= 1 (test-helper/happy-web-request)))))
(deftest failing-tests
(testing "sadness scenario"
@cwhitey
cwhitey / compose_conference_melbourne_2016_notes.md
Last active September 4, 2016 23:35
My notes for various talks at Compose Conference Melbourne 2016

Graphics and Animations in Haskell - M.M.D Chakravarty - 9.30

REPL limitations:

  • poor feedback loop between coding and execution (re-loading code etc.)
  • limited to text

We can use special tooling to interpret returned structures as image graphics. e.g. we can recurse to create fractals.

Animations leverage a games/animations framework called SpriteKit (from Apple)

He walked through creating Flappy Bird using his own snippets in ~15 minutes! This was incredibly cool. The overall environment was defined with something like a map of SpriteKit keys to lambdas.

@cwhitey
cwhitey / local-deploy.sh
Last active August 29, 2015 14:11
Automatically deploy locally running Ghost blog to your Github Pages
#!/bin/bash
#Assumes:
# * Ghost is running on localhost:2368 (by running npm start)
# * Buster is installed with PIP
# * we're in the /blog/ repo
# * there is a ../yourgithub.github.io/ repo checked out
if [ "$#" == "0" ]; then
echo "Usage:"
echo " ./local-deploy.sh [commit-msg]"