Skip to content

Instantly share code, notes, and snippets.

Zane Shelby zane

Block or report user

Report or block zane

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View deps.edn
{:deps {lambdaisland/kaocha {:git/url "https://github.com/lambdaisland/kaocha.git"
:sha "670935d5c7d43f6df8fd237947434218cd6531f2"}
lambdaisland/kaocha-cljs {:mvn/version "0.0-40"}}}
@zane
zane / infer.clj
Created Nov 26, 2018
A minimal script for using Metaprob's infer with the curve fitting model from probcomp/curve-fitting
View infer.clj
#!/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]
@zane
zane / .block
Created Nov 7, 2017 — forked from mbostock/.block
U.S. TopoJSON
View .block
license: gpl-3.0
height: 600
border: no
View keybase.md

Keybase proof

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:

View untitled.clj
(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)
View core.clj
(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]
View *nrepl*.txt
; 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))
View *nrepl-server*.txt
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
View *nrepl*.txt
; 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
View untitled2.clj
(<- [?piece1 ?piece2 ?piece3]
((lfs-textline ...) line)
(my-split-fn line :> ?piece1 ?piece2 ?piece3))
You can’t perform that action at this time.