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
<snippet> | |
<content><![CDATA[ | |
<span class="glyphicon glyphicon-$1"></span> $2 | |
]]></content> | |
<!-- Optional: Set a tabTrigger to define how to trigger the snippet --> | |
<tabTrigger>glyph</tabTrigger> | |
<!-- Optional: Set a scope to limit where the snippet will trigger --> | |
<!-- <scope>source.python</scope> --> | |
</snippet> |
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
// "shock" users when they double-click links | |
// by Sean-O.com | |
$('a').dblclick(function(){ | |
var t = 40; // duration | |
$('p') | |
.animate({ marginLeft: '-=10' }, t) | |
.animate({ marginLeft: '+=10' }, t) | |
.animate({ marginLeft: '-=10' }, t) | |
.animate({ marginLeft: '+=10' }, t) | |
.animate({ marginLeft: '-=10' }, t) |
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 Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |