Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am minego on github.
  • I am minego (https://keybase.io/minego) on keybase.
  • I have a public key ASB9oldX2K8-ol8BeDdXJ0XEXZyfEm-fNSS7QjQDbeSnZgo

To claim this, I am signing this object:

@minego
minego / .vimrc
Last active August 29, 2015 14:07 — forked from anonymous/.vimrc
lint
" Call a lint script on write, it will call the appropriate lint tool for the
" file type. Show the results in the quickfix window.
function! Lint()
let current_file = shellescape(expand('%:p'))
let output = system('lint ' . current_file)
if strlen(output) > 0
" write quickfix errors to a temp file
let quickfix_tmpfile_name = tempname()
exe "redir! > " . quickfix_tmpfile_name
#!/bin/sh
Foo()
{
echo << EOF
This is a here document. It has to be left justified because
I used << instead of <<-. Annoying, ins't it?
EOF
}
@minego
minego / gist:2368806
Created April 12, 2012 16:23
Helpful bits in screenrc
# Allow selecting screens above 9 by hitting shift and the number
bind ) select 10
bind ! select 11
bind @ select 12
bind \# select 13
bind \$ select 14
bind % select 15
bind \^ select 16
bind & select 17
bind * select 18
@minego
minego / gist:2023373
Created March 12, 2012 17:03
Opening a window in a BlackBerry PlayBook WebWorks app
/*
WebWorks for the BlackBerry PlayBook requires the following 2 lines in your
config.xml file if you want to open windows:
<feature id="blackberry.invoke" required="true" version="1.0.0" />
<feature id="blackberry.invoke.BrowserArguments" required="true" version="1.0.0" />
*/
function openURL(url)
{
try {