View prevent-overlap.js
define(function(require) {
'use strict';
var d3 = require('d3');
/*
* tries to eliminate vertical label overlappings
* by slightly moving the labels away from each
* other
View rollup-pipe.js
#!/usr/bin/env node
const rollup = require('rollup');
const commonjs = require('rollup-plugin-commonjs');
const inputOptions = {
input: process.argv[2],
plugins: [commonjs()],
onwarn: () => {}
};
View keybase.md

Keybase proof

I hereby claim:

  • I am gka on github.
  • I am gka (https://keybase.io/gka) on keybase.
  • I have a public key ASA7zDyyCPDyL7H1V6wrKxH56GOVPeaPm1krL33Bual6Pwo

To claim this, I am signing this object:

View .block
license: mit
View .block
license: mit
View swoopy.js
define(function(require) {
var d3 = require('./d3v4+jetpack');
return function swoopy(svg, x0, y0, x1, y1, flipped, r) {
var dx = x1 - x0, dy = y1 - y0;
if (r === undefined) r = Math.sqrt(dx*dx + dy*dy) * 0.75;
var g_arr = svg.append('g.arrow');
var svg_root = d3.select(svg.node().ownerSVGElement || svg.node()),
View .block
license: mit
View election.sh
#!/bin/bash
cd $( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
blue=$(tput setaf 4)
green=$(tput setaf 2)
normal=$(tput sgr0)
while ./update.sh
do
printf "\n${blue}>>> sleeping a little bit before running again... ${normal}\n"
View d3.forceExtent.js
d3.forceExtent = function(extent) {
var nodes;
if (extent == null) extent=[[0,800], [0,500]];
function force() {
var i,
n = nodes.length,
node,
r = 0;
View colorizer.json
[{
"file": "results",
"data": {
"AL": {
"fill": "#cc3d3d",
"stroke": false
},
"AK": {
"fill": "#cc3d3d",
"stroke": false