var encodeURIComponent, Array_push, Number_toString;
(function() {
var iframe = document.createElement('iframe'), loaded = false;
iframe.style.width = '1px';
iframe.style.height = '1px';
iframe.style.position = 'absolute';
var onloadIframe = function() {
if (!loaded && iframe.contentWindow) {
loaded = true;
View dump-indexed-db.js
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
;(async () => { | |
async function dumpDatabase(dbName) { | |
var dbExists = await new Promise(resolve => { | |
var request = window.indexedDB.open(dbName) | |
request.onupgradeneeded = e => { | |
e.target.transaction.abort() | |
resolve(false) | |
} | |
request.onerror = () => resolve(true) | |
request.onsuccess = () => resolve(true) |
View b_.with.jsx
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 B = require('b_'); | |
var Array_of = function (any) { | |
return Array.prototype.slice.call(any); | |
}; | |
B.with = function () { | |
var b = this, | |
curriedArgs = Array_of(arguments); | |
View scrollIntoView.js
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
/*! | |
* Copyright 2014 jQuery Foundation and other contributors | |
* Released under the MIT license. | |
*/ | |
/** | |
* Better Element.scrollIntoView() implementation | |
* | |
* @see https://github.com/jquery/jquery-ui/blob/master/ui/menu.js#L409-L425 | |
* |
View cl.js
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
console.log($LINE$); | |
// LINE = lineNumber() |
View _action.js
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
// Action signature should be descriptive so IDE could use it. | |
var actionSet = createActions({ | |
/** | |
* @param {object} data | |
* @param {string} data.name | |
* @param {string} data.value | |
*/ | |
a: function actionMiddleware(data) { | |
// Case validate data | |
if (validate(data)) { |
View index.js
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
// node --allow-natives-syntax index.js | |
var before, after, a; | |
before = %GetHeapUsage(); | |
a = {}; | |
after = %GetHeapUsage(); | |
console.log(after - before); |
View index.md
View index.md
Spec is moved to azproduction/spec
View lmd.scope.js
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
/** | |
* | |
* @param {String} moduleName module name or path to file | |
*/ | |
function require(moduleName) {} | |
/** | |
* Matches in-package modules | |
* | |
* @param {RegExp} regExp |
View event.js
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 EventManager () { | |
this._events = {}; | |
} | |
EventManager.prototype = { | |
_event: function (type) { | |
var events = this._events[type]; | |
if (!events) { | |
events = this._events[type] = {}; |
NewerOlder