This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-12-28
Channels
- # announcements (1)
- # aws (1)
- # babashka (15)
- # beginners (19)
- # biff (4)
- # clojars (24)
- # clojure (22)
- # clojure-europe (17)
- # clojure-norway (3)
- # clojurescript (10)
- # emacs (5)
- # gratitude (1)
- # introduce-yourself (2)
- # jobs (1)
- # malli (3)
- # off-topic (2)
- # re-frame (1)
- # remote-jobs (3)
- # shadow-cljs (71)
- # vim (4)
;; a clojure function to copy a string to the system clipboard .
;; handy when using the repl to transform some data and paste it somewhere else.
(defn to-clip [ s ]
(let [
string-selection (java.awt.datatransfer.StringSelection. s)
clipboard (.. (java.awt.Toolkit/getDefaultToolkit) (getSystemClipboard))
]
(.setContents clipboard string-selection nil)))
🆒 17
Triple backticks gives you code blocks on slack, e.g.
` some piece of code with newlines
`.
Or just use the wysiwyg buttons👍 1