Skip to content

Instantly share code, notes, and snippets.

@kaz-yos
Created January 3, 2015 23:50
Show Gist options
  • Save kaz-yos/a9db9c0381c74f75ba31 to your computer and use it in GitHub Desktop.
Save kaz-yos/a9db9c0381c74f75ba31 to your computer and use it in GitHub Desktop.
#_(defdeps ;; Need to be at line 1
[[org.clojure/clojure "1.6.0"]
[bigml/sampling "3.0"]])
;; lein oneoff script.clj to run
;; https://github.com/mtyaka/lein-oneoff
;; Namespace
(ns oneoff
(:require [clojure.string :as cstr]
[clojure.set :as cset]
[clojure.java.io :as jio]
(bigml.sampling [simple :as simple]
[reservoir :as reservoir]
[stream :as stream])))
(println (simple/sample (range 5)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment