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 build-fname | |
"Builds a strings from a command args, like: | |
ADO $ 16823423 CFB P $ Y $ " | |
[args] | |
(let [[_ $MSISDN1 $SERVICE $CATEGORY $ARG1 $ARG2 $ARG3 ] | |
(->> | |
(-> args | |
(clojure.string/split #"\W+")) | |
(map #(clojure.string/upper-case %))) | |
;;-- |
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
(ns coursera.scrath) | |
(use '[clojure.java.shell :only [sh]]) | |
(defn get-rchar | |
"A random char in [a-z]" | |
[] | |
(let [[fchar tochar] | |
[(int \a) | |
(int \z)]] | |
(char (+ (int \a) |