This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<title>upgradeneeded shim test - basics</title> | |
<body> | |
<script src="upgradeneeded.js"></script> | |
<script> | |
window.indexedDB = window.indexedDB || window.webkitIndexedDB; | |
function show(s) { | |
document.querySelector('#output').appendChild(document.createTextNode(s + "\n")); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//////////////////////////////////////////////////////////////////////////////////////////////////// | |
var openReqShim = function(dbName, version){ | |
var me = this; | |
var IDBRequest = function(){ | |
this.onsuccess = this.onerror = this.onblocked = this.onupgradeneeded = null; | |
}; | |
function copyReq(req){ | |
req = req || dbOpenReq; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# url : https://gist.github.com/672684 | |
# version : 2.0.2 | |
# name : appify | |
# description : Create the simplest possible mac app from a shell script. | |
# usage : cat my-script.sh | appify MyApp | |
# platform : Mac OS X | |
# author : Thomas Aylott <[email protected]> |