This file contains hidden or 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
beforeEach(function() { | |
jasmine.addMatchers({ | |
toStrictlyEqual : function() { | |
return { | |
compare : function(actual, expected) { | |
var result = {}; | |
result.pass = equals(actual, expected, function (a, b, sPath) { | |
result.message = 'Expected ' + sPath + ' = ' + b + ' to equal ' + a; | |
}); | |
return result; |
This file contains hidden or 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 exec = require('child_process').exec; | |
// alternative ultra-short ECMA2015 version | |
// setInterval(a=>require('child_process').exec('git pull',(b,c,d)=>{console.log(b||c||d)}),6e4) | |
setInterval(function() { | |
exec('git pull', puts); | |
}, 60 * 1000); | |
function puts(error, stdout, stderr) { |
This file contains hidden or 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
Show hidden characters
{ | |
"rulesDirectory": "./node_modules/tslint-eslint-rules/dist/rules", | |
"rules": { | |
"align": [ | |
true, | |
"parameters", | |
"arguments", | |
"statements" | |
], | |
"max-line-length": [ |
This file contains hidden or 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
// Polyfill isArray if needed | |
if (typeof Array.isArray !== 'function') { | |
Array.isArray = isArray | |
} | |
function isArray(arg) { | |
return Object.prototype.toString.call(arg) === '[object Array]' | |
} | |
if (typeof module === 'object') { | |
module.exports = flatten |
This file contains hidden or 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
0: | |
1: | |
2: | |
3: | |
4: | |
5: | |
6: | |
7: | |
8: | |
9: |