text stringlengths 5.97k 41.2k |
|---|
// @ts-check
import {
rethrowUnlessMissing,
dataToBase64,
base64ToBytes,
} from '@agoric/swingset-vat/src/vats/network';
import makeStore from '@agoric/store';
import { makePromiseKit } from '@agoric/promise-kit';
import { generateSparseInts } from '@agoric/sparse-ints';
import '@agoric/store/exported';
import ... |
// yah.js
var express = require('express');
var router = express.Router();
var app = express();
var parseString = require('xml2js').parseString;
var util = require('util');
var moment = require('moment');
var geo = require('geolib'); // not being used at the moment 4/20/2016. added for geoLocation methods. ( https://w... |
const base_Url='http://localhost/elektrikus/public/';
const queryString = window.location.search;
const urlParams = new URLSearchParams(queryString);
$.ajaxSetup({
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
}
});
window.onload=function() {
// alert("aaa");
Pushe... |
var instance_skel = require('../../instance_skel');
var tcp = require('../../tcp');
var debug;
var log;
function instance(system, id, config) {
var self = this;
// super-constructor
instance_skel.apply(this, arguments);
self.actions(); // export actions
return self;
}
instance.prototype.init = function () ... |
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- /
/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
'use strict';
var debugging = false;
function debug(msg) {
if (!debugging)
return;
self.postMessage('[pt Worker] ' + msg);
}
var binDict;
var proximityInfo;
va... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("va... |
import fontkit from '@pdf-lib/fontkit';
import moment from 'moment';
import { PDFDocument, rgb } from 'pdf-lib';
import { Platform } from 'react-native';
import RNFS from 'react-native-fs';
import { DAYS_RELEVANT } from '../../../constants';
import { __, getFontFamilyBold, getFontFamilyRegular } from '../../../i18n';
i... |
////////////////////////////////////////////////////////////////////////////////////////////////////
// Elektrosauna server
'use strict';
var colors = require('colors');
console.log('///////////////////////////////////////////////'.blue);
console.log('ELEKTROSAUNA START'.blue);
console.log('////////////////////////... |
import React from 'react';
import {
StyleSheet,
Platform,
Image,
Text,
View,
Button,
TouchableOpacity,
Dimensions,
Animated,
Easing
} from 'react-native';
import {DrawerActions} from 'react-navigation';
import {withNavigation} from 'react-navigation';
import {connect} from 'reac... |
import Platform from 'Platform'; // eslint-disable-line
import Config from '../config'; // eslint-disable-line
import Server from './server';
import MemberProfileDialog from '../views/common/member-profile-dialog';
import Messager from '../components/messager';
import ContextMenu from '../components/context-menu';
impo... |
'use strict';
const { Random } = require('rando-js');
const { Broadcast: B, Damage, Logger } = require('ranvier');
const Parser = require('../../bundle-diku/lib/ArgParser');
const CombatErrors = require('./CombatErrors');
/**
* This class is an example implementation of a Diku-style real time combat system. Combatan... |
/* eslint-disable no-useless-escape */
/* eslint-disable no-template-curly-in-string */
'use strict'
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled (value) { try { step(generator.next(value)... |
/**
* Copyright 2020 The Pennsylvania State University
* @license Apache-2.0, see License.md for full text.
*/
import { LitElement, html, css } from "lit-element";
import { HAXWiring } from "@lrnwebcomponents/hax-body-behaviors/lib/HAXWiring.js";
/**
* `a11y-details`
* accessible progressive disclosure with detail... |
//
//
const fse = require('fs-extra');
const { resolve } = require('path');
const { readdir, stat } = require('fs').promises;
const fs = require('fs');
let updateCount = 0;
let updateSource = [];
module.exports = {
update: function (audit, rootPath) {
searchFolder(rootPath)
.then(results => {
... |
var version = require('../package.json').version;
var https = require('https');
var url = require('url');
var crypto = require('crypto');
var util = require('util');
var querystring = require('querystring');
var PROTOCOL = 'https://';
var USER_AGENT = 'facebook-nodejs/' + version + ' (+https://github.com/vanng822/face... |
// KnockoutJS viewmodel
// Instantiate and bind the viewmodel
var vm = new ViewModel();
ko.applyBindings(vm);
function ViewModel () {
var self = this;
/***************************************
* Establish connection to WAMP Router *
***************************************/
// the URL of the WAMP Rou... |
import PortMixin from "ember-debug/mixins/port-mixin";
var Ember = window.Ember;
var EmberObject = Ember.Object;
var typeOf = Ember.typeOf;
var Descriptor = Ember.Descriptor;
var emberInspect = Ember.inspect;
var computed = Ember.computed;
var oneWay = computed.oneWay;
var ComputedProperty = Ember.ComputedProperty;
var... |
var express = require('express')
var app = express()
var session = require('express-session');
// SHOW LIST OF USERS
app.get('/', function(req, res, next) {
req.getConnection(function(error, conn) {
conn.query('SELECT * FROM custData ORDER BY Contact_ID DESC',function(err, rows, fields) {
//if(err) throw err
i... |
import { connect } from 'react-redux'
import './Chart.css';
import { ResponsiveBar } from '@nivo/bar'
import React, { Component } from 'react';
import { bindActionCreators } from 'redux'
import { setPermissions } from '../../actions/setPermissions'
import { getUserInfo } from '../../actions/getUserInfo'
// make sure ... |
//Define variables required for loading triples to Solid Pod
const $rdf = require("rdflib");
var me;
var profile;
//Holds the final sorted array
var orderedArray = [];
var orderedStatements = [];
//Put your solid address here
var solidAddress;
//specifies what the root node is of the .nt file being read
//This is nee... |
'use strict';
const fs = require('fs');
// This should be the default amount of money users have.
// Ideally, this should be zero.
const DEFAULT_AMOUNT = 0;
global.moneyName = 'Buck';
global.moneyPlural = 'Bucks';
/**
* Gets an amount and returns the amount with the name of the money.
*
* @examples
* moneyName(... |
import Vue from "vue/dist/vue.esm.js";
import { mapState } from "vuex";
import { ClickOutside } from "./directives/ClickOutside.js";
import { WilFocus } from "./directives/WilFocus.js";
import { MyFavorite } from "./directives/MyFavorite.js";
import { WatchingComponent } from "./directives/WatchingComponent.js";
import... |
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {TEST_ONLY} from './launch.js';
const {
guestMessagePipe,
launchConsumer,
processOtherFilesInDirectory,
currentFiles,
sendFilesToGuest,
... |
const ACConfigLoader = require("./ACConfigLoader");
const ACMetricsLogger = require('./log/ACMetricsLogger');
const ACReporterJSON = require("./reporters/ACReporterJSON");
const ACReporterHTML = require("./reporters/ACReporterHTML");
const ACReporterCSV = require("./reporters/ACReporterCSV");
const DeepDiff = require("... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { t... |
function setData(currPage) {
try {
$.ajax({
type: "POST",
url: baseUrl+lang + '/admin/system/classify',
data: {
// currPage: currPage,
// rows: rows
},
dataType: "json",
timeout: 30000,
error: f... |
// Closure to setup dpicker, host singletons
function process_dpicker(e,t) { return int_process_dpicker(e,t); }
function int_process_dpicker(e,t)
{
var c_cur_input = null;
var c_cur_calhost = null;
if (!t)
return true;
// Use parts of today's date as replacements for missing date parts:
var tdat... |
/* eslint no-console:0 */
import utils from './utils';
import querystring from 'modulex-querystring';
import assign from 'object-assign';
import url from 'modulex-url';
import chainPromise from './chain-promise';
const rlocalProtocol = /^(?:about|app|app\-storage|.+\-extension|file|widget):$/;
const rspace = /\s+/;
f... |
/*
* HueLightBridge.js
*
* <NAME>
* IOTDB.org
* 2015-02-02
*
* Copyright [2013-2015] [<NAME>]
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.or... |
// THIS FILE BUILDS THE CLASSIFICATION TREE
// Classification tree stuff...
// Set Size
var elmnt = document.getElementById("classificationView");
var margin = {top: 20, right: 150, bottom: 120, left: 100},
width =window.parent.document.body.clientWidth*0.7; //elmnt.clientWidth; - margin.right - margin.left,
var hei... |
// @ts-check
const Components = require('./components')
const Layouts = require('./layouts')
const Plugins = require('./plugins')
const Path = require('path')
const { AsyncSeriesHook, AsyncSeriesWaterfallHook } = require('tapable')
const codeGen = require('@minipress/code-gen')
const createRoutes = require('./create-ro... |
/* global all, artifacts, command, config, master */
/* eslint no-undef: "error" */
/* ==========================================================================
* 以下为数据结构
* ==========================================================================
*
*
* ================================... |
// IN COLUMN SETTINGS
// {
// name: 'sdDebitCashBalance',
// label: 'SD Debit Cash Balance',
// type: 'quantity', //custom quantity/amount/percentage/date/dateTime
// addFooter: true, //custom true/false
// },
//pending: filter retain values
import {
FormGroup,
TextField,
Checkbox,
Tooltip,
IconBut... |
// Danish dictionary bookmarklet
// V 1.0 - 2016-08-04
// V 1.1 - 2016-01-09: new minimize function, enlarge input field option
// Read more: https://podolak.net/en/bookmarklets
// Author: <NAME>
// Contact: www.podolak.net
function loadjscssfile(filename, filetype){
if (filetype=="js"){
var fileref=document.createE... |
"use strict";
var __assign = (this && this.__assign) || Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
var __awaiter = (this && th... |
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not u... |
const mustache = require('mustache');
const i18n = require('./lib/i18n.js');
const botmgr = require('node-red-viseo-bot-manager');
const helper = require('node-red-viseo-helper');
require('./lib/i18n.js').init();
const marshall = (locale, str, data, def) => {
if (!str) return def;
str = i18n.translat... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var localizedStrings = {
'en-us': {
title: "Virtual Assistant",
send: "Send",
unknownFile: "[File of type '%1']",
unknownCard: "[Unknown Card '%1']",
receiptVat: "VAT",
receiptTax: "Tax",
... |
import Cartesian3 from "../Core/Cartesian3.js";
import Color from "../Core/Color.js";
import ComponentDatatype from "../Core/ComponentDatatype.js";
import defaultValue from "../Core/defaultValue.js";
import defined from "../Core/defined.js";
import deprecationWarning from "../Core/deprecationWarning.js";
import destroy... |
const axios = require('axios')
const upcomingTuts = [
{
"id": 1,
"title": "Using NPM Modules with Gridsome",
"slug": 1,
"topic": "Gridsome",
"tags": "npm, yarn, modules",
"amount": 150,
"level": "Intermediate"
},
{
"id": 2,
"title": "Easy state persistence with Vue.js",
"s... |
/**
* @fileoverview VideoJS-SWF - Custom Flash Player with HTML5-ish API
* https://github.com/zencoder/video-js-swf
* Not using setupTriggers. Using global onEvent func to distribute events
*/
/**
* Flash Media Controller - Wrapper for fallback SWF API
*
* @param {vjs.Player} player
* @param {Object=} options
... |
"use strict";
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; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var core_1 = require('@angular/core');
var core_... |
var _global = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : global;
var exports = {};
var n,
l,
u,
t,
i,
r,
o,
f,
e = {},
c = [],
s = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord/i;
function a(n, l) {
for (var u in l) n[u... |
import React, { Component } from 'react';
import FloatBox from './FloatBox';
import * as BABYLON from 'babylonjs';
import BabylonScene from './Scene';
import axios from 'axios';
import Navbar from './Nav';
import Legend from './Legend';
import Loading from './Loading';
import { feedbackEvent, getProportionalColor, sear... |
import React, { Fragment } from 'react';
import { Link } from 'react-router';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { CaretLeftOutlined } from '@ant-design/icons';
import { Layout, Menu, Row, Col, Spin, message } from 'antd';
import { debounce, capitalize } from 'loda... |
// Create annotations view with groupings
var Constants = require('Constants');
var AssetGroup = require('assets/AssetGroup');
var AssetManager = require('assets/AssetManager');
var UIUtil = require('ui/UIUtil');
var async = require('async');
var _ = require('util/util');
require('jquery-lazy');
/**
* Viewer for look... |
var Connection = require('./connection').Connection,
DbCommand = require('../commands/db_command').DbCommand,
MongoReply = require('../responses/mongo_reply').MongoReply,
debug = require('util').debug,
SimpleEmitter = require('./simple_emitter').SimpleEmitter,
inherits = require('util').inherits,
inspect = ... |
const {
coerceNodeId,
resolveNodeId,
makeNodeId,
NodeIdType,
NodeId,
sameNodeId
} = require("..");
const should = require("should");
const { assert } = require("node-opcua-assert");
const { Benchmarker } = require("node-opcua-benchmarker");
const { removeDecoration } = require("node-opcua-debug... |
export const barrierTypeLabels = {
dams: 'dams',
small_barriers: 'road-related barriers',
waterfalls: 'waterfalls',
}
export const barrierTypeLabelSingular = {
dams: 'dam',
small_barriers: 'road-related barrier',
waterfalls: 'waterfall',
}
export const REGIONS = {
gpiw: 'Great Plains & Intermountain Wes... |
/**
* Glossary extraction.
*/
var regexp = require('./regexp').strip;
var settings = require('../settings').eprint;
// Extract keywords
exports.extract = function (eprint) {
var texts = [
eprint.title,
eprint.abstract
];
var weights = [
settings.weight.title,
settings.weight.abstact
];
var... |
/**
* Created by <NAME> on 18.12.2017.
*/
import {
CLASSIFICATION,
LABELLING,
REGRESSION,
TIME_SERIES_PREDICTION
} from '../reference';
export const modelsToString = models => {
return models.map(model => {
return {value: model.id, label: modelToString(model)};
});
};
export const modelToString = mo... |
/*
* By Skycloud Software. Copyright 2020
*
*/
window.alert = function() {
return false;
}
var cwd;
var jobid = Win10_child.GetQueryString('id');
$(".jobid").html(jobid)
var appName = '';
var jobData;
if (jobid == "error") {
$(".stop").addClass('disable-button');
$(".recovery").addClass('disable-butto... |
/**
* A lot of credit to <NAME> <<EMAIL>> who made
* Allure-mocha reporter: "https://github.com/allure-framework/allure-js/tree/master/packages/allure-mocha"
*/
const { LabelName, Stage, Status } = require('allure-js-commons');
var crypto = require("crypto-js");
const AllureInterface = require('./AllureInterface');... |
let config = {
heatmap: true,
normalMarker: false,
density: 1,
commentView: true,
primaryColor: [255, 179, 71],
liveCommentView: false
};
let videoId = "", commentsTime = {}, freq = {}, commentsResponse = "", commentsReceived = false, videoDuration = -1;
function editContent(content){
con... |
import _ from "underscore";
import jQuery from "jquery";
import Backbone from "backbone";
import { getGalaxyInstance } from "app";
import { getAppRoot } from "onload/loadConfig";
import { HistoryContents } from "mvc/history/history-contents";
import CONTROLLED_FETCH_COLLECTION from "mvc/base/controlled-fetch-collection... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.MongoStorageAdapter = undefined;
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false... |
const execa = require('execa');
const assert = require('assert');
const { join, dirname } = require('path');
const JSON5 = require('json5');
const fs = require('fs-extra');
const { nanoid } = require('nanoid');
const { testFf } = require('./ffmpeg');
const { parseFps, multipleOf2 } = require('./util');
const { createF... |
import React,{ useState, useEffect } from "react";
// @material-ui/core components
import { makeStyles } from "@material-ui/core/styles";
import { Link } from "react-router-dom";
import Moment from 'moment';
import clsx from 'clsx';
import axios from 'axios';
// core components
import GridItem from "components/Grid/G... |
// [[name, type(R,I,J), opcode*, vararr, varorder],...]
// *IF TYPE = R , opcode is [opcode,func]
// vararr (binary representation of vars) : [[name,bitlen,isreg=true,required=true,forceval=undefined],...]
// required = is this variable required in ASM
// forceval = Is this value a forced value, if so what is the... |
/*
* eGov SmartCity eGovernance suite aims to improve the internal efficiency,transparency,
* accountability and the service delivery of the government organizations.
*
* Copyright (C) 2017 eGovernments Foundation
*
* The updated version of eGov suite of products as by eGovernments Foundation
* ... |
/**
➡
@file push sprites
@summary sokoban-style sprite pushing
@license MIT
@version 1.0.0
@requires 6.4
@author jan0sc
@description
Hack to make sprites pushable.
HOW TO USE:
1. Copy-paste into a script tag after the bitsy source
2. Edit hackOptions below to specify the push logic, exit handling, target states and w... |
var back_button = document.getElementById("back")
var toggle_server = document.getElementById("toggle_server")
const original_button_color = back_button.style.backgroundColor;
var credit_card_types;
var user_credit_cards;
var signup_bonuses;
function init(){
//set the state of toggle
chrome.storage.local.... |
// **********************************************************************
// Parsed By TarsParser(1.1.0), Generated By tars2node(20190529)
// TarsParser Maintained By <TARS> and tars2node Maintained By <superzheng>
// Generated from "BenchmarkNode.tars" by Structure Mode
// *********************************************... |
/**
* ag-grid - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v5.0.6
* @link http://www.ag-grid.com/
* @license MIT
*/
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : ... |
import Vue from 'vue';
var events = new Vue({ name: 'Simplyfication' });
//
var script = {
name: 'Simplyfication',
props: {
group: {
type: String,
required: false,
default: 'default'
}
},
data: function data () {
return {
items: []
}
},
computed: {
groupReferenc... |
const assert = require('assert');
const getZerosCount = require('./src/index');
describe('Zeros', () => {
it('0', () => {
const zerosCount = getZerosCount(10, 10);
assert.equal(zerosCount, 2);
});
it('2', () => {
const zerosCount = getZerosCount(46899647, 232);
assert.equal(zerosCount, 1674985);... |
/* Copyright 2019 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
*/
'use strict';
import './place-holder.js';
import {BatchIterator} from '@chopsui/batch-iterator';
import {CHAIN, UPDATE} from './simple-redux.js';
impor... |
/**********************************
* Guess Who for Pokemon Showdown *
* Created by: Insist *
* Idea by: Mewth *
**********************************/
"use strict";
const guesses = 10;
const prizeMoney = 5;
class GuessWho {
constructor(room) {
this.room = room;
let dex = Dex.data.Pokedex;
do {
t... |
"use strict";
const DODECAHEDRON_NEIGHBORS = {
'face-00': ['face-00', 'face-05', 'face-15', 'face-20', 'face-40', 'face-55'],
'face-05': ['face-00', 'face-05', 'face-10', 'face-15', 'face-50', 'face-55'],
'face-10': ['face-05', 'face-10', 'face-15', 'face-25', 'face-30', 'face-50'],
'face-15': ['face-0... |
import { isCancel } from 'axios'
import { isEmpty } from 'lodash'
import actions from './index'
import {
populateGranuleResults,
prepareGranuleParams,
buildGranuleSearchParams,
getDownloadUrls,
extractProjectCollectionGranuleParams,
extractGranuleSearchParams
} from '../util/granules'
import GranuleRequest... |
document.querySelector('#exit').addEventListener('click', function() {
location = 'https://dev.prospero.live/user/dashboard'
})
// localStorage.teamId = location.pathname.slice(6, 10)
var teamId = location.hostname.slice(0, 4) + location.hostname.slice(5, 33)
if(!localStorage.sessionId || !localStorage.email || ... |
var SMTPClient = exports.SMTPClient = require("./smtp").SMTPClient,
mimelib = require("mimelib-noiconv"),
exec = require('child_process').exec
util = require("util"),
EventEmitter = require("events").EventEmitter
/*
* Version constants
*/
var X_MAILER_NAME = "Nodemailer",
X_MAILER_VERSION = "0.1.2... |
// Make content Responsive
// Doesn't have to be setup because the window element doesn't change.
$(window).resize(function () {
if ($(window).width() > 786) {
$('#sort-container').width('fit-content');
$('.sort-section').show();
$('.sort-section').css('opacity', '1');
$('#close-butt... |
var sfx = undefined;
var soundtrack = undefined;
//"http://172.16.31.10:24953";//"http://localhost:8080"; //"http://172.16.31.10:63511";
var urlServer = "http://172.16.31.10:63511";
class SceneBoot extends Phaser.Scene {
constructor() {
super("SceneBoot");
}
preload(){
//Scene Cont... |
"use strict";
const { createToken: createTokenOrg, Lexer } = require("chevrotain");
let chars;
// A little mini DSL for easier lexer definition.
const fragments = {};
try {
chars = require("./unicodesets");
} catch (e) {
throw Error(
"unicodesets.js file could not be found. Did you try to run the command: yarn ... |
import Security from 'septima-remote/security';
import Rpc from 'septima-remote/rpc';
import Resource from 'septima-remote/resource';
import Logger from 'septima-utils/logger';
import Invoke from 'septima-utils/invoke';
import KeyCodes from 'kenga/key-codes';
import Ui from 'kenga/utils';
import Window from 'kenga-wind... |
// 本文件用于wechat API,基础文件,主要用于Token的处理和mixin机制
const httpx = require('httpx')
const liburl = require('url')
const WXBizMsgCrypt = require('./WXBizMsgCrypt')
class AccessToken {
constructor(accessToken, expireTime) {
this.accessToken = accessToken
this.expireTime = expireTime
}
/* !
* 检查AccessToken是否有效,... |
const { remote, ipcRenderer, shell } = require('electron')
const {dialog, Menu, MenuItem,} = remote
const fs = require('fs')
const API_URL = remote.getGlobal("API_URL")
const keytar = require('keytar')
const mtga = require('mtga')
const path = require('path')
const os = require('os')
const jwt = require('jsonwebtoken... |
// homebridge-zp/lib/ZpPlatform.js
// Copyright © 2016-2021 <NAME>. All rights reserved.
//
// Homebridge plugin for Sonos ZonePlayer.
'use strict'
const events = require('events')
const homebridgeLib = require('homebridge-lib')
const ZpHousehold = require('./ZpHousehold')
const ZpAccessory = require('./ZpAccessory')... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports["default"] = void 0;
var _inheritsLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/inheritsLoose"));
var _extends2 = _interopRequireDefault(require("@babel/runtime/he... |
'use strict';
var LocalStrategy = require('passport-local').Strategy;
var FacebookStrategy = require('passport-facebook').Strategy;
var TwitterStrategy = require('passport-twitter').Strategy;
var GoogleStrategy = require('passport-google-oauth').OAuth2Strategy;
// var db = require('../db.js');
var user... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.LoginModal = void 0;
require("antd/lib/modal/style");
var _modal = _interopRequireDefault(require("antd/lib/modal"));
require("antd/lib/row/style");
var _row = _interopRequireDefault(require("antd/lib/row"));
require("antd/lib/... |
const {Jimp,Color,Math,Pointer2D} = require('../../Utils');
const Interpreter = require('./Interpreter');
// cycles for hues and shades
const HUES = ['red','yellow','green','cyan','blue','magenta'];
const SHADES = ['light','normal','dark'];
const DIRS = Pointer2D.DIRS;
// colors, with the [*hue,*shade] pointers
con... |
var childProcess = require('child_process');
var phantomjs = require('phantomjs-prebuilt');
var path = require('path');
var fs = require('fs');
var npm = require('npm');
var semver = require('semver');
var async = require('async');
var browserify = require('browserify');
var electronPackager = require('electron-package... |
import fetch from '../core/fetch';
import {getPathValue} from '../action-reducer/helper';
import message from 'antd/lib/message';
import { Action } from '../action-reducer/action';
import upload from '../standard-business/upload';
/**
* 功能:设置fetch的选项
*/
const postOption = (body, method = 'post') => {
return {
... |
/*
* @Author: <NAME>
* @Github: https://github.com/cat-walk
* @Date: 2019-12-07 17:42:20
* @LastEditors: <NAME>
* @LastEditTime: 2019-12-10 01:58:14
* @Description: file content
*/
import React, { PureComponent } from 'react';
import { Link } from 'react-router-dom';
import {
Table,
message,
Button,
Inpu... |
import React, {Component} from 'react';
import {Scrollbars} from 'react-custom-scrollbars';
import PropTypes from 'prop-types';
// import {SpringSystem} from 'rebound';
import Rebound from 'rebound';
class DynamicVirtualizedScrollbar extends Component {
constructor(props) {
super(props);
// Set initial elements t... |
'use strict';
const DEBUG = 0;
const ENABLE_TRUNC = 0;
const fs = require('fs');
const path = require('path');
const cp = require('child_process');
const O = require('../omikron');
if(!O.isElectron) return;
const config = require('../config');
const nodeCanvas = require('../canvas');
const logSync = req... |
import React from 'react';
import PropTypes from 'prop-types';
import uniqueId from 'lodash/uniqueId';
import { findDOMNode } from 'react-dom';
import MuiInput from '@material-ui/core/Input';
import MuiInputLabel from '@material-ui/core/InputLabel';
import MuiInputAdornment from '@material-ui/core/InputAdornment';
impo... |
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright 2002-2010 Sun Microsystems Inc. All Rights Reserved
*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the License). You may not use this file except in
* compliance with the L... |
import React, { useState, useEffect } from 'react';
import { useLocation } from 'react-router-dom';
import PropTypes from 'prop-types';
import BigNumber from 'bignumber.js';
import styled from 'styled-components';
import { WalletContext } from 'utils/context';
import {
AntdFormWrapper,
DestinationAddressMulti,
... |
var config;
// Check if config file exists
try {
config = require('./config.js');
} catch(e) {
console.error('It looks like you don\'t have the config file...');
console.error('We cant start the car without any keys now can we?');
process.exit();
}
var application_root = __dirname,
express = r... |
import React, {PureComponent} from 'react';
import { Table, Card, Badge, Layout, message, Modal, Button} from 'antd';
import PageHeaderLayout from '../../../layouts/PageHeaderLayout';
import Pagination from './../../../components/Pagination/Index'
import DefaultSearch from './Search'
import Sider from './../EmptySider... |
// (c) Ed.E 2020
// Window focus checking n things
var windowFocused = true;
window.onblur = function(){
windowFocused = false;
}
window.onfocus = function(){
windowFocused = true;
}
// Array extention
var arrayMove = (arr, old_index, new_index) => {
if (new_index >= arr.length) {... |
import {
SVGIcon,
} from '@tonic-ui/react';
const routes = [
{
title: 'Getting Started',
icon: 'list-open',
path: 'getting-started',
routes: [
{ title: 'Installation', path: 'getting-started/installation' },
{ title: 'Usage', path: 'getting-started/usage' },
{ title: 'Migration Fr... |
import React, { Component } from "react";
import { Typography, withStyles } from "@material-ui/core";
import PropTypes from "prop-types";
import notifications from "../../../../../../stores/notifications";
import Bigneon from "../../../../../../helpers/bigneon";
import Divider from "../../../../../common/Divider";
imp... |
////////////////////////////////////////////////////////////////////////////////
//
// @file imcomp.js
// @description Image comparator user interface maintainers and handlers
// @author <NAME> <<EMAIL>>
// @date 11 July 2018
//
////////////////////////////////////////////////////////////////////////... |
'use strict';
var HashTable = require('./index.js');
var Node = { crypto: require('crypto') };
function Assert(description, a, b) {
var x = a;
var y = b;
if (x === y) return;
throw new Error(description + ': ' + x + ' !== ' + y);
}
// Log result and value of each operation (slow):
var Debug = false;
functi... |
import { isNullOrUndefined, addClass, createElement, append, EventHandler, extend, remove } from '@syncfusion/ej2-base';
import { ListBase } from '@syncfusion/ej2-lists';
import { ViewBase } from '../renderer/view-base';
import * as util from '../base/util';
import * as cls from '../base/css-constant';
import * as even... |
var express = require('express');
var router = express.Router();
router.post('/', function(req, res, next) {
const sgMail = require('@sendgrid/mail')
sgMail.setApiKey(process.env.SENDGRID_API_KEY)
const msg = {
to: '<EMAIL>', // Change to your recipient
from: '<EMAIL>', // Change to your verif... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.