Skip to content

Instantly share code, notes, and snippets.

View joehand's full-sized avatar
🌳
be like tree

Joe Hand joehand

🌳
be like tree
View GitHub Profile
@joehand
joehand / fantasy.js
Created January 14, 2015 22:57
Chrome Plugin - ESPN Fantasy Basketball Team Totals
// ==UserScript==
// @name ESPN Fantasy Basketball Team Totals
// @namespace http://joeahand.com/
// @version 0.1
// @description Totals the projected weekly stats for current lineup
// @include http://games.espn.go.com/fba/clubhouse?*
// @copyright 2014+, Joe Hand
// @require http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js
// @require http://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.7.0/underscore-min.js
// @require https://gist.github.com/raw/2625891/waitForKeyElements.js
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@joehand
joehand / bike_parking.json
Created April 1, 2012 00:13
Portland Bike Parking
This file has been truncated, but you can view the full file.
{"total_rows":2934,"offset":0,"rows":[
{"id":"1cc11d2ed6943a78eceeb9ba47da20ff","key":null,"feature":{"_id":"1cc11d2ed6943a78eceeb9ba47da20ff","_rev":"2-e985f13310deabe70d8f58de1b6ecea7","numunits":null,"assetid":"5220-0001777","bpfund_":null,"finish":null,"numspaces":null,"covered_":null,"mounting":null,"imagepath":null,"gid":"1000","bikeparkty":"5220","bplevel":null,"bpstyle_":"STAPLE - Staple","geometry":{"coordinates":[-122.675740727023,45.5202579932798],"type":"Point"},"locationid":"BF56722","rotation":null}},
{"id":"1cc11d2ed6943a78eceeb9ba47da2a3c","key":null,"feature":{"_id":"1cc11d2ed6943a78eceeb9ba47da2a3c","_rev":"2-88a393cdeda2b6ff4070862d84fe0e6c","numunits":null,"assetid":"5220-0001776","bpfund_":null,"finish":null,"numspaces":null,"covered_":null,"mounting":null,"imagepath":null,"gid":"999","bikeparkty":"5220","bplevel":null,"bpstyle_":"STAPLE - Staple","geometry":{"coordinates":[-122.675814986747,45.5201159765159],"type":"Point"},"locationid":"BF56722","rotation":null}},
{"id":"1cc11d2ed6943a7
@joehand
joehand / index.html
Created June 1, 2012 02:07
Visualize This: Ch 5 Donut Charts
<!DOCTYPE html>
<html>
<head>
<title>Donut Chart</title>
<script src="http://vis.stanford.edu/protovis/protovis-r3.2.js"></script>
<script src="http://d3js.org/d3.v2.js"></script>
<style>
body {
width:950px;
@joehand
joehand / reproject_topo.txt
Created October 9, 2015 14:10
Reproject many geojson with .prj file then convert to topojson
for filename in *.json; do ogr2ogr -f "GEOJSON" -s_srs CapeTown.prj -t_srs EPSG:4326 "${filename%.*}_proj.json" "${filename}"; done
for filename in *_proj.json; do topojson -p interior,road -o "${filename%_proj.*}.topo.json" "${filename}" ; done
@joehand
joehand / espn_fantasy.js
Last active December 7, 2015 19:35
ESPN Fantasy Basketball Team Totals (tampermonkey)
// ==UserScript==
// @name ESPN Fantasy Basketball Team Totals
// @namespace http://joeahand.com/
// @version 0.1
// @description Totals the projected weekly stats for current lineup
// @include http://games.espn.go.com/fba/clubhouse?*
// @copyright 2014+, Joe Hand
// @require http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js
// @require http://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.7.0/underscore-min.js
// @require https://gist.github.com/raw/2625891/waitForKeyElements.js
@joehand
joehand / index.js
Last active March 4, 2016 00:26
Dat Link Basic Example
var Hyperdrive = require('hyperdrive')
var Level = require('level')
var Swarm = require('discovery-swarm')
var swarmDefaults = require('datland-swarm-defaults')
var walker = require('folder-walker')
var each = require('stream-each')
var db = Level('./dat.db')
var drive = Hyperdrive(db)
@joehand
joehand / index.js
Last active March 4, 2016 21:30
Async Hyperdrive Append
var Hyperdrive = require('hyperdrive')
var Level = require('level')
var Swarm = require('discovery-swarm')
var swarmDefaults = require('datland-swarm-defaults')
var walker = require('folder-walker')
var each = require('stream-each')
var db = Level('./dat.db')
var drive = Hyperdrive(db)
function kick (dir, stat, first) {
var fileStream = walker(dir)
each(fileStream, function (data, next) {
if (first) watcher.add(data.filepath)
else if (!stats[data.filepath]) {
watcher.add(data.filepath)
watcher.emit('change', data.filepath, data.stat)
}
stats[data.filepath] = data
next()

Keybase proof

I hereby claim:

  • I am joehand on github.
  • I am jhand (https://keybase.io/jhand) on keybase.
  • I have a public key whose fingerprint is 0DCA 20C9 50DB D73A A63C DCFF 2232 4E3F 975F BBE6

To claim this, I am signing this object: