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
# editorconfig.org | |
root = true | |
[*] | |
indent_style = space | |
indent_size = 2 | |
end_of_line = lf | |
charset = utf-8 | |
trim_trailing_whitespace = true | |
insert_final_newline = true |
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
{ | |
"name": "appName", | |
"version": "0.1.0", | |
"devDependencies": { | |
"grunt": "~0.4.2", | |
"load-grunt-tasks": "~0.2.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
function npmls() { npm ls -g --depth=0 "$@" 2>/dev/null } |
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
#!/bin/bash | |
while read oldrev newrev ref | |
do | |
branch=`echo $ref | cut -d/ -f3` | |
if [ "master" == "$branch" ]; then | |
git --work-tree=/var/www/prod checkout -f $branch | |
echo 'Changes pushed live.' | |
fi |
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
$('#theImage').attr('src', 'image.jpg').load(function() { | |
alert('This Image Has Been Loaded'); | |
}); |
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
.hGradient (@startColor: #eee, @endColor: #fff) { | |
background-color: @startColor; | |
background-image: -webkit-gradient(linear, left top, right top, from(@startColor), to(@endColor)); | |
background-image: -webkit-linear-gradient(left, @startColor, @endColor); | |
background-image: -moz-linear-gradient(left, @startColor, @endColor); | |
background-image: -ms-linear-gradient(left, @startColor, @endColor); | |
background-image: -o-linear-gradient(left, @startColor, @endColor); | |
} |
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
.gradient (@startColor: #eee, @endColor: #fff) { | |
background-color: @startColor; | |
background: -webkit-gradient(linear, left top, left bottom, from(@startColor), to(@endColor)); | |
background: -webkit-linear-gradient(top, @startColor, @endColor); | |
background: -moz-linear-gradient(top, @startColor, @endColor); | |
background: -ms-linear-gradient(top, @startColor, @endColor); | |
background: -o-linear-gradient(top, @startColor, @endColor); | |
} |
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
.textShadow (@value: 1px 1px 3px rgba(0, 0, 0, .3)) { | |
text-shadow: @value; | |
} |
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 getQueryVariable(variable) { | |
var query = window.location.search.substring(1); | |
var vars = query.split("&"); | |
for (var i=0;i<vars.length;i++) { | |
var pair = vars[i].split("="); | |
if(pair[0] == variable){return pair[1];} | |
} | |
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
$("ul > li").click(function () { | |
var index = $(this).prevAll().length; | |
}); |
NewerOlder