text
stringlengths
3.07k
16k
"use strict"; var container, stats; var camera, scene, renderer; var ribbons = []; var targets = []; var amount = 50; var counter = 0; var friction = 0.01; var spring = 0.9; var speed = 30; var movement = 10; var camPos = new THREE.Vector3(); var px = 0; var py = 0; var pz = 0;...
import 'katex/dist/katex.min.css'; import 'react-tippy/dist/tippy.css'; import 'react-toastify/dist/ReactToastify.min.css'; import '@babel/polyfill'; import React, { useEffect } from 'react'; import { render } from 'react-dom'; import T from 'prop-types'; import { Router, Route, Switch, useLocation, useHisto...
/* eslint-disable react/no-array-index-key */ /* eslint-disable no-underscore-dangle */ import React, { useEffect, useRef, useState } from "react"; import { View, Text, ScrollView, StyleSheet, Dimensions, TouchableOpacity, } from "react-native"; import { LinearGradient } from "expo-linear-gradient"; const...
/** * @author gaoyangyang * @description * 镜像相关的操作 */ 'use strict'; var _ = require('lodash'); var request = require('../../components/superagent'); var endpoint = require('../endpoint').SWARMADDRESS; var _volumesList = []; //[{Name: node1/xxx}, ..., {Name:nodename/yyy}] function _formtData(volumes){ //volum...
const chalk = require('chalk') const execa = require('execa') const fs = require('fs') const inquirer = require('inquirer') const parentDirs = require('parent-dirs') const path = require('path') const pathExists = require('path-exists') const config = require('./config') const prompts = require('./prompts') const cons...
'use strict'; const Promisie = require('promisie'); const path = require('path'); const strategyLoader = require(path.join(__dirname, './lib/strategy')); var collections; var logger; var credit_pipelines; /** * * Loads Compiled Strategies * * @param {Object.<string, *>} query query to load compiled strategy * ...
import _ from "lodash" import * as React from "react" import { observer } from "mobx-react" import { Platform, Alert, StyleSheet, TouchableOpacity, Button, Text, View } from "react-native" import { ExpandableCalendar, AgendaList, CalendarProvider, LocaleConfig } from "react-native-calendars" impor...
import * as destiny from "src/lib/destiny"; import { isFunction } from "lodash"; const profileStateMap = new WeakMap(); export const VAULT = "$$vault"; const SUBBUCKET_ITEMS = "items"; const SUBBUCKET_EQUIPPED = "equipped"; const VAULT_BUCKET_HASH = 138197802; // const EXOTIC = 2759499571; const IS_PROFILE_STATE =...
/** * Copyright (c) 2017-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ const React = require("react"); const CompLibrary = require("../../core/CompLibrary.js"); const MarkdownBlock = CompLibrary.MarkdownBl...
/** * 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"); you...
const antlr4 = require('antlr4'); const Lexer = require('./gen/RSQLLexer'); const Parser = require('./gen/RSQLParser'); const Visitor = require('./gen/RSQLVisitor'); const pull = function (obj, path) { if (obj && path.length) { const segment = path[0]; const value = obj[segment]; if (path.l...
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { show, hide } from 'redux-modal'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import * as actions from '../../actions'; import Confirm from '../modals/Confirm'; import CurrencySelect from ...
import React from 'react'; import { Link } from 'react-router-dom'; import styles from './Header.css'; import Button from '../button/Button'; import Form from '../request/Form'; import ResponsiveNavigation from './ResponsiveNavigation'; const additionalColors = [ '#FF5964', '#FBBD63', '#76A6B1', '#94E...
import React, { Component } from 'react'; import PropTypes from 'prop-types' //UI Imports import { H1, H5, H6 } from '../../ui/typography'; import { grey, grey2 } from '../../ui/common/colors'; import { Helmet } from 'react-helmet'; import { textLevel1 } from '../../ui/common/shadows'; import { level1, glowShadow } fr...
//Page elements definition var tblElmntHdr = "divElmnt|tblHdr|table"; var tblElmntMnu = "divElmnt|tblMnu|table"; var tblElmntCntr = "divElmnt|tblCntr|table"; var tblElmntFtr = "divElmnt|tblFtr|table"; function buildMainLayoutDefString() { //alert(" Message line : buildLayoutDefString"); var elmnt...
/** * @file set-active-links.js * @description Add `[data-active]` state to `<a>` tags whose `[href]` value matches the current page */ // REQUIRE // ----------------------------- // const cwd = process.cwd(); const chalk = require('chalk'); const Util = require('../utils/util/util.js'); // Config const {distPath,...
/** * (c) Copyright Reserved EVRYTHNG Limited 2021. All rights reserved. * Use of this material is subject to license. * Copying and unauthorised use of this material strictly prohibited. */ import { assert, expect } from 'chai'; import fetchMock from 'fetch-mock'; import settings from '../src/settings'; import re...
import Web3 from './web3.min.js'; import bip39 from './bip39.js'; import hdkeySpec from './hdkey.js'; const hdkey = hdkeySpec.default; import ethereumJsTx from './ethereumjs-tx.js'; import { makePromise } from './util.js'; import { chainName, web3MainnetSidechainEndpoint, web3TestnetSidechainEndpoint, polygonVigilKey }...
leftTemplate_Initialize = function() { if (typeof Ext == 'undefined') return; var menuView = Ext.getCmp('menu_panel'); // Save state info var selectedIndex = Ext.state.Manager.get("menu-view-selected", 0); try{ var buttons = Ext.get('left_div'); var divItems = butt...
import React from 'react'; import watchmode from '../api/watchmode'; import SearchBar from './Search/SearchBar'; import TitleList from './Title/TitleList'; import TitleDetail from './Title/TitleDetail'; // Bootstrap CSS import 'bootstrap/dist/css/bootstrap.min.css'; // Custom CSS (overrides bootstrap) import './App.cs...
// Global Constants const cluePauseTime = 333; // pause time between clues const nextClueWaitTime = 1000; // wait time before next sequence const numOptions = 4; // number of buttons const clueHoldMax = 500; // max time clue plays const totalTime = 5; // total guess time (s) const timerUpdate = 10; // how often timer u...
import React, { PureComponent } from 'react'; import { View, TouchableOpacity, Text, Animated, TouchableWithoutFeedback } from 'react-native'; import { StyledText } from 'kitsu/components/StyledText'; import { PropTypes } from 'prop-types'; import { UserLibraryList } from 'kitsu/screens/Profiles/UserLibrary/components/...
import n from 'nengi' let nengi = n if(nengi.default) nengi = nengi.default import nengiConfig from '../common/nengiConfig.js' import PlayerCharacter from '../common/entity/PlayerCharacter.js' import Identity from '../common/message/Identity.js' import WeaponFired from '../common/message/WeaponFired.js' import Collisi...
const { SlashCommandBuilder } = require("@discordjs/builders"); const { Permissions, MessageEmbed, MessageActionRow, MessageButton, } = require("discord.js"); const thumbnail = "https://cdn.discordapp.com/attachments/428214132613971979/929025586129682462/image_processing20201020-1513-1a7pmsx.gif"; module.expo...
import React, {Component} from 'react'; import axios from 'axios' import {Bar, Doughnut, Line, Pie, Polar, Radar} from 'react-chartjs-2'; import { Badge, Card, CardHeader, CardBody, Col, Container, Row, Table, } from 'reactstrap'; const data1 = [489, 500, 910, 890, 896, 903, 906]; const...
var secrets = require('../secrets.json'); var fs = require('fs'); var http = require('http'); var package_ = require('../package'); var _exec = require('child_process').exec; var AWS = require('aws-sdk'); // // contants // var S3_BUCKET_URL = 'libs.cartocdn.com.s3.amazonaws.com'; var JS_FILES = [ 'cartodb.js', ...
var Class = require( "ee-class" ) , Events = require( "ee-event" ) , log = require( "ee-log" ) , argv = require( "ee-argv" ) , debug = argv.has( "trace-mysql" ) || argv.has( "trace-all" ) , traceSlow = argv.has( "trace-mysql-slow-queries" ) , timing = argv.has( "trace-mysql-timing" ); v...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = undefined; var _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)) { ...
function getClass_12(){ return Lcom_google_gwt_event_shared_GwtEvent_2_classLit; } function toString_3(){ return 'An event type'; } function GwtEvent(){ } _ = GwtEvent.prototype = new Object_0; _.getClass$ = getClass_12; _.toString$ = toString_3; _.typeId$ = 0; _.dead = false; _.source = null; function dispatc...
"use strict"; import {Food, Direction, Snake} from './classes.js' import {SnakeAI} from './ai.js'; import {sleep} from './utils.js'; const COLOR_LIST = ["blue","pink","red","purple","cyan", "rebeccapurple", "white", "silver", "brown", "magenta"]; const GRID_SIZE = 40; const DEFAULT_DELAY = 50; const ENEMY_SPAWN_DELAY ...
/** * This module is an instance of {@link module:qi-events.Events}. * @module qi-events * @author <NAME> <<EMAIL>> */ 'use strict'; /** * Regular expression used to split event strings. * @ignore */ var typeSplitter = /\s+/; /** * Implement fancy features of the events API such as multiple event * names `"c...
"use strict"; /** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : {...
const cheerio = require('cheerio'); const request = require('request-promise'); const http = require('http'); const bluebird = require('bluebird'); const cookie = require('cookie'); const fs = require("fs-extra-promise"); const parseDomain = require("parse-domain"); const decompress = require('decompress'); const Git =...
'use strict'; var chai = require('chai'); var expect = chai.expect; var should = chai.should(); var Model = require('../'); var Req = require('req'); var map = require('event-stream').map; var crypto = require('crypto'); var Datastore = require('nedb'); var db = new Datastore(); db.ensureIndex({ fieldName: 'id', un...
import { createSelector } from 'reselect' import { List, Map, Set } from 'immutable' import moment from 'moment-timezone' import unidecode from 'unidecode' import { getCurrentPageState, getYear } from '../selectors/CommonPageSelectors' import { slugify } from '../utils' const getEventsByKey = (state, props) => { ret...
import React, { Component } from "react"; import PropTypes from "prop-types"; import { connect } from "react-redux"; import { getTutorials, resetTutorial, tutorialProgress, } from "../../actions/tutorialActions"; import { clearMessages } from "../../actions/messageActions"; import clsx from "clsx"; import Bread...
import React, { useMemo, useCallback } from 'react'; import PropTypes from 'prop-types'; import { Tab, Tabs, TabList, TabPanel } from 'react-tabs'; import { logEvent } from 'utils/analytics'; import { Select } from 'components/forms'; import GradientBar from 'components/map/legend/gradient-bar'; import './style.scss'...
import React from "react" import async from "../components/Async" import * as Icon from "@material-ui/icons"; import BackupIcon from '@material-ui/icons/Backup'; // eslint-disable-next-line no-restricted-globals const clusterContext = location.pathname.substring(0, location.pathname.indexOf("/", 1)) // CLuster const C...
/* Utility functions to format numbers, time duration, currency, and hashrate */ module.exports.lang = defaultLanguage; module.exports.duration = formatDuration; module.exports.number = formatNumber; module.exports.currency = formatCurrency; module.exports.hashrate = formatHashrate; module.exports.percent = formatPerc...
$(document).ready(function(){ showData(); count(); $(".addtocartBtn").click(function(){ let id=$(this).data('id'); let code_no=$(this).data('code'); let name=$(this).data('name'); let photo=$(this).data('photo'); let price=$(this).data('price'); let discount=$(this).d...
#!/usr/bin/env node let Fs = require("fs"); let Fse = require("fs-extra"); let Path = require("path"); let Rollup = require("rollup"); let childProcess = require("child_process"); //////////////////////////////////////////////////////////////////////////////////////////...
"use strict"; function Frame(location, width, height) { this.file = location; this.opacity = 0; this.width = width; this.height = height; this.frameAmount = 1; } Frame.prototype.getFrameAmount = function () { return this.frameAmount; } Frame.prototype.getWidth = function () { return this.w...
var stream = require('stream') var inherits = require('inherits') var genobj = require('generate-object-property') var genfun = require('generate-function') var quote = new Buffer('"')[0] var comma = new Buffer(',')[0] var cr = new Buffer('\r')[0] var nl = new Buffer('\n')[0] var Parser = function (opts) { if (!opt...
const path = require('path'); const fs = require('fs'); const del = require('del'); const glob = require('glob'); const retinaResizer = require('./lib/retina-resizer'); const spriteBundler = require('./lib/sprite-bundler'); const imgMin = require('./lib/images-min'); const iconFont = require('./lib/iconfont'); const s...
import path from 'path'; import { is, api as electronApi } from 'electron-util'; import { DEFAULT_ACCENT_COLOR } from '@meetfranz/theme'; import { LIVE_FERDI_API, DEV_FRANZ_API, LOCAL_API, LOCAL_API_WEBSITE, DEV_API_FRANZ_WEBSITE, LIVE_API_FERDI_WEBSITE, LIVE_WS_API, LOCAL_WS_API, DEV_WS_API, LOC...
/** * How it works? * TBA */ function start(){ // Run Functions displayTime(); displayStudentDetails(); displayTodayEntry(); addEntryAll(); currentTime(); } // Current Time (Format: Hour:Minutes) function currentTime(){ let d = new Date(); let hours = addZeroToTime(d.getHours()); ...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _Button = require('../Button'); var _Button2 = _interopRequireDefault(_Button); var _swipe = require('../internal/directives/swipe'); var _swipe2 = _interopRequireDefault(_swipe); function _interopRequireDefault(obj) { return obj &...
var MarkdownIt = require('markdown-it'); const Declension = require('./declension.js'); const Heading = require('./heading.js'); global.markdown_to_html = function (s) { var md = new MarkdownIt(); var ret, regex; if (typeof s !== 'undefined') { ret = md.render(s); } else { ret = ""; ...
const suiteTests_ = [{mocked: []}]; let currentTestIndex_ = 0; const PATH_FUNCTION_REGEX = /\([^)]*\)$/; const PATH_FUNCTION_MATCH_REGEX = /\(([^)]*)\)$/; let allowMatchers = true; let singleMode_ = false; function assert(condition) { suiteTests_[currentTestIndex_].passed &= !!condition; if (!condition) {...
import {endpoint} from './endpoint.json' /* ----------------------------------------------------------------------------------------- */ // USER VALIDATION Stuff const { Credentials, Token } = require('./UserV/token_pb.js'); const { LoginEndpointClient } = require('./UserV/token_grpc_web_pb.js'); // data: { netid:'r...
const fs = require("fs"); const fsp = fs.promises; // Node 10+ const path = require("path"); const flatCache = require("flat-cache"); const debug = require("debug")("EleventyCacheAssets"); class AssetCache { constructor(uniqueKey, cacheDirectory) { this.hash = uniqueKey; this.cacheDirectory = cacheDirectory || "....
import React, { useEffect, useRef } from 'react' import 'intersection-observer' import { useIsVisible } from 'react-is-visible' import { Link, useStaticQuery, graphql } from 'gatsby' import styled from 'styled-components' import Fade from 'react-reveal/Fade' import { Container, Title, Text as T } from '../layout/conta...
'use strict'; /** * @namespace services.Judge */ import { TM_W1, TM_W2, TM_W3, TM_W4, TM_W5, TM_MISS, TM_HOLD, TM_MINE, TM_ROLL, S_W1, S_W2, S_W3, S_W4, S_W5, S_MISS, S_NG, S_OK, AAA, AA, A, B, C, D, E } from '../constants/judge'; import {MINE_NOTE, TAP_NOTE, HOLD_NO...
/** * Cloudinary jQuery plugin * Depends on 'jquery', 'util', 'transformation', 'cloudinary' */ var webp; import Cloudinary from './cloudinary'; import Transformation from './transformation' import firstNotNull from './util/firstNotNull' /** * Creates a new Cloudinary instance with jQuery support. * @class Cloud...
import React from 'react'; import 'bootswatch/dist/darkly/bootstrap.min.css'; import 'bootstrap/dist/js/bootstrap.min.js'; import { BrowserRouter as Router, Route, Switch, Redirect} from 'react-router-dom'; import {connect} from 'react-redux'; import { // сделано likePhoto, disLikePhoto, ...
/** * 最初只是有一个想法,或者叫原始策略 * 通过分析验证这个想法 * 验证通过后形成可执行的策略 * * 均线突破策略分析 */ import constant from '@/components/js/common/constant' import util from '@/components/js/common/util' let strategy = { sl: -10, tp: 59, stopDate: 63, buy: function (e) { let maCycle = constant.MA + 250; if (e[...
var test = require('tape') var contentType = require('content-type') var parsexml = require('xml-parser') var hyperquest = require('hyperquest') var concat = require('concat-stream') var isISODate = require('isostring') var base var server var createServer = require('./lib/test_server.js') test('history.js: setup se...
//================= Global vars =================== var giftsArray = []; var totalClicks = 0; var giftIndexesCurrentlyOnThePage = [0, 3]; // ================= Function Definitions ================= function gift(imageName, src){ this.liveClicks = 0; this.imageName = imageName; this.imageSrc = src; giftsArray...
const { isEmpty } = require('lodash'); const { cache: { keys: { expiration } }, values } = require('../../constants/constants'); const { buildCacheKeyFrom } = require('../../helpers/redis'); const logger = require('../../logger/console')("TasksCacheClient"); const { flattenPipelineResponse } = require('../../helpers/re...
var HotSpotApp = angular.module('hotSpot', ['ngRoute']); HotSpotApp.config(['$routeProvider', function ($routeProvider) { $routeProvider. when('/editCollection/:collectionId', { templateUrl: 'assets/tpl/edit.html', controller: 'CollectionController' }...
/* global db, tojson, tojsononeline, rs, print, printjson */ /* ================================================= * getMongoStats.js: MongoDB Stats Report * ================================================= * * Gather MongoDB stats for the databases and the collections. * * To execute on a locally running mongod...
import { join } from 'path' import test from 'ava' import request from 'supertest' import _require from 'native-require' import fs from 'fs-extra' process.on('unhandledRejection', err => { throw err }) async function run (promise) { await promise await new Promise(resolve => setTimeout(resolve, 400)) } const s...
var canvas; var canvasContext; var ballX = 50; var ballY = 50; var ballSpeedX = 10; var ballSpeedY = 4; var player1Score = 0; var player2Score = 0; const WINNIN_SCORE = 3; var showingWinScreen = false; var paddle1Y = 250; var paddle2Y = 250; const PADDLE_THICKNESS = 10; const PADDLE_HEIGHT ...
'use strict'; const utils = require('../utils.js'); const ms = require('millisecond'); const recursiveObjectInterpreter = utils.recursiveObjectInterpreter; const logger = require('../logger.js'); const checkExecutorParams = utils.checkExecutorParams; const stringify = require('json-stringify-safe'); class Execution {...
var data = []; //开奖时间 var alldate = { "c128":[2017,10,25], "c129":[2017,10,27], "c130":[2017,10,30], "c131":[2017,11,1], "c132":[2017,11,3], "c133":[2017,11,6], "c134":[2017,11,8], "c135":[2017,11,10], "c136":[2017,11,13], "c137":[2017,11,15], "c138":[2017,11,17], "c139":[2017,11,20], "c140":[2017,...
import React, { useState, useEffect } from 'react' import fetch from 'isomorphic-unfetch' import classNames from 'classnames' import { makeStyles } from '@material-ui/core/styles'; import Typography from '@material-ui/core/Typography'; import Tabs from '@material-ui/core/Tabs'; import Tab from '@material-ui/core/Tab';...
var path = require('path'); var fs = require("fs-extra"); var yaml = require('js-yaml'); var extend = require('extend'); var defaultService = { "deploy": { "mode": "replicated", "resources": { "limits": { "cpus": "2", "memory": "512M" } }, "restart_policy": { "condit...
let wasm; let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }); cachedTextDecoder.decode(); let cachegetUint8Memory0 = null; function getUint8Memory0() { if (cachegetUint8Memory0 === null || cachegetUint8Memory0.buffer !== wasm.memory.buffer) { cachegetUint8Memory0 = new Ui...
"use strict"; function _instanceof(left, right) { if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) { return !!right[Symbol.hasInstance](left); } else { return left instanceof right; } } function _classCallCheck(instance, Constructor) { if (!_instanceof(instance, Constructor)) { throw n...
'use strict'; var crypto = require('crypto'); var minio = require('minio'); var path = require('path'); var _ = require('lodash'); const ep = process.env.MINIO_HOST || 'foo.pathfinder.gov.bc.ca'; /** * The Minio client which facilitates the connection to Minio, and through which all calls should be made. */ var mi...
// Catenary class will conect point A to point B // it will have as variable other specification about the Cables // it will return the geometry and the forces if appliable and // hanged line geometry class Catenary { constructor(initialPoint, finalPoint, line, divisions) { // Inserting states this.initialPo...
const core = require('@actions/core') const github = require('@actions/github') const { get } = require('lodash') const JiraConnector = require('./jira/jira_connector') const GithubConnector = require('./github/github_connector') const { JIRA_PROJECT_KEY_REGEXP, PR_ENFORCE_ISSUE_EXISTS, // PR_ENFORCE_ISSUE_TYP...
'use strict' const { ServerResponse } = require('http') const fp = require('fastify-plugin') const WebSocket = require('ws') const kWs = Symbol('ws-socket') const kWsHead = Symbol('ws-head') function fastifyWebsocket (fastify, opts, next) { let errorHandler = defaultErrorHandler if (opts.errorHandler) { if (...
// // Copyright (c) Microsoft Corporation. All rights reserved. // 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); const crypto = require("crypto"); const dateformat = require("dateformat"); const events = require("events"); const path = require("path"); const minimatch = require("minimatc...
"use strict"; var IOS = require('./ios.js') , logger = require('../../server/logger.js').get('appium') , path = require('path') , _ = require('underscore'); var SAFARI_BUNDLE = 'com.apple.mobilesafari'; var Safari = function () { this.init(); this.landscapeWebCoordsOffset = 40; }; _.extend(Safari.prototyp...
import Q from 'q'; import * as fs from 'fs'; import * as toml from 'toml'; import _ from 'lodash'; import request from 'request'; import Trello from 'node-trello'; import { PivotalClient as Pivotal } from './pivotal'; const config = toml.parse(fs.readFileSync('config.toml')); Q.longStackSupport = true; let memberMa...
import React from "react" import { Link } from "react-router-dom"; import './search.css'; import { Swiper, SwiperSlide } from "swiper/react"; import SwiperCore, { Autoplay }from "swiper"; import "swiper/swiper-bundle.css"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import {faSearch} from "@fortaw...
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import { Button, Card, CardBody, CardGroup, Col, Container, Form, Input, InputGroup, InputGroupAddon, InputGroupText, Row, CardTitle, CardText, Table } from 'reactstrap'; import axios from "../../axios"; import alertify from "alertifyjs/...
import React, { useCallback, useEffect, useMemo, useState } from "react"; import UploadManager, { SelectType } from "./core"; import { useDispatch, useSelector } from "react-redux"; import UploadButton from "../Dial/Create"; import pathHelper from "../../utils/page"; import { useLocation } from "react-router-dom"; impo...
import gulp from 'gulp'; import plugins from 'gulp-load-plugins'; import browser from 'browser-sync'; import rimraf from 'rimraf'; import panini from 'panini'; import yargs from 'yargs'; import lazypipe from 'lazypipe'; import inky from 'inky'; import fs from 'fs'; import siphon from '...
'use strict'; exports.__esModule = true; exports.queryString = undefined; var _configUtils = require('./configUtils'); var _omit = require('lodash/omit'); var _omit2 = _interopRequireDefault(_omit); var _pick = require('lodash/pick'); var _pick2 = _interopRequireDefault(_pick); var _stuff = require('./stuff'); ...
function isDigit(B) { var A = /^[0-9]{6}$/; if (!A.exec(B)) { return false; } return true; } function ckEmail(A) { var B = /^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/; if (B.test(A)) { return true; } return false; } function ckMobile(B) { var A = /^1\d{10}$/; if (!A.exec(B)) { return false; } else...
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b)...
// Grid infrastructure: Servers, ReplicaSets, ConfigSets, Shards, Routers (mongos). Convenient objects and functions on top of those in shell/servers.js -Tony load('jstests/libs/fun.js') load('jstests/libs/network.js') // New servers and routers take and increment port number from this. // A comment containing FreshP...
export const MARK_COMPLETE = "MARK_COMPLETE" export const MARK_NOT_COMPLETE = "MARK_NOT_COMPLETE" export const LEAVE_FEEDBACK = "LEAVE_FEEDBACK" export const CREATE_FEEDBACK = "CREATE_FEEDBACK" export const UPDATE_PROGRESS = "UPDATE_PROGRESS" export const UPDATE_CHECKLIST = "UPDATE_CHECKLIST" export const UPDATE_TOTAL...
/* Copyright European Organization for Nuclear Research (CERN) * * 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 * * Authors: * - <NAME>, <<...
let ExtText = {} ExtText.name = 'UIText' ExtText.icon = 'app://res/control/Label.png' ExtText.tag = 2 ExtText.GenEmptyNode = function() { let node = new ccui.Text('VisualUI', 'Arial', 24) node._className = ExtText.name return node } ExtText.GenNodeByData = function(data, parent) { let node = new ccui...
import React from 'react' import { userInfoStudent, updateInfoStudent } from '../../api.js' import Button from '../Button.js' import '../style/Parameters.css' import Fields from '../../fields/fields.json' class ParametersStudent extends React.Component { state = { student: {}, fields: Fields.mainFields, display...
/* Fluksometer chart plotting script; retrieves data stored via node persist_mqtt.js and served by node serve_chart.js Uses the http://flotcharts.org plotting library - with the corresponding license This script under MIT-license, as is, without any warranty <NAME>, Karlsruhe, May/August 2014, (c) */ // show or hide...
var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { val...
const { rawEncode } = require('ethereumjs-abi') const { assertRevert } = require('./helpers/assertThrow') const { encodeCallScript } = require('./helpers/evmScript') const ExecutionTarget = artifacts.require('ExecutionTarget') const Executor = artifacts.require('Executor') const Kernel = artifacts.require('Kernel') ...
/** * * This file is based on https://github.com/RichardX366/AHKNodeJS * * MIT License Copyright (c) 2021 Richard-X-366 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, in...
// RSA Encryption //////////////////////////////////////////////////////////////////////////////////////////////////// // revised as of 28 Sept. 2019 to account for new JS bigInt type var PQLEN = 200; var ELEN = 5; // generate a key and display it function dispNewKey() { var edn = genKeyFrom(); e = edn...
const generatePowerRanking = (rankingList, title, downloadImageFunction) => { isOverridePowerRanking = true; // Get trending stat leagueDatabase.webdb.db.transaction((tx) => { tx.executeSql("SELECT manager, week, year, ranking FROM rankings " + "WHERE week = ? AND year = ? ", [currentWeek - 1, selectedY...
const _ = require('lodash'); const AccessDeniedError = require('./errors/AccessDeniedError'); /** * Merges local and global JWT settings * @function mergeJwt * @param {object} local local settings * @param {object} global global settings * @return {object} merged settings */ function mergeJwt(local, global) { ...
import React, { useEffect, useState } from 'react'; import { Link } from 'react-router-dom'; import ReactTooltip from 'react-tooltip'; import cover from '../images/404.jpg' import delateicon from '../images/delate.png' import publicicon from '../images/public.png' import create from '../images/create.jpg' function...
import React, { useEffect, useState, useRef } from "react" import * as d3 from "d3" import styled from "styled-components" import useResizeObserver from "../../../hooks/useResizeObserver" import { ThemeContext } from "../../ThemeContext" import { QUERIES } from "../../../constants" const DonutCensus = ({ data, select...
import React from 'react' import PropTypes from 'prop-types' import { FlexibleXYPlot, XAxis, YAxis, LineSeries, HorizontalBarSeries, LabelSeries, HorizontalGridLines, VerticalBarSeries, VerticalGridLines, Highlight } from 'react-vis' import { buildClassName } from '@talixo/shared' import { generateSeriesClassName...
import BoardPlugin from '../../plugins/board-plugin.js'; const TILESMAP = [ '111 111', '1 1 1 1', '1101011', ' 1 1 ', '1101011', '1 1 1 1', '111 111' ]; const Between = Phaser.Math.Between; class Demo extends Phaser.Scene { constructor() { super({ key: 'examples' ...
import React, { Component } from 'react'; import UDFCompatibleDatafeedBase from './bundle.js'; import Event from './event.js' import './App.css'; // this.widget.chart() && this.widget.chart().setResolution(e) let widget = null let resolution = window.localStorage.resolution || 5 class App extends Component { state = ...