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
function delayed (fn, args) { | |
var _this = this, _args = args || arguments; | |
setTimeout(function () { | |
fn.apply(_this, _args); | |
}, 0); | |
} | |
function once (fn, nextValue) { | |
var result, hasNextValue = arguments.length > 1; | |
return function () { |
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
function compileMessage (message) { | |
return new Function('obj', 'with(obj){ return \'' + | |
message.replace(/\n/g, '\\n').split(/{{([^{}]+)}}/g).map(function (expression, i) { | |
return i%2 ? ( '\'+(' + expression.trim() + ')+\'' ) : expression; | |
}).join('') + | |
'\'; }'); | |
} |
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
{ | |
"host": "location", | |
"toc": true, | |
"merchant": { | |
"confirmation_url": "http://checkout.ovh2.germade.es/success.html", | |
"cancel_url": "/demo-cancel.html", | |
"success_url": "/demo-success.html" | |
}, | |
"customer": { | |
"id": "140", |
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 arrayShift = [].shift; | |
function _deep_merge (dest, src) { | |
if( typeof dest !== typeof src ) { | |
return src; | |
} | |
if( src instanceof Array ) { | |
[].push.apply(dest, src); | |
return dest; | |
} |
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-view { | |
font-family: 'Souce Sans Pro', 'Ubuntu Mono', Monaco, monospace; | |
font-size: 17px !important; | |
.list-tree .entry { | |
line-height: 1.5; | |
.name { | |
color: #aaa; | |
} |
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
{ | |
"toc": true, | |
"merchant": { | |
"confirmation_url": "https://demo.aplazame.com/confirm", | |
"cancel_url": "/demo-cancel.html", | |
"success_url": "/demo-success.html" | |
}, | |
"customer": { | |
"id": "140", | |
"email": "[email protected]", |
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
{ | |
"toc": true, | |
"merchant": { | |
"confirmation_url": "https://demo.aplazame.com/confirm", | |
"cancel_url": "/demo-cancel.html", | |
"success_url": "/demo-success.html" | |
}, | |
"customer": { | |
"id": "140", | |
"email": "[email protected]", |
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
{ | |
"toc": true, | |
"merchant": { | |
"confirmation_url": "https://demo.aplazame.com/confirm", | |
"cancel_url": "/demo-cancel.html", | |
"success_url": "/demo-success.html" | |
}, | |
"customer": { | |
"id": "140", | |
"email": "[email protected]", |
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
#!/bin/sh | |
GIT_BRANCH=$(git rev-parse --abbrev-ref HEAD) | |
echo "npm version patch" | |
git pull --tags | |
npm version patch | |
git push origin ${GIT_BRANCH} | |
git push --tags |
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
function Father(first_name) { | |
this.first_name = name; | |
} | |
var John = new Father('John'); | |
function Son() { | |
Father.apply(this, arguments); | |
} |