Skip to content

Instantly share code, notes, and snippets.

View drjerry's full-sized avatar

Jerry Gagelman drjerry

View GitHub Profile
@drjerry
drjerry / Pipfile
Created January 3, 2020 02:03
Portable research environment
[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true
[dev-packages]
[packages]
jupyter = "*"
numpy = "*"
@drjerry
drjerry / tab2json.awk
Created August 26, 2012 17:22
Converts stream of tabular records to stream of JSON records.
{
if (NR == 1) {
split($0, tags);
if (EC == "") EC = "\"";
}
else {
split($0, vals);
jrec = "{";
for (i = 1; i <= NF; ++i) {
if (vals[i] ~ /[^0-9.]/)