Skip to content

Instantly share code, notes, and snippets.

View alexcoleman's full-sized avatar

Alex Coleman alexcoleman

  • San Francisco, CA
View GitHub Profile
0xFC3B725b55fb4Bc5faA5D680647Ade288d9d20f0
// Photos
app.get('/photos', function (req, res, next) {
var view = {};
fs.readdir('./public/img/slideshow', function(err, files) {
var re = /\.(gif|jpg|jpeg|tiff|png)$/i;
var list = files.filter(function (file) {
return re.test(file);
@alexcoleman
alexcoleman / gist:4589424
Created January 21, 2013 21:09
Fade in fade out
$(document).ready(function() {
setTimeout(function() {
transition("col1")
}, 2000);
});
function transition (id) {
var id = '#' + id;
$(id + ':first-child').fadeOut('fast', function() {