Skip to content

Instantly share code, notes, and snippets.

View AlBannaTechno's full-sized avatar

Osama Al Banna AlBannaTechno

View GitHub Profile
@AlBannaTechno
AlBannaTechno / IndexedDB101.js
Created September 23, 2018 15:30 — forked from cauerego/IndexedDB101.js
Very Simple IndexedDB Example
// quite untested, adapted from BigstickCarpet's gist, attempt to make it simpler to use
function openIndexedDB (fileindex) {
// This works on all devices/browsers, and uses IndexedDBShim as a final fallback
var indexedDB = window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB || window.shimIndexedDB;
var openDB = indexedDB.open("MyDatabase", 1);
openDB.onupgradeneeded = function() {
var db = {}
@AlBannaTechno
AlBannaTechno / python-es6-comparison.md
Created August 14, 2018 12:03 — forked from revolunet/python-es6-comparison.md
# Python VS ES6 syntax comparison

Python VS ES6 syntax comparison

Python syntax here : 2.7 - online REPL

Javascript ES6 via Babel transpilation - online REPL

Imports

import math