Skip to content

Instantly share code, notes, and snippets.



View GitHub Profile
Jiab77 /
Last active November 30, 2021 12:50
Samsung Printer C480W Network / USB Install for Ubuntu based distrib
View beamer-slides-with-notes.pdf
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
philippkueng / core.clj
Created April 28, 2014 16:35
Fetch & write a binary file using Clojure and clj-http
View core.clj
(ns the-namespace.core
(:require [clj-http.client :as client]
[ :as io]))
(defn- fetch-photo!
"makes an HTTP request and fetches the binary object"
(let [req (client/get url {:as :byte-array :throw-exceptions false})]
(if (= (:status req) 200)
(:body req))))