Skip to content

Instantly share code, notes, and snippets.

David DeSandro desandro

Block or report user

Report or block desandro

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
desandro / dabblet.css
Created May 23, 2012
Pinterest layout mashed up
View dabblet.css
/* Pinterest layout mashed up */
/* ----------------------------> See Line 8 of CSS for instructions of how the layout mashes up with Masonry */
div.statcol{ float: left; padding: 0px; vertical-align: middle; overflow: hidden; text-align: left; margin-bottom: 42px; }
/* div.statrow{ padding-top: 0px; vertical-align: middle; clear: both; float: none; } */
div.statrow { width: 100%; margin: 0 auto; overflow: hidden; }
.polaroid { padding: 10px 10px 19px 10px; background-color: #f7f7f7;
display: inline-table; font-style: italic; line-height: 1.45em; }
.statcol:nth-child(4) { padding-bottom: 40px; clear:both; }
.statcol { text-align: center; }
desandro / requestanimationframe.js
Created Feb 19, 2012 — forked from paulirish/rAF.js
requestAnimationFrame polyfill
View requestanimationframe.js
* requestAnimationFrame polyfill by Erik Möller & Paul Irish et. al.
/*jshint asi: false, browser: true, curly: true, eqeqeq: true, forin: false, newcap: true, noempty: true, strict: true, undef: true */
desandro / jquery.imagesloaded.js
Created Jan 26, 2011 — forked from paulirish/
$.fn.imagesLoaded jQuery plugin
View jquery.imagesloaded.js
// $('',this).imagesLoaded(myFunction)
// execute a callback when all images have loaded.
// needed because .load() doesn't work on cached images
// Modified with a two-pass approach to changing image
// src. First, the proxy imagedata is set, which leads
// to the first callback being triggered, which resets
// imagedata to the original src, which fires the final,
// user defined callback.
View masonry_issue
<style type="text/css">
.box {
margin: 5px;
padding: 5px;
background: #D8D5D2;
font-size: 11px;
float: left;
// verifies css3 properties across browsers
// i.e. $.support.css3('transition')
$.support.css3 = function(prop) {
support = false,
thisBody = document.body || document.documentElement,
thisStyle =,
uc_prop = prop.charAt(0).toUpperCase() + prop.substr(1),
props = [
You can’t perform that action at this time.