Skip to content

Instantly share code, notes, and snippets.

View wbashir's full-sized avatar

Warsame Bashir wbashir

View GitHub Profile
$(document).on("mouseenter", ".plot .label",
function (event) {
$(this).animate({ opacity: 0 },
function () {
$(this).addClass('hidden-label');
}
).delay(5000).animate({ opacity: 0.85 },
function () {
$(this).removeClass('hidden-label');
}
@wbashir
wbashir / gist:6152093
Created August 4, 2013 21:49
Remove S3 document when user is deleted
collection.find().observe({
removed: function (oldDoc) {
// delete oldDoc._id from S3
}
});
#!/bin/bash
# let's start fresh
rm -rf .demeteorized
rm /tmp/newfile
# run + cd
demeteorizer
cd .demeteorized
@wbashir
wbashir / gist:5984665
Created July 12, 2013 13:58
Sidr open menu on body load
<html>
<head>
<!-- Your stuff -->
<!-- Include Sidr bundled CSS theme -->
<link rel="stylesheet" href="stylesheets/jquery.sidr.dark.css">
</head>
<body onload="init()">