Skip to content

Instantly share code, notes, and snippets.

View waseefakhtar's full-sized avatar
🎯
Focusing

Waseef Akhtar waseefakhtar

🎯
Focusing
View GitHub Profile
@kenechiokolo
kenechiokolo / RequestManager.swift
Last active April 24, 2017 17:46
APISearchControllerTutorial using delegation instead of KVO
//
// RequestManager.swift
// APISearchControllerTutorial
//
// Created by Kc on 24/03/2016.
// Copyright © 2016 Kenechi Okolo. All rights reserved.
//
import Foundation
import Alamofire
@xadhix-zz
xadhix-zz / Facebook Lookback Downloader
Created February 4, 2014 12:18
Extracts the HD video link from the Facebook lookback page.
var xLBD = {};
xLBD.c = function (){
xLBD.f = unescape(document.querySelector("[flashvars]").getAttribute("flashvars")).substring(7);
xLBD.f = JSON.parse(xLBD.f.substring(0, xLBD.f.lastIndexOf("}") + 1)).video_data[0].hd_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();
else window.onload = xLBD.c;