View oakland_top_trees.txt
1 2 3 4 5 6 7 8 9 10
4053 Tree well only
3787 Platanus acerifolia
3312 Liquidambar styraciflua
2683 Pyrus calleryana cvs
2048 Prunus cerasifera/blireiana
1953 Lagerstroemia indica
1427 Pyrus kawakami
1375 Magnolia grandiflora
1327 Fraxinus o. `Raywood'
1150 Pistacia chinensis
View client.js
1 2 3 4 5 6 7 8 9
var RPC = require('./');
var net = require('net');
var fs = require('fs');
 
var rpc = RPC();
rpc.pipe(net.connect(5000)).pipe(rpc);
 
var client = rpc.wrap([ 'hello:s' ]);
client.hello().pipe(process.stdout);
View browser.js
1 2 3 4 5 6 7 8 9 10
var wsock = require('websocket-stream');
var ws = wsock('ws://' + location.host);
var split = require('split2');
var through = require('through2');
var h = require('virtual-dom/h');
 
var state = { images: [] };
var createImage = require('./image.js');
 
var main = require('main-loop');
View browser.js
1 2 3 4 5 6 7 8 9
var Peer = require('simple-peer');
var p = new Peer({ initiator: location.hash === '#1', trickle: false });
 
p.on('error', function (err) { console.log('error', err) });
 
p.on('signal', function (data) {
console.log('SIGNAL', JSON.stringify(data));
document.querySelector('#outgoing').textContent = JSON.stringify(data);
});
View results
1 2 3 4 5 6 7 8 9 10
$ for x in sign*.js; do echo -e $x:; node $x | fold -w64 | sed 's/^/ /'; done
sign0.js:
c44ad65291c2b1087218db8a43e3fa7b73cfa01b585b0ff9e6b962ed50e701a1
6065277417ff5bbae43d9b76e52129d27bf2e33e8b043ea67ace7ff91dae4d02
333a736571693165313a7631323a48656c6c6f20576f726c6421
sign1.js:
c44ad65291c2b1087218db8a43e3fa7b73cfa01b585b0ff9e6b962ed50e701a1
6065277417ff5bbae43d9b76e52129d27bf2e33e8b043ea67ace7ff91dae4d02
333a736571693165313a7631323a48656c6c6f20576f726c6421
sign2.js:
View keypair.js
1 2 3 4 5 6 7 8 9
var EC = require('elliptic').ec;
var sprintf = require('sprintf');
var target = Buffer(32);
target.fill(0);
Buffer(process.argv[2], 'hex').copy(target);
var best = null;
var count = 0;
var ec = new EC('ed25519');
var start = Date.now();
View gist:1ee0cd4abfdd63a6c5eb
1 2 3 4 5 6 7 8 9 10
/tmp/from2-string $ npm run test-cov-ci
 
> from2-string@1.0.2 test-cov-ci /tmp/from2-string
> NODE_ENV=test covert --quiet --json test
 
{
"/tmp/from2-string/test.js": [],
"/tmp/from2-string/index.js": []
}
/tmp/from2-string $ npm ls | grep cover
View gist:fcfb27bd83183d97c5ed
1 2 3 4
~/projects/webcat $ DEBUG=* webcat maxogden > output
webcat new instance +0ms maxogden { _: [ 'maxogden' ], username: 'substack' }
webcat signing message +37ms { type: 'syn', nounce: 0.7579550028312951 }
webcat sendSyn +286ms [ 'BV9gthAovxxoQseo87h6vE7FPX8RddMzjNZlxEoMRdPS7HdOOLfq7Zq2V1qkyDHSB5YBdfwO7LsKgW9ewrLvSsZKlu1k9eRqfMELAUJpRTEC6w6LCEcKp0h+R/zfEjMhj4pwnMRoYlkofPE7rZDJzxpyLzZykVKeKmIHUWzC0RQYIieAy37aBphvzMzCYVhfPOyJ5dT07+F+er+EIbej1rozRg3wTi9+Gb09CL2E84zHJKSReLfytUUg44IchFzYkAj9IHFFTJaaNJ2Vu1DgRmsC30yJvD7BXJHKOlJ/VANxoUf39nG3vUoAw3gZmuwcdguwRMXLUdBesgDAqSMATEVHsxGjzh7qjNWf5lisSHwZi7UHx9xxw8XYUm6hDQLjlFvpH1PtlBvK9FURi3/5z3aa0YHSDSKuHaUe4mUqBnLkbQs9TaFmoYHN1QpylGmmtVD/rmmKj/YWSKa3HMev8UPp4b9zFQIG9qMXgEVFbtL2lQqhJDfL4etkr2y+LKNUNHi7GphWCHp31ExrfR4eCS1fc/YH/J1K9+bKfQOvok6XNB6RDdDkdogf2GOQeHpuVyvok9gH4RLoOKvrZTxWLDzp9Y0ml/3gB4STCVWaoelvF2RMdSOYC3acipAfETJXcJzy2gDKRHuPpJ8MjYW5hhr++WjMDnf5NJTeiMvUHm3S9K5c+n61g4TOSrJ+w3TC4Kr0D5FOSHMkR3hCRTBEWHfQDYan2Uq6Ea8TQFY61LL84zDDj5S4blirPqsnKYePQT/fMrrKK4O0HbCijV6fu
View roll.pl
1 2 3 4 5 6 7 8 9 10
#!/usr/bin/env perl
# roll.pl - risk dice roller
use warnings;
use strict;
use List::MoreUtils qw/zip/;
$|++;
 
print "> ";
while (my $line = <STDIN>) {
my ($attack, $defend) = grep defined, $line =~ m/^ (?:
View gist:bd469fc54d0ea7a84ef4
1 2 3 4 5 6 7 8 9 10
$ mddf -f auckland.mddf -d 3 knn 10 -5080203 354624 -4016714
-5065006.5 419536.9375 -3840691.75
-5065522 422530.28125 -3839690.75
-5065800.5 427683.125 -3838758.5
-5066874.5 434638.125 -3836574.75
-5058796.5 458735.375 -3844368.25
-5069325.5 444940.75 -3832183
-5071199.5 446882.96875 -3829493.75
-5072341.5 448165.5 -3827842.75
-5075230.5 450366.03125 -3823779.5
Something went wrong with that request. Please try again.