Skip to content

Instantly share code, notes, and snippets.

@wbio
wbio / .eslintrc
Last active March 17, 2017 08:00
My personal .eslintrc that I use in my projects
{
"extends": "airbnb",
"rules": {
"strict": 0,
"indent": [2, "tab", { "SwitchCase": 1 }],
"no-use-before-define": [2, "nofunc"],
"object-shorthand": 0,
"max-len": [1, 120, 2, {
"ignoreUrls": true,
"ignoreComments": true
@wbio
wbio / bash_colors_local.sh
Last active May 6, 2016 17:29
My bash color preferences for my local machine
# Git branch in prompt.
function parse_git_dirty {
local status=$(git status --porcelain 2> /dev/null)
if [ "$status" != "" ]; then
echo "+"
fi
}
function parse_git_branch {
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e "s/* \(.*\)/\ (\1$(parse_git_dirty))/"
@wbio
wbio / bash_colors_remote.sh
Last active May 6, 2016 17:32
My bash color prefernces for remote servers
# Git branch in prompt.
function parse_git_dirty {
local status=$(git status --porcelain 2> /dev/null)
if [ "$status" != "" ]; then
echo "+"
fi
}
function parse_git_branch {
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e "s/* \(.*\)/\ (\1$(parse_git_dirty))/"