text
stringlengths
3.22k
29.5k
import si from '../../dist/search-index.esm.js' import test from 'tape' import wbd from 'world-bank-dataset' const sandbox = 'test/sandbox/' const indexName = sandbox + 'WB' test('create a little world bank index', t => { t.plan(1) global[indexName] = si({ name: indexName }) t.ok('loaded') }) test('give lazy l...
/* This game initially started with a 500 x 1000 sized board, which is way too large when Chrome is set to 100%. The boardIncrement variables and the weird fractions in some of the drawing functions (boardIncement / 1.482676 or whatever) were created with the initial 500 x 1000 board dimensions in mind. */ window.onlo...
const Sample = require('./sample-automata') const Automaton = require('./automaton') const EMPTY = 0 const WORD = 1 const STAR = 2 const SUM = 3 const CONCAT = 4 const EPSILON = 'E' /** Class representing a regular expression */ class RegularExpression { /** * create a regular expression * @param {number|...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default; exports.__esModule = true; exports.throwError = throwError; exports.toUnixPath = toUnixPath; exports.getNormalizedRelativePath = getNormalizedRelativePath; exports.processJsonSchema = processJsonSchema; exports...
/*! * Module Functions */ /** * @namespace Functions */ const MODULE_NAME = 'Functions'; import {orDefault, isA, isPlainObject, assert, hasValue} from './basic.js'; import {schedule, reschedule} from './timers.js'; /** * @namespace Functions:throttle */ /** * Returns a throttled function (based on an un...
const canvas = document.getElementById('canvas') const score1 = document.getElementById('score1') const score2 = document.getElementById('score2') const gridInput = document.getElementById('grid-input') const sizeInput = document.getElementById('size-input') const status = document.getElementById('status') const div = ...
"use strict"; var _mines_game = require("./mines_game.js"); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = p...
var markers = { "type": "FeatureCollection", }; (function($) { var data; var events = []; $.ajax({ type: "GET", //url: "https://sortonslagriculturedusalon.fr/test.tsv?" + Math.random(), url: "https://docs.google.com/spreadsheets/d/e/2PACX-1vSQm5xowwY1yJ2p5Ejuk9bfKXHs3OnGwK9W...
let TEACHER_ADD_SCHEDULE = {}; let getRemoveImage = $("[name=removeImage]").attr('content'); let M007 = $("[name=M007]").attr('content'); let RouteValidateSchedule = $("[name=routeValidateSchedule]").attr('content'); let lengthArray = []; let lengthTemp = []; $(function () { TEACHER_ADD_SCHEDULE.init = function () ...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); 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]; } }...
/* global Vue, $, injectedData, randomId */ Vue.component('wicked-pools', { props: ['value'], data: function () { // console.log(this.value); const oidcClaims = [ "sub", "name", "given_name", "family_name", "middle_name", "...
"use strict"; const {go} = require('ts-csp'); require('moment-timezone'); const {mergeValidTime, cutoffBefore, } = require('./common'); const prepareDar1Husnummer = client => mergeValidTime(client, 'dar1_husnummer_history', 'dar1_husnummer_prepared', ['id'], ['id', 'status', 'husnummertekst', 'adgangspunkt...
"use strict"; var debug = require('debug')('app'); var express = require('express'); var session = require('express-session'); var fs = require('fs'); var path = require('path'); var favicon = require('serve-favicon'); var logger = require('morgan'); var cookieParser = require('cookie-parser'); var bodyParser = require...
import React, { useEffect, useRef, useState } from "react"; import classNames from "classnames"; import styles from "../CourseVideos.module.css"; import "./VideoPlayer.css"; import videojs from "video.js"; import axios from "axios"; require("videojs-contrib-quality-levels"); require("videojs-http-source-selector"); re...
const asyncAuto = require('async/auto'); const asyncEach = require('async/each'); const asyncReflect = require('async/reflect'); const {broadcastChainTransaction} = require('ln-service'); const {cancelPendingChannel} = require('ln-service'); const {deletePendingChannel} = require('ln-service'); const {fundPendingChanne...
const path = require('path'); const webpack = require('webpack'); const HtmlWebpackPlugin = require('html-webpack-plugin'); // const ExtractTextPlugin = require("extract-text-webpack-plugin"); const MiniCssExtractPlugin = require('mini-css-extract-plugin'); // const autoprefixer = require('autoprefixer'); // const Ugli...
/*********** * * Math * **********/ function add(x, y) { return x + y; }; function subtract(x, y) { return x - y; }; function multiply(x, y) { return x * y; } function divide(x, y) { if (y === 0) return undefined; return x / y; } /* Trim redundant tailing zero: 1.2000 to 1.2, 1.000 to ...
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import immutable from 'immutable'; import Tabs from '../../components/Tabs'; import StatusDialog from '../../components/StatusDialog'; import Header from '../../components/PageLayout/Header'; import { validationTypes, textValidations, dropdo...
$(document).ready(function(){ $('#nextBtn').on('click',function(e){ e.preventDefault(); $('#nextBtn').hide(); $('#idLoader').addClass('opacityN'); firstLogin($('#idInput').val()); }) function firstLogin(id){ $.ajax({ url : 'first-login/'+id, typ...
/** * Writer implementation. * * @date: 23/08/2014 * @author: <NAME> * @copyrightYear: 2014-2015 * @copyright: National ICT Australia */ "use strict"; var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enu...
/** * * LayoutHome * */ import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { createStructuredSelector } from 'reselect'; import { compose, bindActionCreators } from 'redux'; import { withStyles } from '@material-ui/core/styles'; import Drawer from '@materia...
// Copyright 2017 <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 applicable law or agreed to in w...
/** * @file Helixorient * @author <NAME> <<EMAIL>> * @private */ import { Vector3 } from 'three'; import { ColormakerRegistry } from '../globals'; import { AtomPicker } from '../utils/picker'; import RadiusFactory from '../utils/radius-factory'; import { copyArray } from '../math/array-utils'; import { projectPoint...
/** * Copyright (c) 2014, Facebook, Inc. All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * */ 'use strict'; ...
import React, { Component} from "react"; import {request} from '../../utils/helper'; import moment from 'moment'; import { Icon, Button, Dropdown, Modal, Form, Dimmer, Loader, Segment, Transition } from 'semantic-ui-react' import { getJobsAtDate, getJobsInDates, getDays, MonthListDay } from '../etc/Calendar_Helper'; ...
/** * * Reference : https://fr.wikipedia.org/wiki/Liste_des_indicatifs_t%C3%A9l%C3%A9phoniques_en_C%C3%B4te_d%27Ivoire * @author <NAME> */ export const OPERATORS = { MOOV : { prefixMobile10 : "01", prefix10 : "21", prefixMobile8 : ["01","02","03","40","41","42","43","50","...
const hre = require("hardhat"); const chai = require("chai"); const { solidity } = require("ethereum-waffle"); chai.use(solidity); const { expect } = chai; const moveTimeForward = async (seconds) => { await network.provider.send("evm_increaseTime", [seconds]); await network.provider.send("evm_mine"); }; // use wi...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.createErrorsClass = createErrorsClass; exports.default = void 0; var _react = _interopRequireWildcard(require("react")); var _propTypes = _interopRequireDefault(require("prop-types")); var _reactRedux = require("react-redux"); v...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const inversify_1 = require("inversify"); const warehouses_1 = require("../warehouses"); const Warehouse_1 = tslib_1.__importDefault(require("@modules/server.common/entities/Warehouse")); const GeoLocation_1 =...
import React, { useState, useMemo, useEffect } from "react"; import { useHistory } from "react-router-dom"; import { FaUserCircle } from "react-icons/fa"; import "../styles/pages/register.css"; import RegisterHead from "../components/registerHead.js"; import api from "../services/api"; function Register() { const pe...
// Perform tasks on page load. (function() { // Arguments passed into this controller can be accessed off of the `$.args` object directly or: var args = $.args; var currentID = Ti.App.Properties.getString('currentID'); var currentTelephoneNumber = Ti.App.Properties.getString('telephoneNumber'); var nid = Ti...
import { observable, action, computed } from 'mobx'; import requester from '../services/requester'; import MarketStore from './MarketStore'; class PortfolioStore { @observable portfolios; @observable selectedPortfolio; @observable selectedPortfolioId; @observable currentPortfolioAssets; @observable currentPo...
function pushParametersToLinks() { var current_url = window.location.href; var start_index = current_url.indexOf('?'); if (start_index > 0) { $(".dropdown").each(function() { $(this).attr('href',$(this).attr('href') + current_url.substring(start_index)); }); }; } window.onload = pushParametersToLinks; /* ...
/* node-http-proxy.js: http proxy for node.js Copyright (c) 2010 <NAME>, <NAME>, <NAME>, <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without...
/** * We need to run these tests with async-to-gen to get * them working in the latest stable version of electron... * which still doesn't have support for the `async / await` * syntax. */ const expect = require('expect') const Channel = require('../src/index.js') describe('Channel', function () { describe('ex...
var scene = new THREE.Scene(); var renderer = new THREE.WebGLRenderer({antialias:true,transparent:true}); renderer.setClearColor(0x000000,0); renderer.setClearAlpha(0); document.body.appendChild(renderer.domElement); renderer.setSize(innerWidth,innerHeight); var persp = new THREE.PerspectiveCamera(30, innerWidth/inner...
// features/support/world.js const chalk = require('chalk') const hardhat = require("hardhat") const ethers = require('ethers') const { expect } = require('chai') const { call } = require('../../helpers/call') const { deployTestPool } = require('../../../js/deployTestPool') const { AddressZero } = require('ethers').co...
import React from 'react' import PropTypes from 'prop-types' import FlatButton from 'material-ui/FlatButton' import RaisedButton from 'material-ui/RaisedButton' import Dialog from 'material-ui/Dialog' import { routerActions } from 'react-router-redux' import { connect } from 'react-redux' import { grey500 } from 'mate...
"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 ...
var openttd = require("./openttd/openttd"); var Client = require("./openttd/client"); function OpenTTDPlugin(bot) { var self = this; self.name = "openttd"; self.help = "OpenTTD plugin"; self.depend = ["cmd", "bits", "util"]; self.defServer = null; self.defPort = 3979; self.defVersion = "1.6.1"; self.channels...
"use strict"; var __generator = (this && this.__generator)/* istanbul ignore next */ || function (thisArg, body) { var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol ==...
var actual = { value: null, active: false }; var index_object = 0; var icon_list = [ "./rest/Billet.png", "./rest/coffee.png", "./rest/Beer.png", "./rest/Briquet.png", "./rest/Burger.png", "./rest/camera.png", "./rest/champagne.png", "./rest/cigarette.png", "./rest/cola.png", "./rest/donuts.png", "./rest/fr...
var tableGraph = data_starttimeXnum; // document.getElementById("infoNumber").value=j.length; // function loadHeatMap() // { // var itemSize = 22, // cellSize = itemSize - 1, // margin = {top: 120, right: 20, bottom: 20, left: 110}; // var width = 750 - margin.right - margin.left, // height ...
import React, { useState, useEffect, Reducer } from "react"; import { View, ScrollView, Text, TextInput, Image, TouchableOpacity, } from "react-native"; import AsyncStorage from "@react-native-community/async-storage"; import warnIcon from "../../assets/images/icons/warning.png"; import PageHeader from "../...
const { toFile } = require('./download'); const { getAdSet } = require('./adBlocker'); const credentials = require('./credentials'); const { sleep } = require('./sleep'); const { API } = require('./Pagetest'); const { countHits } = require('./countHits'); const fetch = require('node-fetch'); const { getFMP } = require(...
const _ = require('lodash'); const cheerio = require('cheerio'); const jc = require('@johman/constants'); const jh = require('@johman/helper'); const axios = require('axios'); const vm = require('vm'); const c = require('./constants.js'); const userAgent = 'Mozilla: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:47.0) Ge...
const app = { round: 1 ,board: [] ,boardSize:3 ,totalPossibleScore:0 ,score:0 ,scoreLastMaximum:0 ,scoreMaximum:1 ,has_won:false ,result_message:"" ,difficulty:1 ,requiredPercentage:0 ,d:document ,randomList:[] } app.d.getElementById("1").addEventListener("click", s...
const initialBox = document.querySelector(".initial-box"); const logoTitle = document.querySelector(".logo-title"); const imagesGif = document.querySelector(".images-gif"); const about = document.querySelector(".about"); const lastInformations = document.querySelector(".last-informations"); const backButtons = document...
function PdfEditor (_cont) { PIXI.Container.call(this); var self = this; this.type = 'PdfEditor'; _cont.addChild(this); this._width = 100; this._height = 100; this._otstup = 2; this._otstup1 = 5; this._mashtab = 1; /** Компонент что занимаеться заменой языков */ this._languageComponent = null; /** Высот...
/********************************************************************************************************************* * Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * ...
// 首页的js /* 头部 */ import{Render} from './render.js'; import{headerinit} from './headerinit.js'; import{Tab} from './Tab.js'; import{Menu} from './levelmn.js'; import{Channel} from './channel.js'; function demoinit(){ /* 1 获取头部父容器 显示用户名 */ headerinit(); /* 1 搜索框 */ const searchtext=document.querySelecto...
const VERTICAL = 'VERTICAL'; const HORIZONTAL = 'HORIZONTAL'; /** * Returns a random number between min and max * * @param {number} min minimum random number to return * @param {number} max maximum random number to return * @returns {number} */ const randomIndexBetweenValues = (min, max) => ( Math.floor((Mat...
// Each click toggles between the values, which are the children of the element // Values are numbered 0..n in code. Tangle.classes.Enum = { initialize: function (element, options, tangle, variable) { element.addEvent("click", function (event) { var n = element.getChildren().length; ...
//Site baseado no jogo term.ooo desenvolvido por <NAME> var teclado = ["Q","W","E","R","T","Y","U","I","O","P","A","S","D","F","G","H","J","K","L","Z","X","C","V","B","N","M","Backspace","Enter"] var curResp = ["","","","",""] var pos = 0; var linha = 0; var acerto = false; var erro = false; var db, atual; ...
// this sets the background color of the master UIView (when there are no windows/tab groups on it) Titanium.UI.setBackgroundColor('#000'); db = require('system/db'); db.init(); var needSetup = function(e){ var setup = Ti.App.Properties.hasProperty("setup"); if (!setup) { //Setup an account if info not setup ye...
"use strict" const WebSocket = require('ws') //CLASSES const Logger = require('../../../helper/Logger') const Api = require('../../../api/Api.js') const DiscordLog = require('../../../helper/DiscordLog') const ClearChat = require("../IrcTags/ClearChat") const ClearMsg = require("../IrcTags/ClearMsg") const SqlChannelPo...
var debug = require('debug')('home'); var util = require('util'); var moment = require('moment'); var _ = require('underscore'); var validUrl = require('valid-url'); var router = require('express').Router(); var agent = require('superagent-promise')(require('superagent'), Promise); var key = process.env.TRELLO_KEY; ...
import React from 'react'; import Header from './components/Header'; import Sidebar from './components/Sidebar'; import MapLens from './components/MapLens'; import MapView from './components/esrijs/MapView'; import config, { useCurrentTabConfig } from './config'; import './App.scss'; import About from './components/Abo...
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnPrope...
const fs = require('fs') const Debug = require('../debug.js') const Config = require('../config.js') const Command = require('./command.js') const { RichEmbed } = require('discord.js') module.exports = class Roleplay extends Command { setup(router) { this.config = Config('roleplay') this.config.rout...
var __timer, __hexaMode=false; var main=function() { HelicoLeapController.init(); Console.init(); Gamepad.init(); Socket.init(); if (document.cookie){ var split0=document.cookie.split('macBegin'); if (split0.length>1) { $('#mac').val(split0[1].split('macEnd')[0]); } } }; //end main(); var Socket=(fun...
/* STEP 1 */ export const leagueID = "654218056842694656"; // your league ID export const leagueName = "Small peens only"; // your league name export const dues = 75; // (optional) used in template constitution page export const dynasty = true; // true for dynasty leagues, false for redraft and keeper export const ...
var particlesWaterList; var particlesMistList; var gun; var car; var shapes; class PixelCars extends Phaser.Scene { constructor() { super(); } preload() { this.load.image("gun", "assets/gun.png"); this.load.image("character", "assets/character.png"); this.load.image("car", "assets/car_test.png"...
import React, { Component } from 'react'; import { Scrollbars } from 'react-custom-scrollbars'; import { range, cloneDeep } from 'lodash'; // isEqual const offsetBottom = node => node.offsetTop + node.clientHeight; const offsetTop = node => node.offsetTop; // itemClassName // getScroll // setCurrentItem class Smart...
"use strict"; const execSync = require('child_process').execSync; const puppeteer = require("puppeteer-core"); const term = require("terminal-kit").terminal; const fs = require("fs"); const path = require("path"); const yargs = require("yargs"); const find = require("find"); const argv = yargs.options({ v: { ali...
/********************************************************************** Copyright 2020 Misty Robotics Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/li...
import React, { useState, useEffect, useRef } from "react"; import { connect } from 'react-redux'; import { withRouter } from 'react-router-dom'; // @material-ui import { makeStyles } from "@material-ui/core/styles"; // core components import GridContainer from "components/Grid/GridContainer.js"; import GridItem from...
'use strict'; import * as ActionTypes from '../constants/actionTypes'; import { fetchReducer, findItemIndex, addOrRemoveIn, removeIn, addOrReplaceIn } from './mutators'; // Autocomplete const autocompleteState = { // Required for fetchReducer/mutationReducer isFetching: false, paginat...
//code from https://github.com/Wiebke/TangramGenerator //Copyright (c) 2019 <NAME> /** * Class for computation of evaluation measures, contains different measures * and final value of the evaluation function */ var evaluationMode = 0; var faculty = [1,1, 2, 6, 24, 120, 720, 5040, 40320]; function Evaluation(tans, ...
var SpotifyWebApi = require('spotify-web-api-node'); const express = require('express'); const socket = require('socket.io'); const path = require("path"); const app = express(); var credentials = { clientId: '<KEY>', clientSecret: '970a4174e3514e9ab94bc19e65cc1a2b', redirectUri: 'http://192.168.1.12:3000...
import parserjs from 'parserjs/dist'; import { getVal, setLocalVal, setGlobalVal } from './Stack'; const { parser, txt, or, reg } = parserjs; const operators = { '**': (a, b) => a ** b, '*': (a, b) => a * b, '/': (a, b) => a / b, '%': (a, b) => a % b, '+': (a, b) => a + b, '-': (a, b) => a - b, '>': (a,...
/** * @fileOverview Import bitmap data into Scratch 3.0, resizing image as necessary. */ /* eslint-disable global-require */ const base64js = require('base64-js'); let fontLoadStatus = 'unloaded'; const FONTS = { 'Sans Serif': 'NotoSans-Medium.ttf', 'Serif': 'SourceSerifPro-Regular.otf', 'Handwriting': 'handl...
import React from 'react'; import {View, Text, StyleSheet, FlatList, Alert, ActivityIndicator, TouchableOpacity, SafeAreaView, ScrollView} from 'react-native'; import {Avatar, Button, ListItem} from 'react-native-elements'; import Icon from 'react-native-vector-icons/FontAwesome'; import firebase from "react-native-fir...
import { getAllProducts, getProduct, getProductDetails } from "./services/storeService.js"; let productCategories = {}; $(document).ready(function () { getAllProducts() .then(response => { productCategories = JSON.parse(response); renderProducts(productCategories); ren...
import React from 'react'; const Breadcrumbs = React.lazy(() => import('./views/Base/Breadcrumbs')); const Cards = React.lazy(() => import('./views/Base/Cards')); const Carousels = React.lazy(() => import('./views/Base/Carousels')); const Collapses = React.lazy(() => import('./views/Base/Collapses')); const Dropdowns...
//declaring variables for profile const editProfile = document.querySelector('.edit-profile'); const closeMenu = document.querySelector('.close-menu'); const submit = document.querySelector('.submit-changes'); const topics = document.querySelector('.topics'); const posts = document.querySelector('.posts'); const upvote...
var language = { // General toolTitle : 'User Testing Tool', toolTagline: 'You can help', info : 'About', close: 'Close', backToHome : 'Back to home', backToOverview: 'Back to overview', save: 'Save evaluation', saved: 'Evaluation saved', // home page homeStart: 'Start...
import assign from 'lodash/assign' import getIn from 'lodash/get' import isPlainObject from 'lodash/isPlainObject' import btoa from 'btoa' import url from 'url' import http, {mergeInQueryOrForm} from './http' import {getOperationRaw, idFromPathMethod, legacyIdFromPathMethod} from './helpers' const arrayOrEmpty = (ar) ...
"use strict"; var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, privateMap, value) { if (!privateMap.has(receiver)) { throw new TypeError("attempted to set private field on non-instance"); } privateMap.set(receiver, value); return value; }; var __classPriv...
'use strict'; // // File: app.js // // Entry point to launch the chat bot application // // Author: <EMAIL> (carlos) (c) May 2017 // var parseJson = require('parse-json'); var chatinterface = require("./lib/mycoupefbinterface.js"); var internalapi = require("./lib/api.js"); var chatai = require("./lib/mycouperw...
'use strict'; var note_id = 0; var last_click_pos = { "x" : 0, "y" : 0 } var last_scroll_top = 0; /*! * For a contenteditable div, set the cursor to the given index position on the given line number. * * div: A document selector to the contenteditable div. Not a jQuery selector. * line: The line to place th...
import React from 'react'; import SkyLight from 'react-skylight'; import { SERVER_URL } from '../../constants.js'; import Button from '@material-ui/core/Button'; import TextField from '@material-ui/core/TextField'; import Snackbar from '@material-ui/core/Snackbar'; import FormControlLabel from '@material-ui/core/FormCo...
/*jslint node: true */ /*jshint -W069 */ 'use strict'; var CmdLineOpts = require('commander'); var MongoClient = require('mongodb').MongoClient; var LineByLineReader = require('line-by-line'); var assert = require('assert'); var config = require('./config.json'); var VariantRecord = require('./VariantRecord.js'); var ...
import React, {useEffect, useState} from 'react' import {SafeAreaView, ScrollView, StyleSheet, Text, View} from 'react-native' import Header from "../components/Header"; import {HeaderBackButton} from "@react-navigation/stack"; import Loading from "../components/Loading"; import {Button, Card} from "react-native-elemen...
//---------------------------------------// // Define experiment parameters. //---------------------------------------// // Define transition probabilities. const trans_probs = [0.7,0.3]; // [common, uncommon] const trans_bounds = [0.6,0.8]; // bounds around common // Define timing parameters. const ...
import { Component } from 'react' import Fetcher from '../lib/Fetcher' // Keeps track of a group of promises that should // be run in series or in parallel. Each promise has an // associated key for caching and so that the group // can be compared to another promise group to determine // if the results will be the sam...
"use strict"; const { Option } = require("commander"); const path = require("path"); const isLocal = typeof process.pkg === "undefined"; const basePath = isLocal ? process.cwd() : path.dirname(process.execPath); const { MODE } = require(path.join(basePath, "src/blendMode.js")); const buildDir = path.join(basePath, "/...
'use strict'; const sprintf = require('sprintf-js').sprintf; const fs = require('fs'); /** * Area edit - Main menu */ module.exports = (srcPath) => { const Broadcast = require(srcPath + 'Broadcast'); const EventUtil = require(srcPath + 'EventUtil'); const Logger = require(srcPath + 'Logger'); ...
var colors = require('colors'), request = require('request'), cheerio = require('cheerio'), striptags = require('striptags'), moment = require('moment'), Entities = require('html-entities').Html5Entities, debug = require('debug')('tdflive'), keypress = require('keypress'); var entities = ne...
// the origina AOBench // http://code.google.com/p/aobench/ "use strict"; var NSUBSAMPLES = 2 var NAO_SAMPLES = 8 function vec(x, y, z) { this.x = x; this.y = y; this.z = z; } function vadd(a, b) { return new vec(a.x + b.x, a.y + b.y, a.z + b.z); } function vsub(a, b) { return new vec(a.x - b....
dojo.require("esri.dijit.Legend"); dojo.require("esri.dijit.Measurement"); dojo.require("esri.dijit.Scalebar"); dojo.require("esri.tasks.Locator"); dojo.require("esri.arcgis.utils"); var currentBasemap; var geocoder; var webmapResponse; var basemaps = {"currentVersion":10.01,"folders":["Canvas","Demographics","Eleva...
let raw_filters = []; let filter_ids = []; let filter_tags = []; async function getLocalStorageValue(key) { return new Promise((resolve) => { chrome.storage.sync.get(key, function (value) { resolve(value) }) }); } chrome.omnibox.onInputChanged.addListener( async (text, suggest) => { if(text.startsWith('filter')...
Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var is_1 = require("./is"); var memo_1 = require("./memo"); var object_1 = require("./object"); var stacktrace_1 = require("./stacktrace"); /** * Recursively normalizes the given object. * * - Creates a copy to prevent ori...
/** * a popup for dialogues and messages * similar to the color chooser * it has a contentdiv (scrolling, with variable content) and an optional controldiv (mainly close button) * @constructor Popup * @param {...object} newDesign - modifying the default design, multiple designs possible */ import { Button, ...
import React from 'react'; import FirstStep from './children/firststep'; import SecondStep from './children/secondstep'; import ThirdStep from './children/thirdstep'; import FourthStep from './children/fourthstep'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import * as actions ...
import {Menu, Pressable, ScrollView, Stack} from 'native-base'; import React, {useCallback, useEffect, useState} from 'react'; import {Platform, RefreshControl} from 'react-native'; import RNExitApp from 'react-native-exit-app'; import RNFS from 'react-native-fs'; import {useDispatch} from 'react-redux'; import {addTes...
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// /// JS Simple FW /////////////////////////////////////////////////////////////////////////////////////////////////// /** * Protect window.console method calls, e.g. console is not defined on IE ...
async function html2svgImg(el = document.body) { var width = el.offsetWidth var height = el.offsetHeight // container var container = document.createElement('div') // style var styleWrap = document.createElement('div') var styles = document.querySelectorAll('style') styles.forEach(style => { style...
var pym = require('./lib/pym'); var ANALYTICS = require('./lib/analytics'); require('./lib/webfonts'); var { isMobile } = require('./lib/breakpoints'); var $ = require('./lib/qsa'); console.clear(); var { getTimeStamp, arrayToObject, isPlural, getData, updateTime, geoAlbersUsaPr } = require("./util"); var labelSide ...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import moment from 'moment'; import styled, { keyframes } from 'styled-components'; import { withRouter } from 'react-router-dom'; import { connect } from 'react-redux'; import ReCAPTCHA from '../ReCAPTCHA'; import * as actions from './action...