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-option -g default-terminal "tmux-256color" | |
# set-option -g status-justify centre | |
set-option -g status-justify absolute-centre | |
set-option -g status-position top | |
set-option -g status-style bg=default | |
set-option -g status-left-length 60 | |
# Show/Hide Status Bar with hotkey | |
bind s set-option -g status |
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 -g default-terminal "screen-256color" | |
# set -g default-terminal "screen.xterm-256color" | |
# set -g default-terminal "tmux-256color" | |
set -g default-terminal "screen" | |
# set -g default-terminal "xterm" | |
set-option -gw mode-keys vi # vi style key bindings | |
bind-key -n C-k clear-history | |
# Source config |
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
$(document).ready(function(){ | |
// Looping through all image elements | |
$("img").each( function () { | |
var element = $(this); | |
$.ajax({ | |
url:$(this).attr('src'), | |
type:'get', | |
async: false, | |
error:function(response){ |
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
for i in ~/.vim/bundle/*; do git -C $i pull; done |
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 nocompatible "Disable vi-compatability. Above everything else to enable certain features below this line | |
let mapleader = " " | |
let g:mapleader = " " | |
set exrc "Allows per-project vimrc files | |
" set guifont=Monoid\ Nerd\ Font:h14 | |
" set guifont=SauceCodePro\ Nerd\ Font:h15 |
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
//Mixin | |
text-overflow() { | |
overflow: hidden; | |
text-overflow: ellipsis; | |
white-space: nowrap; | |
} | |
//Usage | |
branch-name { | |
display: inline-block; |
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
$.fn.nextStep = function(step) { | |
elem = this.parent().children().eq(this.index() + step -1 -(this.index()%step)); | |
return elem.length ? elem : this.parent().children().last(); | |
}; |
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
// http://stackoverflow.com/a/18444121/372567 | |
$.fn.nextFour = function (arguments){ | |
return $(this).parent().children().eq(idx + 4-(idx%4)-1); // -1 to correct zero-based index | |
} |
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
//Underscore | |
//find item without knowing its position in array | |
//http://stackoverflow.com/a/11922384/372567 | |
_.find(data.items, function(item) { | |
return item.id === 2; | |
}); | |
// Object {id: 2, name: "bar"} |
NewerOlder