Skip to content

Instantly share code, notes, and snippets.

View tomshanley's full-sized avatar

Tom Shanley tomshanley

View GitHub Profile
@tomshanley
tomshanley / bootstrap.min.css
Last active February 16, 2017 00:33
Interface for d3-scale-cluster
/*!
* Bootstrap v3.3.7 (http://getbootstrap.com)
* Copyright 2011-2016 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*//*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */html{font-family:sans-serif;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:700}dfn{font-style:italic}h1{margin:.67em 0;font-size:2em}mark{color:#000;background:#ff0}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{height:0;-webkit-box-si
@tomshanley
tomshanley / .block
Created February 13, 2017 00:53
Heart SVG
license: mit
@tomshanley
tomshanley / .block
Last active February 13, 2017 01:59
Heart with arrow SVG
license: mit
@tomshanley
tomshanley / d3.min.js
Last active March 7, 2017 22:54
Makeover Monday - Valentines
// https://d3js.org Version 4.1.0. Copyright 2016 Mike Bostock.
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(t.d3=t.d3||{})}(this,function(t){"use strict";function n(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}function e(t){return 1===t.length&&(t=r(t)),{left:function(n,e,r,i){for(null==r&&(r=0),null==i&&(i=n.length);r<i;){var o=r+i>>>1;t(n[o],e)<0?r=o+1:i=o}return r},right:function(n,e,r,i){for(null==r&&(r=0),null==i&&(i=n.length);r<i;){var o=r+i>>>1;t(n[o],e)>0?i=o:r=o+1}return r}}}function r(t){return function(e,r){return n(t(e),r)}}function i(t,n){return n<t?-1:n>t?1:n>=t?0:NaN}function o(t){return null===t?NaN:+t}function u(t,n){var e,r,i=t.length,u=0,a=0,c=-1,s=0;if(null==n)for(;++c<i;)isNaN(e=o(t[c]))||(r=e-u,u+=r/++s,a+=r*(e-u));else for(;++c<i;)isNaN(e=o(n(t[c],c,t)))||(r=e-u,u+=r/++s,a+=r*(e-u));if(s>1)return a/(s-1)}function a(t,n){var e=u(t,n);return e?Math.sqrt(e):e}function c(t,n){var e,r,i,o=-1,u=t.length;if
@tomshanley
tomshanley / .block
Last active March 7, 2017 22:53
Makeover Monday 27 Feb
license: mit
@tomshanley
tomshanley / .block
Last active March 14, 2017 01:35
Makeover Monday - YouTube ratings - strip plot
license: mit
@tomshanley
tomshanley / .block
Last active March 10, 2017 01:43
Makeover Monday - YouTube ratings - beeswarm plot
license: mit
@tomshanley
tomshanley / .block
Last active March 24, 2017 21:29
Makeover Monday - YouTube ratings - scatter with convex hull (linear scale)
license: mit
@tomshanley
tomshanley / .block
Last active March 24, 2017 21:13
Makeover Monday - YouTube ratings - scatter with convex hull (split scale)
license: mit
@tomshanley
tomshanley / .block
Last active March 19, 2017 19:37
Square matrix
license: mit