Skip to content

Instantly share code, notes, and snippets.

View pfefferle's full-sized avatar
😴
zzZZzzzZzzZZzZZZ

Matthias Pfefferle pfefferle

😴
zzZZzzzZzzZZzZZZ
View GitHub Profile
@pfefferle
pfefferle / webfinger.xml
Created January 23, 2012 16:29
YQL Webfinger fix
<?xml version="1.0" encoding="UTF-8"?>
<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
<meta>
<sampleQuery>select * from {table} where account='pfefferle@notizblog.org'</sampleQuery>
</meta>
<bindings>
<select itemPath="" produces="XML">
<urls>
<url>http://code.google.com/p/webfinger/</url>
</urls>
@pfefferle
pfefferle / account-manager.php
Created January 13, 2012 12:51
AccountManager
<?php
/*
Plugin Name: Account Manager
Plugin URI: http://notizblog.org/projects/apml-for-wordpress/
Description:
Version: 0.1
Author: Matthias Pfefferle
Author URI: http://notizblog.org/
*/
add_filter('query_vars', array('MozillaAccountManager', 'queryVars'));
@pfefferle
pfefferle / identity-toolkit.php
Created January 10, 2012 17:46
A "Google Identity Toolkit" Demo-WordPress-Plugin
<?php
/*
Plugin Name: Identity Toolkit Demo
Plugin URI:
Description: a quick and dirty Identity Toolkit-plugin
Version: demo
Author: Matthias Pfefferle
Author URI: http://notizblog.org/
*/
@pfefferle
pfefferle / BrowserIDDemo.php
Created January 7, 2012 15:13
A BrowserID Demo-WordPress-Plugin
<?php
/*
Plugin Name: BrowserID Demo
Plugin URI: http://notizblog.org/2012/01/07/browserid-as-easy-as-copy-and-paste/
Description: a quick and dirty BrowserID-plugin
Version: demo
Author: Matthias Pfefferle
Author URI: http://notizblog.org/
*/
@pfefferle
pfefferle / push.txt
Created July 13, 2011 08:40
PubSubHubbub Request
hub.mode=publish&hub.url=http%3A%2F%2Fnotizblog.org%2Ffeed%2Fatom%2F&hub.url=http%3A%2F%2Fnotizblog.org%2Ffeed%2Frss%2F&hub.url=http%3A%2F%2Fnotizblog.org%2Ffeed%2Frdf%2F&hub.url=http%3A%2F%2Fnotizblog.org%2Ffeed%2F
@pfefferle
pfefferle / html5-input-types.php
Created July 11, 2011 13:28
Adds the new HTML5 input-types to WordPress' default forms
<?php
/*
Plugin Name: html5 input-types
Plugin URI: http://notizblog.org/
Description: Adds the new HTML5 input-types to WordPress' default forms
Version: 0.1
Author: pfefferle
Author URI: http://notizblog.org/
*/
<iframe src="http://button.spread.ly/?url=<?php echo urlencode("http://".$_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"]); ?>"
style="overflow:hidden; width: 420px; height: 24px; padding: 0px 0;"
frameborder="0"
scrolling="no"
marginheight="0"
allowTransparency="true">
</iframe>
<!DOCTYPE html>
<html>
<head itemtype="http://ogp.me/ns#">
<title>Microdata OpenGraphProtocol</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta itemprop="title" content="Matthias Pfefferle" />
<meta itemprop="type" content="website" />
<meta itemprop="url" content="http://pfefferle.org/" />
<meta itemprop="image" content="http://www.gravatar.com/avatar/b36983a5651df2c413e264ad4d5cc1a1.jpg" />
</head>
<?php
function publish_to_hub($post_id) {
// we want to notify the hub for every feed
$feed_urls = array();
$feed_urls = apply_filters('push_feed_urls', $feed_urls); // <-- a filter to add some more feeds
$feed_urls[] = get_bloginfo('atom_url');
$feed_urls[] = get_bloginfo('rss_url');
$feed_urls[] = get_bloginfo('rdf_url');
$feed_urls[] = get_bloginfo('rss2_url');
<html xmlns:og="http://opengraphprotocol.org/schema/" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>The Rock (1996)</title>
<meta property="og:title
dc:title" content="The Rock" />
<meta property="og:type" content="movie" />
<meta property="dc:description og:description" content="Alcatraz. Only one man has ever broken out. Now five million lives depend on two men breaking in." />
<meta property="og:url" content="http://www.imdb.com/title/tt0117500/" />
<meta property="og:image" content="http://ia.media-imdb.com/images/rock.jpg" />
</head>