Skip to content

Instantly share code, notes, and snippets.

View hamishcampbell's full-sized avatar
🚀
rockets

Hamish Campbell hamishcampbell

🚀
rockets
View GitHub Profile
@hamishcampbell
hamishcampbell / keybase.md
Created December 15, 2014 22:38
Keybase proof

Keybase proof

I hereby claim:

  • I am hamishcampbell on github.
  • I am polemic (https://keybase.io/polemic) on keybase.
  • I have a public key whose fingerprint is DAD5 7EEC 292E 8C9E B5DA 3CF8 63D3 ADE1 5625 3865

To claim this, I am signing this object:

@hamishcampbell
hamishcampbell / SoT2015.md
Created August 7, 2015 23:03
SoT Hackfest API Suff

SoT Hackfest Auckland 2015

Welcome! This is a brief, opinionated guide to getting started building a browser-based web app with RESTful APIs. The intention is to provide a starting point for building stuff for SoT Hackfest 2015, and provides just one approach. It is not the only approach, nor is it necessarily the best approach for a production system, but it's a good way to jumpstart your hack.

Useful references

@hamishcampbell
hamishcampbell / description.txt
Created March 13, 2019 00:41
Mostly Geocoded NZ Pokie Machine Locations December 2018
Pokie machies by location (Dec 2018), CC-BY DIA NZ from:
https://www.dia.govt.nz/diawebsite.nsf/wpg_URL/Resource-material-Information-We-Provide-All-Venues-and-Numbers-by-Territorial-AuthorityDistrict
Geocoded with addy.co.nz 13th March 2019 by Hamish Campbell
There are a few unfound addresses and no manual checking of other results has been done.
@hamishcampbell
hamishcampbell / gist:62d4fd39cc231dfcaf66b5390a12fe35
Created May 12, 2020 10:23
QGIS Geometry Generator expression to approximate rock outcroppings
with_variable(
'segment_len',
11, -- the length of each segment
collect_geometries(
array_foreach(
generate_series(
0, length(boundary($geometry)) - @segment_len, @segment_len
),
with_variable('offset_inner',
offset_curve(