Skip to content

Instantly share code, notes, and snippets.

View ludwigschubert's full-sized avatar

Ludwig Schubert ludwigschubert

View GitHub Profile
@ludwigschubert
ludwigschubert / loadnpy.js
Created July 19, 2017 16:29 — forked from nvictus/loadnpy.js
NumPy binary file parser for javascript
// Client-side parser for .npy files
// See the specification: http://docs.scipy.org/doc/numpy-dev/neps/npy-format.html
var NumpyLoader = (function () {
function asciiDecode(buf) {
return String.fromCharCode.apply(null, new Uint8Array(buf));
}
function readUint16LE(buffer) {
var view = new DataView(buffer);
var val = view.getUint8(0);
@ludwigschubert
ludwigschubert / .block
Created June 28, 2017 21:29 — forked from mbostock/.block
Contour Plot
license: gpl-3.0
height: 673
border: no
@ludwigschubert
ludwigschubert / .block
Created July 30, 2016 16:50 — forked from mbostock/.block
Stacked Bar Chart
license: gpl-3.0