This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Created by amills001c on 6/15/15. | |
*/ | |
//logging | |
//config | |
var config = require('univ-config')('*SC-Admin*', 'config/conf'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Created by amills001c on 8/18/15. | |
*/ | |
function getAll(Model, modelName, filterObject, req, res, next, cb) { | |
if (!Model) { | |
Model = req.site.models[modelName]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
“Hot-reloading in 2015:” @the1mills https://medium.com/@the1mills/hot-reloading-with-react-requirejs-7b2aa6cb06e1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Error that I get for both these attempts: | |
"Missing required parameter - file" | |
the image is in a base64 string format... | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var viking = require('viking'); //we have published viking on NPM and then installed it in the local project with the --save option | |
viking.start(); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// windows version | |
const Viking = require('C:\\Users\\denman\\WebstormProjects\\viking'); //we have published viking on NPM and then installed it in the local project with the --save option | |
new Viking().start(); | |
// *nix version | |
const Viking = require('/Users/denman/WebstormProjects/viking'); //we simply point to the root of the local project, which will find the package.json file which in turn points to your index.js file | |
new Viking().start(); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var viking = require('viking'); //we have published viking on NPM and then installed it in the local project with the --save option | |
viking.start(); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const assert = require('assert'); | |
const suman = require('suman'); | |
///////////////////////////////////////////////////// | |
var Test = suman.init(module); | |
///////////////////////////////////////////////////// | |
function promiseTimeout(t) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const assert = require('assert'); | |
const suman = require('suman'); | |
///////////////////////////////////////////////////// | |
var Test = suman.init(module); | |
///////////////////////////////////////////////////// | |
function promiseTimeout(t) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const assert = require('assert'); | |
const suman = require('suman'); | |
var Test = suman.init(module); | |
Test.describe('SimpleExampleA', function () { | |
var config = null; |