This file contains hidden or 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
| $blue: #3498db; | |
| $dkblue: #2980b9; | |
| $green: #1bbc9b; | |
| $dkgreen: #27ae60; | |
| $bluegreen: #1abc9c; | |
| $purple: #9b59b6; | |
| $dkpurple: #8e44ad; | |
| $greensea: #16a085; | |
| $yellow: #f1c40f; | |
| $dkyellow: #f39c12; |
This file contains hidden or 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
| // find all elements with a z-index and indicate what they are. | |
| // uses css outline which is not supported in IE <8 | |
| function contrast(color){ return '#' + | |
| (Number('0x'+color.substr(1)).toString(10) > 0xffffff/2 ? '000000' : 'ffffff'); | |
| } | |
| jQuery('*') | |
| .filter(function(){ return $(this).css('zIndex') !== 'auto'; }) | |
| .each(function(){ |
This file contains hidden or 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
| /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications |
This file contains hidden or 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
| <? | |
| ini_set('auto_detect_line_endings',TRUE); | |
| function getcsv($thecsv) { | |
| if (($handle = fopen("{$thecsv}", 'r')) === false) { | |
| die('Error opening file'); | |
| } |
This file contains hidden or 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
| Put this before doctype for force IE to remove compatibility button (in addition to <meta http-equiv="X-UA-Compatible" content="IE=edge">): | |
| <!--[if IE]><![endif]--> | |
| Live reload script for localhost (handy when using iframes): | |
| <script>document.write('<script src="http://' + (location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1"></' + 'script>')</script> | |
This file contains hidden or 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
| wget http://wordpress.org/latest.tar.gz; tar -xvzf latest.tar.gz; mv wordpress/* .; rmdir wordpress/ ; rm latest.tar.gz; rm wp-content/plugins/hello.php; rm -rf wp-content/plugins/akismet; rm -rf wp-content/themes/twentyfourteen; rm -rf wp-content/themes/twentythirteen | |
| #/Applications/MAMP/Library/bin/mysql -uroot -proot -e "create database [databasename];" |
This file contains hidden or 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
| ipconfig getifaddr en0 | |
| OUTPUT=$(ipconfig getifaddr en0); echo ${OUTPUT} |
This file contains hidden or 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
| wget -m -nH ftp://user:pass@serverurl//wp-content |
This file contains hidden or 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
| Instead of using .* | |
| try .+? |