I hereby claim:
- I am peterschwarz on github.
- I am pschwarz (https://keybase.io/pschwarz) on keybase.
- I have a public key ASDDELxVW0VvTx5AZSS-J6bpiFOUQF3lV8wTgezhdkqcIQo
To claim this, I am signing this object:
(defn current-classpath [] | |
(->> (ClassLoader/getSystemClassLoader) (.getURLs) seq (map #(.getFile %)))) |
I hereby claim:
To claim this, I am signing this object:
_.doAll = function(fn) { | |
var fns = Array.prototype.slice.call(arguments); | |
return function() { | |
var self = this; | |
var target_args = Array.prototype.slice.call(arguments); | |
return _.map(fns, function(fn) { | |
return fn.apply(self, target_args) | |
}); |
#!/bin/sh | |
nohup ~/Applications/sublime-text-2/sublime_text $1 >/dev/null 2>&1 & |
(require '[clojure.core.async :refer [chan timeout >!! <!! alts!! mult tap]]) | |
(defn td [ch] | |
(first (alts!! [ch (timeout 100)]))) | |
(def c (chan 10)) | |
(>!! c :foo) ; true |
(ns hello-world.handler | |
(:use compojure.core) | |
(:require [compojure.handler :as handler] | |
[compojure.route :as route] | |
[ring.util.response :as resp] | |
[clojure.data.json :as json])) | |
(defn generate-response [data & [status]] | |
{:status (or status 200) | |
:body (str "<div>Hello <strong>" (:hello data) "</strong></div><div>We seen you <em>" (inc (:count data)) "</em> time(s)</div>") |