Skip to content

Instantly share code, notes, and snippets.

ddillinger@ip-10-150-36-33:~> ./test-query.sh
./test-query.sh
API Location: https://api.dev.discoverstor.net
Account ID: fbc7d50f-bda0-4534-94e9-e65a2b52d692
User: sonian
Password: sonian123
Query: (and (contains body \"S\"))
API Token: https://api.dev.discoverstor.net/fbc7d50f-bda0-4534-94e9-e65a2b52d692/auth/v1/sessions/de6fd20c-ee5c-4637-989b-752fabf32831
@ddillinger
ddillinger / gist:db1b30d2b963bb204442
Created March 17, 2015 14:51
monty hall simulator
(ns monty.core)
;; game setup and rules
(defn gen-doors
"Generates a shuffled triple vector of two :goat and one :car entry."
[]
(shuffle [:goat :goat :car]))
(defn choose
"Randomly chooses an index into the doors and returns it."