domToImg.dom = document.body;
domToImg.download(location.protocol + "//" + location.host + "/build/main.css");
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
"use strict"; | |
Object.defineProperty(exports, "__esModule", { value: true }); | |
/** | |
* 流程的状态机 | |
*/ | |
var FLOW_PROCESS_STATUS; | |
(function (FLOW_PROCESS_STATUS) { | |
FLOW_PROCESS_STATUS[FLOW_PROCESS_STATUS["BEFORE_START"] = 0] = "BEFORE_START"; | |
FLOW_PROCESS_STATUS[FLOW_PROCESS_STATUS["INPUT_EMAIL"] = 1] = "INPUT_EMAIL"; | |
FLOW_PROCESS_STATUS[FLOW_PROCESS_STATUS["INPUT_CODE"] = 2] = "INPUT_CODE"; |
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
const admin = require("./firebase-admin"); | |
admin.initializeApp({ | |
credential: **yourCredential** | |
databaseURL: **yourDatabaseURL** | |
}); | |
const db = admin.database(); | |
const dbPromise = (db_ref, options = {}) => { | |
const { | |
can_null, |
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 MP = require("../mind-pact"); | |
var eve = new MP({}); | |
[ | |
"a", | |
"a.b", | |
"a.b2", | |
"a.b.c", | |
"a.b.c1", | |
"a.b.c2" |
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
<link rel="import" href="/bower_components/app-layout/app-drawer/app-drawer.html"> | |
<link rel="import" href="/bower_components/app-layout/app-drawer-layout/app-drawer-layout.html"> | |
<link rel="import" href="/bower_components/app-layout/app-header/app-header.html"> | |
<link rel="import" href="/bower_components/app-layout/app-header-layout/app-header-layout.html"> | |
<link rel="import" href="/bower_components/app-layout/app-scroll-effects/app-scroll-effects.html"> | |
<link rel="import" href="/bower_components/app-layout/app-toolbar/app-toolbar.html"> | |
<link rel="import" href="/bower_components/polymer/polymer.html"> | |
<link rel="import" href="/bower_components/app-route/app-route.html"> | |
<link rel="import" href="/bower_components/iron-pages/iron-pages.html"> | |
<link rel="import" href="/bower_components/paper-button/paper-button.html"> |
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(root, factory) { | |
if (typeof define === 'function' && define.amd) { | |
define(['MP'], factory); | |
} else { | |
root.MP = factory(root.b); | |
} | |
}(this, function(__global) { | |
var QuotedString = /"(?:\.|(\\\")|[^\""\n])*"|'(?:\.|(\\\')|[^\''\n])*'/g, //引号字符串 | |
$NULL = null, | |
$UNDEFINED, |
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
/** | |
* @author alteredq / http://alteredqualia.com/ | |
* | |
* ShaderExtras currently contains: | |
* | |
* screen | |
* convolution | |
* film | |
* bokeh | |
* sepia |
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 __extends = (this && this.__extends) || function (d, b) { | |
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | |
function __() { this.constructor = d; } | |
__.prototype = b.prototype; | |
d.prototype = new __(); | |
}; | |
define(["require", "exports"], function (require, exports) { | |
var GaussianBlur = (function (_super) { | |
__extends(GaussianBlur, _super); | |
function GaussianBlur() { |
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
const parseInt = require("./parseInt"); | |
const assert = require("assert"); | |
const assertEquals = assert.deepStrictEqual; | |
const assertTrue = assert.ok; | |
/* | |
* https://github.com/v8/v8/blob/01590d660d6c8602b616a82816c4aea2a251be63/test/mjsunit/parse-int-float.js | |
*/ | |
assertEquals(0, parseInt('0')); | |
assertEquals(0, parseInt(' 0')); | |
assertEquals(0, parseInt(' 0 ')); |
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
/* | |
* 创建类似DB服务 | |
*/ | |
var net = require("net"); | |
var server = net.createServer(function(c) { | |
console.log('DB-SERVER: client connected'); | |
c.on('end', function() { | |
console.log('DB-SERVER: client disconnected'); | |
}); | |
c.on('data', function(chunk) { |