Skip to content

Instantly share code, notes, and snippets.

(ns ansible.core
(:require [clojure.java.shell :as sh]
[clojure.string :as str]
[cheshire.core :as cheshire]
[clojure.java.io :as io])
(:import (java.io File)
(com.fasterxml.jackson.core JsonGenerator)
(java.util Base64)
(java.security MessageDigest MessageDigest$Delegate)))
@tomconnors
tomconnors / app.hooks.cljs
Created November 17, 2020 15:35
Integration of re-frame and react hooks.
(ns app.hooks
(:require
;; A lib provided by react to make these types of integrations easier:
["use-subscription" :as react.use-subscription]
[re-frame.interop :as rf.interop]
[re-frame.core :as rf]
[helix.hooks :as h.hooks] ; cljs wrapper of the react hooks api
))
(defn- maybe-dispose! [^clj reaction]
@tomconnors
tomconnors / script.sh
Created October 13, 2023 15:01
Use -J flag with clojure cli
clojure -J-Dconf=local/config-overrides ... rest of command