Skip to content

Instantly share code, notes, and snippets.

Mike Pjura mpjura

  • Hearst Digital Media
  • NY
Block or report user

Report or block mpjura

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@mpjura
mpjura / gist:3782195
Created Sep 25, 2012 — forked from remy/gist:350433
Storage polyfill
View gist:3782195
if (typeof window.localStorage == 'undefined' || typeof window.sessionStorage == 'undefined') (function () {
var Storage = function (type) {
function createCookie(name, value, days) {
var date, expires;
if (days) {
date = new Date();
date.setTime(date.getTime()+(days*24*60*60*1000));
expires = "; expires="+date.toGMTString();
You can’t perform that action at this time.