Skip to content

Instantly share code, notes, and snippets.

@andreareginato
andreareginato / oauth2.js
Created January 26, 2013 16:29
OAuth2 app with a Node.js library
/**
*
* OAuth usage example.
*
**/
var http = require("http");
var Url = require("url");
var querystring = require("querystring");
@bobslaede
bobslaede / modernizr.positionfixed.js
Created September 16, 2011 08:50
Modernizr position fixed check
;(function(Modernizr, window) {
Modernizr.addTest('positionfixed', function () {
var test = document.createElement('div'),
control = test.cloneNode(false),
fake = false,
root = document.body || (function () {
fake = true;
return document.documentElement.appendChild(document.createElement('body'));
}());