This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ lein ancient | |
clojure.lang.Compiler$CompilerException: java.lang.ClassNotFoundException: org.joda.time.ReadablePartial, compiling:(ancient/ancient_clj/v0v3v13/clj_aws_s/v0v3v10/clj_time/v0v6v0/clj_time/core.clj:1:1) | |
at clojure.lang.Compiler.load (Compiler.java:7391) | |
clojure.lang.RT.loadResourceScript (RT.java:372) | |
clojure.lang.RT.loadResourceScript (RT.java:363) | |
clojure.lang.RT.load (RT.java:453) | |
clojure.lang.RT.load (RT.java:419) | |
clojure.core$load$fn__5677.invoke (core.clj:5893) | |
clojure.core$load.invokeStatic (core.clj:5892) | |
clojure.core$load.doInvoke (core.clj:5876) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(require '[clojure.contrib.seq-utils :refer [indexed]]) | |
(import (java.util.concurrent Executors ConcurrentHashMap)) | |
(defn pmapn [n f coll] | |
(let [executor (Executors/newFixedThreadPool n) | |
total (count coll) | |
results (ConcurrentHashMap. total 0.75 n)] | |
;; enqueue work | |
(doseq [[i x] (indexed coll)] | |
(.execute executor #(.put results i (f x)))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Functional HTML library. | |
* Requires $ and _. | |
*/ | |
(function(outerScopeObj) { | |
function toHTML(x) { | |
if (x.toHTML) { | |
return x.toHTML(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -e | |
if [ ! -f ./project.clj ]; then | |
echo "Run from a lein project directory." | |
exit 1 | |
fi | |
mkdir -p ./.fastrepl/ | |
if command -v md5 >/dev/null 2>&1; then | |
MD5=`md5 -q project.clj` |
NewerOlder