Skip to content

Instantly share code, notes, and snippets.

View pourmesomecode's full-sized avatar

Charles Browne pourmesomecode

View GitHub Profile
@pourmesomecode
pourmesomecode / gist:b3738b8b19d585fdbe6edc4fa4559cf0
Created September 19, 2017 08:41 — forked from paulirish/gist:5558557
a brief history of detecting local storage

A timeline of the last four years of detecting good old window.localStorage.


Jan Lenhart, bless his heart contributed the first patch for support:

October 2009: 5059daa

'use strict';
var Alexa = require("alexa-sdk");
exports.handler = function(event, context, callback) {
var alexa = Alexa.handler(event, context);
alexa.registerHandlers(handlers);
alexa.execute();
};
var handlers = {
var canvas;
var ctx;
var x = 75;
var y = 50;
var WIDTH = 400;
var HEIGHT = 300;
var dragok = false;
function rect(x,y,w,h) {
ctx.beginPath();