Skip to content

Instantly share code, notes, and snippets.

@djamshed
djamshed / index.html
Last active July 9, 2021 08:51
Leaderboard in d3.js
<!doctype html>
<head>
<meta charset="utf-8">
<!-- Use the .htaccess and remove these lines to avoid edge case issues.
More info: h5bp.com/b/378 -->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Leaderboard with D3</title>
@djamshed
djamshed / scss blink
Created April 28, 2015 16:29
Compass SCSS keyframe + animation usage (keep forgetting syntax way too often)
var hierarchy_data = {
"name": "AUT-1",
"children": [{
"name": "PUB-1",
"children": [{
"name": "AUT-11",
"children": [{
"name": "AFF-111"
}, {
"name": "AFF-112"
@djamshed
djamshed / README.md
Created September 26, 2016 19:46 — forked from veltman/README.md
Electoral cartograms
@djamshed
djamshed / .block
Created June 15, 2017 02:14
Zoom Transitions
license: gpl-3.0
@djamshed
djamshed / .block
Created July 2, 2018 14:50 — forked from mbostock/.block
Stroke Dash Interpolation
license: gpl-3.0
@djamshed
djamshed / .block
Last active July 24, 2018 06:36 — forked from emeeks/README.md
Variable Offset Animated Links
license: mit
@djamshed
djamshed / d3.sankey.js
Created July 3, 2018 02:45 — forked from emeeks/d3.sankey.js
Sankey Particles IV
d3.sankey = function() {
var sankey = {},
nodeWidth = 24,
nodePadding = 8,
size = [1, 1],
nodes = [],
links = [];
sankey.nodeWidth = function(_) {
if (!arguments.length) return nodeWidth;
@djamshed
djamshed / README.md
Last active July 12, 2018 02:51
Point-Along-Path Interpolation: complex shape
@djamshed
djamshed / .block
Last active July 12, 2018 03:40
Point-Along-Path Interpolation: half circle
license: mit