Skip to content

Instantly share code, notes, and snippets.

View davo's full-sized avatar
🏠

Davo Galavotti davo

🏠
View GitHub Profile
@davo
davo / .block
Created May 31, 2017 22:02 — forked from mbostock/.block
Zoomable Circle Packing
license: gpl-3.0
height: 960
@davo
davo / encoding-video.md
Created May 11, 2017 23:04 — forked from Vestride/encoding-video.md
Encoding video for the web

Encoding Video

Installing

Install FFmpeg with homebrew. You'll need to install it with a couple flags for webm and the AAC audio codec.

brew install ffmpeg --with-libvpx --with-libvorbis --with-fdk-aacc --with-opus
@davo
davo / index.html
Last active May 9, 2017 17:58 — forked from d3noob/.block
Simple bar graph in v4
<!DOCTYPE html>
<meta charset="utf-8">
<style> /* set the CSS */
.bar { fill: steelblue; }
</style>
<body>
<!-- load the d3.js library -->
@davo
davo / data-alt.csv
Last active January 20, 2017 22:49 — forked from d3noob/.block
Update and revert graph data
date close
13-May-12 109
12-May-12 102
11-May-12 100
10-May-12 99.55
8-May-12 76.86
6-May-12 67.62
4-May-12 64.48
2-May-12 60.98
1-May-12 58.13
@davo
davo / Readme.md
Last active June 8, 2019 01:27 — forked from wiederkehr/Readme.md
Multiples Streamgraph

Example of a streamgraph that can be divided into multiple area charts.

@davo
davo / Readme.md
Created December 15, 2016 22:52 — forked from wiederkehr/Readme.md
Multiples Barchart

Example of a stacked bar chart that can be divided into multiples. All credits for this go to Mike Bostock.

@davo
davo / index.html
Created November 9, 2016 20:00 — forked from d3noob/.block
Sankey from csv with d3.js
<!DOCTYPE html>
<meta charset="utf-8">
<title>SANKEY Experiment</title>
<style>
.node rect {
cursor: move;
fill-opacity: .9;
shape-rendering: crispEdges;
}
@davo
davo / .block
Last active October 24, 2016 22:03 — forked from mbostock/.block
Geodesic Rainbow
license: gpl-3.0
@davo
davo / index.html
Created October 18, 2016 05:26 — forked from syntagmatic/index.html
2D Color Interpolation
<!DOCTYPE html>
<meta charset='utf-8'>
<body>
<script src='http://d3js.org/d3.v3.min.js'></script>
<script>
var size = 12;
var step = 40;
var X = d3.scale.linear()
.domain([0, size])
@davo
davo / .block
Last active June 29, 2016 03:48 — forked from mbostock/.block
D3 Custom Bundle
license: gpl-3.0