text
stringlengths
3.22k
29.5k
import { arr, Path } from 'lively.lang'; import { fuzzyParse, query, stringify } from 'lively.ast'; import { resource } from 'lively.resources'; // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- // injecting the import into a module // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- /* The injector ...
window.requestAnimationFrame = function() { return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.msRequestAnimationFrame || window.oRequestAnimationFrame || function(f) { window.setTimeout(f,1); ...
'use strict'; const path = require('path'); const webpack = require('webpack'); const threadLoader = require('thread-loader'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const CopyWebpackPlugin = require('copy-webpack-plugin'); const FriendlyErrorsPlugin = require('friendly-errors-webpack-plugin'); cons...
/** * @category saltcorn-builder * @module components/storage * @subcategory components */ import React, { Fragment } from "react"; import { Element } from "@craftjs/core"; import { Text } from "./elements/Text"; import { Field } from "./elements/Field"; import { Empty } from "./elements/Empty"; import { Columns, ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _react = _interopRequireDefault(require("react")); var _reactDom = _interopRequireDefault(require("react-dom")); var _styledComponents = _interopRequireWildcard(require("styled-components")); var _utils = r...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _extends2 = require('babel-runtime/helpers/extends'); var _extends3 = _interopRequireDefault(_extends2); var _objectWithoutProperties2 = require('babel-runtime/helpers/objectWithoutProperties'); var _objectWithoutProperties3 = _inte...
/* eslint-env mocha */ /* eslint prefer-arrow-callback: "off" */ 'use strict'; const assert = require('bsert'); const FullNode = require('../lib/node/fullnode'); const NodeClient = require('../lib/client/node'); const KeyRing = require('../lib/primitives/keyring'); const util = require('../lib/utils/util'); const po...
import React, { useContext } from 'react' import { useQuery } from '@apollo/react-hooks' import gql from 'graphql-tag' import utils from '../../../js/utils' import PercentDifference from '../../utils/PercentDifference' import Link from '../../../components/Link' import { DataFilterContext } from '../../../stores/data...
import { DEFAULT_PROFILE, NAME_LOOKUP_PATH } from './constants.esm.js'; import { nextHour, InvalidStateError, getGlobalObject, Logger, MissingParameterError, isLaterVersion, fetchPrivate, LoginFailedError, BLOCKSTACK_DEFAULT_GAIA_HUB_URL } from '@stacks/common'; import { AppConfig } from './appConfig.esm.js'; import { ...
/** * Copyright Zendesk, Inc. * * Use of this source code is governed under the Apache License, Version 2.0 * found at http://www.apache.org/licenses/LICENSE-2.0. */ import React, { Children, cloneElement, isValidElement } from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; i...
/** reporting functions * @module mws-advanced */ const { promisify } = require('util'); const fs = require('fs'); const errors = require('../errors'); /** * Promisified version of fs.writeFile * We like to use Promises. writeFile does not come in a Promise variant, currently. * Use util/promisify to make it wor...
//百度地图选取点 (function ($, window, document, undefined) { //配置参数 var defaults = { docallback: null, initcallback:null, hidelm: "", isout:false, serverurl: "http://127.0.0.1:5000/api/district" }; var AreaSelect = function (element, options) { //全局变量 var o...
import { drizzleConnect } from 'drizzle-react' import React from "react"; import axios from "axios"; import PropTypes from 'prop-types' // @material-ui/core components import withStyles from "@material-ui/core/styles/withStyles"; import InputLabel from "@material-ui/core/InputLabel"; import Input from "@material-ui/co...
class Simulation { constructor(simConfig){ //dom variables saved for quick look up this.simID = simConfig.simID; let sim = document.getElementById(this.simID); this.canvasID = sim.querySelector('.canvas').id; this.chartID = sim.querySelector('.chart').id; this.canvas...
import { Component } from 'preact'; import { Layout, Row, Col, Space, Typography, Divider, Select, Spin, Switch, Button } from 'antd'; import { EditOutlined, UndoOutlined, CheckOutlined } from '@ant-design/icons' import VolumeBox from '../../components/volumebox'; import SceneBox from '../../components/scenebox'; impo...
//import the config.json file const config = require(`${process.cwd()}/botconfig/config.json`) var ee = require(`${process.cwd()}/botconfig/embed.json`); var emoji = require(`${process.cwd()}/botconfig/emojis.json`); var { MessageEmbed, Permissions } = require(`discord.js`); const { databasing, delay } = require(`$...
const Discord = require("discord.js"); const express = require('express'); const app = express(); app.get("/", (request, response) => { const ping = new Date(); ping.setHours(ping.getHours() - 3); console.log(`Ping recebido às ${ping.getUTCHours()}:${ping.getUTCMinutes()}:${ping.getUTCSeconds()}`); response.sen...
// Insert per-day subscription counts into analytics.perdays collection // Usage: // mongo <address>:<port>/<database> <script file> -u <username> -p <password> try { var logDB = new Mongo("rs3/localhost").getDB("analytics"); var auth = JSON.parse(cat('./analyticsAuth.json')); logDB.auth(auth); var scriptStar...
"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })...
import React from 'react'; import { storiesOf } from '@storybook/react'; // import JSXAddon from 'storybook-addon-jsx'; import { AspectRatio } from '../index'; import '../../aspect-ratio.css'; import '../../theme.css'; // setAddon(JSXAddon); const PageTitle = () => ( <div className="page__title"> <h1 classNam...
import { uniques, isGptPubadsDefined, getHighestCpm, adUnitsFilter, groupBy } from './utils'; import { config } from './config'; import { NATIVE_TARGETING_KEYS } from './native'; const bidmanager = require('./bidmanager'); const utils = require('./utils'); var CONSTANTS = require('./constants'); var targeting = export...
"use strict"; function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (...
import * as React from 'react'; import Dropzone from 'react-dropzone'; import { CircularProgress, List, ListItem, ListItemText, ListItemIcon, Dialog, DialogTitle, DialogContent, DialogActions, Button, Typography, } from '@material-ui/core'; import { CheckCircle, Error, QuestionAnswerOutlined } fro...
let playerIdentifier = "" window.addEventListener('message', function(event) { if (event.data.civilianresults){ $('.tbody-result-users').remove(); $('.all-found-users').append($('<tbody class="tbody-result-users">')); event.data.civilianresults.forEach(function(user){ $('.tbody...
/* Copyright (c) Django Software Foundation and individual contributors. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, ...
const pt = { message: { new_connection: 'Nova Conexão', refresh_connection: 'Atualizar', edit_connection: 'Editar Conexão', del_connection: 'Deletar Conexão', close_connection: 'Encerrar Conexão', add_new_line: 'Adicionar nova linha', redis_version: 'Versão do Redis', process_id: 'ID d...
// The MIT License (MIT) // Copyright (c) 2018 thixpin // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modif...
"use strict"; var __assign = (this && this.__assign) || function () { __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]; ...
/** * @file plugins * @author jinzhan, zttonly */ const path = require('path'); const {getDebugLogger} = require('san-cli-utils/ttyLogger'); const {reloadModule} = require('../utils/module'); const PluginManager = require('../api/PluginManager'); const cwd = require('./cwd'); const widgets = require('./widgets'); co...
"use strict"; /** * @module opcua.transport */ // system requires const assert = require("node-opcua-assert").assert; const net = require("net"); const _ = require("underscore"); const util = require("util"); // opcua requires const BinaryStream = require("node-opcua-binary-stream").BinaryStream; // this module...
var table; //遮罩层覆盖区域 var $wrapper = $('#div-table-container'); var columnsSetting = [{"data":null, "render":function(data, type, full, meta){ return checkboxHmtl(data.username+'-'+data.realName,data.userId,"selectUser"); }}, {"data":"userId"}, {"data":"username"}, {"data":"realName"}, {"data":"...
const D3Node = require("d3-node"); const { colours } = require("./theme"); module.exports = (data) => { console.log("Generating vaccinations projected chart"); const options = { selector: "#projected-vaccinations", container: '<div id="container"><div id="projected-vaccinations"></div></div>', }; ...
import _mergeJSXProps from 'babel-helper-vue-jsx-merge-props'; import _defineProperty from 'babel-runtime/helpers/defineProperty'; import _extends from 'babel-runtime/helpers/extends'; import omit from 'omit.js'; import VcMenu, { Divider, ItemGroup, SubMenu } from '../vc-menu'; import PropTypes from '../_util/vue-type...
/** * @coreapi * @module params */ /** for typedoc */ import { extend, filter, map, allTrueR } from '../common/common'; import { prop } from '../common/hof'; import { isInjectable, isDefined, isString, isArray, isUndefined } from '../common/predicates'; import { services } from '../common/coreservices'; import { Par...
var array_elements = [], translator_tab = null, translator_window = null; function isEmpty(obj) { return Object.keys(obj).length === 0; } function inObject(hayStack, el) { for (var i of Object.keys(hayStack)) { if (hayStack[i] == el) return true; } return false; } function getTranslationUrl(lang, text) {...
var cls = require('./lib/class') _ = require('underscore'); var fs = require('fs'); var file = require('../../shared/js/file'); var path = require('path'); var Utils = require('./utils'); var Checkpoint = require('./checkpoint'); var Map = cls.Class.extend({ init: function (filepath) { var self = this;...
"use strict"; const Web3EthContract = require("web3-eth-contract"); const BigNumber = require("bignumber.js"); const Utils = require("../../../utils"); const ERC20Abi = require("../../../abi/erc20.json"); const MasterV2Abi = require("./abi/masterv2.json"); module.exports = class bakery { constructor(priceOracle, ca...
/* global Flash */ import Service from '../services/repo_service'; import Store from '../stores/repo_store'; import '../../flash'; const RepoHelper = { getDefaultActiveFile() { return { active: true, binary: false, extension: '', html: '', mime_type: '', name: '', plain:...
import { PolymerElement, html } from "@polymer/polymer/polymer-element.js"; function truthy(val) { if (/^\s*(true|1|on|yes|y)\s*$/i.test(val)) { return true; } if (/^\s*(false|0|off|no|n)\s*$/i.test(val)) { return false; } return null; } /** * `polymer-element` * Sample element ...
const path = require('path') // eslint-disable-next-line const PLUGIN_PATH = process.env.CE_COREPLUGINS || './plugins' const webpack = require('webpack') // eslint-disable-next-line const glob = require('glob') const uglifyjs = require('uglify-js') // eslint-disable-next-line const expose = require('expose-loader') con...
/** * The built in HTMLElement type. Used to define DOM compatible nodes of Element type. * @typedef HTMLElement */ /** * React's internal simulated event type. Exposes further properties for ease of development. * @typedef ReactEvent */ /** * @callback DialogPromise * @param {DialogData} dialog - Data from t...
let modInfo = { name: "My Experience Tree Rebuilt", id: "fullreset", author: "alez", pointsName: "points", modFiles: ["layers.js", "tree.js"], discordName: "alez's server", discordLink: "https://discord.gg/bgMT9gmygZ", initialStartPoints: new Decimal (5), // Used for hard resets and new players offlineLimit: ...
var fs = require('fs'); var $ = require('jquery'); var _ = require('underscore'); var Backbone = require('backbone'); var UIConfig = require('../../../../config/ui.json'); var marked = require('marked'); var MarkdownEditor = require('../../../../components/markdown_editor'); var TagFactory = require('../../../../compon...
/* eslint-disable no-process-exit */ /* eslint-disable @typescript-eslint/no-var-requires */ const { app, dialog, BrowserWindow, ipcMain } = require("electron"); const log = require("electron-log"); const greenworks = require("./greenworks"); const api = require("./api-server"); const gameWindow = require("./gameWindow...
import { S as SUPPORT, C as ConfigResolverMap, _ as _objectSpread2, a as _defineProperty, t as toDomEventType, i as isTouch, b as touchIds, E as EngineMap, c as chain, d as toHandlerProp } from './actions-fd032a26.esm.js'; import './maths-b2a210f4.esm.js'; function _objectWithoutPropertiesLoose(source, excluded) { i...
/* eslint-disable react/prop-types, react/jsx-handler-names */ import React from 'react'; import PropTypes from 'prop-types'; import Select from 'react-select'; import { withStyles } from '@material-ui/core/styles'; import Typography from '@material-ui/core/Typography'; import NoSsr from '@material-ui/core/NoSsr'; imp...
/** @description Determines the distance between two points * @param {number} x0 Vertex 0 x * @param {number} y0 Vertex 0 y * @param {number} x1 Vertex 1 x * @param {number} y1 Vertex 1 y * @return {number} */ import {toFixedFloat, fAbs} from './math.js'; import {EPSILON} from '../constants'; export functio...
#!/usr/bin/env node 'use strict'; const debug = require('debug')('npminstall:bin:install'); const co = require('co'); const npa = require('npm-package-arg'); const chalk = require('chalk'); const path = require('path'); const util = require('util'); const execSync = require('child_process').execSync; const fs = requi...
import { initAutoUpdate } from './lib/appUpdater' const { app, dialog, ipcMain, protocol, shell, BrowserWindow, session } = require('electron') const path = require('path') const os = require('os') const fs = require('fs') const Keychain = require('./lib/keychain') const { initMenu, contextMenu } = require('./lib/menu'...
import React, { useState } from "react"; import { Link, graphql, useStaticQuery } from "gatsby"; import Image from "gatsby-image"; import { ButtonLight } from "../../styles/buttons/ButtonStyles"; import { FaHome, FaHandsHelping, FaBook } from "react-icons/fa"; import { BsFillPeopleFill, BsCalendar } from "react-icons/...
var SPEED_SEGMENTS = 1; var STRESS_SEGMENTS = 2; var POWER_SEGMENTS = 3; var SPEED_LIMIT_LVL_1 = 5; var SPEED_LIMIT_LVL_2 = 12; var SPEED_LIMIT_LVL_3 = 24; var SPEED_LIMIT_LVL_4 = 30; var SPEED_COLOR_LVL_1 = "#c7e9c0"; var SPEED_COLOR_LVL_2 = "#a1d99b"; var SPEED_COLOR_LVL_3 = "#74c476"; var SPEED_COLOR_LVL_4 = "#31...
// Copyright 2013 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. GEN('#include "chrome/browser/ui/webui/identity_internals_ui_browsertest.h"'); /** * Test C++ fixture for downloads WebUI testing. * @constructor * @e...
let filelist = []; let autorun = ''; ace.config.set('basePath', 'https://cdnjs.cloudflare.com/ajax/libs/ace/1.4.12'); let editor = ace.edit('editor'); editor.setShowPrintMargin(false); editor.session.setMode('ace/mode/javascript'); let new_prog_btn = document.getElementById('new_prog'); let open_prog_btn = document....
/** * Copyright 2015 Shape Security, Inc. * * 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.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
var rating = 0; var slider = document.querySelectorAll(".range-slider"); // Update the current slider value (each time you drag the slider handle) for(var i = 0; i < slider.length; i++) { output_id = slider[i].getAttribute("output") document.getElementById(output_id).innerHTML = "Drag the slider to change your ra...
/* Copyright (C) 1999 <NAME> <<EMAIL>> * Version: 1.0 * LastModified: Dec 25 1999 * This library is free. You can redistribute it and/or modify it. */ // -- <NAME> Copyright 1999 "free" // modified to add support for Binary for Narwhal: // -- kriskowal <NAME> Copyright (C) 2009-2010 MIT License // -- cadorn <NAM...
import React, { useCallback, useState, useRef, useMemo, useEffect, useContext } from 'react'; import ReactDOM from 'react-dom'; import cnames from 'classnames'; import PropTypes from 'prop-types'; import { useSelect } from 'downshift'; import { usePopper } from 'react-popper'; import { RemoveScroll } from 'react-remove...
google.load("swfobject", "2.1"); google.load("jquery", "1.4.2"); var INITIAL_VID_THUMBS = 5; function _run() { loadPlayer(); } function loadPlayer() { currentVideoId = "_2c5Fh3kfrI"; var params = { allowScriptAccess: "always" }; var atts = { id: "ytPlayer", allowFullScreen: "true" }; swfob...
class Districts { static SchleswigHolstein() { return [ "Flensburg", "Kiel", "Lübeck", "Neumünster", "Dithmarschen", "Herzogtum Lauenburg", "Nordfriesland", "Ostholstein", "Pinneberg", "Pl...
// '#d00000','#f94144','#f8961e','#ffd400','#90be6d','#43aa8b','#4d908e','#577590','#355070','#0077b6','#00b4d8','#4cc9f0'], var dict_colors = { 'Financing for Entrepreneurs': "#d00000", 'Governmental Support and Policies':"#f94144", 'Taxes and Bureaucracy':"#f8961e", 'Governmental Programs':"#ffd400", 'Basi...
const { randomBytes } = require('crypto') const { inspect } = require('util') const test = require('ava') const fakeTimers = require('@sinonjs/fake-timers') const KSUID = require('..') const clock = fakeTimers.install({ now: 14e11, toFake: ['Date'] }) test.serial('created with the current time', t => { const x = K...
"use strict"; /**! * @module calculate * @file Advanced calculations. * @description This module calls algorithms implemented in `algorithm` while * interacting with the program interface to gather data, perform calculations * and display results. */ /** * Initialize calculation controls. * @function initCal...
const fs = require("fs"); const path = require("path"); const cp = require("child_process"); const glob = require("glob"); const fse = require("fs-extra"); const gulp = require("gulp"); const sassdoc = require("sassdoc"); const baka = require("@joneff/baka"); const merge = require('lodash.merge'); const { parse } = re...
const serveStatic = require('serve-static') const favicon = require('serve-favicon') const compression = require('compression') const path = require('path') const Promise = require('bluebird') // const fs = Promise.promisifyAll(require('fs')) const fs = require('fs-extra') const url = require('url') const reque...
import React, { useState, useReducer } from 'react'; import { useRouter } from 'next/router'; import Grid from '@material-ui/core/Grid'; import FormRenderer from '@data-driven-forms/react-form-renderer/dist/cjs/form-renderer'; import { makeStyles } from '@material-ui/core/styles'; import Snackbar from '@material-ui/cor...
import React, { Component } from 'react' import PropTypes from 'prop-types' import { connect } from 'react-redux' import { bindActionCreators } from 'redux' import Typography from '@material-ui/core/Typography' import { Link } from 'react-router-dom' import actions from './actions' import Scheme from './components/Sche...
const { OptionalValueFeature, BaseSubsetValidationFeature, GeneratorOptionCleanFeature, SchemaInstanceValidationFeature, SchemaValidationResultCacheFeature } = require('../features') const _startsWith = Symbol('starts with') const _endsWith = Symbol('ends with') const _contains = Symbol('contains') const _optional = O...
/* Copyright Fujitsu Corp. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ $(function () { $("input").val("") $("#select-paging").val(10) var historyParam, historyKeyName; historyParam = location.search historyKeyName = historyParam.slice((historyParam.indexOf("=") + 1), historyPara...
"use strict"; var canvas = document.getElementById('gameCanvas'); var SCREEN_HEIGHT = 20; // number of Tetris blocks that fit on screen var SCREEN_WIDTH = 10; var xSize = canvas.width / SCREEN_WIDTH; // size of blocks var ySize = canvas.height / SCREEN_HEIGHT; // blocks: each element represents a rotation of the pi...
const DataModule = require('./dataModule'), fs = require('fs'), EventEmitter = require('events'); class PermissionsModule extends EventEmitter { constructor(dataPath, settingsPath) { super(); if(!dataPath || !settingsPath) throw new Error('Cannot instantiate the Utility without a Data directory pat...
/** * Projective texturing using Canvas. * * Copyright (c) 2008 <NAME> (www.acko.net) * Licensed under the MIT license, see LICENSE_PROJECTIVE. */ var points = [ [100, 100], [200 + Math.random() * 200, 100], [100, 200 + Math.random() * 200], [200 + Math.random() * 200, 200 + Math.random() * 200] ]; var o...
/** * mux.js * * Copyright (c) Brightcove * Licensed Apache-2.0 https://github.com/videojs/mux.js/blob/master/LICENSE * * Reads in-band CEA-708 captions out of FMP4 segments. * @see https://en.wikipedia.org/wiki/CEA-708 */ import { discardEmulationPreventionBytes } from '../tools/caption-packet-parser'; import ...
import GenericResolver from 'api/resolver/generic/genericResolver' import ReactDOMServer from 'react-dom/server'; import JsonDom from '../components/JsonDom' import React from 'react' import Util from 'api/util' import ClientUtil from 'client/util' import {getCmsPage} from '../util/cmsPage' import {resolveData} from '....
/* * grunt-ngdocs * https://github.com/m7r/grunt-ngdocs * * Copyright (c) 2013 m7r * Licensed under the MIT license. */ var reader = require('../src/reader.js'), ngdoc = require('../src/ngdoc.js'), path = require('path'), vm = require('vm'); var repohosts = [ { re: /https?:\/\/github.com\/([^\/]+\...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _LookupTableWidget = require('PVWStyle/ReactWidgets/LookupTableWidget.mcss'); var _LookupTableWidget2 = _interopRequireDefault(_LookupTableWidget); var _C...
//CD: 11/10/2020 Updates: //CD: 27/10/2020 - refactor // New section that extract propperties to a diction (img id) use this to catalog images as final deliverable // Sort on CLOUD_COVER_LAND // To Do: filter collection on study area cloud cover // Note: this code is the reference code. // New Code Deployed t...
var SessionLock = require('./SessionLock.js'); var Crypto = require('./crypto.js'); var SessionRecord = require('./SessionRecord.js'); var ChainType = require('./ChainType.js'); var BaseKeyType = require('./BaseKeyType.js'); var util = require('./helpers.js'); function SessionBuilder(storage, remoteAddress) { this.r...
const {app, BrowserWindow, ipcMain} = require('electron'); const os = require('os'); const path = require('path'); const fs = require('fs'); const crypto = require('crypto'); const rootPath = path.dirname(__dirname); let win; let iconPath = rootPath + '/client/images/icons'; function createWindow() { // Create the ...
var secrets = require('../config/secrets'); var Event = require('../models/event'); var User = require('../models/user'); module.exports = function (router) { var homeRoute = router.route('/'); homeRoute.get(function (req, res) { var connectionString = secrets.token; res.json({ message: 'My connection s...
/// <reference path="../../js/jquery-2.1.0-vsdoc.js" /> var departing = null; var arrival = null; var mode = null; $(document).ready(function () { //init date var now = new Date(); $("#departing_date").val(parse_date(now).substr(0, 10).replace('/', '-').replace('/', '-')).change() var HOURS = now.get...
'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 (...
//////////////////////////////////////////////////////////////////////////// // // Copyright 2016 Realm Inc. // // 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.org/li...
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } f...
var margin2 = { top: 20, right: 210, bottom: 50, left: 70 }, outerWidth = 1050, outerHeight = 500, width = outerWidth - margin2.left - margin2.right, height = outerHeight - margin2.top - margin2.bottom; var x2 = d3.scale.linear() .range([0, width]).ni...
//尝试外网提交develop import React, { Component } from 'react'; import { withRouter } from 'dva/router'; import { TabBar } from '../../components'; import { connect } from 'dva'; import { Toast } from 'antd-mobile'; import axios from 'axios'; import { baseURL } from '../../utils/ajax'; import count from '../../utils/count'; ...
/** * @fileoverview BoundsBaseCoordinateModel is data model for mouse event detector of bounds type. * @author <NAME>. * FE Development Lab <<EMAIL>> */ 'use strict'; /** * position * @typedef {{left: number, top: number}} position * @private */ /** * bound * @typedef {{ * dimension: {width: ...
/* The MIT License (MIT) Copyright (c) 2016-2018 abalabahaha Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _MapSourceModule = _interopRequireDefault(require("@aerisweather/javascript-sdk/dist/modules/MapSourceModule")); var _utils = require("@aerisweather/javascript-sdk/dist/utils"); var _units = require("@aerisw...
"use strict"; var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; /** * A better font loading using...
var util = require('util'); var events = require('events'); var Logger = require('../../util/logger.js'); var Utils = require('../../util/utils.js'); /*! * Base class for waitForElement commands. It provides a command * command method and element* methods to be overwritten by subclasses * * @constructor */ functi...
const Discord = require("discord-user-bots"); const client = new Discord.Client("Token goes here."); // Fetches messages from Discord client.fetch_messages( 100, // Amount of messages to get (Limit is 100) "794326789480120374", // Channel ID to fetch from "914533507890565221" // An offset when getting mess...
/* Save button */ function silentSave() { var allCMessages = document.getElementById('story').innerHTML; var toBeStringified = { level: level, experience: experience, health: health, maxHealth: maxHealth, stamina: stamina, maxStamina: maxStamina, damage: damage, yourWeapon: yourWeapon, yourArmor: yourArmor, b1C...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. const { ActivityTypes, TurnContext } = require('botbuilder'); const { DialogSet, TextPrompt, WaterfallDialog } = require('botbuilder-dialogs'); const DIALOG_STATE_PROPERTY = 'dialog_state'; const USER_PROFILE_PROPERTY = 'u...
/****************** * Job Information * by <NAME> * * This file will handle the different jobs that are available to the protagonist. * Jobs will eventually be created using rules also, but right now are handled by a * template. * * Jobs cover whenever the protagonist needs to go somewhere else, even within t...
require('styles/global.css'); require('styles/common.css'); require('styles/order.css'); require('styles/baseaddr.css'); require('styles/address2.css'); require('styles/header.css'); import React from 'react'; import app from '../../lib/app'; import dataService from '../../common/dataService'; import MyInput from '../p...
// control const STATUS_COMMAND = 0x00 const TIME_COMMAND = 0x01 const ON_TIME_COMMAND = 0x02 const OFF_TIME_COMMAND = 0x03 const VIDEO_COMMAND = 0x04 const AUDIO_COMMAND = 0x05 const RGB_COMMAND = 0x06 const PIP_STATUS_COMMAND = 0x07 const MAINTENANCE_COMMAND = 0x08 const SOUND_COMMAND = 0x09 const SERIALNU...
// convert time to military time let parseMilitaryTime = function (time) { let parsedTime = time.split(' ') parsedTime[0] = parsedTime[0].replace(':', '') let mTime = parseInt(parsedTime[0]) if (parsedTime[1] === 'PM' && parsedTime[0].substring(0, 2) !== '12') { mTime += 1200 } return mTime } // check ...
// // mediasoup_sample // https://github.com/mganeko/mediasoup_sample // mediasoup_sample is provided under MIT license // // This sample is using https://github.com/versatica/mediasoup // 'use strict'; const SSL_KEY = 'cert/server.key'; const SSL_CERT = 'cert/server.crt'; const fs = require('fs'); var options ...
var mainType = {} var dataTree = {} var theT1Data = {} var homeShowItem = {} var maxVal=0 var minVal=999999999 var Leaflet_Marker = [] function switchMarkerStyle(a,b){ Leaflet_Markers[a].setStyle({fillColor:"#000"}); Leaflet_Markers[b].setStyle({fillColor:"#FFC549"}); $("#listSeq_"+a).css({"background...
'use strict'; const storage = require('./storage'); const clone = require('clone'); var rCar0, rCar1, rCar2, rCars; var rLaneOrder = [0, 1, 2]; var rTrackLength = 0; var rTimeThreshold = 40; // percentage of single lap time to calculate cutoff var rSpeedThreshold = 5; // speed in m/s to calculate cutoff var rTimeCuto...