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
def trimmer(rec): | |
keep_keys = ['class', 'country'] | |
for key in rec.keys(): | |
if key not in keep_keys: | |
rec.pop(key) | |
return rec |
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
{ | |
"higherclassification":"Animalia; Chordata; Aves; Ciconiiformes; Laridae", | |
"family":"Laridae", | |
"stateprovince":"Oregon", | |
"catalognumber":"91774", | |
"networks":"ORNIS", | |
"lifestage":"adult", | |
"rank":8, | |
"month":"6", | |
"decimallongitude":"-124.03817", |
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
{ | |
"rows":[ | |
{ | |
"sum":406623, | |
"iso":"IDN" | |
} | |
], | |
"total_rows":1, | |
"sql":"SELECT iso,sum(alerts) FROM forma_gadm_50 WHERE iso='IDN' GROUP BY iso", | |
"time":0.041 |
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
{:dc:publisher | |
"Janet Hinshaw University of Michigan Museum of Zoology<[email protected]>", | |
:link "http://ipt.vertnet.org:8080/ipt/resource.do?r=ummz_birds", | |
:ipt:dwca "http://ipt.vertnet.org:8080/ipt/archive.do?r=ummz_birds", | |
:author "[email protected]", | |
:guid | |
{:content "be5507b9-7abf-4b69-afe1-5ca2b7561734", :isPermaLink false}, | |
:dc:creator | |
"Janet Hinshaw University of Michigan Museum of Zoology<[email protected]>", | |
:title "UMMZ Birds Collection", |
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
eightysteele:cascalog(develop)$ lein sub install | |
Retrieving lein-sub/lein-sub/0.2.1/lein-sub-0.2.1.pom from clojars | |
Retrieving codox/codox/0.6.4/codox-0.6.4.pom from clojars | |
Retrieving codox/codox.leiningen/0.6.4/codox.leiningen-0.6.4.pom from clojars | |
Retrieving leinjacker/leinjacker/0.4.1/leinjacker-0.4.1.pom from clojars | |
Retrieving org/clojure/core.contracts/0.0.1/core.contracts-0.0.1.pom from central | |
Retrieving org/clojure/pom.contrib/0.0.26/pom.contrib-0.0.26.pom from central | |
Retrieving org/sonatype/oss/oss-parent/5/oss-parent-5.pom from central | |
Retrieving org/clojure/core.unify/0.5.3/core.unify-0.5.3.pom from central | |
Retrieving org/clojure/clojure/1.4.0/clojure-1.4.0.pom from central |
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
eightysteele:midje-cascalog(develop)$ git rev-parse HEAD | |
b8c210d9f99e0cbf1e44c01dadebecdbae84a473 | |
eightysteele:midje-cascalog(develop)$ lein -v | |
Leiningen 2.0.0 on Java 1.7.0_15 OpenJDK 64-Bit Server VM | |
eightysteele:midje-cascalog(develop)$ lein repl | |
Retrieving midje/midje/1.5-beta3/midje-1.5-beta3.pom from clojars | |
Retrieving org/clojure/clojure/1.4.0/clojure-1.4.0.pom from central | |
Retrieving org/sonatype/oss/oss-parent/5/oss-parent-5.pom from central | |
Retrieving ordered/ordered/1.2.0/ordered-1.2.0.pom from clojars | |
Retrieving org/clojure/math.combinatorics/0.0.1/math.combinatorics-0.0.1.pom from central |
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
eightysteele:midje-cascalog(develop)$ lein -v | |
Leiningen 2.0.0 on Java 1.7.0_15 OpenJDK 64-Bit Server VM | |
eightysteele:midje-cascalog(develop)$ lein repl | |
Retrieving midje/midje/1.5-beta3/midje-1.5-beta3.pom from clojars | |
Retrieving org/clojure/clojure/1.4.0/clojure-1.4.0.pom from central | |
Retrieving org/sonatype/oss/oss-parent/5/oss-parent-5.pom from central | |
Retrieving ordered/ordered/1.2.0/ordered-1.2.0.pom from clojars | |
Retrieving org/clojure/math.combinatorics/0.0.1/math.combinatorics-0.0.1.pom from central | |
Retrieving org/clojure/pom.contrib/0.0.21/pom.contrib-0.0.21.pom from central | |
Retrieving org/clojure/clojure/1.3.0-alpha6/clojure-1.3.0-alpha6.pom from central |
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
{ | |
"locality":{ | |
"original":"Berkeley", | |
"normalized":"berkeley" | |
}, | |
"georefs":[ | |
{ | |
"feature":{ | |
"type": "Feature", | |
"bbox": [-180.0, -90.0, 180.0, 90.0], |
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
;; via @sritchie, master butcher: | |
(defn beast-mode [m] | |
(let [zip (partial map vector) | |
[ks v-colls] (apply zip m)] | |
(for [vs (apply zip v-colls)] | |
(zipmap ks vs)))) | |
(comment | |
(let [partitions {:title ["a" "b" "c"] :links [1 2 3] :name [:aaron :tina :noah]}] | |
(beast-mode partitions))) |
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
mps.publish( | |
mps.create( | |
'Chat', | |
'onchat', | |
{message: 'Hey @andrewxhill, what is up yo', idea_id: 'agxzfmNyb3dkc2NhbGVyCwsSBElkZWEY0w8M'})); |