Skip to content

Instantly share code, notes, and snippets.

! Rules to limit FB tracking of me and doing various "scary" things.
! Read more: http://nikcub.appspot.com/logging-out-of-facebook-is-not-enough
!
! The filters live on the Customize tab of AdBlock Options in Chrome.
@@http://envoy510.blogspot.com/$document
@@||www.blogger.com^$document
@@|http://www.peteralfonso.com/2011/02/download-stock-rooted-gingerbread.html|$document
@jhaus
jhaus / uri.js
Created May 7, 2012 20:09 — forked from jlong/uri.js
URI Parsing with Javascript
var parser = document.createElement('a');
parser.href = "http://example.com:3000/pathname/?search=test#hash";
parser.protocol; // => "http:"
parser.hostname; // => "example.com"
parser.port; // => "3000"
parser.pathname; // => "/pathname/"
parser.search; // => "?search=test"
parser.hash; // => "#hash"
parser.host; // => "example.com:3000"
@jhaus
jhaus / class.View_All_Posts.php
Created December 30, 2010 06:31 — forked from thefuxia/class.View_All_Posts.php
Adds a view all posts page to any archive
<?php
/**
* Adds a view all posts page to any archive.
*
* @author Thomas Scholz http://toscho.de
* @version 1.1
* @license: GPL2
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
@jhaus
jhaus / class.TTT_Contactfields.php
Created December 30, 2010 06:18 — forked from anonymous/class.TTT_Contactfields.php
Manage WordPress contact fields
<?php
/**
* Manage WordPress contact fields.
* Usage:
require './class.TTT_Contactfields.php';
$TTT_Contactfields = new TTT_Contactfields(
array (
'Twitter'
, 'Facebook'
@jhaus
jhaus / SimplestWidget_Widget.php
Created November 26, 2010 03:47 — forked from straps/SimplestWidget_Widget.php
Abstract class to create easily wordpress widgets, documented here http://www.strx.it/2010/11/wordpress-widgets-template/
<?php
class SimplestWidget_Widget extends Strx_Widget {
function w_id(){ return 'simplest-widget'; }
function w_name(){ return 'My Simplest Widget'; }
/** Return the dashboard admin form */
function w_form($instance){
return '<p>'.$this->w_form_input($instance, 'title').'</p>';
}