text
stringlengths
3.22k
29.5k
import React from 'react'; //import EventCard from './EventCard'; import { makeStyles } from '@material-ui/core/styles'; import Card from '@material-ui/core/Card'; import Container from '@material-ui/core/Container'; import CardActionArea from '@material-ui/core/CardActionArea'; import CardActions from '@material-ui/co...
import { AuthingGuard as AuthingGuard$1, GuardEventsCamelToKebabMap } from '@authing/native-js-ui-components'; export { GuardMode, GuardScenes, LoginMethods, RegisterMethods, getAuthClient, initAuthClient } from '@authing/native-js-ui-components'; import '@authing/native-js-ui-components/lib/index.min.css'; function _...
'use strict'; var plot = new Plotter({ base: 'plot', aspectRatio: 1 }); function computeMagnitudes (Er, Ei, x1, x2, k) { var ck0x1 = Math.cos(k[0] * x1); var sk0x1 = Math.sin(k[0] * x1); var ck1x1 = Math.cos(k[1] * x1); var sk1x1 = Math.sin(k[1] * x1); var ck1x2 = Math.cos(k[1] * x2); var sk1x2 = Math...
var firebase = require('firebase'); // Server requirements var ERROR_CODE = 1; var config = {}; var manage = {}; start() function start() { loadConfig(); validateConfig(); if (config.testType !== "None") { manage.test = require('./tests/' + config.testType); } else { manage.test = { accuracy: function ac...
/* * (C) 2016 * <NAME>, All rights reserved * Powered by InnoVision, created by the GIAT * * Endpoint.js was developed at the * National Geospatial-Intelligence Agency (NGA) in collaboration with * <NAME> [http://www.boozallen.com]. The government has * "unlimited rights" and is releasing this software t...
const WebSocket = require("ws"); const express = require("express"); const fs = require("fs"); var https = require("https"); const stripJsonComments = require("strip-json-comments"); const { Console } = require("console"); var colors = require('colors'); const app = express(); const port = 80; console.clear(); var ga...
 // Represents a general two-dimensional vector (or point) function Vector({x, y}) { let _x = x; let _y = y; let _length; function getX() { return(_x); } function setX(newX) { _x = newX; } function getY() { return(_y); } function setY(newY) { ...
var fpath = require('path'); var fs = require('fs'); var path = require('path'); var COMMON = require('./routes_common'); var d3 = require("d3"); var xmldom = require('xmldom'); module.exports = { // // CREATE PIECHARTS HTML // create_piecharts_html: function( timestamp, res, mtx ) { var counts_pe...
import { deep_clone } from "../../util/index"; import { required } from '../rule' import _fetch from '../../util/fetch' export function handleFormConfig(formTitle,formConfig){ if(!formTitle){ return this.$message.error(`表单配置中缺少title字段`) } // 这些数据是要被返回data中作为响应式数据的 let formInline =...
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" ...
const exec = require("child_process").exec; const flow = require("lodash/flow"); const groupBy = require("lodash/groupBy"); const fs = require("fs"); // Basic functions, like creating or removing folders or loading JSON files. function asPromise(func, path, data, options, errMsg = "", processOut = arg => arg, pro...
const db = require("../models"); const Queue = db.queue; const Invoice = db.invoice; const PillStore = db.pillStore; const Prescription = db.prescriptions; const PillStorehouse = db.pillStorehouse; // Create queue exports.createQueue = (req, res, next) => { Queue.findOne({ name: "Invoice" }, async (err, queue) => { ...
// Var with array and object for questions var questions = [ { title: "Ch. 1: HTML/CSS/GIT - What does it mean to be a full-stack web developer?", choices: [ "Handles server systems", "Handles clients", "Developes the back-end", "Handles workflows of server systems and clients", ...
const mongoose = require('mongoose'); const moment = require('moment'); const auth = require('../middleware/auth'); const { User } = require('../models/user'); const { Photograph } = require('../models/photograph'); const { SpecialSkill } = require('../models/specialSkill'); const { CareerSummary } = require('../model...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } var graphql = require('graphql'); var express = _interopDefault(require('express')); var apolloServerExpress = require('apoll...
import React, { useState } from 'react'; import styled from 'styled-components'; /*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except i...
var WeekDays = Object.freeze({ "monday" : 1, "tuesday" : 2, "wednesday" : 3, "thursday" : 4, "friday" : 5, "saturday" : 6, "sunday" : 7 }); function MailBox() { this.operator = ""; this.brand = ""; this.ref = ""; // Holds an of WeekDayCollectionTimes objects OR [] this.w...
const axios = require('axios') const https = require('https') require("dotenv").config(); const CURSOS = require("./cursos.json") let USERNAME = '' const REPOSITORIO = 'dio-cursos' const LABELS = [{ name: 'Básico', color: 'B60205' }, { name: 'Intermediário', color: 'FBCA04' ...
import { csvParseRows } from "d3-dsv"; import { scaleLinear } from "d3-scale"; import _ from "lodash"; import React, { Fragment } from "react"; import { declare_panel } from "src/panels/panel_declarations/common_panel_utils"; import { StdPanel, Col } from "src/panels/panel_declarations/InfographicPanel"; import { c...
import { all, getFile } from "../common.js"; //const omtex = ("\\displaylines{\\frac{x^{\\omspace{0}}}{x^{\\omspace{1}}} < x^{\\left(\\frac{\\omspace{2}}{\\omspace{3}}\\right)} < \\frac{x^{\\omspace{4}}}{x^{\\omspace{5}}} \\\\ \\omtile{0} \\omtile{1} \\omtile{2} \\omtile{3} \\omtile{4} \\omtile{5} \\omtile{6} \\omtile{...
import React, { useState, useRef, useEffect } from "react"; import * as log from "loglevel"; import debounce from "lodash/debounce"; import { css } from "linaria"; import { Mutation, withApollo } from "react-apollo"; import Button from "@material/react-button"; // queries import { ALL_NOTES, ADD_NOTE, ALL_NOTES_LOADED ...
import React, {Component} from 'react' import {gql, graphql} from 'react-apollo' import {compose} from 'redux' import {css} from 'glamor' import {sum, descending} from 'd3-array' import Router from 'next/router' import Loader from '../Loader' import {countFormat} from '../../lib/utils/formats' import withT from '../...
import * as acorn from './acorn.mjs' function isObj(obj) { return Object.prototype.toString.call(obj).match(/Object|Array/) } const dataMaps = new WeakMap();//自动剔除失效handlers class nextTickQue { constructor() { this.que=[] this.QueOfNextTick=new Set//nextTick自动去重 this.isActive=false }...
var paletteHeight = 20 function loadWhiteboard(img, mimeType) { var colors = ['#ffffff', '#000000', '#000088', '#008800', '#880000', '#888888', '#fefefe'] var paletteWidth = 80 var whiteboard = createWhiteboard() var c = whiteboard.getContext('2d') c.drawImage(img, 0, paletteHeight) ...
// this module initializes the blacklist, whitelist and console blacklist const jsl = require("svjsl"); const farmhash = require("farmhash"); const fs = require("fs-extra"); const settings = require("../settings"); const debug = require("./verboseLogging"); const packageJSON = require("../package.json"); const parseJo...
// window.onload = function () { // getStorageData(); // }; let qtdTotal = 0; let pod = {}; let prevMessageText = ""; getStorageData(); //messageCallData(); function messageCallData() { const message = { app: "start", }; chrome.runtime.sendMessage(message, function (response) { console.log("message ...
//Imported from https://github.com/rtoal/carlos-compiler/blob/11-strings/src/analyzer.js //TO DO: change import values below to specific types as stated in Midi-chlorian grammar. //Will also need to change object names within each function. import { Variable, Type, FunctionType, Function, ArrayType } from './ast.js' im...
const { expectRevert, time } = require('@openzeppelin/test-helpers'); const ethers = require('ethers'); const Holder = artifacts.require('Holder'); const UniswapV2Factory = artifacts.require('UniswapV2Factory'); const UniswapV2Pair = artifacts.require('UniswapV2Pair'); const UniswapV2Router02 = artifacts.require('Unis...
const {eventBus} = require('../eventBus.js'); const {Vue} = require('../vue.js'); const {settingsStore} = require('../settingsStore.js'); let buffer = { data () { return { screen: undefined, lineWraps: true, mode: 'normal', filters: [] }; }, beforeMount () { window.addEventL...
#!/usr/bin/env node /* jshint strict: true, node:true, browser:false */ 'use strict'; var fs = require('fs'); var path = require('path'); var under = require('underscore'); var commander = require('commander'); var moment = require('moment'); var common = require('./commontrans'); var AdmZip = require('adm-zip'); v...
/*===========================================================================*/ // Find Nearby Places // Sample map by ThinkGeo // // 1. ThinkGeo Cloud API Key // 2. Map Control Setup // 3. Reverse Geocoding Setup // 4. Point Details Popup Bubble // 5. Event Listeners // 6. ThinkGeo Map Icon Fonts // 7. ...
'use strict'; let uuids = {}; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = function (_ref) { var t = _ref.types; /* ========================================================================== * Utilities * ===============================================================...
const path = require('path'); const log = require('../../util/log'); const _ = require('../../util/utility'); const db = require('../../../common').db; const Mysql = require('../../dao/db/Mysql'); const NController = require('../../arch/NController'); const UserService = require('../../service/UserService'); const User...
/** Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const Exporter_1 = require("./Exporter"); const Project_1 = require("../Project"); const Architecture_1 = require("../Architecture"); const Options_1 = require("../Options"); const Icon = require("../Icon"); const fs = require("fs-extra"); con...
const {EventEmitter} = require('events'); const zookeeper = require('node-zookeeper-client'); const slogger = require('node-slogger'); const ip = require('ip'); const host = ip.address(); //zkServerHost, // sessionTimeout, // retries, // serverName, // serverPath, // masterTask, // nodeData, // ReConnectTime, ...
function SubmitForm(sPage, sTarget, bValidate, sConfirm, bFromOnClick, waitCfg) { if (typeof bSubmitFormAfterAjax != 'undefined'){ //10041 if (bSubmitFormAfterAjax){ setTimeout(function(){SubmitForm(sPage, sTarget, bValidate, sConfirm, bFromOnClick, waitCfg)},1000) return ...
'use strict'; const AsyncLock = require('async-lock'); const lock = new AsyncLock({ timeout: 2000 }); // nodeDefId must match the nodedef in the profile const nodeDefId = 'VEHSEC'; function delay(delay) { return new Promise(function(waitforit) { setTimeout(waitforit, delay); }); } module.exports = function(...
"use strict"; import '../utils/node-globals/global'; import svg2js from 'svgo/lib/svgo/svg2js'; import js2svg from 'svgo/lib/svgo/js2svg'; import JSAPI from 'svgo/lib/svgo/jsAPI'; import CSSClassList from 'svgo/lib/svgo/css-class-list'; import CSSStyleDeclaration from 'svgo/lib/svgo/css-style-declaration'; import plugi...
const Grid = require('./Grid'); const DataTable = require('../../../core/data/DataTable'); const { ʖɁ } = require('../../../utilities/global'); function getFullPath(path, name) { return (path ? path + '.' : '') + name; } const Operators = { EQUALS: { id: 'EQUALS', description: '=', toQueryObj: ({ fie...
const POPULAR = [ // { name: "Pastie", file: "../clean.css" }, // { name: "----", file: "", dark: true }, { name: "Grayscale", file: "grayscale.css" }, { name: "Mono Blue", file: "mono-blue.css" }, { name: "----", file: "", dark: true }, { name: "Dark", file: "dark.css", dark: true }, { nam...
/* * FuelConsumptionUnit.js - Unit conversions for fuel consumption measurements * * Copyright © 2014-2015, 2018 JEDLSoft * * 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...
const env = require('../../../mod/env'); const sql_filter = require('../../../mod/pg/sql_filter'); module.exports = fastify => { fastify.route({ method: 'GET', url: '/api/layer/cluster', preValidation: fastify.auth([ (req, res, next) => fastify.authToken(req, res, next, { public: true ...
// Copyright 2017 <NAME>, <NAME>, <NAME>, and <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.org/licenses/LICENSE-2.0 // // Unless required by appl...
import React from 'react'; import {Button, Select, Icon, Badge, Row, Col} from 'antd'; const Option = Select.Option; const ButtonGroup = Button.Group; import moment from 'moment-timezone'; import RUS from '../src/images/flags/RUS.png'; import EGY from '../src/images/flags/EGY.png'; import SAU from '../src/images/flags/...
"use strict"; //TODO: remove rimraf and mkdir now that you"re using fs-extra. var fs = require("fs-extra"), mkdir = require("mkdirp"), rimraf = require("rimraf"), less = require("less"), Handlebars = require("handlebars"), UglifyJS = require("uglify-js"), imageMagick = require("imagemagick"), ...
'use strict'; var TYPES = { 'undefined' : 'undefined', 'number' : 'number', 'boolean' : 'boolean', 'string' : 'string', '[object Function]': 'function', '[object RegExp]' : 'regexp', '[object Array]' : 'array', '[obj...
#!/usr/bin/env node import program from 'commander'; import * as dbus from '../index.js'; import fs from 'fs'; import Handlebars from 'handlebars'; import path from 'path'; import xml2js from '@frida/xml2js'; let parser = new xml2js.Parser(); const Message = dbus.Message; const { METHOD_RETURN, ERROR, SIG...
checked = false; function checkedall () { if (checked == false){checked = true}else{checked = false} for (var i = 0; i < document.getElementById('writeof-form').elements.length; i++) { document.getElementById('writeof-form').elements[i].checked = checked; } } function requestPoFn(val){ $.getJSON('product-deta...
#!/usr/bin/env node var david = require('../') var clc = require('cli-color-tty')() var Table = require('cli-table') var fs = require('fs') var path = require('path') var npm = require('npm') var argv = require('minimist')(process.argv.slice(2)) var xtend = require('xtend') if (argv.usage || argv.help || argv.h) { ...
// ISC License (ISC) // Copyright (c) 2021, Statsig, Inc. // Permission to use, copy, modify, and/or distribute this software for any purpose // with or without fee is hereby granted, provided that the above copyright notice // and this permission notice appear in all copies. // THE SOFTWARE IS PROVIDED "AS IS" AND T...
/* jshint node: true */ /* global $: true */ 'use strict'; /* FIXME/TODO: x css sourcemaps not working (they were not properly uploaded) x only upload changed files x switch to eslint * css reload seems to happen before upload is finished -> check again. fix is in upload-styles * allow multiple js fi...
/** * Daemon server * @module servers/daemon */ const path = require('path'); const fs = require('fs'); const os = require('os'); const ini = require('ini'); const net = require('net'); const uuid = require('uuid'); const EventEmitter = require('events'); const WError = require('verror').WError; const SocketWrapper ...
// Returns an array of functions to run with convert that each produce an image const getConvertOptions = (option, optionArgs) => { let allOptions = [] switch(option) { case 'adaptive‑blur': {} case 'adaptive‑resize': {} case 'adaptive‑sharpen': {} case 'adjoin': {} case 'affine': {} case '...
import PropTypes from "prop-types"; import React from "react"; import { FilterDiv, FilterWrapper, FilterHeadings, FilterInput, FilterLabel, FilterMessage, ClearAll, } from "./Filter.style"; const Filter = ({ content, list, setFilteredList }) => { const [filters, setFilters] = React.useState({ ...
const fs = require("fs"); const axios = require("axios"); const moment = require("moment"); const { Dataset } = require("./datasetModel"); /* production data */ const pathToData = "../data/"; const landkreiseFile = `${pathToData}landkreise.json`; /* test data */ //const pathToData = "v2data/"; //const landkreiseFile =...
import React, { Component, PropTypes } from 'react'; import { Row, Col, Label, Breadcrumb, Tooltip, Button, Select, Table, Message, Popconfirm, FormControl, InputGroup, Icon, Pagination } from 'tinper-bee'; import classnames from 'classnames'; import zhCN from 'rc-calendar/lib/locale/zh_CN'; import DatePicker from 'bee...
/* CC Final Author:<NAME> This sketch is a 12-key piano using oscillators and visually shows the waves on screen. The user can also record their song, auto-play a song, and change the sine wave of the oscllator */ /*variables for the piano*/ var whiteMIDI = [60, 62, 64, 65, 67, 69, 71]; // The midi not...
var isPad = (document.width?document.width:document.documentElement.clientWidth) >= 768; var isH5App = (navigator.standalone && (/iphone|ipod|ipad/gi).test(navigator.userAgent)); var isIOS = (/iphone|ipod|ipad/gi).test(navigator.userAgent); var isMobile = ((/iphone|ipod|ipad|android/gi).test(navigator.userAgent)); var ...
/* FTUI Plugin * Copyright (c) 2016 <NAME> <<EMAIL>> * originally created by <NAME>, * Under MIT License (http://www.opensource.org/licenses/mit-license.php) */ /* global ftui:true, Modul_volume:true */ "use strict"; function depends_settimer() { var ret = []; if (typeof window["Modul_volume"] === 'unde...
#!/usr/bin/env node const arg = require("arg"); const repl = require("repl"); const os = require("os"); const path = require("path"); const fs = require("fs"); const readline = require("readline"); const columnify = require("columnify"); const { parseScript } = require("shift-parser"); const { reduce } = require("shi...
import HorizontalSlideNavi from './HorizontalSlideNavi'; import { isDefined, isNotDefined, isNumber, isFunction, not, each, allOf, anyOf, truthy, best, pipeline, notSingleEle } from '../utils/util'; class SlideTab { constructor(options) { if (isNotDefined(options)) { throw new Error('require option object ...
"use strict"; /* globals JSCAGD */ /* globals THREE */ var baseFunctionsParameters = { radius: 1, resolution: 400, //seed: 'jhbjhbjh ' knotinsertmode: false, knotinsertindex: 0, newbasecolor: '#000000' }; var is3D = is3D || false; var BaseCurve = JSCAGD.ParametricCurve.create( function(c_geom, i...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.CLASS_NAME = exports.WrappedFileDropZoneRenderer = exports.FileDropZoneRenderer = undefined; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = prop...
const bodyParser = require("body-parser"); const crypto = require("crypto"); const ece = require("http_ece"); const express = require("express"); const fs = require("fs"); const getRawBody = require("raw-body"); const http = require("http"); const lockfile = require("proper-lockfile"); const path = require("path"); con...
const SERVERINFO = { SERVERIP: "https://TMTPVPserver.adsaf123.repl.co", PLAYERSETNICK: "playerSetNick", PLAYERJOINGAME: "playerJoinGame", PLAYERHOSTGAME: "playerHostGame", HOSTKICKPLAYER: "hostKickPlayer", HOSTSTARTGAME: "hostStartGame", PLAYERDOSOMETHING: "playerDoSomething", PLAYERGET...
/* eslint-disable */ import MilestoneService from '@/services/MilestoneService.js' import UtilityService from '@/services/UtilityService.js' import moment from 'moment' export const namespaced = true function predicateBy(prop) { return function(a, b) { if (a[prop] > b[prop]) { return 1 } else if (a[pr...
function removeAppended() { $("#append_started_date").remove(); $("#append_ended_date").remove(); $("#append_city_select").remove(); $("#append_district_select").remove(); $("#append_company_id").remove(); $("#append_company_name").remove(); $("#append_company_address").remove(); $("#app...
var currentHighlight; $( document ).ready(function() { var data = {}; getCurrentItems().then(function (jsondata) { //console.log("Getting current items..."); //console.log(JSON.stringify(data)); populateTabs(jsondata); displayExpirationData(jsondata); }); getHistorical...
var bqac2LayerUrl=''; var bqac2LstOffice=acc2; var bqac2LstToUse=bqac2LstOffice; var bqac2LstRole=[]; var bqac2LstBU=[]; var bqac2CtrlName='bqac2-auto-complete'; var bqac2OldByAttrib='Office'; var bqac2ByAttrib='Office'; (function () { if (typeof define==='function' && define.amd) define('bqACFcn', functio...
import _ from 'lodash'; import * as Colours from './Colours'; import { md5 } from './Md5'; /** * Formats a message. Adds bold, underline and colouring * @param {String} msg The message to format * @returns {String} The HTML formatted message */ const colourMatchRegexp = /^\x03(([0-9][0-9]?)...
const path = require('path') const webpack = require('webpack') const { VueLoaderPlugin } = require('vue-loader') const MiniCssExtractPlugin = require('mini-css-extract-plugin') const ProgressBarPlugin = require('progress-bar-webpack-plugin') const TimeFixPlugin = require('time-fix-plugin') const TerserPlugin = require...
import React, { Component } from 'react' import { connect } from 'react-redux' import { openDrawer } from '../../../actions/drawer' import { popRoute } from '../../../actions/route' import { Container, Header , Content, View, Text, Title ,Button, Icon , Thumbnail , Footer , Spinner } from 'native-base' import { Gr...
"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...
// TODO: the bend when the elements are close to each other (vertically or // horizontally) takes the center of each element as the distance to be divided // by two. It should take the distance between the edges of each element to be // divided by two. // // Imagine you have a wide element connecting to a slim elemen...
/** * moneyFormatter.js * Created by <NAME> 1/6/17 */ import Accounting from 'accounting'; import { max, min, mean } from 'lodash'; // convert monetary values to currency strings const accountingOptions = { symbol: '$', precision: 0, format: { pos: '%s%v', neg: '-%s%v', zero: '%...
var tb_position, current_spot, WPSetThumbnailHTML, WPSetThumbnailID, WPRemoveThumbnail; ;(function($){ $( document ).ready( function( ) { // If Tiny MCE fails to load we should just jump ship... if ( typeof window.tinyMCE === 'undefined' ) return; var bn = setPostThumbnailL10n.basename, // Widget base name ...
/** * Created by simon on 2015/4/20. * 全局公用js */ var showPopover = function () { $(this).popover('show'); } , hidePopover = function () { $(this).popover('hide'); }; $(function(){ /*ajax设置项*/ $.ajaxSetup({ headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-tok...
const express = require("express"); const router = express.Router(); const bodyParser = require("body-parser"); const jsonParser = bodyParser.json(); const { Task } = require("../models/taskModel"); const { User } = require("../models/userModel"); const { Family } = require("../models/familyModel"); // Authenticate...
import React from 'react'; import Link from "react-router-dom/es/Link"; import StarRatings from "react-star-ratings"; import SongService from "../Services/SongService"; import Modal from 'react-modal'; import UserService from "../Services/UserService"; import SpotifyService from "../Services/SpotifyService"; class Son...
/* * Copyright (c) 2020 MarkLogic Corporation * * 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 ...
import Utility from './Utility'; !(function () { let UtilityClass = new Utility(); UtilityClass._addPolyfills(); })(); function A11yMenu(navContainer, options) { this.menuBox = null; this.mobileToggleNavBtn = null; this.keys = Object.freeze({ tab: 9, enter: 13, esc: 27, space: 32, left: ...
/** * @file Hash Function. Support hash get function * @author zhangzhiqiang(<EMAIL>) */ /* eslint-disable fecs-valid-jsdoc, fecs-camelcase */ import event from './util/dom/event'; import css from './util/dom/css'; import Gesture from './util/gesture'; import platform from './util/platform'; import viewport from '...
/** * 根据经纬度计算两点之间的距离 * @export * @param {*} startPoint * @param {*} endPoint * @returns */ export function calculateLineDistance(startPoint, endPoint) { var d1 = 0.01745329251994329; var d2 = startPoint.lng || startPoint.longitude var d3 = startPoint.lat || startPoint.latitude var d4 = Number(endPoint.l...
/** * * ©2016-2017 EdgeVerve Systems Limited (a fully owned Infosys subsidiary), * Bangalore, India. All Rights Reserved. * */ var async = require('async'); var logger = require('oe-logger'); var log = logger('journal-entity'); var loopback = require('loopback'); var actorModelsMap = {}; var defaultOptions = { ...
/** * Publisher * * @app: Editor */ import React, {Component} from 'react' import Firebase from 'firebase' import Tapp from '../core' import {Toolbar, ToolbarGroup, ToolbarSeparator, ToolbarTitle} from 'material-ui/Toolbar' import DropDownMenu from 'material-ui/DropDownMenu' import MenuItem from 'material-ui/Men...
function getCoins(){ return [ { "id": "bitcoin", "name": "Bitcoin", "symbol": "BTC", "rank": "1", "price_usd": "16654.5", "price_btc": "1.0", "24h_volume_usd": "14505800000.0", "market_cap_usd": "278683695616", "available_supply": "16733237.0...
/* 有待增强 1.添加音效 okay! 2.关卡等级 okay! 3.粒子动画 okay! 4.场景管理 okay! */ var loaderSceneConfig = { key: 'loader', active: true, preload: bootLoader, create: bootCreate }; var demoSceneConfig = { key: 'demo', active: false, visible: false, preload: preload, create: creat...
"use strict"; // Copyright IBM Corp. 2017. All Rights Reserved. // Node module: @loopback/rest // This file is licensed under the MIT License. // License text available at https://opensource.org/licenses/MIT Object.defineProperty(exports, "__esModule", { value: true }); const context_1 = require("@loopback/context"); c...
var diryJ; var dirxJ; var jog; var velJ; var pjx; var pjy; var tamtelaW; var tamTelaH; var jogo; var frames; var velT; var contBombas; var painelContBombas; var bombasTotal; var velB; var vidaPlaneta; var tmpCriaBomba; var container; var vidaPlaneta; function teclaUp1(x) { if ((x == 38) || (x == 40)) { dir...
const puppeteer = require('puppeteer'); process.setMaxListeners(0) const getPageHtml = async (url) => { let puppeteer_options = {} if (process.env.CHROME_BIN !== '') { puppeteer_options = { headless: true, args: ['--no-sandbox', '--headless', '--disable-gpu', '--disable-dev-shm-usage'] } pupp...
import React from "react" import axios from "axios" import { Send } from "react-feather" import BirthdayInvite from "./BirthdayInvite/index" import BirthdayInviteList from "./BirthdayInviteList/index" import AttendingList from "./AttendingList/index" class ConfirmationPage extends React.Component { constructor(props...
/* * 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 * ...
import React, { Component } from 'react'; import styled, { css } from 'styled-components'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { themeGet } from 'themes/'; import Answer from './answer-fastmoney'; import GameControls from './controls'; import { startRound, r...
/*H******************************************************************************** * DESCRIPTION : * ActionCardBody component shows the actions list of the account */ import React, {Component} from 'react'; import {CSSTransitionGroup} from 'react-transition-group'; import GetActions from '../../queries/Get...
var async = require("async"); var log = require('../utils/logger'); var toJson = require('../utils/to_json'); var parseDomain = require('parse-domain'); "use strict"; var Community = require('./community'); // https://www.npmjs.org/package/enum for state of posts var checkValidKeys = function (keys) { return ((key...
//controls and monitors the IC2 instance and assigns cores to stream_master processes to do their part. const fork = require('child_process').fork; const path = require("path"); const program = path.resolve('./stream.js'); const numCPUs = require('os').cpus().length; const express = require("express"); const rsa = requ...
import React, {Component} from "react"; import AceEditor from "react-ace"; import "ace-builds/src-noconflict/mode-python"; import "ace-builds/src-noconflict/mode-r" import "ace-builds/src-noconflict/theme-xcode"; import "ace-builds/src-noconflict/theme-tomorrow"; import './Notebook.css'; import CircularProgress from '@...
"use strict"; 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 ("value" in descriptor) descriptor.writable = true; Object.definePrope...
"use strict"; /** * Copyright (C) Oranda - All Rights Reserved (January 2019 - January 2021) */ 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 ...