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
<!-- | |
Don't forget to add: | |
<html xmlns:v="urn:schemas-microsoft-com:vml"> | |
--> | |
<!--[if gte mso 9]> | |
<v:image xmlns:v="urn:schemas-microsoft-com:vml" style='behavior: url(#default#VML); | |
display: inline-block; | |
position: absolute; | |
height: ${1:100}px; | |
width: ${2:100}px; |
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
/* | |
Module $1 | |
${7:Description of $1.} | |
@author ${TM_FULLNAME} | |
created `date +%Y-%m-%d` | |
*/ | |
var ${1:module} = (function (${2:\$}) { | |
var ${5:bar}; | |
${4:function foo () { return bar; \} |
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
'#' + Math.floor(Math.random() * 0xffffff).toString(16); |
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
<!DOCTYPE html> | |
<html><head> | |
<meta charset="utf-8"> | |
<title>Modules</title> | |
</head><body><script> | |
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
javascript:(function(e,h){h=prompt('Enter hostname (return for localhost)');h=h||'localhost';e.setAttribute("src","http://"+h+":8081/target/target-script-min.js#anonymous");document.getElementsByTagName("body")[0].appendChild(e);}(document.createElement("script"))); |
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
alfredapp://customsearch/Search%20JQuery%20API/jquery/ascii/url=http://api.jquery.com/?s={query} |
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
/* | |
Less mixins (http://css-tricks.com/snippets/css/useful-css3-less-mixins/) | |
*/ | |
.text-shadow (@string: 0 1px 3px rgba(0, 0, 0, 0.25)) { | |
text-shadow: @string; | |
} | |
.box-shadow (@string) { | |
-webkit-box-shadow: @string; | |
-moz-box-shadow: @string; | |
box-shadow: @string; |
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
<!DOCTYPE html> | |
<!--[if lte IE 6 ]><html class="ie ie6 non-js"><![endif]--> | |
<!--[if IE 7 ]><html class="ie ie7 non-js"><![endif]--> | |
<!--[if IE 8 ]><html class="ie ie8 non-js"><![endif]--> | |
<!--[if gte IE 9 ]><html class="ie ie9 non-js"><![endif]--> | |
<!--[if !IE]>--> | |
<html class="non-js"> | |
<!--<![endif]--> |
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
// use: String.subs('There is no ${foo} foo', { foo: 'bar' }) | |
String.subs = String.subs || function (str, props) { | |
return str.replace(/\$\{([^{}]*)}/g, function (a, b) { | |
var r = props[b]; | |
return typeof r === 'string' || typeof r === 'number' ? r : a; | |
}); | |
}; |
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
Create a git repo and push to remote: | |
mkdir new_git_repo | |
cd new_git_repo | |
git init | |
touch README | |
git add README | |
git commit -m 'first commit' | |
git remote add origin git@my.remote.com/new_git_repo.git | |
git push -u origin master |