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
Show hidden characters
{ | |
"cmd": [ "bash", "-lc", "go run $file"], | |
"selector": "source.go", | |
"file_regex": "([^:]+):([0-9]+):" | |
} |
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
#!/usr/bin/env ruby | |
require 'webrick' | |
port = (ARGV.empty?) ? 8000 : ARGV.shift.to_i | |
rpath = (ARGV.empty?) ? './' : ARGV.shift | |
root = File.expand_path rpath | |
mime_types = WEBrick::HTTPUtils::DefaultMimeTypes |
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
package main | |
import ( | |
"fmt" | |
) | |
type Fetcher interface { | |
// Fetch returns the body of URL and | |
// a slice of URLs found on that page. | |
Fetch(url string) (body string, urls []string, err error) |
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
[ | |
{ "keys": ["f9"], "command": "show_overlay", "args": {"overlay": "goto", "show_files": true} }, | |
{ "keys": ["ctrl+f9"], "command": "alignment" }, | |
// from Ctags | |
{ "keys": ["f12"], "command": "navigate_to_definition" }, | |
{ "keys": ["shift+f12"], "command": "show_symbols" }, | |
{ "keys": ["ctrl+f12"], "command": "jump_back" }, | |
{ "keys": ["ctrl+shift+f12"], "command": "show_symbols", "args" : {"type": "multi" } }, | |
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
{ | |
"cmd": ["bash", "-lc", "ruby -w $file"], | |
"file_regex": "^(...*?):([0-9]*):?([0-9]*)", | |
"selector": "source.ruby" | |
} |
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
ff() { | |
case $# in | |
1) | |
find . -name "*$1*" | |
;; | |
2) | |
find $1 -name "*$2*" | |
;; | |
*) | |
echo ff - find file name |
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
#!/bin/bash | |
# quick script frontend for apt & dpkg | |
cmd=$1 | |
shift | |
case $cmd in | |
search|sea) | |
apt-cache search $* | |
;; | |
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
#!/usr/bin/env ruby | |
arg_file = ARGV[0] | |
fbase = File.basename( File.split(arg_file)[1], ".gv") | |
outfile = fbase + ".png" | |
cmd = "dot -Tpng #{arg_file} > #{outfile}" | |
# puts cmd |
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
# | |
# callable by my 'clu' alias clu='make -f Makefile.clu' | |
# | |
default : list_targets | |
list_targets : | |
@echo Targets | |
@echo |
OlderNewer