text
stringlengths
3.22k
29.5k
/* eslint-disable flowtype/* */ import React from 'react' import renderer from 'react-test-renderer' import { shallow, mount } from 'enzyme' import moment from 'moment' import ScheduleSelector, { preventScroll } from '../../src/lib/ScheduleSelector' const startDate = new Date('2018-01-01T00:00:00.000') const getTes...
import React from 'react' import Canvas from './canvas/index.js' import { fetchDom, lonlatTomercator, scaleRatio } from './tool/index.js' import Area from './area/index.js'; import Scatter from './scatter/index.js'; import CSymbol from './symbol'; import Path from './path/index.js' class Map extends React.Component { ...
/*! * jscoverage: index.js * Authors : fish <<EMAIL>> (https://github.com/fishbar) * Create : 2014-04-03 15:20:13 * CopyRight 2014 (c) Fish And Other Contributors * */ require('coffee-script').register(); var debug = require('debug')('jscoverage'); var fs = require('xfs'); var path = require('path'); var argv ...
// Modules const express = require('express'); const bodyParser = require('body-parser'); const request = require('request'); const cors = require('cors'); const WebSocketServer = require('ws').Server; const router = express.Router(); const path = require('path'); // JSON files const output_json = require('./data/outp...
/* * Copyright 2018 Google LLC * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
import React from 'react'; import Debug from 'debug'; import Gab from '../../common/gab'; import { pickIcon } from '../../common/utils'; import Routes from '../../routes'; import Card from 'material-ui/Card/Card'; import CardText from 'material-ui/Card/CardText'; import CardActions from 'material-ui/Card/CardActions'; ...
import React, { Component } from 'react'; import ExternalLink from '../../ExternalLink/ExternalLink'; import Loader from '../../Loader/Loader'; import EOBFilterSearchByMonths from '../../junk/EOBCommon/EOBFilterSearchByMonths/EOBFilterSearchByMonths'; import DatePicker from '../../components/DatePicker/DatePicker'; im...
/* node-webkit 0.11.6 process.versions: chromium: "38.0.2125.104" http_parser: "2.2" modules: "14" node: "0.11.13-pre" node-webkit: "0.11.6" nw-commit-id: "ec3b4f4-d8ecacd-e5d35ef-f2f89e2-d9a9d39-cdd879e" openssl: "1.0.1f" uv: "0.11.22" v8: "3.28.71.2" zlib: "1.2.5" nw 0.12.0-alpha2 process.versions: chromium: "41.0.2...
// Compares .sol files to their .sol.js counterparts, // determines which .sol files have been updated. const path = require('path') const async = require('async') const fs = require('fs') const Graph = require('graphlib').Graph const Parser = require('./parser') const expect = require('@truffle/expect') const find_co...
/* eslint-disable no-loop-func */ // Other Shared Imports import * as debug from '../../utils/debug'; import { utils } from '../../utils/utils'; import { charts } from '../charts/charts'; // Settings and Options const COMPONENT_NAME = 'bullet'; /** * A bullet graph is a variation of a bar graph developed by <NAME>....
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const plugin_1 = require("./plugin"); const fs_1 = require("./util/fs"); const path_1 = require("path"); const common_1 = require("./common"); const fs_extra_1 = require("fs-extra"); const common_2 = require("./android/common"); const common_3...
// globals var body; //helper functions function copyCode(elem){ if (document.getElementById(elem)) { // create hidden text element, if it doesn't already exist var targetId = "_hiddenCopyText_"; // must use a temporary form element for the selection and copy target = d...
import React from 'react'; // import _ from 'platform/utilities/data'; import merge from 'lodash/merge'; import omit from 'platform/utilities/data/omit'; import fullSchema from 'vets-json-schema/dist/21-526EZ-ALLCLAIMS-schema.json'; // import dateUI from 'platform/forms-system/src/js/definitions/date'; // import dateRa...
'use strict'; /** * Returns the bank account number parsed from specified string. * * You work for a bank, which has recently purchased an ingenious machine to assist in reading letters and faxes sent in by branch offices. * The machine scans the paper documents, and produces a string with a bank account that look...
//Load modules var express = require('express'); var colors = require('colors'); var jquery = require('jquery'); var mysql = require('mysql'); var http = require('http'); var app = express(); var port = 8000; //mySQL database connection info var pool = mysql.createPool({ host : 'rei.cs.ndsu.nodak.edu', us...
var CollaborativeEditing = /** @class */ (function () { function CollaborativeEditing(editor, user) { var _this = this; this.editor = editor; this.cursors = new Map(); this.selections = new Map(); this.colors = new Map(); this.myUser = user; this.clients = new...
import { FieldType, makeElement, appendElement } from 'muze-utils'; import { defaultConfig } from './default-config'; import { ENCODING } from '../../enums/constants'; import drawTicks from './renderer'; import './styles.scss'; import { positionPoints, getIndividualClassName, getColorMetaInf, resolveEncodingValues,...
/** * Dependencies */ var debug = require('debug')('koa-router') , methods = require('methods') , Route = require('./route'); /** * Expose `Router` */ module.exports = Router; /** * Initialize Router. * * @param {Application=} app Optional. Extends app with methods such * as `app.get()`, `app.post()`, e...
'use strict'; import React, { Component } from 'react'; import createReactClass from 'create-react-class'; import moment from 'moment'; import { RestMixin } from '../rest'; import { curator_page } from '../globals'; import { getAffiliationName } from '../../libs/get_affiliation_name'; import { showActivityIndicator } f...
const v8 = require('v8'); v8.setFlagsFromString('--experimental-wasm-bigint'); const fs = require('fs'); const assert = require('assert'); let asc = require("assemblyscript/cli/asc"); const loader = require('@assemblyscript/loader'); function toNum(x) { return parseInt(x.toString());} // http://www.onicos.com/staff/iz...
/* * Copyright 2020 Adobe. All rights reserved. * This file is licensed to you 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 appli...
import isUndefined from 'lodash/isUndefined'; import isNull from 'lodash/isNull'; import isNaN from 'lodash/isNaN'; import isString from 'lodash/isString'; import isNumber from 'lodash/isNumber'; import isSymbol from 'lodash/isSymbol'; import isMap from 'lodash/isMap'; import isWeakMap from 'lodash/isWeakMap'; import i...
/** * django-scrum-board * * @category scrum-board * @author <NAME> <<EMAIL>> * @copyright Copyright (c) 2016 <NAME> <https://github.com/delneg> * @license http://www.opensource.org/licenses/mit-license.html MIT License * @version 0.1.1 Alpha */ //TODO: fix the bug when description is empty //...
import { html } from "../common/html.js"; // eslint-disable-next-line no-undef const { defineComponent } = Vue; const template = html` <div class="gacha-box"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100.38 423.17"> <defs> <linearGradient id="Five" x1="0%" y1="0%" x2="100%" y2="0%"> <st...
import React from 'react'; import './App.css'; import Line from './Line'; import Box from './Box'; import {ClickedContext} from './ClickedContext'; import {constants} from './constants'; // TODO: ideas for CRUD - undo last move, save game class App extends React.Component { state = { dotCoordinates : {}, lin...
/* * Copyright (c) 2018, salesforce.com, inc. * All rights reserved. * SPDX-License-Identifier: MIT * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT */ const { isWireDecorator } = require('./shared'); const { staticClassProperty, markAsLWCNode } = require('../.....
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck"; import _createClass from "@babel/runtime/helpers/esm/createClass"; import Accessor from './accessor'; import Buffer from './buffer'; import VertexArrayObject from './vertex-array-object'; import { log, assert, stubRemovedMethods } from '../utils';...
// Licensed to the Software Freedom Conservancy (SFC) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The SFC licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you m...
$(document).ready(function() { //$(".agenda").addClass("mdc-list"); $(".line").addClass("line"); $(".line").addClass("mdc-list-item"); //$(".line").addClass("mdc-ripple-upgraded"); $("div.line").append( ' <div class="mdc-checkbox mdc-list-item__meta mdc-checkbox--upgraded mdc-ripple-upgraded mdc-ripple-up...
var http = require('http') , url = require('url') , _ = require('lodash') , util = require("util") , PrerenderEngine = require("./engine"); // Time in milliseconds to check for updates on the page var CHECKER_TIMEOUT = process.env.PRERENDER_CHECKER_TIMEOUT || 50; // Maximum time in milliseconds to wait for t...
'use strict'; var _getIterator2 = require('babel-runtime/core-js/get-iterator'); var _getIterator3 = _interopRequireDefault(_getIterator2); var _regenerator = require('babel-runtime/regenerator'); var _regenerator2 = _interopRequireDefault(_regenerator); var _asyncToGenerator2 = require('babel-runtime/helpers/asyn...
// https://observablehq.com/@jimpick/provider-quest-dht-miner-peer-scanner@2206 import define1 from "./5cf93b57a7444002@230.js"; import define2 from "./a957eb792b00ff81@406.js"; import define3 from "./c4e4a355c53d2a1a@111.js"; function _1(md){return( md`# Internal: Scanner: DHT [Provider.Quest]` )} function _2(md){re...
/* * File: index.js * Project: @vnnox/novaui * Description: 颜色选择器 * Created: 2018-11-23 10:11 * Author: smohan (<EMAIL>) * ----- * Last Modified: 2018-11-29 05:00 * Modified By: smohan (<EMAIL>>) * ----- * Copyright 2018, NovaStar Tech Co., Ltd */ import Events from '../../utils/events' import { isElement,...
import React from "react"; import { makeStyles } from "@material-ui/core/styles"; import cloneDeep from "clone-deep"; import { DesignContext } from "components/common/Context"; import Layout from "components/common/Layout"; import getConfig from "next/config"; import dynamic from "next/dynamic"; import GridLayout, { Wi...
'use strict' const {BrowserWindow, MenuItem, webContents} = require('electron') const EventEmitter = require('events').EventEmitter const v8Util = process.atomBinding('v8_util') const bindings = process.atomBinding('menu') // Automatically generated radio menu item's group id. var nextGroupId = 0 // Search between s...
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty"; import { createVNode as _createVNode } from "vue"; import moment from 'moment'; import classNames from '../_util/classNames'; import PropTypes from '../_util/vue-types'; import BaseMixin from '../_util/BaseMixin'; import { initDefaultProps, hasPro...
//Margins are set, as well as the height and width. var margin = { top: 10, right: 10, bottom: 0, left: 10 }, width = 1200 - margin.left - margin.right, height = 720 - margin.top - margin.bottom; //The SVG is set, calling back to the margins, height and width to ...
import React, { useContext } from "react"; import { Link, useParams } from "react-router-dom"; import { TLink, SLink, useData, version, Save, Delete, CopyText, HasActionIcon, HasToManyIcon, useToggle, } from "./Util"; import { Results } from "./Results"; import { getPartsForQuery, getRelUrlForQuery ...
import React from "react" import { View, Text, SafeAreaView, TouchableOpacity, Dimensions, StyleSheet, Image, AsyncStorage, Alert, ToastAndroid, Modal, TouchableHighlight, Animated, Easing, StatusBar, Clipboard } from "react-native" const Dev_Height = Dimensions.get('window').height con...
var uniStatus=true; $(function() { $("#roleModel").delegate("input[name=checkAll]","change",function(e) { uniStatus=this.checked; $(this).closest(".list-group.list-group-activity").find("input[name=roleCheckbox]").each(function() { roleHash=$(this).data("hash"); this.checked=uniStatus; processAJAXPos...
/********************************************************************** / Demonstrerer falltid på et objekt fra 100 meter påvirket av gravitasjonen. Fasit: https://www.omnicalculator.com/physics/free-fall Annet: BULLET DOCS: https://pybullet.org/Bullet/BulletFull/annotated.html OG: https://medium.com/@bluemagnifi...
const assertFail = require("./utils/assertFail"); const increaseTime = require('./utils/increaseTime'); const pidMath = require('./utils/pidMath'); const logging = require("./utils/logging"); const BN = require('bn.js'); var Decimal = require('deci...
import { LightningElement, api } from 'lwc'; import { NavigationMixin } from 'lightning/navigation'; const SEARCH_DELAY = 300; // Wait 300 ms after user stops typing then, peform search const KEY_ARROW_UP = 38; const KEY_ARROW_DOWN = 40; const KEY_ENTER = 13; const VARIANT_LABEL_STACKED = 'label-stacked'; const VARI...
/// <reference path="business/base.js" /> /// <reference path="jQuery.js" /> var htmlName = ""; var PageMapping=[]; $(document).ready(function () { $("body").niceScroll(); //滚动条 $("#head_top").load("../common/topadmin.html", function () { $("#loginout").click(function () {//登出 if (confir...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var Pages = { Login: { url: '/login', username: 'Username input field', password: '<PASSWORD>', submit: 'Login button', skip: 'Skip change password button', }, Home: { url: '/', ...
var Leap = require('../lib/index.js'); var fs = require('fs'); //originally in double quotes var logleap = false; //flag for if we should record //create file stream /** * a barebones HTTP server in JS * to serve three.js easily * * @author zz85 https://github.com/zz85 * * Usage: node simplehttpserver.js <p...
"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]; ...
/// <reference types="Cypress" /> import ProductPageObject from '../../support/pages/module/sw-product.page-object'; import CheckoutPageObject from '../../support/pages/checkout.page-object'; const page = new ProductPageObject(); const checkoutPage = new CheckoutPageObject(); const promoCode = 'Flash sale'; describe(...
/******************************** @khrizenriquez: <NAME> <<EMAIL>> ********************************/ 'use strict'; // Rolling spider library var RollingSpider = require('rolling-spider'); var rollingSpider = new RollingSpider(); var maxClients = 5, maxActions = 5; var os = require('os'), ifaces ...
/** Imports */ const atob = require('atob') const { sha256 } = require('js-sha256') const BugCatcher = require('node-bugcatcher') const { bugcatcherUri } = require('../config') const { getRepoInfo, statusTestingPending, } = require('./helpers') /** Constants */ const uploadsPerSecond = 10, maxConcurrentUploads =...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.calculatePosition = exports.ownerDocument = exports.getContainer = exports.props2BsPropsHoc = exports.props2BsProps = void 0; var tslib_1 = require("tslib"); var react_1 = tslib_1.__importDefault(require("react")); var react_dom_1 = ts...
console.log('____ ____ .___ \n' + '\\ \\ / /____ ____ __| _/______ ____ ______\n' + ' \\ Y // __ \\_/ __ \\ / __ |\\_ __ \\/ _ \\/ ___/\n' + ' \\ /\\ ___/\\ ___// /_/ | | | \\( <_> )___ \\ \n' + ' \\___/ \\___ >\\___ >____ | |__| \\___...
"use strict"; var helpers = require("app/client/views/helpers"); var _container; var _containers = {}; var _widget; var ResultsStore = require("app/client/results_store"); var STD_INPUTS = helpers.STD_INPUTS; var STD_EXCLUDES = helpers.STD_EXCLUDES; var VIEW_INPUTS = { }; var GRAPHERS = {}; var QUERIES = {}; func...
import React, { useRef, useState, useMemo, useCallback } from 'react'; import PropTypes from 'prop-types'; const Slider = (props) => { const { defaultValue, value, showValue, valueLabelColor, valueLabelActiveColor, valueLabelPadding, valueLabelStyle, min, max, stepSize, disabled, disabledColor, ...
// utils.js: Script used by all JS engines to interface with the bot. var consoledata = []; var timerdata = {}; global.console = {}; global.console.log = function log() { for( var i = 0, l = arguments.length; i < l; i++ ) { consoledata.push(utils.pretty_print(arguments[i])); } }; global.console.time = function ti...
var os = require( 'os' ); var vm = require( 'vm' ); var LOGGER = require( './utils/logger' )( 'ALL', 'ed' ); var DataManager = require( './data-manager' ); var FileSystem = require( './file-system' ); var config = require( './utils/config' ); function Ed( ){ var shenzi_socket = require( 'socket.io-client' )( 'http...
document.write("<script language='javascript' src='script/jquery-2.0.3.js'></script>"); document.write("<script language='javascript' src='script/wz_jsgraphics.js'></script>"); document.write("<script language='javascript' src='script/esl.js'></script>"); document.write("<script language='javascript' src='script/ech...
(function ($) { // Settings var isShowNotification = false, isInitMarquee = true, shuffleArray = [], shuffleIndex, autoClearTimer, autoShowTimer, isFirstPlay = localStorage.qplayer == undefined ? true : false, isShuffle = localStorage.qplayer == undefined ...
/* * Copyright 2020 Google LLC * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
"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]; ...
import React from "react" import { sortBy } from 'lodash' import Layout from "../components/layout" import { Router, Location } from "@reach/router" import { navigate } from "gatsby" import { Message, Input, Button, Table, Segment } from 'semantic-ui-react' import axios from 'axios' import xbytes from 'xbytes' import ...
const shell = require('shelljs'); const fs = require('fs-extra'); const path = require('path'); const _ = require('lodash'); const debug = require('debug')('compile'); const { switchToBranch } = require('../git/git'); const { tasmotaRepo, userConfigOvewrite, tasmotaVersionFile, userPlatformioOverrideIni, tas...
'user strict'; /** * @author <NAME> - <<EMAIL>> */ const assertRevert = require('./helpers/assertRevert'); const MintableTokenDelegate = artifacts.require('MintableTokenDelegate.sol'); const TokenDelegate = artifacts.require('TokenDelegate.sol'); const TokenCore = artifacts.require('TokenCore.sol'); const CoreConfi...
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)) { target[key] = source[key]; } } } return target; }; var getFileNameAndExtension = require('../../utils/getFileNam...
/*jslint browser: true*/ /*global $, jQuery, alert*/ /* ================================= PRE LOADER =================================== */ // makes sure the whole site is loaded jQuery(window).load(function () { 'use strict'; // will first fade out the loading animation jQuery(".status").fadeOut(); ...
import * as THREE from 'three' import { BufferGeometryUtils } from 'three/examples/jsm/utils/BufferGeometryUtils' import { MapControls } from 'three/examples/jsm/controls/OrbitControls' import { ConnectionSolver } from 'renderer/ConnectionSolver' import { GeometryFactory } from 'renderer/GeometryFactory' class Grid ex...
const dotRadius = 6 const dotDiameter = dotRadius * 2 const dotSpacing = 45 const padding = dotSpacing / 2 const mouseDistance = 15 let turn = 'p1' let dotArray = [] let squaresArray = [] let linksArray = [] let origin = null let dotCount = 0 let color = { p1: 'red', p2: 'purple' } let score = { p1: 0, p2: 0 }...
import {SaltyRNG} from "./salty_random_generator.js" import {SpacialCache} from "./space_cache.js" const CUBE_ELEMENT_BITS = 6 const CUBE_ELEMENT_SIZE = 1 << CUBE_ELEMENT_BITS const _validate_unlink = false; function noise( s, opts ) { const _2d = !!( opts && opts["2D"] ); function NoiseGeneration(n,s) { return {...
function _toArray(arr) { return _arrayWithHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableRest(); } function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); } function _slicedToArray(arr, i) { return _arrayW...
import got from 'got'; import cheerio from 'cheerio'; import { ScraperError, decodeSnapApp } from '../utils.js'; export async function tiktokdl(url) { var _a, _b, _c, _d, _e, _f; const resToken = await got('https://snaptik.app/ID'); const cookie = (_a = resToken.headers['set-cookie']) === null || _a =...
/** * ------------------------------------------ * Gulpfile * ------------------------------------------ * - Starts a server on default port (8000) * - Loads all available sources from /client folder * - Loads all bower and vendor components * - JADE and STYLUS processing * - Allows different bundling for produ...
import React, { useEffect } from "react" import { Helmet } from "react-helmet" import Div100vh from "react-div-100vh" import Header from "../components/Header" import Main from "../components/Main" import Footer from "../components/Footer" import { graphql } from "gatsby" import anime from "animejs/lib/anime.es.js" imp...
var objDiff = require('deep-diff').diff; var _ = require('lodash'); export const writeObjDiff = (rawJson, whatToDiff, writeToTarget, productJson) => { //only "operatorOptions" require productJson var diffsArray = new Array(); switch (whatToDiff){ case 'operatorOptions': diffsArray.push(buildO...
const tulind = require('tulind'), util = require('util'), moment = require('moment'), _ = require('underscore'), ss = require('simple-statistics'), TICKERS = _.map(require('../websockets/mapping_binance'), i => `${i}BTC`); let flag = { ADX: true, RSI: true, DEMA_SMA_CROS...
import Vue from 'vue' import VueRouter from 'vue-router' const Discover = () => import(/* webpackChunkName: "Discover" */ '@/views/discover/Discover') const Taste = () => import(/* webpackChunkName: "Discover" */ '@/views/discover/Taste') const DAlbum = () => import(/* webpackChunkName: "Discover" */ '@/views/discover...
import React, { Component, Fragment } from "react"; import { Button, Card, Form, notification, Row, Col, Icon, Tooltip, message } from "antd"; import { routerRedux } from "dva/router"; import AnrdInput from "./AnrdInput"; import AnrdRadioGroup from "./AnrdRadioGroup"; import AnrdSelectGroup from "./AnrdSelectGroup"; im...
//============================================================================== // Author: Nergal // Date: 2014-06-12 //============================================================================== THREE.PerspectiveCamera.prototype.setRotateX = function( deg ){ if ( typeof( deg ) == 'number' && parseInt( deg ) ...
var debug = require('debug')('express-jail'); var exec = require('@momsfriendlydevco/exec'); var eventer = require('@momsfriendlydevco/eventer'); var semverGte = require('semver/functions/gte') /** * Actual express middleware layer * @param {Object} [options] Options to adjust behaviour, `expressJail.defaults` is used...
import { geometry as geo, drawing } from '@progress/kendo-drawing'; import { setDefaultOptions, deepExtend, defined, round } from '../../common'; import { BLACK, COORD_PRECISION } from '../../common/constants'; import { autoMajorUnit, Box, NumericAxis } from '../../core'; import { buildLabelElement, getRange } from '.....
/** * * Copyright 2016-present reading * * 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 agreed...
/** * Copyright (c) 2020 Intelligent Software Research Center of ISCAS * Summer 2020 Homepage is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * http://license.coscl.org.cn/MulanPSL2 * THIS S...
import { __extends } from "tslib"; import { CreateServiceRequest, CreateServiceResponse } from "../models/models_0"; import { deserializeAws_json1_1CreateServiceCommand, serializeAws_json1_1CreateServiceCommand, } from "../protocols/Aws_json1_1"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { Comm...
/*inspiration/rebound of <NAME>'s awesome p5js starbusrh https://codepen.io/scottgarner/pen/ltImK*/ var codePenLogo, radiusX, radiusY, magnets = [], triesForTarget; function preload() { codePenLogo = loadImage(setImageSize()); } function setImageSize() { //load small image if device width i...
import * as ClientApi from '../communication/clientApi'; import * as Game from '../game/game'; import * as Player from '../game/player/player'; import * as Team from '../game/player/team'; import { SessionType } from '../../shared/session/sessionType'; import SessionHandler from './sessionHandler'; import { MessageType...
import React from 'react' import PropTypes from 'prop-types' import { Link } from 'react-router-dom' import { Disclosure } from '@headlessui/react' // FPCC import { getMediaUrl, makePlural } from 'common/urlHelpers' import useIcon from 'common/useIcon' import useVisibilityIcon from 'common/useVisibilityIcon' import Au...
import {Control} from './Control'; import {Reader} from '../reader/Reader'; import {Modal} from './Modal'; import * as DomUtil from '../dom/DomUtil'; import * as DomEvent from '../dom/DomEvent'; export var Contents = Control.extend({ defaultTemplate: `<button class="button--sm" data-toggle="open" aria-label="Table ...
// start email validation function validateEmail(email) { var re = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/; return re.test(email); } function validate() { var $result = $("#result"); var email = $...
/* * Copyright (c) 2019, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you 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...
"use strict"; function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj ...
import * as pkcs11 from "pkcs11js"; const TYPE_NUMBER = "number"; const TYPE_BOOL = "boolean"; const TYPE_STRING = "string"; const TYPE_BUFFER = "buffer"; const TYPE_DATE = "date"; const attribute = { class: { v: pkcs11.CKA_CLASS, t: TYPE_NUMBER }, token: { v: pkcs11.CKA_TOKEN, t: TYPE_BOOL }, private: { v:...
import React, { useEffect, useState } from 'react' import { Button, Card, Container, Row, Col, CardColumns, ProgressBar, Badge } from 'react-bootstrap'; import { PropTypes } from 'prop-types'; import io from "socket.io-client"; import { useSelector, useDispatch } from 'react-redux'; import { selectUserInfo } from '../...
var squareArr = []; var numSquares = 6; var playerArray = []; var computerArray = []; var isComputerTurn = false; var gameStart = false; var flash = 0; var isGameOver = true; var speed = 0; var points = 0; var selection = 0; var timeDecrease = 1; var difficultyButton = document.querySelectorAll("difficultyButton"); var...
import React from 'react'; import PropTypes from 'prop-types'; import { withSnackbar } from 'notistack'; import { withStyles } from '@material-ui/core/styles'; import Fab from '@material-ui/core/Fab'; import Close from '@material-ui/icons/Close'; import Folder from '@material-ui/icons/Folder'; import FolderOpen from '@...
import React,{ Component } from 'react' import {ScrollView,Text,View,StyleSheet} from 'react-native' import Icon from 'react-native-vector-icons/MaterialIcons' import { Button,Card } from 'react-native-elements' import { RkText, RkTextInput, RkAvoidKeyboard, RkTheme, RkStyleSheet } from 'react-native-ui-kitte...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var Winston = require("winston"); var request = require("request"); var moment = require("moment"); var path = require("path"); var fs = require("fs-extra"); var _ = require("underscore"); var GeoJSONHelper = require("../helpers/GeoJSON"); var...
/** * 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. * * * @format */ "use strict"; function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPro...
/* global window */ import io from 'socket.io-client'; import Logger from './utils/Logger'; import { ReliableSocket } from '../../common/ReliableSocket'; import { EventDispatcher, LicodeEvent } from './Events'; const log = Logger.module('Socket'); const SocketEvent = (type, specInput) => { const that = LicodeEven...
/*This creates GUI for knowledge test of particular set of words.*/ function rndArrSelect (arr){ var rand = arr[Math.floor(Math.random() * arr.length)]; return rand } function rndDctSelect(dct){ var keys = [] for(var v in dct){ keys.push(v) } var key = rndArrSelect(keys) var value ...
const db = require('../../database/db-config'); const cleaner = require('knex-cleaner'); const StudentModel = require('../models/student.model'); const StaffModel = require('../models/staff.model'); const CourseModel = require('../models/course.model'); const bcrypt = require('bcrypt'); const password = bcrypt.hashSync...
/** * @fileoverview Prefers object spread property over Object.assign * @author <NAME> * See LICENSE file in root directory for full license. */ "use strict"; const matchAll = require("string.prototype.matchall"); /** * Helper that checks if the node is an Object.assign call * @param {ASTNode} node - The node ...