Skip to content

Instantly share code, notes, and snippets.

View pfefferle's full-sized avatar
😴
zzZZzzzZzzZZzZZZ

Matthias Pfefferle pfefferle

😴
zzZZzzzZzzZZzZZZ
View GitHub Profile
<div class="vcard">
<img class="fn org photo" src="/photo.jpg" alt="Organisation-Name" />
</div>
value-class-pattern:
<dl class="vevent">
<dt>Wann:</dt>
<dd class="dtstart"><span class="value-title" title="2010-02-29">29.02.2010</span></dd>
</dl>
abbr-design-pattern:
<dl class="vevent">
<Link rel='http://xmlns.com/foaf/0.1/' type='text/html' href='http://blog.example.com/author/steve' />
<html>
<head>
<title>Google XAuth Demo</title>
<script type="text/javascript" src="http://xauth.org/xauth.js"></script>
<script type="text/javascript">
function doLogin(doneUrl) {
/* Tell XAuth.org that a user has just signed into Google on this browser. */
XAuth.extend({
// Just reveals "someone is logged into Google" but no personally identifiable info.
<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"/>
...
</head>
...
</html>
<html xmlns:ogp="http://opengraphprotocol.org/schema/" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>The Rock (1996)</title>
<meta property="ogp:title dc:title" content="The Rock" />
<meta property="ogp:type" content="movie" />
<meta property="ogp:url" content="http://www.imdb.com/title/tt0117500/" />
<meta property="ogp:image" content="http://ia.media-imdb.com/images/rock.jpg" />
</head>
<body>
</body>
<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>
<?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');
<!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>
<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>