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
| (ns algos.dijkstra | |
| (use '[clojure.contrib.incubator]) | |
| ) | |
| (declare dijkstra build-path add-rdist update-rdists take-minnode) | |
| (defn shortest-path | |
| ([net root nodedst children distance] |
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/sh -x | |
| cd /tmp | |
| if [ ! -d "geocouch" ]; then | |
| git clone https://github.com/couchbase/geocouch.git | |
| fi | |
| cd geocouch | |
| git checkout couchdb1.2.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
| (defmacro def-curry-fn [name args & body] | |
| {:pre [(not-any? #{'&} args)]} | |
| (if (empty? args) | |
| `(defn ~name ~args ~@body) | |
| (let [rec-funcs (reduce (fn [l v] | |
| `(letfn [(helper# | |
| ([] helper#) | |
| ([x#] (let [~v x#] ~l)) | |
| ([x# & rest#] (let [~v x#] | |
| (apply (helper# x#) rest#))))] |
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
| #lang racket | |
| (require web-server/http | |
| web-server/managers/none | |
| web-server/servlet | |
| web-server/servlet-env) | |
| (provide interface-version manager star-polling-app) | |
| (define interface-version 'v2) |
NewerOlder