Skip to content

Instantly share code, notes, and snippets.

View jonmorehouse's full-sized avatar
💻
founder at nuon.co

Jon Morehouse jonmorehouse

💻
founder at nuon.co
View GitHub Profile
@jonmorehouse
jonmorehouse / vimrc
Last active August 29, 2015 13:55
Go test runner for vim editor
fu! GoTestPackage()
let command = "go test ."
call CleanShell(command)
endfunction
fu! GoTestFile()
@jonmorehouse
jonmorehouse / vimrc
Created January 15, 2014 19:09
UUID generator for vim. Inputs a uuid to copy buffer
fu! GenerateUUID()
python << EOF
import uuid
import vim
# output a uuid to the vim variable for insertion below
vim.command("let generatedUUID = \"%s\"" % str(uuid.uuid4()))
EOF
@jonmorehouse
jonmorehouse / strings.sh
Created January 14, 2014 07:33
String manipulation using bash
# extract whats in front of extension in bash script
# name = "jon.coffee"
# echo "${name %%coffee}"
# http://tldp.org/LDP/abs/html/string-manipulation.html
# using the % / # string modifiers
# name = JonMorehouse
# remove up to the element
# remove element and print after