Skip to content

Instantly share code, notes, and snippets.

View aaronkyle's full-sized avatar

Aaron Kyle Dennis aaronkyle

View GitHub Profile
@aaronkyle
aaronkyle / .block
Created February 25, 2019 12:58 — forked from nbremer/.block
Storytelling with Chord Diagram
height: 750
@aaronkyle
aaronkyle / .block
Created February 13, 2019 18:10 — forked from bryangingechen/.block
circle pack with file input
license: mit
@aaronkyle
aaronkyle / .block
Created February 13, 2019 18:09 — forked from bryangingechen/.block
circle pack example
license: mit
@aaronkyle
aaronkyle / .block
Created February 13, 2019 18:08 — forked from tasqon/.block
D3 v5 Zoomable Sunburst w/ require()
license: mit
@aaronkyle
aaronkyle / get-working-days.js
Created January 14, 2019 14:18 — forked from shansana/get-working-days.js
JavaScript function to get Working days between 2 days without weekends(Saturday,Sunday) and some custom holidays
var getWorkingDays = function(start,endCount,holidays){
var weekdays = [];
var current = start;
var i = 0;
while(i < endCount){
if (!isWeekEnd(current)) {
weekdays.push(current);
i++;
}
@aaronkyle
aaronkyle / index.html
Created November 22, 2018 13:47 — forked from jasondavies/index.html
Counties of the United Kingdom
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<link type="text/css" rel="stylesheet" href="style.css"/>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js"></script>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.csv.js"></script>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.layout.js"></script>
<style type="text/css">
@aaronkyle
aaronkyle / index.html
Created November 22, 2018 13:47 — forked from jarobertson/index.html
filtering and nesting csv files
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js"></script>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.csv.js"></script>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.layout.js"></script>
<style type="text/css">
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
pharmName pmcPatientId journeyDays journeyStatusId
BRIOVARX 18668 17 8
BRIOVARX 5751 22 8
WALGREENS 20549 11 8
WALGREENS 20549 11 8
WALGREENS 20549 11 8
WALGREENS 20549 11 8
WALGREENS 20549 11 8
WALGREENS 20549 11 8
WALGREENS 14372 8 8
@aaronkyle
aaronkyle / Makefile
Created May 29, 2018 11:16 — forked from johan/Makefile
Makefile of the steps in Mike Bostock's command-line cartography tutorial, parts 1-4 https://medium.com/@mbostock/command-line-cartography-part-1-897aa8f8ca2c
# request one at http://api.census.gov/data/key_signup.html and paste it below
CENSUS_API_KEY=YOUR_CODE_HERE
# a factor 1609.34 squared
SQ_M_TO_SQ_MI=2589975.2356
#prereqs:
# npm install -g shapefile # 0.6.1
# npm install -g d3-geo-projection # 1.2.1
# npm install -g ndjson-cli # 0.3.0