Skip to content

Instantly share code, notes, and snippets.

@sxywu
sxywu / README.md
Last active April 18, 2019 03:35
Animate SVG path on scroll

Make sure to pop out to a new window, and then scroll.

An experiment to see if I can get svg paths to animate only to a certain horizontal line while a user scrolls. Used in my unreleased wongfu side project.

Built with blockbuilder.org

@mbostock
mbostock / .block
Last active July 4, 2016 13:46
ColorBrewer Spline
license: gpl-3.0
height: 620
@yanofsky
yanofsky / Makefile
Last active May 4, 2019 06:45
This is workflow for downloading, processing, and mosaicing Landsat scenes, as a Makefile
# lansatutil directory
LANDSAT = ~/landsat
# scenes to target
LANDSAT_IDS = \
LC81220442016038LGN00 \
LC81220452016038LGN00 \
LC81210442014281LGN00 \
LC81210452014281LGN00
@emeeks
emeeks / d3-glyphEdge.js
Created September 8, 2016 02:30
Gooey Sankey
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define('d3-glyphEdge', ['exports'], factory) :
factory((global.d3_glyphEdge = {}));
}(this, function (exports) { 'use strict';
function halfArrow(d, nodeTargetSize, bodySize, headSize) {
var diffX = d.target.y - d.source.y;
var diffY = d.target.x - d.source.x;
@aendra-rininsland
aendra-rininsland / GoT-screentimes--s06.json
Last active September 7, 2017 13:33
Game Of Thrones total screentimes (Up to and including Season 6)
[
{
"name": "Tyrion Lannister",
"imdbUrl": "http://www.imdb.com/character/ch0146096/",
"screentime": 293.3,
"episodes": 54,
"portrayedBy": {
"name": "Peter Dinklage",
"imdbUrl": "http://www.imdb.com/name/nm0227759/"
}