Skip to content

Instantly share code, notes, and snippets.

View seanodotcom's full-sized avatar

Sean O seanodotcom

  • Just Outside Philly
View GitHub Profile
@seanodotcom
seanodotcom / 0_reuse_code.js
Last active August 29, 2015 14:15
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@seanodotcom
seanodotcom / sublimetext-glyphicon.snippet
Last active December 22, 2015 07:28
Sublime Text Snippet for quickly adding glyphicons (Bootstrap 3)
<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>
// "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)