I hereby claim:
- I am theneuralbit on github.
- I am hulettbh (https://keybase.io/hulettbh) on keybase.
- I have a public key whose fingerprint is 2BBC 7636 3D31 D1CC 5131 45C0 2F48 7FAD BB75 17BE
To claim this, I am signing this object:
import sys | |
infile = open(sys.argv[1], 'r') | |
outfile = open(sys.argv[2], 'w') | |
for line in infile.read().split('\n'): | |
while len(line) > 80: | |
idx = line[:80].rfind(' ') | |
outfile.write('%s\n' % line[:idx]) | |
line = line[idx + 1:] |
#! /bin/bash | |
while [ 1 ]; do | |
inotifywait ${2} | |
${1} ${2} | |
done |
<html> | |
<body> | |
<svg></svg> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.14/d3.min.js"></script> | |
<script> | |
var lineData = d3.range(1000); | |
function get_rand() { | |
return Math.round(Math.random()*9 + 0.5); | |
} |
I hereby claim:
To claim this, I am signing this object:
// obj.forEach(function(k, v) { ... }); | |
Object.prototype.forEach = function forEach(callback) { | |
for (var key in this) { | |
if (this.hasOwnProperty(key)) { | |
callback(key, this[key]); | |
} | |
} | |
} |
""" | |
=================== | |
Label image regions | |
=================== | |
This example shows how to segment an image with image labelling. The following | |
steps are applied: | |
1. Thresholding with automatic Otsu method | |
2. Close small holes with binary closing |
538's data on 45 years of Scrabble games turned into an Arrow file
$ python scrabble.py https://media.githubusercontent.com/media/fivethirtyeight/data/master/scrabble-games/scrabble_games.csv scrabble.arrow
> [email protected] perf /home/hulettbh/working_dir/arrow/js | |
> node ./perf/index.js | |
Running apache-arrow performance tests... | |
Parse "tracks": | |
Table.from | |
x 6,199 ops/sec ±2.83% (81 runs sampled) | |
avg: 0.16ms |