Skip to content

Instantly share code, notes, and snippets.

View jphorn's full-sized avatar

Jean-Paul Horn jphorn

View GitHub Profile
@jphorn
jphorn / keybase.md
Last active August 29, 2015 14:18
keybase.md

Keybase proof

I hereby claim:

  • I am jphorn on github.
  • I am jphorn (https://keybase.io/jphorn) on keybase.
  • I have a public key whose fingerprint is D5D6 A568 63A9 533C 6C22 5AF5 363A 3A9E 68EC BBDE

To claim this, I am signing this object:

@jphorn
jphorn / wp_editor_extra_wp-admin-bar-menu.php
Created February 23, 2012 14:01
Add menu to WordPress Admin Bar for Editor role (and higher) (WordPress Toolbar)
/*
* Paste in functions.php and adapt as needed
* Author: Jean-Paul Horn, iCulture.nl (@JeanPaulH)
* Special thanks to Joeke-Remkus de Vries (@defries)
*/
function iculture_admin_bar_menu() {
global $wp_admin_bar;
$wp_admin_bar->add_menu( array(
'id' => 'favorites',
'title' => __( 'Favorite'),
@jphorn
jphorn / firebuglite-ios.js
Created December 4, 2011 20:55
Firebug LITE for iOS
javascript:(function(F,i,r,e,b,u,g,L,I,T,E){if(F.getElementById(b))return;E=F[i+'NS']&&F.documentElement.namespaceURI;E=E?F[i+'NS'](E,'script'):F[i]('script');E[r]('id',b);E[r]('src',I+g+T);E[r](b,u);(F[e]('head')[0]||F[e]('body')[0]).appendChild(E);E=new%20Image;E[r]('src',I+L);})(document,'createElement','setAttribute','getElementsByTagName','FirebugLite','4','firebug-lite.js','releases/lite/latest/skin/xp/sprite.png','https://getfirebug.com/','#startOpened');