This file contains hidden or 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
# 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' |
This file contains hidden or 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
(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) |