Skip to content

Instantly share code, notes, and snippets.

@wuhx
wuhx / gzip.clj
Last active December 22, 2015 14:28 — forked from bpsm/gist:1858654
(ns clj-gunzip.core
(:require [clojure.java.io :as io])
(:require [clojure.string :as str])
(:import java.util.zip.GZIPInputStream
java.util.zip.GZIPOutputStream))
(defn gunzip
"Writes the contents of input to output, decompressed.
input: something which can be opened by io/input-stream.
// ==UserScript==
// @name 500px graber
// @namespace http://500px.com/
// @description grab photo exif info
// @include http://500px.com/*
// @copyright 2012+, You
// ==/UserScript==
// a function that loads jQuery and calls a callback function when jQuery has finished loading
function addJQuery(callback) {