Skip to content

Instantly share code, notes, and snippets.

@kskyten
kskyten / ion2csv.py
Created April 14, 2014 06:45
This script converts files from the ION Health USB-scale (http://www.ionhealthonline.com/ih03.php) into csv files.
#!/usr/bin/env python2
# This script converts files from the ION Health USB-scale (http://www.ionhealthonline.com/ih03.php) into csv files.
# Usage: ./ion2csv.py CYUSER01.TXT [output.csv]
import csv
import struct
import binascii
import datetime
import argparse
julia:
{ buildInputs ? [], name, src, ... } @ attrs:
let self = julia.stdenv.mkDerivation (
{
doCheck = false;
# doInstallCheck = true;
@kskyten
kskyten / init.sh
Created December 10, 2017 10:03
Initialize a portable Recoll index
#! /usr/bin/sh
mkdir .recoll
touch .recoll/{history,idxstatus.txt,index.pid,mimeview,ptrans}
cat <<EOF > .recoll/recoll.conf
skippedPaths = .recoll
topdirs = `pwd` # does this need to be set?
orgidxconfdir = `pwd`
EOF
recollindex -c .recoll
recoll -c .recoll
@kskyten
kskyten / nothing_schema.jl
Created February 12, 2020 11:42
JSON Schema sketches
using JSON3
# https://github.com/interagent/schematic/blob/master/schema.go
struct HRef{S}
href :: Union{Nothing, String}
order :: Union{Nothing, Vector{String}}
schemas :: Union{Nothing, Dict{String, S}}
HRef() = new{Schema}(nothing, nothing, nothing)