Skip to content

Instantly share code, notes, and snippets.

View KGOH's full-sized avatar
🙏
In academia, if it's good you publish it; In industry, you keep it secret

KgOfHedgehogs KGOH

🙏
In academia, if it's good you publish it; In industry, you keep it secret
View GitHub Profile
@KGOH
KGOH / core.clj
Last active December 9, 2020 11:19
(-> {:keyword-key "value0",
"test key with whitespaces" "value1",
"another key" "value2"}
clojure.data.json/write-str
(clojure.data.json/read-str :key-fn keyword)
prn-str
read-string)
;; => {:keyword-key "value0",
;; :test key,
;; with whitespaces,
@KGOH
KGOH / convert.clj
Last active February 29, 2024 12:12
convert.clj -- babashka edn/json/yaml to edn/json/yaml converter
#!/usr/bin/env bb
;; convert.clj -- babashka edn/json/yaml to edn/json/yaml converter
;; Author: github.com/KGOH/
;; Source: gist.github.com/KGOH/50c0f66022fea2ac173518a143238058
;; Version: 2020.4
; Usage example:
; In Emacs: i.imgur.com/TIEDmga.mp4
; $ convert.clj edn <<< '{"foo": "bar"}'
; {:foo "bar"}