Skip to content

Instantly share code, notes, and snippets.

View mojowill's full-sized avatar
:octocat:

Will Wilson mojowill

:octocat:
View GitHub Profile
/**
* jQuery Pong plugin
*
* @name jquery-pong-0.4.1.js
* @author Geoffray Warnants - http://www.geoffray.be
* @version 0.4.1
* @date 20100127
* @example http://www.geoffray.be/lab/pong
*
* @todo Better reflect the default options (+ initialisaiton via CSS)
@mojowill
mojowill / gist:1370492
Created November 16, 2011 16:09
Final Related Custom Items
<?php
function vt_related($taxonomy = null, $post_type = null) {
global $post;
// Set the default taxonomy
if (!$taxonomy) {
$taxonomy = 'service_tag';
}
@mojowill
mojowill / gist:1260045
Created October 3, 2011 19:50
Get Rid of stupid extra 10px on Wordpress Image captions!
//Remove Stupid 10xp from around the Caption Images
class fixImageMargins{
public $xs = 0; //change this to change the amount of extra spacing
public function __construct(){
add_filter('img_caption_shortcode', array(&$this, 'fixme'), 10, 3);
}
public function fixme($x=null, $attr, $content){
extract(shortcode_atts(array(
@mojowill
mojowill / gist:1201002
Created September 7, 2011 16:15 — forked from joeytrapp/gist:1201000
Global ignore file
# Numerous always-ignore extensions
*.diff
*.err
*.orig
*.log
*.rej
*.swo
*.swp
*.vi
*~