Skip to content

Instantly share code, notes, and snippets.

View jalehman's full-sized avatar

Josh Lehman jalehman

View GitHub Profile
@jalehman
jalehman / recursive.js
Last active October 11, 2015 17:44
Various implementations of `map` using recursion.
function first(xs) {
return xs[0];
};
function rest(xs) {
if (xs.length <= 0) {
return [];
}
return xs.slice(1, xs.length);
};
@jalehman
jalehman / project.clj
Created April 11, 2014 19:24
Uberjar error
(defproject fmspider "0.1.0"
:description ""
:url "http://example.com/FIXME"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.5.1"]
[org.clojure/tools.namespace "0.2.4"]
[itsy "0.1.1"]
[clj-http "0.9.1"]
[enlive "1.1.5"]