Skip to content

Instantly share code, notes, and snippets.

View jayweiler's full-sized avatar

Jay Weiler jayweiler

  • Adobe
  • San Francisco, CA
View GitHub Profile
anonymous
anonymous / gist:4422944
Created December 31, 2012 21:40
function addJQuery(callback) {
var script = document.createElement("script");
script.setAttribute("src", "//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js");
script.addEventListener('load', function() {
var script = document.createElement("script");
script.textContent = "(" + callback.toString() + ")();";
document.body.appendChild(script);
}, false);
document.body.appendChild(script);
}
@amfeng
amfeng / callback.html
Last active February 1, 2020 17:04
Stripe OAuth Example -- Python
<!doctype html>
<head>
<title>Stripe OAuth Example</title>
</head>
<body>
{{ token }}
</body>
</html>