Skip to content

Instantly share code, notes, and snippets.

View bemson's full-sized avatar

Bemi Faison bemson

View GitHub Profile
@bemson
bemson / index.html
Last active October 21, 2021 11:55 — forked from nolanlawson/index.html
IndexedDB with Web Worker Blobs
<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 November 9, 2015 06:58
localStorage test
/**
* 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%;}
// 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;