Code Snippets edn

Short texts edn 🧑‍💻 Code snippets edn ✍️ Reading lists edn 👀

Private global deps.edn

;; The deps.edn file describes the information needed to build a classpath. ;; ;; When using the `clojure` or `clj` script, there are several deps.edn files ;; that are combined: ;; – install-level ;; – user level (this file) ;; – project level (current directory when invoked) ;; ;; For all attributes other than :paths, […]

Shadow CLJS require ES Module in script

This shows how to require ES modules in a node script which is itself compiled as an ES module by shadow. I made this to verify if [nbb](’s way of requiring ES modules aligns with other tools that accomplish the same using the CLJS compiler. Build with `npx shadow-cljs compile script`. Run with `node out/script.js`. […]

Supporting post for

{ “name”: “myapp”, “version”: “0.0.1”, “private”: true, “devDependencies”: { “autoprefixer”: “^10.3.1”, “cross-env”: “^7.0.3”, “cssnano”: “^5.0.7”, “npm-run-all”: “^4.1.5”, “postcss”: “^8.3.6”, “postcss-cli”: “^8.3.1”, “tailwindcss”: “^2.2.7” }, “dependencies”: { “create-react-class”: “^15.7.0”, “react”: “^17.0.2”, “react-dom”: “^17.0.2”, “shadow-cljs”: “^2.15.2”, }, “scripts”: { “shadow:watch”: “shadow-cljs watch myapp-build”, “shadow:release”: “shadow-cljs release myapp-build”, “postcss:watch”: “cross-env TAILWIND_MODE=watch postcss -w resources/css/tailwind.css -o ./resources/public/css/main.css –verbose”, “postcss:release”: […]

Output of script that converts Roam EDN file to OPML

#datascript/DB {:schema {:create/user {:db/valueType :db.type/ref, :db/cardinality :db.cardinality/one}, :plugin/id {:db/unique :db.unique/identity}, :node/subpages {:db/valueType :db.type/ref, :db/cardinality :db.cardinality/many}, :vc/blocks {:db/valueType :db.type/ref, :db/cardinality :db.cardinality/many}, :edit/seen-by {:db/valueType :db.type/ref, :db/cardinality :db.cardinality/many}, :window/id {:db/unique :db.unique/identity}, :attrs/lookup {:db/valueType :db.type/ref, :db/cardinality :db.cardinality/many}, :node/windows {:db/valueType :db.type/ref, :db/cardinality :db.cardinality/many}, :d/v {:db/valueType :db.type/ref, :db/cardinality :db.cardinality/one}, :block/clone {:db/valueType :db.type/ref, :db/cardinality :db.cardinality/one}, :node/sections {:db/valueType :db.type/ref, :db/cardinality :db.cardinality/many}, :harc/v {:db/valueType […]