Skip to content

Instantly share code, notes, and snippets.

View aprobus's full-sized avatar

Aaron Probus aprobus

  • Funding Circle
  • Berkeley
View GitHub Profile
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
export KAFKA_URL='kafka.service.consul:9092'
export ZOOKEEPER_URL='zookeeper.service.consul:2181'
export SCHEMA_REGISTRY_URL='http://schema-registry.localservice'
export FC_CONNECT_URL='http://workers-fc-connect.service.consul'
(defn change-coins
"Takes in input n as the amount in cents.
Returns the map of coins and their counts."
[n]
(loop [n n
coins [100 25 10 5 1]
purse {}]
(if (empty? coins)
purse
(let [coin (first coins)