Skip to content

Instantly share code, notes, and snippets.

View tobybellwood's full-sized avatar

Toby Bellwood tobybellwood

View GitHub Profile
@tobybellwood
tobybellwood / index.html
Created February 15, 2014 10:48
Client side colouring of CartoDB geojson
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
<link rel="stylesheet" href="http://libs.cartocdn.com/cartodb.js/v3/themes/css/cartodb.css" />
<!--[if lte IE 8]>
<link rel="stylesheet" href="http://libs.cartocdn.com/cartodb.js/v3/themes/css/cartodb.ie.css" />
<![endif]-->
<script src="http://libs.cartocdn.com/cartodb.js/v3/cartodb.js"></script>
@tobybellwood
tobybellwood / index.html
Last active August 29, 2015 13:57
Youth unemployment rate, people aged 15 to 24 years: 1978-2014
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Youth unemployment rate, people aged 15 to 24 years: 1978-2014</title>
<!-- 1. Add these JavaScript inclusions in the head of your page -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<script src="http://code.highcharts.com/stock/highstock.js"></script>
[
{
"Ministry":"01. Barton (Protectionist), 1 Jan 1901-24 Sept 1903",
"Title":"Minister for External Affairs",
"Name":"Barton, Edmund",
"House":"HR",
"Party":"Protectionist",
"State":"NSW",
"InCabinet":"N/A",
"Start":"1901-01-01",
@tobybellwood
tobybellwood / index.html
Created November 26, 2014 21:40
Working JSONP with data.gov.au // source http://jsbin.com/gajiva
<!DOCTYPE html>
<html>
<head>
<link href="http://code.jquery.com/mobile/1.4.2/jquery.mobile-1.4.2.min.css" rel="stylesheet" type="text/css" />
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
<script src="http://code.jquery.com/mobile/1.4.2/jquery.mobile-1.4.2.min.js"></script>
<meta name="description" content="Working JSONP with data.gov.au" />
<meta charset="utf-8">
<title>JS Bin</title>
@tobybellwood
tobybellwood / README.md
Created January 21, 2015 05:27
MSB Data

README is empty

@tobybellwood
tobybellwood / README.md
Last active August 29, 2015 14:19
ASGS Comparator using ABS Geospatial Web Services

Click on the map above to see the relationship between the two layers.

This creates a quick map to compare two ASGS boundaries (in this case SA4 and CED12).

It uses the esri-leaflet tools at http://esri.github.io/esri-leaflet/ on top of leaflet 0.7x and the ABS geospatial web services at http://censusdata.abs.gov.au/arcgis/rest/services

The ABS layers are currently served on their MapServer as a dynamicMapLayer (to be safe, although some can be shown as a tiledMapLayer if they have a fused cache)

The key line is this one:

@tobybellwood
tobybellwood / dynamap.js
Last active August 29, 2015 14:19
ABS Geospatial Web Services in Google Maps API
function init() {
var myOptions = {
zoom: 6,
center: new google.maps.LatLng(-35, 145),
mapTypeId: google.maps.MapTypeId.ROAD,
streetViewControl: true //my favorite feature in V3!
}
var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
var url = '//censusdata.abs.gov.au/arcgis/rest/services/2011_CED/MapServer';
var agsType = new gmaps.ags.MapType(url, {

Keybase proof

I hereby claim:

  • I am tobybellwood on github.
  • I am tobybellwood (https://keybase.io/tobybellwood) on keybase.
  • I have a public key ASD6YJEV5LUaGrsxwT6l_PfYObZ4F5bzo1kMlpXA80iSwQo

To claim this, I am signing this object:

### Keybase proof
I hereby claim:
* I am tobybellwood on github.
* I am tobybellwood (https://keybase.io/tobybellwood) on keybase.
* I have a public key ASBNMG_3DK0R8Y8s7LEBsWOVsYF0H5UuWJehyQmVtl8LzQo
To claim this, I am signing this object:
@tobybellwood
tobybellwood / docker-compose.yml
Created August 2, 2018 21:15
Sample SaaS+ dc file
version: '2.3'
x-lagoon-project:
# Lagoon project name (leave `&lagoon-project` when you edit this)
&lagoon-project govcms-lagoon-sassplus
x-volumes:
&default-volumes
# Define all volumes you would like to have real-time mounted into the docker containers
volumes: