Skip to content

Instantly share code, notes, and snippets.

View roelven's full-sized avatar

Roel van der Ven roelven

View GitHub Profile
@roelven
roelven / gist:2987639
Created June 25, 2012 09:35 — forked from matthewhudson/gist:1603502
Integrate Open Graph with Tumblr
<meta property="og:site_name" content="{Title}" />
<meta property="fb:app_id" content="FB_APP_ID" />
<meta property="fb:admins" content="FB_ADMIN_ID" />
<meta property="og:description" content="{MetaDescription}" />
<meta property="og:locale" content="en_US" />
{block:IndexPage}
<meta property="og:image" content="{PortraitURL-128}" />
<meta property="og:title" content="SITE_NAME" />
<meta property="og:type" content="blog" />
<iframe src="http://handigekasten.nl/widget.html" width="240" height="355" frameborder="0"></iframe>
<meta content="record, sounds, share, sound, audio, tracks, music, soundcloud" name="keywords" />
<meta content="Listen to Devon + AxL - Hotel Stoccarda by AxL: traccia dubstep, grazie per l'ascolto! | Create, record and share the sounds you create anywhere to friends, family and the world with SoundCloud, the world's largest community of sound creators." name="description" />
<link href="http://sandbox-soundcloud.com/axl" rel="author" />
<meta content="width=device-width" name="viewport" />
<meta content="chrome=1" name="X-UA-Compatible" />
<meta content="iframe" name="medium" />
<meta content="soundcloudplayer:sound" property="og:type" />
<meta content="player" property="twitter:card" />
<meta content="http://sandbox-soundcloud.com/axl/devon-axl-hotel-stoccarda" property="og:url" />
<meta content="Devon + AxL - Hotel Stoccarda" property="og:title" />
<meta content="record, sounds, share, sound, audio, tracks, music, soundcloud" name="keywords" />
<meta content="Listen to Madhouse (Forss vs Borg Interlude live 2005) by Forss: Crazy interlude we used to play live back in '05 | Create, record and share the sounds you create anywhere to friends, family and the world with SoundCloud, the world's largest community of sound creators." name="description" />
<link href="http://sandbox-soundcloud.com/forss" rel="author" />
<meta content="width=device-width" name="viewport" />
<meta content="chrome=1" name="X-UA-Compatible" />
<meta content="iframe" name="medium" />
<meta content="soundcloudplayer:sound" property="og:type" />
<meta content="player" property="twitter:card" />
<meta content="http://sandbox-soundcloud.com/forss/madhouse-forss-vs-borg-interlude-live-2005" property="og:url" />
<meta content="Madhouse (Forss vs Borg Interlude live 2005)" property="og:title" />
<span class="inline-help" data-label="premium/community/extended-privacy">&nbsp;
<strong class="headline hidden"></strong>
<span class="content hidden">Submit a tracking redirect code here to use an external tracking service to gain insights on your podcast.</span></span>
@roelven
roelven / gist:1477686
Created December 14, 2011 17:56
HTML5 widget / Cloudchamber
<iframe width="100%" height="450" scrolling="no" frameborder="no" src="http://w.soundcloud.com/player/?url=http%3A%2F%2Fapi.soundcloud.com%2Fplaylists%2F1360037&amp;auto_play=false&amp;show_artwork=true&amp;color=ff7700"></iframe>
-- little helper function
function file_exists(path)
local attr = lighty.stat(path)
if (attr) then
return true
else
return false
end
end
function removePrefix(str, prefix)
attr = lighty.stat(lighty.env["physical.path"])
if (not attr) then
lighty.env["uri.path"] = "/index.php"
lighty.env["physical.rel-path"] = lighty.env["uri.path"]
lighty.env["physical.path"] = lighty.env["physical.doc-root"] .. lighty.env["physical.rel-path"]
end
{
"error": {
"type": "4107",
"message": "Invalid Csrf token"
},
"version": 9,
"client_version": "0.6.1.287.g64b130c8"
}
FB.getLoginStatus: connected > Object
perms: "{"extended":["email","contact_email","publish_actions"],"user":[],"friends":[]}"
session: > Object
access_token: "19507961798|2.AQB6WnLY4HLeEoem.3600.1315231200.1-565915644|OPaFjyXlXiswhkr7EKqSvSDihDk"
base_domain: "soundcloud.com"
expires: 1315231200
secret: "_B8j4wjsd9ly9mzPuR8nAA__"
session_key: "2.AQB6WnLY4HLeEoem.3600.1315231200.1-565915644"
sig: "4b1cfb650c0a15e92d8c5236d648e19f"
uid: "565915644"