Skip to content

Instantly share code, notes, and snippets.

@tomgp
tomgp / README.md
Last active December 21, 2015 10:39 — forked from mbostock/.block
Snowden's Route

A fork of Mike Bostock's Snowden route map, adding visualisation of route direction and information about flights known to have been taken vs those not taken (or atleast not known to have been taken)

Oliver O’Brien’s original analysis of Snowden Route Maps.

Mike Bostock's map

@tomgp
tomgp / LICENSE.txt
Last active May 29, 2019 21:20
Simple D3 clock
ISC License (ISC)
Copyright 2019 Tom Pearson
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
@tomgp
tomgp / README.md
Last active December 23, 2015 10:39 — forked from mbostock/.block
Growth chart

vertical slider brushs

input rate of change - output values

we could also add sliders to the value chart and reverse the calculation to get growth rate...

@tomgp
tomgp / README.md
Last active December 24, 2015 00:58
Discrete Gaussian distribution
@tomgp
tomgp / global.csv
Last active February 19, 2017 15:02
Convolution: smoothing noisy data
year annual_mean
1880 -0.31
1881 -0.22
1882 -0.28
1883 -0.3
1884 -0.33
1885 -0.32
1886 -0.29
1887 -0.35
1888 -0.28
@tomgp
tomgp / editcursor.png
Last active December 24, 2015 11:59
Control Patch
editcursor.png
@tomgp
tomgp / editcursor.png
Last active December 24, 2015 13:49
Control patch line
editcursor.png
@tomgp
tomgp / BillBreakdown.csv
Last active December 25, 2015 12:19
Breaking down the pressures on energy bills
Item 2013 2014 Change %
Government schemes 127 144 13
Network Costs 319 350 10
VAT 64 69 21
Wholesale costs 637 662 8
Other supplier costs and margins 127 154 4
@tomgp
tomgp / index.html
Last active December 29, 2015 12:59 — forked from widged/index.html
Ternary plot
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>D3 Ternary Plot</title>
<style>
a{
font-family: sans-serif;
color: #DB7365;
padding: 0.3rem;
@tomgp
tomgp / .gitignore
Last active December 30, 2015 02:59
Ternary Plot refactoring.
notional2005result.csv
notional2005result.json