Skip to content

Instantly share code, notes, and snippets.

View dcneiner's full-sized avatar

Doug Neiner dcneiner

View GitHub Profile
@dcneiner
dcneiner / gist:3172508
Created July 24, 2012 20:37 — forked from micahwave/gist:3172454
responsive img
time_the_post_thumbnail( 'l', array(
'breakpoints' => array(
'0' => 'm 1x, l 2x',
'476' => 'l 1x, xxl 2x',
'740' => 'xl 1x, xxl 2x',
'951' => 'l 1x, xxl 2x'
)
));
@dcneiner
dcneiner / gist:2960711
Created June 20, 2012 16:11 — forked from micahwave/gist:2948501
WP-Paginate markup
<ol class="wp-paginate">
<li><span class="title"></span></li>
<li><span class="prev">Previous</span></li>
<li><a href="#page" title="1" class="page">1</a></li>
<li><span class="page current">2</span></li>
<li><a href="#page/3" title="3" class="page">3</a></li>
<li><a href="#page/4" title="4" class="page">4</a></li>
<li><a href="#page/5" title="5" class="page">5</a></li>
<li><span class="gap">...</span></li>
<li><a href="#page/8" title="8" class="page">8</a></li>
@dcneiner
dcneiner / dabblet.css
Created June 8, 2012 15:03 — forked from jonathansampson/dabblet.css
CSS Dice: An Experiment by Jonathan Sampson - @jonathansampson
/* CSS Dice: An Experiment by Jonathan Sampson - @jonathansampson */
.die.one:after {
box-shadow: 0 .2em 0 #FFF
}
.die.two:after {
background: transparent;
box-shadow: -2.3em -2.3em 0 #345,
2.3em 2.3em 0 #345,
-2.3em -2.3em 0 #FFF,
2.3em 2.4em 0 #FFF
/*!
* jQuery TextChange Plugin
* http://www.zurb.com/playground/jquery-text-change-custom-event
*
* Copyright 2010, ZURB
* Released under the MIT License
*/
(function ($) {
$.event.special.textchange = {
/*
* jQuery fasterTrim Plugin
* version: 1.0.1
* @requires jQuery v1.0.x or later
*
* licensed under the MIT license:
* http://www.opensource.org/licenses/mit-license.php
*
* @version $Id: jquery.fastertrim.js 2 2010-03-04 12:00:00Z $
* @author Travis Hardiman https://forum.jquery.com/user/travis.hardiman http://travis.servebeer.com