Skip to content

Instantly share code, notes, and snippets.

View jeremybuis's full-sized avatar

Jeremy Buis jeremybuis

View GitHub Profile
@jeremybuis
jeremybuis / README.md
Created February 19, 2013 18:56 — forked from dwtkns/README.md
@jeremybuis
jeremybuis / wikipedia-iso-country-codes.json
Last active December 14, 2015 00:09
3 letter country codes scraped from wikipedia using the python script from the stackexchange link converted from csv to json with csv2json http://gis.stackexchange.com/questions/1047/full-list-of-iso-alpha-2-and-iso-alpha-3-country-codes
[
{
"ISO 3166-2": "ISO 3166-2:AF",
"Alpha-3 code": "AFG",
"English short name lower case": "Afghanistan",
"Alpha-2 code": "AF",
"Numeric code": 4.0
},
{
"ISO 3166-2": "ISO 3166-2:AX",
@jeremybuis
jeremybuis / README.md
Last active December 16, 2015 08:39
An updated spinny map to work with the new api's

A new spinny map for the masses

<!doctype html>
<head>
<style>
body {
font: 10px sans-serif;
}
#main {
left: 25%;
position: absolute;
}
@jeremybuis
jeremybuis / README.md
Last active December 17, 2015 17:09 — forked from dwtkns/README.md

Building on this - experimenting with fake 3d svg arcs using two nested orthographic projections and cardinal line interpolation.

D3 Streamgraph Example

Series Hover

The series hover interactivity uses the technique from lgrammel seen here: http://bl.ocks.org/1963983

Data Tooltip

It isn't necessarily a tooltip, but data is displayed by inverting the x-axis value into a date, and mapping the date to the corresponding data value for the series.

@jeremybuis
jeremybuis / README.md
Last active December 21, 2015 14:59
something something
@jeremybuis
jeremybuis / README.md
Created November 20, 2013 20:26 — forked from mbostock/.block
@jeremybuis
jeremybuis / extend.js
Created April 10, 2014 15:25
An implementation of the extend function for object mixin
// Taken from
// http://raganwald.com/2014/04/10/mixins-forwarding-delegation.html
(function(window) {
var __slice = [].slice;
function extend () {
var consumer = arguments[0],
providers = __slice.call(arguments, 1),
key,
@jeremybuis
jeremybuis / zero-init-array.js
Created April 16, 2014 15:04
A snippet of js that generates a 0 filled array
// http://stackoverflow.com/questions/1295584/most-efficient-way-to-create-a-zero-filled-javascript-array?lq=1
Array.apply(null, new Array(5)).map(Number.prototype.valueOf, 0);