Created
April 10, 2020 17:50
-
-
Save nfedyashev/ea898495c2e779db0581391e316661a6 to your computer and use it in GitHub Desktop.
show images in cider repl - taken from https://www.youtube.com/watch?v=1YQCLGfrev0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn image [path] | |
(let [stream (:body (client/get (str image-base-url path) {:as :stream}))] | |
(io/copy stream (io/file "temp.jpg")) | |
(URI. (str "file://" (System/getProperty "user.dir") "/temp.jpg")))) | |
;;cider-repl-toggle-content-types |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment