Skip to content

Instantly share code, notes, and snippets.

View cpudney's full-sized avatar
💭
¯\_㋡_/¯

Chris Pudney cpudney

💭
¯\_㋡_/¯
View GitHub Profile
@cpudney
cpudney / README.md
Created March 15, 2016 00:17
When Is Easter Sunday?

When Is Easter Sunday?

@cpudney
cpudney / Individuals_Internet_2000-2013.csv
Last active August 29, 2015 14:19
D3.js Voronoi Line Selection
Country 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013
Afghanistan 0.0047225682 0.0045613952 0.0878912529 0.10580903 1.2241480837 2.1071236455 1.9 1.84 3.55 4 5 5.4545454545 5.9
Albania 0.1140973466 0.3257983771 0.3900812734 0.9719004152 2.4203877978 6.043890864 9.6099913158 15.0361154084 23.86 41.2 45 49 54.6559590399 60.1
Algeria 0.4917056791 0.6461140167 1.5916412604 2.1953597309 4.6344750878 5.843942092 7.3759849563 9.4511906256 10.18 11.23 12.5 14 15.2280267564 16.5
American Samoa
Andorra 10.5388356092 11.260468717 13.5464128764 26.8379543895 37.6057662175 48.9368469989 70.87 70.04 78.53 81 81 86.4344246167 94
Angola 0.1050455625 0.1360138674 0.2703767456 0.3706820652 0.464814618 1.1433668266 1.9076475072 3.2 4.6 6 10 14.776 16.9372101137 19.1
Anguilla 22.4054490052 25.8843830889 24.8036378669 24.5233763152 25.0436366396 29 36 41 44 48 49.6 53.64 59.2149831732 64.8
Antigua & Barbuda 6.482225737 8.8992855145 12.5 17.2286487817 24.2665437162 27 30 34 38 42 47 53 59 63
@cpudney
cpudney / README.md
Last active August 29, 2015 14:16
Easter Sunday visualization

Easter Sunday Visualization

Easter Sunday is the Sunday following the first full moon after March 21. A few years ago I published this histogram of Easter Sunday dates. A friend then asked whether it was possible to visualize Easter Sunday dates from one year to the next. I've finally gotten around to producing such a visualization.

The time-series chart shows 1000 years of Easter Sunday dates. Use the mini-chart to focus the top chart on a specific range of years.

This chart allows us to see repeating patterns in the sequence of Easter Sunday dates. The patterns don't always repeat exactly but the human visual system is good at spotting similar patterns. For example, I was quickly able to match the sequence of Easter Sunday dates starting in 1943 and 2038 (April 25, 21, 17, 13, ...). The sequences are identical for almost 30 years. If you spot any others please let us know.

@cpudney
cpudney / README.md
Last active February 2, 2016 01:23
JJJ Hottest 100 Artists

Triple-J Hottest 100 Artists

This chart visualizes tracks by artists who have appeared most often in the Hottest 100. Each circle represents a track. Mouse-over a circle to see more information about the track. Mouse-over year/artist labels to highlight tracks for the year/artist. More...

Data Source

Wikipedia

@cpudney
cpudney / REAME.md
Last active August 29, 2015 14:06
Simpsons graphviz

Simpsons Co-Appearances Graph

This project holds co-appearances graphs of Simpsons characters. Each node of the graph represents a Simpsons character. An (undirected) edge connects each pair of nodes whose characters appear in the same episode. To each edge I add a weight; the number of episodes in which the pair of characters co-appear. I also label each node with the number of episodes in which its character appears.

See this blog post for more information.

Data source: Wikisimpsons

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.

@cpudney
cpudney / README.md
Last active August 29, 2015 14:01
Visualize changes in Australian Federal Government department staffing levels using a Treemap

Australian Federal Budget 2014/15: Changes to Public Service Staffing Levels

A treemap is used to display the hierarchy of Federal Government ministries and departments. The size and colour of the rectangles encode the number of staff (2013/14 or 2014/15) and the change in staffing levels (absolute or percentage), respectively.

Source data comes from Budget Paper 4 Table 2.2 Average Staffing Table.

The treemap was implemented using D3.js, and borrowed heavily from a couple of excellent examples:

@cpudney
cpudney / README
Created April 9, 2014 00:35
Easter Sunday Heatmap
Heatmap displaying pairs co-occurence of Easter Sunday dates.
@cpudney
cpudney / README
Created August 15, 2013 01:15
Senate Group Voting Ticket Flow of Preferences 2013 Federal Election
Senate Group Voting Ticket Flow of Preferences 2013 Federal Election
@cpudney
cpudney / README.txt
Last active December 17, 2015 02:39
Read this...
All AFL (VFL) games 1897 - 2012
Src: Wikipedia AFL
TODO:
Handle draws
Axis labels: years & teams
Highlight finals
@cpudney
cpudney / README.txt
Created January 23, 2013 00:28
Success of movie sequels
http://www.imdb.com/keyword/sequel/?title_type=feature&sort=num_votes