Skip to content

Instantly share code, notes, and snippets.

Avatar

Bemi Faison bemson

View GitHub Profile
@bemson
bemson / index.html
Last active Jan 14, 2017 — forked from nolanlawson/index.html
IndexedDB with Web Worker Blobs
View index.html
<html>
<body>
<span id="output"></span>
</body>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script src="main.js"></script>
</html>
@bemson
bemson / dabblet.css
Last active Nov 9, 2015
localStorage test
View dabblet.css
/**
* localStorage test
* copied from http://jsbin.com/hofove
*/
#placer { position: absolute; left: 2.5%; width: 95%; top: 7.5em; bottom: 1.5em;}#placer iframe { background: #eee; width: 100%; height: 100%;}
View function-gvs-comparison.js
// the object to proxy
var obj = new SomeObject();
// standard proxy with same-name getter/setter
var stdProxy = {
getXsetY: function (value) {
if (arguments.length) {
if (typeof value === 'number') {
obj.y = value;
return true;