Skip to content

Instantly share code, notes, and snippets.

View ORESoftware's full-sized avatar
🏐
Focusing

Alexander Mills ORESoftware

🏐
Focusing
View GitHub Profile
@ORESoftware
ORESoftware / jobs.js
Created September 29, 2015 04:27
db model routes
/**
* Created by amills001c on 6/15/15.
*/
//logging
//config
var config = require('univ-config')('*SC-Admin*', 'config/conf');
/**
* Created by amills001c on 8/18/15.
*/
function getAll(Model, modelName, filterObject, req, res, next, cb) {
if (!Model) {
Model = req.site.models[modelName];
@ORESoftware
ORESoftware / file.rb
Created September 30, 2015 17:35
Android created Gist
“Hot-reloading in 2015:” @the1mills https://medium.com/@the1mills/hot-reloading-with-react-requirejs-7b2aa6cb06e1
@ORESoftware
ORESoftware / cloudinary-attempts.js
Created December 11, 2015 22:55
Cloudinary Gist
/*
Error that I get for both these attempts:
"Missing required parameter - file"
the image is in a base64 string format...
*/
@ORESoftware
ORESoftware / test-file-1.js
Last active January 4, 2016 01:07
Tudor vs Viking
var viking = require('viking'); //we have published viking on NPM and then installed it in the local project with the --save option
viking.start();
@ORESoftware
ORESoftware / test-file-2.js
Last active December 13, 2019 23:01
Viking vs Tudor part II
// 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();
@ORESoftware
ORESoftware / test-file-1.js
Created January 4, 2016 01:08
Viking vs Tudor part I
var viking = require('viking'); //we have published viking on NPM and then installed it in the local project with the --save option
viking.start();
@ORESoftware
ORESoftware / serial-example.js
Last active February 13, 2016 20:32
Suman using serial execution
const assert = require('assert');
const suman = require('suman');
/////////////////////////////////////////////////////
var Test = suman.init(module);
/////////////////////////////////////////////////////
function promiseTimeout(t) {
@ORESoftware
ORESoftware / parallel-example.js
Last active February 13, 2016 20:33
Suman parallel example
const assert = require('assert');
const suman = require('suman');
/////////////////////////////////////////////////////
var Test = suman.init(module);
/////////////////////////////////////////////////////
function promiseTimeout(t) {
@ORESoftware
ORESoftware / simple-example-A.js
Created February 13, 2016 23:59
Suman example one
const assert = require('assert');
const suman = require('suman');
var Test = suman.init(module);
Test.describe('SimpleExampleA', function () {
var config = null;