Skip to content

Instantly share code, notes, and snippets.

@uwo
uwo / README.md
Last active July 22, 2018 17:44 — forked from jcf/log.clj
Refresh logback.xml from a Clojure REPL

deps.edn

{:deps {gist-uwo/logbacku {:git/url "https://gist.github.com/uwo/e98b012c0d9b4bfb4d3464c2ac1e5efd"
                          :sha "6febe8063e7189f39c1bdeb11db2e4ade519bcb8"}}}
@uwo
uwo / clipboard.clj
Last active June 28, 2018 15:21 — forked from Folcon/clipboard-utils.clj
clipboard spit/slurp
(ns clipboard)
(defn get-clipboard []
(.getSystemClipboard (java.awt.Toolkit/getDefaultToolkit)))
(defn slurp-clipboard []
(try
(.getTransferData (.getContents (get-clipboard) nil) (java.awt.datatransfer.DataFlavor/stringFlavor))
(catch java.lang.NullPointerException e nil)))