Skip to content

Instantly share code, notes, and snippets.

View timcameron's full-sized avatar

Tim Cameron timcameron

  • TransferWise
View GitHub Profile
@timcameron
timcameron / index.html
Created March 24, 2014 12:25
Youth Labour Force Participation
<!doctype HTML>
<meta charset = 'utf-8'>
<html>
<head>
<link rel='stylesheet' href='http://nvd3.org/assets/css/nv.d3.css'>
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js' type='text/javascript'></script>
<script src='http://d3js.org/d3.v3.min.js' type='text/javascript'></script>
<script src='http://timelyportfolio.github.io/rCharts_nvd3_tests/libraries/widgets/nvd3/js/nv.d3.min-new.js' type='text/javascript'></script>
<script src='http://nvd3.org/assets/lib/fisheye.js' type='text/javascript'></script>
@timcameron
timcameron / index.html
Created March 24, 2014 12:25
Youth Labour Force Participation
<!doctype HTML>
<meta charset = 'utf-8'>
<html>
<head>
<link rel='stylesheet' href='http://nvd3.org/assets/css/nv.d3.css'>
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js' type='text/javascript'></script>
<script src='http://d3js.org/d3.v3.min.js' type='text/javascript'></script>
<script src='http://timelyportfolio.github.io/rCharts_nvd3_tests/libraries/widgets/nvd3/js/nv.d3.min-new.js' type='text/javascript'></script>
<script src='http://nvd3.org/assets/lib/fisheye.js' type='text/javascript'></script>
<!doctype HTML>
<meta charset = 'utf-8'>
<html>
<head>
<meta name="DC.Date.modified" scheme="ISO8601" content="2014-03-18">
<meta name="DC.Title" content="Main Features - Where do migrants live?">
<meta name="DC.Language" scheme="RFC3066" content="en">
<meta name="DC.Rights" content="© Commonwealth of Australia, 2014">
<meta name="DC.Creator" scheme="GOLD" content="c=AU; o=Commonwealth of Australia; ou=Australian Bureau of Statistics">
@timcameron
timcameron / oecd_test.R
Created March 17, 2014 06:05
OECD data into R
library(XML2R)
#Autonomous pension fund assets
file <- "http://stats.oecd.org/restsdmx/sdmx.ashx/GetData/PNN_NEW/APLANS.ADEF.PF.1000.USD.AUS/OECD?startTime=2010&endTime=2012"
obs <- XML2Obs(file)
# Rename observations so we can 'recycle' country labels to time/value
nms <- names(obs)
nms[grepl("SeriesKey//Value$", nms)] <- "root"
nms[grepl("Obs//Time$", nms)] <- "root//time"
@timcameron
timcameron / index.html
Created March 2, 2014 02:58
Union Density over time
<!doctype HTML>
<meta charset = 'utf-8'>
<html>
<head>
<link rel='stylesheet' href='http://nvd3.org/src/nv.d3.css'>
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js' type='text/javascript'></script>
<script src='http://d3js.org/d3.v3.min.js' type='text/javascript'></script>
<script src='http://timelyportfolio.github.io/rCharts_nvd3_tests/libraries/widgets/nvd3/js/nv.d3.min-new.js' type='text/javascript'></script>
<script src='http://nvd3.org/lib/fisheye.js' type='text/javascript'></script>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link href="http://code.google.com/apis/maps/documentation/javascript/examples/standard.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
<script type="text/javascript">
function initialize() {
var map = new google.maps.Map(document.getElementById("map_canvas"));
map.setCenter(new google.maps.LatLng(-31.113022901922,142.4267578125));
map.setZoom(4);
<script type='text/javascript' src='http://api.giscloud.com/1/api.js' ></script>
<div id='mapViewer' style='border: 1px solid #C5C5C5; width: 800px; height: 500px'></div>
<script type='text/javascript'>
giscloud.ready(function () {
var mapId = 179394,
b = new giscloud.Bounds(13902978.200734105, -4789238.444235992, 17806770.109314617, -2602527.939053677),
viewer = new giscloud.Viewer('mapViewer', mapId).bounds(b);
});
</script>
@timcameron
timcameron / index.html
Last active December 29, 2015 07:59
Aus mortgages by LGA
<iframe src="http://editor.giscloud.com/rest/1/maps/179394/render.iframe?bound=11280882.382439427,-5684468.919511974,19088466.199600454,-1311047.9091473408&toolbar=true&popups=true&layerlist=true" width="800" height="500" frameborder="0"></iframe>
@timcameron
timcameron / README.md
Last active December 29, 2015 06:59 — forked from mbostock/.block

[Original by Mike Bostock, I am tinkering with settings for educational purposes]

This diagram shows the distribution of age groups in the United States over the last 150 years. Use the arrow keys to observe the changing population. Data from the Minnesota Population Center. Use the arrow keys to change the displayed year. The blue bars are the male population for each five-year age bracket, while the pink bars are the female population; the bars are partially transparent so that you can see how they overlap, unlike the traditional side-by-side display which makes it difficult to compare the relative distribution of the sexes.

@timcameron
timcameron / index.Rmd
Created November 16, 2013 13:11
ausJerbs
---
title : Aussie jerbs
subtitle : Playing around with R, Rmarkdown & Slidify
author : Tim Cameron
job :
framework : io2012 # {io2012, html5slides, shower, dzslides, ...}
highlighter : highlight.js # {highlight.js, prettify, highlight}
hitheme : tomorrow #
widgets : [] # {mathjax, quiz, bootstrap}
mode : standalone # {standalone, draft}