I hereby claim:
- I am zane on github.
- I am zane (https://keybase.io/zane) on keybase.
- I have a public key whose fingerprint is 4BB9 1E20 B3B7 B512 949C 3FDD E9A6 8906 EE80 F259
To claim this, I am signing this object:
| #!/usr/local/bin/bb | |
| (require '[babashka.curl :as curl]) | |
| (require '[cheshire.core :as json]) | |
| (def url "https://static01.nyt.com/elections-assets/2020/data/api/2020-11-03/votes-remaining-page/national/president.json") | |
| (def pa-index 38) | |
| (let [{:keys [body]} |
| {:deps {lambdaisland/kaocha {:git/url "https://github.com/lambdaisland/kaocha.git" | |
| :sha "670935d5c7d43f6df8fd237947434218cd6531f2"} | |
| lambdaisland/kaocha-cljs {:mvn/version "0.0-40"}}} |
| #!/bin/sh | |
| "exec" "clojure" "-Sdeps" "{:deps,{probcomp/curve-fitting,{:git/url,\"https://github.com/probcomp/curve-fitting\",:sha,\"916c4e55bf18803a285922f9d1b70e118f07a72e\"}}}" "$0" "$@" | |
| ;; "exec" "clojure" "-Sdeps" "{:deps,{probcomp/curve-fitting,{:local/root,\"/absolute/path/to/curve-fitting\"}}}" "$0" "$@" | |
| (ns script | |
| (:refer-clojure :only []) | |
| (:require [metaprob.state :as state] | |
| [metaprob.trace :as trace] | |
| [metaprob.sequence :as sequence] |
| license: gpl-3.0 | |
| height: 600 | |
| border: no |
I hereby claim:
To claim this, I am signing this object:
| (defn mystr [x y] (str x ", " y)) | |
| (defparallelagg myagg :init-var #'identity :combine-var #'mystr) | |
| (let [tap [[:a 1] | |
| [:a 2] | |
| [:b 3] | |
| [:c 4]]] | |
| (?<- (stdout) [?label ?nums] | |
| (tap ?label ?all-nums) |
| (let [data [[:a :x 1] | |
| [:b :x 2] | |
| [:c :y 3]] | |
| subquery (<- [?set ?num1] | |
| (data ?label ?set ?num) | |
| (:sort ?num) | |
| (:reverse true) | |
| (c/limit [1] :< ?num :> ?num1))] | |
| (?<- (stdout) | |
| [?label ?set ?num] |
| ; nREPL 0.1.4-preview | |
| user> (use 'cascalog) | |
| FileNotFoundException Could not locate cascalog__init.class or cascalog.clj on classpath: clojure.lang.RT.load (RT.java:430) | |
| user> (use 'cascalog.api) | |
| nil | |
| user> (<- (stdout) [?num] ([[:a 1][:b 2][:c 3]] ?label ?num)) | |
| CompilerException java.lang.RuntimeException: Unable to resolve symbol: ?num in this context, compiling:(NO_SOURCE_PATH:1) | |
| user> (?<- (stdout) [?num] ([[:a 1][:b 2][:c 3]] ?label ?num)) | |
| nil | |
| user> (defn double [x] (* x 2)) |
| Could not transfer metadata lein-midje:lein-midje:2.0.0-SNAPSHOT/maven-metadata.xml from/to nexus.dnc.org (https://nexus.dnc.org/content/groups/public): nexus.dnc.org | |
| Could not transfer metadata lein-midje:lein-midje:2.0.0-SNAPSHOT/maven-metadata.xml from/to nexus.dnc.org (https://nexus.dnc.org/content/groups/public): nexus.dnc.org | |
| All namespaces already :aot compiled. | |
| Could not transfer metadata lein-midje:lein-midje:2.0.0-SNAPSHOT/maven-metadata.xml from/to nexus.dnc.org (https://nexus.dnc.org/content/groups/public): nexus.dnc.org | |
| nREPL server started on port 57199 | |
| 12/09/11 01:29:58 INFO util.HadoopUtil: using default application jar, may cause class not found exceptions on the cluster | |
| 12/09/11 01:29:58 INFO planner.HadoopPlanner: using application jar: /Users/zane/.m2/repository/cascading/cascading-hadoop/2.0.0/cascading-hadoop-2.0.0.jar | |
| 12/09/11 01:29:58 INFO property.AppProps: using app.id: 31E7DA0A60FF8C93D5934CC92AD19C98 | |
| 12/09/11 01:29:58 INFO hadoop.TupleSerialization: using default comparator: cascal |
| ; nREPL 0.1.4-preview | |
| user> (use 'cascalog.playground) | |
| nil | |
| user> (cascalog.playground/bootstrap-emacs) | |
| nil | |
| user> (?<- (stdout) [?num] ([[:a 1][:b 2][:c 3]] ?label ?num)) | |
| INFO - using default application jar, may cause class not found exceptions on the cluster | |
| INFO - using application jar: /Users/zane/.m2/repository/cascading/cascading-hadoop/2.0.0/cascading-hadoop-2.0.0.jar | |
| INFO - using app.id: 31E7DA0A60FF8C93D5934CC92AD19C98 | |
| INFO - using default comparator: cascalog.hadoop.DefaultComparator |