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 January 13, 2015 06:50
leaflet
<html><head>
<title>quakes</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css">
<script src="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.js"></script>
<link rel="dat1" type="application/json" href="quakes.geojson">
<style type="text/css">
body {
padding: 0;
!function(){
var bP={};
var b=30, bb=150, height=600, buffMargin=1, minHeight=14;
var c1=[-130, 40], c2=[-50, 100], c3=[-10, 140]; //Column positions of labels.
var colors =["#3366CC", "#DC3912", "#FF9900","#109618", "#990099", "#0099C6"];
bP.partData = function(data,p){
var sData={};
sData.keys=[
@timcameron
timcameron / biPartite.js
Last active August 29, 2015 14:13
Australian labour force transitions
!function(){
var bP={};
var b=30, bb=150, height=600, buffMargin=1, minHeight=14;
var c1=[-130, 40], c2=[-50, 100], c3=[-10, 140]; //Column positions of labels.
var colors =["#3366CC", "#DC3912", "#FF9900","#109618", "#990099", "#0099C6"];
bP.partData = function(data,p){
var sData={};
sData.keys=[
@timcameron
timcameron / bipartite.js
Created January 13, 2015 00:26
Labour force transitions - Australia
!function(){
var bP={};
var b=30, bb=150, height=600, buffMargin=1, minHeight=14;
var c1=[-130, 40], c2=[-50, 100], c3=[-10, 140]; //Column positions of labels.
var colors =["#3366CC", "#DC3912", "#FF9900","#109618", "#990099", "#0099C6"];
bP.partData = function(data,p){
var sData={};
sData.keys=[
<html><head><meta charset="utf-8">
<script src="http://edge.quantserve.com/quant.js" async="" type="text/javascript">
</script><script src="//www.google-analytics.com/ga.js"></script><script src="http://edge.quantserve.com/quant.js" async="" type="text/javascript"></script>
<script type="text/javascript">
var _qevents = _qevents || [];
(function() {
var elem = document.createElement('script');
<html><head><meta charset="utf-8">
<script src="http://edge.quantserve.com/quant.js" async="" type="text/javascript"></script>
<script src="//www.google-analytics.com/ga.js"></script>
<script src="http://edge.quantserve.com/quant.js" async="" type="text/javascript"></script>
<script type="text/javascript">
var _qevents = _qevents || [];
(function() {
@timcameron
timcameron / chart.css
Last active August 29, 2015 14:06
Amy's chart
g.hover circle, g.hover path, g.hover text {
opacity: 1;
}
.color_group_key {
font-size: 20px;
}
.g-search {
position: relative;
g.hover circle, g.hover path, g.hover text {
opacity: 1;
}
.color_group_key {
font-size: 20px;
}
.g-search {
position: relative;
@timcameron
timcameron / index.html
Created March 24, 2014 12:28
Youth (15-24) Unemployment Rate
<!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
Last active August 29, 2015 13:57
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>