Skip to content

Instantly share code, notes, and snippets.

View ctdean's full-sized avatar

Chris Dean ctdean

  • Treasury Prime
  • Programmer, hack thyself
View GitHub Profile
#
# commons-logging.properties
#
# Chris Dean
# Use Log4j
org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger
# Configuration file of the log
#
# log4j.properties
#
# Chris Dean
log4j.rootLogger = DEBUG, standard
log4j.appender.standard = org.apache.log4j.FileAppender
log4j.appender.standard.File = /project/kineto/log/kineto.log
(defproject test-swank "1.0.0-SNAPSHOT"
:description "FIXME: write"
:dependencies [[org.clojure/clojure "1.1.0"]
[org.clojure/clojure-contrib "1.0-SNAPSHOT"]]
:dev-dependencies [[leiningen/lein-swank "1.0.0-SNAPSHOT"]])
(defn separate-2 [f coll]
(loop [coll coll
in nil
out nil]
(if (empty? coll)
[(reverse in) (reverse out)]
(let [cur (first coll)]
(if (f cur)
(recur (rest coll) (cons cur in) out)
(recur (rest coll) in (cons cur out)))))))
(slime-setup '(slime-autodoc
slime-asdf
slime-banner
slime-repl
slime-compiler-notes-tree
slime-fancy))