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
/* Application.js -
* This could be improved 10 fold but I'll upt it up on here anyway :)
*
* @require jQuery hashchange plugin by Ben Alman http://benalman.com/projects/jquery-hashchange-plugin
*
* @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
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!
@davatron5000
davatron5000 / gist:987162
Created May 23, 2011 17:58
ATX Mini-Conf Topics
Comment to list mini-conf workshops you want.
@davatron5000
davatron5000 / jquery.sortbydata.js
Created April 19, 2011 01:23
jQuery.sortByData
/*
* SortByData
* Copyright 2011 Dave Rupert
* www.daverupert.com
*
* 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
davatron5000 / videos.php
Created February 28, 2011 23:06
WordPress Custom Post Type Boilerplate (e.g. Videos)
<?php
/*
Plugin Name: Videos
Plugin URI:
Author: Dave Rupert
Author URI: http://www.daverupert.com
Description: A custom post type that adds videos and custom taxonomies.
Version: 1.0
*/
@davatron5000
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
</ifmodule>
# Expires Headers - 2678400s = 31 days
<ifmodule mod_expires.c>