Skip to content

Instantly share code, notes, and snippets.

; I mostly use Clojure running on the JVM, and ClojureScript that compiles into
; JavaScript that runs in browser
;
; But there are two great ClojureScripts that feel more like scripting.
; - Lumo runs on top of Node.js and can therefore use npm libraries
; https://github.com/anmonteiro/lumo
; - Planck runs on JavaScriptCore which powers Safari (I think)
; https://github.com/planck-repl/planck
;
; I chose lumo because the first Google result "clojurescript parse json"
#!/bin/bash
#
# Posting this as an example of a bash script I never should have written:
#
# it runs inside of a CI pipeline, waits for a kubernetes job to complete, looping
# until kubectl reports the job finishing, either success or fail.
#
# The problem: parsing the output frm kubectl is something I've used in a bunch of scripts,
# including exec'ing a shell, killing a pod, listing pods...
@realgenekim
realgenekim / split-and-count.cljs
Last active June 9, 2020 15:06
Create sorted word frequencies for word clouds, using Lumo and ClojureScript
;; using lumo for ClojureScript: https://github.com/anmonteiro/lumo
;;
;; https://www.wordclouds.com/
;; - size: 1920x1080
;; - size is typically around -45
;; - shape: rectangle
;; - theme: black on white
;; - font: Ariel
;;
;; PS: Over the last 30 years, I've probably written this program over