Skip to content

Instantly share code, notes, and snippets.

View stefanpearson's full-sized avatar

Stefan Pearson stefanpearson

View GitHub Profile
class Bundle {
load(config) {
const preconfig = this.preconfig(config);
if (typeof preconfig.then === 'function') {
return preconfig.then(resolvedPreconfig => {
this.config = Object.assign({}, this.config, resolvedPreconfig);
this.emit('load', {config: this.config});
});
} else {
this.config = Object.assign({}, this.config, preconfig);
@stefanpearson
stefanpearson / vizia-timezone-migration.json
Created June 15, 2018 10:25
Vizia timezone migration
[
{
"value": "Africa/Asmera",
"newValue": "Africa/Nairobi"
},
{
"value": "Africa/Timbuktu",
"newValue": "Africa/Abidjan"
},
{
[
{
"dateTime": "2017-01-01T00:00:00.000Z",
"items": [
{
"label": "Category",
"items": [
{
"label": "Sub-category",
"dim1": 5,