Skip to content

Instantly share code, notes, and snippets.

View oyvindkinsey's full-sized avatar

Øyvind Sean Kinsey oyvindkinsey

View GitHub Profile
@oyvindkinsey
oyvindkinsey / 1.js
Created February 23, 2013 03:59 — forked from padolsey/1.js
/x/==x
// Load the SDK Asynchronously
(function(d){
var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0];
if (d.getElementById(id)) {return;}
js = d.createElement('script'); js.id = id; js.async = true;
js.src =
('//' + /(www|apps)\.([\w\.]+\.)facebook\.com/.exec(document.referrer)
? RegExp.$2 + '.facebook.com/assets.php/en_US/'
: 'connect.facebook.net/en_US/') +
// the module to load
//
// by Dmitry Soshnikov <dmitry.soshnikov@gmail.com>
// MIT Style License
// see also: http://wiki.ecmascript.org/doku.php?id=strawman:iterators
//
// ---------------------------------------
// 1. Iteration via for-in loop
// ---------------------------------------