Skip to content

Instantly share code, notes, and snippets.

View ear1grey's full-sized avatar

Rich Boakes ear1grey

View GitHub Profile
@ear1grey
ear1grey / gp_imp_mod.php
Created April 24, 2012 10:28
Mod to G+ Importer Plugin
if (isset($item->url)) {
$post_content .= "\n\n<a href='".$item->url."'>Comment on Google+</a>";
}
@ear1grey
ear1grey / gist:1372741
Created November 17, 2011 08:59
Example UoP
switch ($_GET['filter']) {
case 0:
// do stuff;
break;
case "none":
// do otherStuff;
break;
}
// case 0: triggers even when $_GET['filter'] evaluates to "none"