Skip to content

Instantly share code, notes, and snippets.

View davorb's full-sized avatar
👋

Davor Babić davorb

👋
View GitHub Profile
var xLBD = {};
xLBD.c = function () {
xLBD.f = unescape(document.querySelector("[flashvars]").getAttribute("flashvars")).substring(7);
xLBD.m = JSON.parse(xLBD.f.substring(0, xLBD.f.lastIndexOf("}") + 1)).video_data[0];
xLBD.f = xLBD.m.hd_src ? xLBD.m.hd_src : xLBD.m.sd_src;
xLBD.a = "<div style='position:absolute;top:100px;height:300px;left:15%;background:#fff;border:10px solid #000;font-size:5em;padding:100px;'>Click <a download='lookback.mp4' href='"+xLBD.f+"'>here<\/a> to download your lookBack video.</div>";
document.body.innerHTML += xLBD.a;
};
if(document.readyState == "complete")
xLBD.c();
@davorb
davorb / 0_reuse_code.js
Created November 29, 2013 12:18
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
qs [] = []
qs (x:xs) = qs [a|a<-xs, a<=x]++[x]++qs [a|a<-xs, a>x]