Skip to content

Instantly share code, notes, and snippets.

View plbabin's full-sized avatar

Pierre-Luc Babin plbabin

View GitHub Profile
@plbabin
plbabin / tiny.md
Created January 27, 2012 14:39 — forked from remi/tiny.md
Quebec people one-pager websites
@plbabin
plbabin / gist:1186056
Created September 1, 2011 12:23 — forked from remy/gist:350433
Storage polyfill
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();