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
import { pipeline } from 'pipe-and-compose'; | |
import * as path from 'object-path'; | |
/** | |
* A deduction can been seen as synonymous with a transformation, except that | |
* a deduction also performs movement of the source value(s) via a sequence of reducers | |
* to the destination in the output object. | |
*/ | |
export type Deduction<I, O> = { | |
/** |
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
/** | |
* Perform a async sleep operation, this is useful for testing | |
*/ | |
const sleep = (ms) => new Promise(resolve => setTimeout(resolve, ms)) | |
/** | |
* Debounce a async function call | |
*/ | |
const debounce = (fn, offsetMs = 0) => { | |
let timer = null |
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
{ | |
"tree" : { | |
"nodeName" : "NODE NAME 1", | |
"name" : "NODE NAME 1", | |
"type" : "type3", | |
"code" : "N1", | |
"label" : "Node name 1", | |
"version" : "v1.0", | |
"link" : { | |
"name" : "Link NODE NAME 1", |
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
testing | |
123 |
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
/** | |
* Access Token | |
*/ | |
_.extend(AccessToken, { | |
/** | |
* Update an access token | |
* @param {Function} callback Callback when token has been updated | |
*/ | |
refreshAccessToken : function(service, force, callback) { | |
/** |
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
/** | |
* require Kue | |
*/ | |
var kue = Npm.require('kue'), | |
queue = kue.createQueue(); | |
// Use Kue/queue here! | |
console.log(queue); |
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
<?php | |
/** | |
* LightPHP Framework | |
* LitePHP is a framework that has been designed to be lite waight, extensible and fast. | |
* | |
* @author Robert Pitt <[email protected]> | |
* @category core | |
* @copyright 2013 Robert Pitt | |
* @license GPL v3 - GNU Public License v3 | |
* @version 1.0.0 |
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
<?php | |
/** | |
* LightPHP Framework | |
* LitePHP is a framework that has been designed to be lite waight, extensible and fast. | |
* | |
* @author Robert Pitt <[email protected]> | |
* @category core | |
* @copyright 2013 Robert Pitt | |
* @license GPL v3 - GNU Public License v3 | |
* @version 1.0.0 |
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
<?php | |
/** | |
* LightPHP Framework | |
* LitePHP is a framework that has been designed to be lite waight, extensible and fast. | |
* | |
* @author Robert Pitt <[email protected]> | |
* @category core | |
* @copyright 2013 Robert Pitt | |
* @license GPL v3 - GNU Public License v3 | |
* @version 1.0.0 |
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 jsondiff = (function() { | |
// Patch helper functions | |
function getParent(paths, path) { | |
return paths[path.substr(0, path.match(/\//g).length)]; | |
} | |
// Checks if `obj` is an array or object | |
function isContainer(obj) { | |
return _.isArray(obj) || _.isObject(obj); |
NewerOlder