Skip to content

Instantly share code, notes, and snippets.

@rcoundon
rcoundon / gl2.json
Created December 15, 2022 08:58
GL2 Postcode District
{
"type": "Feature",
"geometry": {
"bbox": [
-2.4406610605858092,
51.7123449736064,
-2.1619419860287943,
51.93928785955846
],
"type": "MultiPolygon",
@rcoundon
rcoundon / app.js
Created November 21, 2022 20:27
yargs -- error
#!/usr/bin/env node
const yargs = require('yargs/yargs')
const { hideBin } = require('yargs/helpers')
const program = yargs(hideBin(process.argv))
.parserConfiguration({
})
.scriptName("test")
.option("stage", {
type: "string",
@rcoundon
rcoundon / AsyncLoad.js
Created March 8, 2020 07:18
Example of how to depend on load of async dependencies
function loadCss(url, implementationCode, location) {
const cssTag = document.createElement('link');
cssTag.type = 'text/css';
cssTag.rel = 'stylesheet';
cssTag.href = url;
cssTag.onload = implementationCode;
location.append(cssTag);
}
function loadJs(url, implementationCode, location, async = false, defer = false) {
import Vue from 'vue';
import Vuex from 'vuex';
Vue.use(Vuex);
function initialState() {
return {
activities: []
};
}