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
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
function get_string_between($string, $start, $end){ | |
$string = " ".$string; | |
$ini = strpos($string,$start); | |
if ($ini == 0) return ""; | |
$ini += strlen($start); | |
$len = strpos($string,$end,$ini) - $ini; | |
return substr($string,$ini,$len); | |
} | |
$fullstring = "this is my [tag]dog[/tag]"; |
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
.module { | |
overflow-y: scroll; /* has to be scroll, not auto */ | |
-webkit-overflow-scrolling: touch; | |
} |
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
document.body.addEventListener('touchmove', function(event) { | |
event.preventDefault(); | |
}, false); | |
// http://www.html5rocks.com/en/mobile/touch/ |
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 hello() { | |
}() |
NewerOlder