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
set autoupdategist | |
set noautofocus | |
let barposition = "bottom" | |
let highlight = "#ffff00" | |
let typelinkhintsdelay = 0 | |
let hintcharacters = "fdsawerjkiop" | |
let locale="us" | |
let scrollstep = 100 | |
map ; : |
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
syntaxdef erlang { | |
# whitespace | |
/\s+/m : ; | |
# single line comment | |
/%+\s*(.*)$/m : { | |
in_comment(${1}); | |
region { | |
type=comment; |
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
package com.andraskindler.playground.adapter; | |
import android.view.LayoutInflater; | |
import android.view.View; | |
import android.view.ViewGroup; | |
import android.widget.BaseAdapter; | |
import android.widget.TextView; | |
import com.andraskindler.playground.Item; | |
import com.andraskindler.playground.R; |
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
#!/bin/sh | |
# Alot of these configs have been taken from the various places | |
# on the web, most from here | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# Set the colours you can use | |
black='\033[0;30m' | |
white='\033[0;37m' | |
red='\033[0;31m' |
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
" NOTE you must separate sites with ", " not a simple "," (no quotes). | |
set disablesites=*.google.com/*, github.com, cloud.feedly.com | |
set searchengines+={"mdn":"https://developer.mozilla.org/en-US/search?q={{keyword}}","wp":"http://en.wikipedia.org/wiki/{{keyword}}","discogs":"http://discogs.com/search?q={{keyword}}","gh":"http://github.com/search?q={{keyword}}","gcache":"http://webcache.googleusercontent.com/search?q=cache:{{keyword}}","image":"http://www.google.com/search?hl=en&tbm=isch&q={{keyword}}","rd":"http://www.ruby-doc.org/q/{{keyword}}","word":"http://www.wordnik.com/words/{{keyword}}"} | |
set defaultsearch=google | |
map R <C-r> | |
map <M-R> R |
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
#!/bin/bash -ex | |
# Paste this into ssh | |
# curl -sL https://gist.github.com/zundr/8080633/raw/bootstrap_homeshick.sh | tar -xzO | /bin/bash -ex | |
# When forking, you can get the URL from the raw (<>) button. | |
### Set some command variables depending on whether we are root or not ### | |
# This assumes you use a debian derivate, replace with yum, pacman etc. | |
aptget='sudo apt-get' | |
chsh='sudo chsh' |
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
function msg() { | |
local color="\033[${1}m" | |
local message=$2 | |
local normal="\033[0m" | |
echo -e "${color}${message}${normal}" | |
} | |
function link_files() { | |
local source_dir=$1 | |
local pattern=$2 |
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
function foo(args) { | |
var i, j, k; | |
// ... | |
// j acquires some interesting value | |
// Who called foo when j took this interesting value? | |
// | |
var e = new Error('dummy'); | |
var stack = e.stack.replace(/^[^\(]+?[\n$]/gm, '') | |
.replace(/^\s+at\s+/gm, '') |