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 bk=new (function(){ | |
//use <database> first | |
const fs = require("fs"); | |
const os = require("os") | |
const home=`${os.homedir()}/mongo-backup`; | |
function backupTo(path){ | |
if (!path) | |
throw new Error("use bk.backup('directory')"); | |
if (!fs.existsSync(path)) | |
fs.mkdirSync(path); |
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
function ezDB(name) { | |
let request = indexedDB.open(name, 1); | |
let db; | |
let qu = []; | |
const table = "MyObjectStore"; | |
request.onupgradeneeded = function (event) { | |
let db = event.target.result; | |
let objectStore = db.createObjectStore(table, { keyPath: "id" }); | |
}; |
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
<html> | |
<head> | |
<title>Mz</title> | |
<style> | |
table { | |
border-spacing: 0; | |
border-collapse: spaced; | |
} |
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
/** | |
* SyntaxHighlighter | |
* http://alexgorbatchev.com/SyntaxHighlighter | |
* | |
* SyntaxHighlighter is donationware. If you are using it, please donate. | |
* http://alexgorbatchev.com/SyntaxHighlighter/donate.html | |
* | |
* @version | |
* 3.0.83 (July 02 2010) | |
* |