Skip to content

Instantly share code, notes, and snippets.

View firewalker06's full-sized avatar

Didik Wicaksono firewalker06

View GitHub Profile
@firewalker06
firewalker06 / gist.js
Created January 12, 2012 03:23
Embed Gist in Tumblr
// Source: http://inparens.tumblr.com/post/1362127815/embedding-github-gists-in-tumblr-posts
var gistPrefix = 'https://gist.github.com/',
// Cache document.write so that it can be restored once all Gists have been
// embedded.
cachedWrite = document.write,
body = $('body'),
// Map each p.gist to an object that contains the paragraph to be replaced
// and the Gist's identifier.
// Modified the p selector, so you don't have to edit in HTML to add class
gists = $('p:contains("https://gist.github.com/")').map(function(n, p) {
@firewalker06
firewalker06 / index.html
Created January 12, 2012 02:55
Sample Facebook Open Graph Protocol
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:og="http://ogp.me/ns#"
xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
<title>The Rock (1996)</title>
<meta property="og:title" content="The Rock"/>
<meta property="og:type" content="movie"/>
<meta property="og:url" content="http://www.imdb.com/title/tt0117500/"/>
<meta property="og:image" content="http://ia.media-imdb.com/rock.jpg"/>
<meta property="og:site_name" content="IMDb"/>