Skip to content

Instantly share code, notes, and snippets.

View hutch120's full-sized avatar

Simon Hutchison hutch120

View GitHub Profile
@hutch120
hutch120 / mapbox-roundabout-issue.json
Created September 21, 2018 02:50
Mapbox output with roundabout issue
{
"routes": [
{
"geometry": "~_fiFc|fsZVL^?HKFALP|AN",
"legs": [
{
"summary": "Twentieth Avenue, Thirty Seventh Avenue",
"weight": 22.8,
"duration": 16.7,
"steps": [
@hutch120
hutch120 / download.js
Created July 4, 2019 05:55
Cut down for ES6 and ESLint compatibility
// download.js v4.21, by dandavis; 2008-2018. [MIT] see http://danml.com/download.html for tests/usage
// v1 landed a FF+Chrome compatible way of downloading strings to local un-named files, upgraded to use a hidden frame and optional mime
// v2 added named files via a[download], msSaveBlob, IE (10+) support, and window.URL support for larger+faster saves than dataURLs
// v3 added dataURL and Blob Input, bind-toggle arity, and legacy dataURL fallback was improved with force-download mime and base64 support. 3.1 improved safari handling.
// v4 adds AMD/UMD, commonJS, and plain browser support
// v4.1 adds url download capability via solo URL argument (same domain/CORS only)
// v4.2 adds semantic variable names, long (over 2MB) dataURL support, and hidden by default temp anchors
// https://github.com/rndme/download
export default function download (data, strFileName, strMimeType) {
@hutch120
hutch120 / gist:a53a9f484f7c2282dd8e0e6239ec3c91
Last active June 7, 2021 01:20
Booking a Vaccination at Northern Health
//
// Press F12 to open the web browser console
// Copy/Paste this script in the browser console to skip the questions at https://vaccination.nh.org.au/
//
function run () {
const showClasses = [
'wpforms-page wpforms-page-1',
'wpforms-page wpforms-page-2',
'wpforms-page wpforms-page-3',
@hutch120
hutch120 / cross_country_bundoora_park.json
Last active May 2, 2022 23:43
Cross country bundoora park.json
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hutch120
hutch120 / config.json
Last active March 21, 2024 08:32
Test the AWS SQS Queue functionality from a local server.
{
"accessKey": "",
"secretKey": "",
"sessionToken": "",
"region": "" ,
"queueUrl": ""
}