Skip to content

Instantly share code, notes, and snippets.

View GothAck's full-sized avatar
🙃
Reverse engineering is fun...

Greg "GothAck" Miell GothAck

🙃
Reverse engineering is fun...
View GitHub Profile
@andyedinborough
andyedinborough / jquery.oauth.js
Created June 7, 2011 19:30
Introduces $.oauth() to make using OAuth from jQuery as easy as using $.ajax()
(function (window, document, $, undefined) {
if (!$.Deferred) throw 'jQuery 1.5 is required to use the jQuery.oauth script!';
function require(name, url) {
if (window[name] === undefined)
return $.ajax({ type: 'GET', cache: true, dataType: 'script', url: url });
}
$.oauth = function (options) {
var d = $.Deferred();