Is a simple JavaScript module that determines whether or not the given browser is IE8.
npm install is-ie8 --save-dev| alias ip='ipconfig getifaddr en0' |
| # 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" |
| # 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"' |
| # start server | |
| alias server='python -m SimpleHTTPServer 8000' |
| # 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 ../../../../../../../../' |
| // Alias | |
| alias iphone='open /Applications/Xcode.app/Contents/developer/applications/ios\ Simulator.app' | |
| // command | |
| open /Applications/Xcode.app/Contents/developer/applications/ios\ Simulator.app |
| $(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(){ |
| <?php | |
| if ($_SERVER['HTTPS'] == "on") { | |
| $url = "http://". $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']; | |
| header("Location: $url"); | |
| exit; | |
| } | |
| ?> |