Skip to content

Instantly share code, notes, and snippets.

@markatom
markatom / .gitconfig
Last active October 3, 2022 09:08
Personal .gitconfig
[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]
@gilbert
gilbert / functions.js
Last active September 20, 2016 15:09
JavaScript Function Extensions
// 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