Skip to content

Instantly share code, notes, and snippets.

View roelven's full-sized avatar

Roel van der Ven roelven

View GitHub Profile
<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"
<?php
/*
file: proxy64.php
function: convert an image to a base64 string
author: Roel van der Ven
date: 16.06.2011
*/
@roelven
roelven / tweet
Created June 16, 2011 12:47
hashtagreturn
{
"entities": {
"user_mentions": [],
"urls": [],
"hashtags": [{
"text": "omghackday",
"indices": [0, 11]
}]
},
"text": "#omghackday yeah!",
@roelven
roelven / gist:981330
Created May 19, 2011 17:49
booting vm when in 64bit
[default] Importing base box 'bentobox'...
[default] Matching MAC address for NAT networking...
[default] The guest additions on this VM do not match the install version of
VirtualBox! This may cause things such as forwarded ports, shared
folders, and more to not work properly. If any of those things fail on
this machine, please update the guest additions and repackage the
box.
Guest Additions Version: 4.0.4
VirtualBox Version: 4.0.8