Skip to content

Instantly share code, notes, and snippets.

View davatron5000's full-sized avatar
Making Luro

Dave Rupert davatron5000

Making Luro
View GitHub Profile
davatron5000 / webperformant.htaccess
Created June 6, 2010 18:23
An .htaccess file for web performance and passing Page Speed and YSlow rules
# Enable GZIP
<ifmodule mod_deflate.c>
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
# Expires Headers - 2678400s = 31 days
<ifmodule mod_expires.c>
davatron5000 / videos.php
Created February 28, 2011 23:06
WordPress Custom Post Type Boilerplate (e.g. Videos)
Plugin Name: Videos
Plugin URI:
Author: Dave Rupert
Author URI:
Description: A custom post type that adds videos and custom taxonomies.
Version: 1.0
davatron5000 / jquery.sortbydata.js
Created April 19, 2011 01:23
* SortByData
* Copyright 2011 Dave Rupert
* Version 1.0 - Updated: Apr. 18, 2011
* Requires jQuery 1.5+
* This Plug-In sorts a list of of elements by any HTML5 data-attribute you specify.
* It can also handle doing that by ASC or DESC order.
davatron5000 / gist:987162
Created May 23, 2011 17:58
ATX Mini-Conf Topics
Comment to list mini-conf workshops you want.
davatron5000 / gist:1012434
Created June 7, 2011 15:04
List of Things You'd like Blacklisted in Goodfoot
We're open to suggestions, especially international (Euro/UK) chains we are ignorant to. Just comment below!
/* Application.js -
* This could be improved 10 fold but I'll upt it up on here anyway :)
* @require jQuery hashchange plugin by Ben Alman
* @var errorTmpl - template for injected error message.
* @var errorHex - verbiage for invalid hex formatting (could be better).
* @var errorNull - verbiage for call with no results.
davatron5000 / gist:1665812
Created January 23, 2012 22:15
WordPress Remove Widget Titles
// Register widgetized sidebar.
// See:
'before_title' => '',
'after_title' => ''
add_filter( 'widget_title', 'remove_widget_titles');
function remove_widget_titles( $widget_title ) {
davatron5000 / form.html
Created March 29, 2012 03:30
How to freaking line up checkboxes n' stuff.
<form action="#" method="post">
<label for="name">Text Input:</label>
<input type="text" name="name" id="name" value="" tabindex="1" />
<h4>Radio Button Choice</h4>
davatron5000 / gist:2254924
Created March 30, 2012 20:57
Static Site Generators

Backstory: I decided to crowdsource static site generator recommendations, so the following are actual real world suggested-to-me results. I then took those and sorted them by language/server and, just for a decent relative metric, their Github Watcher count. If you want a heap of other projects (including other languages like Haskell and Python) Nanoc has the mother of all site generator lists. If you recommend another one, by all means add a comment.


layout title description categories
How-to: Future proof your accessibility efforts.
Ways to make your accessibility effort as future proof as possible.