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
npm install --save-dev gulp gulp-util gulp-uglify gulp-watch gulp-concat gulp-notify gulp-livereload gulp-ruby-sass |
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
pbcopy < ~/.ssh/id_rsa.pub |
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
pv mydump.sql.gz | gunzip | mysql -u root -p dbname |
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
def scrub_email(email): | |
""" Takes an email address and masks the left side. test@test.com becomes t***@test.com """ | |
user, domain = email.split('@') | |
user = user[0].ljust(len(user), "*") | |
return("{}@{}".format(user, domain)) |
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
find . -name .svn -exec rm -rf {} \; |
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
input[type=submit] { | |
text-indent: -9999px; | |
display: block; | |
line-height: 0; | |
font-size: 0; | |
} |
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.scrollToTop = function(){ | |
$("html, body").animate({ scrollTop: 0 }, "slow"); | |
return false; | |
} |
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.supportPlaceholder = function(){ | |
if(!Modernizr.input.placeholder) { | |
// Populate field with placeholder text | |
var placeholderText = $(this).attr("placeholder"); | |
$(this).val(placeholderText).css({"color" : "#999"}); | |
// Clear text if they focus | |
$(this).focus(function(){ | |
$(this).val("").css({"color" : "#333"}) |
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
.coda-slider-wrapper { | |
padding: 20px 0; | |
clear: both; | |
overflow: auto; | |
.coda-nav { | |
ul { | |
clear: both; | |
display: block; | |
margin: auto; |
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.zebrafy = function(){ | |
if($(this).get(0) != null){ | |
var $im_a = $(this).get(0).tagName.toLowerCase(); | |
var $stripe_element; | |
if($im_a == "table") { | |
$stripe_element = "tr" | |
} else { | |
$stripe_element = "li" | |
}; |
OlderNewer