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))))
Loading
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 June 27, 2024 21:07
This is a short guide to keep track on how to setup this damn printer 😅