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
#!/usr/bin/env node | |
"use strict"; | |
console.log("This is pid " + process.pid); | |
setTimeout(function () { | |
process.on("exit", function () { | |
require("child_process").spawn(process.argv.shift(), process.argv, { | |
cwd: process.cwd(), |
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
" Invoke the `lebab` tool on the current buffer (https://github.com/lebab/lebab) | |
" | |
" Usage: | |
" | |
" :Lebab <transform1> <transform2> [...] | |
" | |
" This will run all the transforms specified and replace the buffer with the | |
" results. The available transforms tab-complete. | |
" | |
command! -nargs=+ -complete=custom,s:LebabComplete |
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
#!/usr/bin/env zsh | |
# vim:set ft=zsh: | |
local word="$1" | |
local filter=".items[] | { repository: .full_name, username: .owner.login, reponame: .name, branch: .default_branch, description: .description }" | |
local query="q=$word in:path fork:false" | |
# local query="q=evil fork:false language:\"Emacs Lisp\"" | |
echo -n '{"query": "' | |
echo -n "$query" | |
echo '"}' |