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
[core] | |
excludesfile = ~/.gitignore | |
editor = nvim | |
pager = BAT_PAGER='less -iRx4' delta -n --theme='darcula' --highlight-removed --hunk-style plain | |
[user] | |
name = Tomáš Markacz | |
email = tomas.markacz@gmail.com | |
[remote] |
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
// Partially apply arguments to a function. Useful for binding | |
// specific data to an event handler. | |
// Example: | |
// | |
// var add = function (x,y) { return x + y } | |
// var add5 = add.papp(5) | |
// add5(7) //=> 12 | |
// | |
Function.prototype.papp = function () { | |
var slice = Array.prototype.slice |