Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block yehosef

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
yehosef / 0_reuse_code.js
Last active Aug 29, 2015
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
yehosef / gist:57df0ec37d5096222cf0
Last active Aug 29, 2015 — forked from remy/gist:350433
check for localStorage support and if its not there, make a polyfill based on cookies
View gist:57df0ec37d5096222cf0
// refer to
try {
if (!window.localStorage || !window.sessionStorage) throw "exception";
localStorage.setItem('storage_test', 1);
} catch(e) {
(function () {
var Storage = function (type) {
You can’t perform that action at this time.