Skip to content

Instantly share code, notes, and snippets.

View cecab's full-sized avatar

Cesar Castillo cecab

View GitHub Profile
(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 %)))
;;--
@cecab
cecab / textsearch.clj
Last active May 27, 2018 16:08
Clojure functions to build use cases to evaluate the search of a pattern inside a text.
(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)