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
function collect(array, fn, scope) { | |
var results = [], | |
r, | |
i = 0, | |
index = 0, | |
len = array.length; | |
for (; i < len; i++) { | |
r = fn.call(scope, array[i], i, array); | |
if (r !== null) { |
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
function parent-directory() { | |
cd '..' | |
zle send-break | |
} | |
zle -N parent-directory | |
bindkey '^^' parent-directory |
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
function peco-make-targets () { | |
BUFFER=$(grep -o '^[^#[:space:]].*:' Makefile | sed 's/\([^:]*\):/make \1/' | peco --query "$LBUFFER") | |
CURSOR=$#BUFFER | |
zle clear-screen | |
} | |
zle -N peco-make-targets | |
## usage | |
# bindkey '^x^m' peco-make-targets |
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
# Description: | |
# notify create channel on Slack in #new_channels | |
# | |
# Notes: | |
# required [email protected]+ | |
# | |
# Author: | |
# kiris | |
module.exports = (robot) -> |
OlderNewer