Skip to content

Instantly share code, notes, and snippets.

View jonasseglare's full-sized avatar

jonasseglare

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