Is a simple JavaScript module that determines whether or not the given browser is IE8.
npm install is-ie8 --save-dev
$(function(){ | |
var d = "placeholder" in document.createElement("input"); | |
if (!d){ | |
$("input[placeholder]").each(function(){ | |
$(this).val(element.attr("placeholder")).addClass('placeholder'); | |
}).bind('focus',function(){ | |
if ($(this).val() == element.attr('placeholder')){ | |
$(this).val('').removeClass('placeholder'); | |
} | |
}).bind('blur',function(){ |
// Alias | |
alias iphone='open /Applications/Xcode.app/Contents/developer/applications/ios\ Simulator.app' | |
// command | |
open /Applications/Xcode.app/Contents/developer/applications/ios\ Simulator.app |
# a quick way to get out of current directory | |
alias .1='cd ../' | |
alias .2='cd ../../' | |
alias .3='cd ../../../' | |
alias .4='cd ../../../../' | |
alias .5='cd ../../../../../' | |
alias .6='cd ../../../../../../' | |
alias .7='cd ../../../../../../../' | |
alias .8='cd ../../../../../../../../' |
# start server | |
alias server='python -m SimpleHTTPServer 8000' |
# Visualize git log | |
alias lg='git log --graph --full-history --all --color --pretty=format:"%x1b[31m%h%x09%x1b[32m%d%x1b[0m%x20%s"' |
# Pretty git log | |
alias gl="git log --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" |
alias iphone='open /Applications/Xcode.app/Contents/developer/applications/ios\ Simulator.app' |
alias fix='git reset --soft HEAD~1' |
alias ports='netstat -tulanp' |