Skip to content

Instantly share code, notes, and snippets.

View kverawat's full-sized avatar
🏠
Working from home

Verawat kverawat

🏠
Working from home
View GitHub Profile
http://www.amazon.com
http://www.staples.com
http://www.apple.com
http://www.walmart.com
http://www.libertyinteractive.com/
http://www.searsholdings.com/
http://www.officedepot.com
http://www.dell.com/
http://www.netflix.com
http://www.bestbuy.com
@kverawat
kverawat / localStorage.js
Created June 10, 2016 04:11 — forked from anhang/localStorage.js
HTML5 Local Storage with Expiration
AZHU.storage = {
save : function(key, jsonData, expirationMin){
if (!Modernizr.localstorage){return false;}
var expirationMS = expirationMin * 60 * 1000;
var record = {value: JSON.stringify(jsonData), timestamp: new Date().getTime() + expirationMS}
localStorage.setItem(key, JSON.stringify(record));
return jsonData;
},
load : function(key){
if (!Modernizr.localstorage){return false;}
@kverawat
kverawat / A.markdown
Created October 26, 2016 17:17 — forked from umpirsky/A.markdown
Sublime Text Monokai Sidebar Theme.