Skip to content

Instantly share code, notes, and snippets.


Sean O seanodotcom

  • Just Outside Philly
View GitHub Profile
seanodotcom / 0_reuse_code.js
Last active Aug 29, 2015
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
seanodotcom / sublimetext-glyphicon.snippet
Last active Dec 22, 2015
Sublime Text Snippet for quickly adding glyphicons (Bootstrap 3)
View sublimetext-glyphicon.snippet
<span class="glyphicon glyphicon-$1"></span> $2
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
View double-click shocker
// "shock" users when they double-click links
// by
var t = 40; // duration
.animate({ marginLeft: '-=10' }, t)
.animate({ marginLeft: '+=10' }, t)
.animate({ marginLeft: '-=10' }, t)
.animate({ marginLeft: '+=10' }, t)
.animate({ marginLeft: '-=10' }, t)