Skip to content

Instantly share code, notes, and snippets.

View cbonnissent's full-sized avatar

Charles Bonnissent cbonnissent

View GitHub Profile
(function umdRequire(root, factory) {
'use strict';
if (typeof define === 'function' && define.amd) {
define([ < dependances > ], factory);
} else {
factory( < dependances > );
}
}(window, function widget(
@cbonnissent
cbonnissent / dashboard.yaml
Last active April 27, 2018 12:38
test.json
dashboard "Food":
- h1 text: Food
- h2 text: By caloric content
- 3 columns:
- rows:
- h3 text: Bananas
- pie chart: {
"columns": [
["Protein", 5], ["Sugar", 10], ["Other carbs", 40], ["Fat", 1]
]
let syncReturnPromise = null;
let resolveReturn = null;
let actionSave = [];
syncReturn(Vue, $store, apiResponse, action = false) => {
if(action){
actionSave.push(action);
}
if (syncReturnPromise !== null) {
resolveReturn(Vue, $store, apiResponse);