Description
New section using Babashka to script clojure (rather than Bash scripts) with lots of examples
Connecting Babashka with editors using nrepl (socketREPL ??)
bb -nrepl
Cover Babashka pods and examples
How to create a Babashka pod?
Examples
Create git repositories
https://github.com/drewverlee/gr/blob/master/src/gr.clj
Passphrase generator using #babashka #clojure and reading randomness from /dev/urandom and wordlist from /usr/share/dict/words. Can't speak to its security, but a nice exercise in any case. https://t.co/on2KlMuO1d
https://gist.github.com/snorremd/43c49649d2d844ee1e646fee67c141bb
bbf, a tiny script to make filtering data more concise: https://t.co/1cEtDk0pQ
Even numbers to 10:
$ seq 10 | bbf even?
Multiples of 7 under 100:
$ seq 100 | bbf '#(= 0 (rem % 7))'
Movies released in the 80s:
$ cat movies.edn | bbf '#(< 1980 (:year %) 1990)'
#babashka #clojure https://t.co/Ts0phW81Iw
https://github.com/justone/dotfiles-personal/blob/personal/bin/bbf