This file contains 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
cd ~/annals/storm/ | |
mkdir Storm202{0,1} | |
cat Storm\ 2020\ Transactions.csv | parallel --header : --pipe -N500000 'cat >Storm2020/Storm2020_{#}.csv' | |
cat Storm\ 2021\ Transactions.csv | parallel --header : --pipe -N500000 'cat >Storm2021/Storm2021_{#}.csv' | |
zip -r storm.zip Storm202[01] |
This file contains 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
cd ~/annals/storm/ | |
mkdir Storm202{0,1} | |
cat Storm\ 2020\ Transactions.csv | parallel --header : --pipe -N500000 'cat >Storm2020/Storm2020_{#}.csv' | |
cat Storm\ 2021\ Transactions.csv | parallel --header : --pipe -N500000 'cat >Storm2021/Storm2021_{#}.csv' | |
zip -r storm.zip Storm202[01] |
This file contains 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
;; To get factorial of 5 | |
(* 5 4 3 2 1) | |
;; To get factorial of n: n! | |
(apply * (range 5 0 -1) |
This file contains 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
(require '[clojure.test.check.random :as random] | |
'[clojure.test.check.generators :as gen] | |
'[clojure.test.check.rose-tree :as rt]) | |
(defn shrinks | |
"Shows how a generator will shrink" | |
([g] (shrinks g 10 10)) | |
([g size] (shrinks g size 10)) | |
([g size sample] (take sample (distinct (map rt/root | |
(tree-seq (fn [_] true) rt/children (gen/call-gen g (random/make-random) size))))))) |
This file contains 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
(require '[clojure.test.check.generators :as gen]) | |
(require '[clojure.string :refer [join]]) | |
(require '[schema-generators.generators :as g]) | |
(require '[schema.core :as s]) | |
(def IP String) | |
#_(def IP (s/named String "IP")) | |
This file contains 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 bug-demo | |
(:require [datomic.ion.cast :as cast] | |
[clojure.java.io :refer [output-stream]])) | |
(cast/initialize-redirect :stdout) | |
(cast/event {:msg "ShouldNotCauseAStackOverflowErrorInCider"}) |
This file contains 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
:kaocha {:extra-paths ["test"] | |
:extra-deps {lambdaisland/kaocha {:mvn/version "0.0-529"} | |
lambdaisland/kaocha-junit-xml {:mvn/version "0.0-70"} | |
lambdaisland/kaocha-cloverage {:mvn/version "0.0-32"} | |
cloverage {:mvn/version "RELEASE"} | |
} | |
:main-opts ["-m" "kaocha.runner" | |
"--plugin" "kaocha.plugin/junit-xml" | |
"--plugin" "cloverage" "--no-cov-summary" | |
"--junit-xml-file" "target/test-results/junit.xml"]} |
This file contains 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
#!/usr/local/bin/python | |
import os | |
import subprocess | |
import sys | |
commands ={ ".svn" : ["svn","-u","status"], | |
".git" : ["git", "status"] } | |
def parent_dirs(f_or_d): |
This file contains 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
(defun list-to-hash (coll) | |
(let ((rtnval (make-hash-table :test 'equal))) | |
(cl-loop for r across coll | |
when r | |
do (puthash (elt r 1) nil rtnval)) | |
rtnval)) | |
(defun jdee-open-source-resource-in-archive-p (archive resource) | |
"" |
This file contains 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
Debugger entered--Lisp error: (error "ECB 2.40: Errors during the layout setup of ECB. (error-type: error, error-data: (\"Variable binding depth exceeds max-specpdl-size\"))") | |
signal(error ("ECB 2.40: Errors during the layout setup of ECB. (error-type: error, error-data: (\"Variable binding depth exceeds max-specpdl-size\"))")) | |
error("ECB %s: %s (error-type: %S, error-data: %S)" "2.40" "Errors during the layout setup of ECB." error ("Variable binding depth exceeds max-specpdl-size")) | |
ecb-clean-up-after-activation-failure("Errors during the layout setup of ECB." (error "Variable binding depth exceeds max-specpdl-size")) | |
ecb-activate--impl() | |
ecb-activate-internal() | |
ecb-minor-mode(1) | |
ecb-activate() | |
call-interactively(ecb-activate record nil) | |
command-execute(ecb-activate record) |