text
stringlengths
3.22k
29.5k
mersenneE = [2, 3, 5, 7, 13, 17, 19, 31, 61, 89, 107, 127, 521, 607, 1279, 2203, 2281, 3217, 4253, 4423, 9689, 9941, 11213, 19937, 21701, 23209, 44497, 86243, 110503, 132049, 216091, 756839, 859433, 1257787, 1398269, 2976221, 3021377, 6972593, 13466917, 20996011, 24036583, 25964951, 30402457, 32582657, 37156667, 426438...
import * as React from 'react'; import { DataGrid } from '@material-ui/data-grid'; import clsx from 'clsx'; import { makeStyles } from "@material-ui/core/styles"; import { withStyles } from '@material-ui/core/styles'; import Button from '@material-ui/core/Button' import DeleteIcon from '@material-ui/icons/Delete'; im...
// const center = require('center-align') const { parse } = require('node-html-parser') require('colors') const terminalLink = require('terminal-link') const { AllHtmlEntities: Entities } = require('html-entities') const Ansi = require('./ansi') const entities = new Entities(); const urls = { 'meta.stackexchange.c...
//@ts-check const MojiJS = require("mojijs"); const yomi2voca = require("./lib/yomi2voca/yomi2voca.js"); const File = require("./lib/File.js"); const env = File.getEnvironmentFile("./environment.sh"); const MeCab = require("mecab-async"); const mecab = new MeCab(); // @ts-ignore MeCab.command = env["MECAB_RUN"]; /**...
const express = require('express'); const { find } = require('lodash'); const acsQuery = require('../query-helpers/acs'); const decennialQuery = require('../query-helpers/decennial'); const specialCalculationConfigs = require('../special-calculations'); const deserializeGeoid = require('../utils/deserialize-geoid'); c...
/* * 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 may n...
// @ts-check console.log(); console.log("Azure Cosmos DB Node.js Samples"); console.log("================================"); console.log(); console.log("USER MANAGEMENT"); console.log("================"); console.log(); const cosmos = require("../../lib/src"); const CosmosClient = cosmos.CosmosClient; const config = ...
import React, { Component } from 'react' import PropTypes from 'prop-types' import { withStyles } from 'material-ui/styles' import Button from 'material-ui/Button' import Avatar from 'material-ui/Avatar' import Typography from 'material-ui/Typography' import List from 'material-ui/List' import ListItem from 'material-u...
var qzConfig = { preemptive: {isActive: '', getVersion: '', getPrinter: '', getLogPostScriptFeatures: ''}, callbackMap: { findPrinter: 'qzDoneFinding', findPrinters: 'qzDoneFinding', appendFile: 'qzDoneAppending', appendXML: 'qzDoneAppending', appendPDF:...
/* // iMon Display Driver (LCDDriver) V0.1.5 // Serial LCDd (LCDProc) Driver for iMon LCD screen // // Main Contributor : <NAME> (<EMAIL>) // // Based on lcdproc-client by <NAME> (atlantageek @ github) // https://github.com/atlantageek/-lcdproc-client-node // */ /* Require necessary modules */ var net = re...
//OnLoad $(function () { pageFunc(1); }); //init $('#btnInit').click(function(){ swal({ title: "Init Value", text: "Would you like to Init value?", icon: "info", confirmButtonColor: '#3085d6', cancelButtonColor: '#d33', buttons: true }).then((willDelete) => ...
import React, { useState, useEffect } from "react"; // @material-ui/core components import { makeStyles } from "@material-ui/core/styles"; // core components import GridItem from "../../components/Grid/GridItem.js"; import GridContainer from "../../components/Grid/GridContainer.js"; import Button from "../../component...
if (document.getElementById('edit-title')) { var textarea = document.getElementById('post-d'); var edittitle = document.getElementById('edit-title').innerHTML; textarea.onkeydown = function(e) { var s = this.selectionStart; if (e.keyCode == 9 || event.which == 9) { e.preventDefault(); this.val...
/* eslint max-len: off, max-statements: off, prefer-named-capture-group: off */ import path from 'path'; import chalk from 'chalk'; import program, {InvalidOptionArgumentError} from 'commander'; import inquirer from 'inquirer'; import rimraf from 'rimraf'; import pkg from '../package.json'; import mkdir from './mkdir'...
import detectPassiveEvents from 'detect-passive-events'; import memoizeOne from 'memoize-one'; import listSeparator from './utils/listSeparator'; import reactHandlerExists from './utils/reactHandlerExists'; import typeArray from './utils/typeArray'; const AWAIT_REACT = 'react'; const GHOST = 'ghost'; const OPTION_KEY...
import fs from "fs"; import del from "del"; import gulp from "gulp"; import debug from "gulp-debug"; import plumber from "gulp-plumber"; import notifier from "node-notifier"; import pug from "gulp-pug"; import gulpLoadPlugins from "gulp-load-plugins"; import newer from "gulp-newer"; import cached from "gulp-cached"; im...
var db = require('./db'); var utils = require('./utils'); var POLL_TIMEOUT = 600000; // 10 minutes var _setClosePollTimer = function(params) { var timeout = setTimeout(function() { results(params, function(err, result) { if (err || result === null) { console.log("Poll has been ...
import Ember from "ember"; var $ = Ember.$; var guid = 0; export function resetGuid() { guid = 0; } function toArray(arr) { return [].map.call(arr, item => item); } function toInt(val, base = 10) { return parseInt(val, base) || 0; } function extractID(possibleID) { var match = /^(?:up_|item\?id=)(\d+)$/.e...
const CovLine = require("./line"); const { sliceRange } = require("./range"); const { GREATEST_LOWER_BOUND, LEAST_UPPER_BOUND } = require("source-map").SourceMapConsumer; module.exports = class CovSource { constructor(sourceRaw, wrapperLength) { sourceRaw = sourceRaw ? sourceRaw.trimEnd() : ""; this.lines ...
import { useDispatch, useSelector } from 'react-redux'; import { addReport, sendDraftReport } from '../reducers/orderReports'; import { sendDraftImages } from '../reducers/reportImages'; import { sendDraftNotes } from '../reducers/imageNotes'; import Popup from 'reactjs-popup'; import Navbar from '../components/Navba...
let userId; let userName; let currentUser; let newMember = null; let signedOut = null; let dropdownItems = ["Favorites", "Logout"]; $(document).ready(function() { document.getElementById("user-sign-in").style.display = "none"; const ms = document.getElementById("main-section"); ms.classList.remove("blur-e...
import { Component, Fragment } from 'inferno'; import { useBackend, useLocalState } from '../backend'; import { Box, Button, Flex, Grid, Icon, LabeledList, Modal, NoticeBox, Section, Table, Tabs } from '../components'; import { NtosWindow } from '../layouts'; const CONTRACT_STATUS_INACTIVE = 1; const CONTRACT_STATUS_A...
import React from "react"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { faInfo } from '@fortawesome/free-solid-svg-icons'; import { Popover, Button, OverlayTrigger } from "react-bootstrap"; import "../../../css/performance.css"; import "../../../css/form.css"; import "../../../css/chart.c...
'use strict'; var frames = [ { name:'MATTEBY', codeName:'MATTEBY', sizes:[{ name:'8R', width:2400, height:3000, price:'20.0' },{ name:'12R', width:3600, height:4500, price:'70.0' }] }, { displayName:'Golden', codeName:'GOLDEN', sizes:[{ name:'4R', width:1200, height:1800, price:'1...
const BinaryCoding = require('./binary_coding/binary_encoder.js') const QR = require('qrcode-terminal') const Utils = require('./WhatsAppWeb.Utils') /** * @typedef WhatsAppMessage * @property {Object} key metadata about the sender * @property {string} key.remoteJid sender ID (could be group or individual) * @prope...
function vnf_template_list(url){ axios.get(url+'ObjectManagement/GenericTemplate/').then((response) => { var response = response.data; for (var i =0; i< response.length; i++) { if (response[i].templateType == "VNF" && response[i].operationStatus == "UPLOAD") { document.getElementById("vnf_table"...
import React, {useRef} from "react"; import { motion } from "framer-motion" import loaderStyles from "./Loader.module.css"; // const bgVariants = { // hidden: {opacity: 0}, // visible: { // opacity: 1, // transition: { duration: 1 } // } // } const Loader = () => { const constraintsRef = ...
/** * Copyright (c) 2017 <NAME> and <NAME> * * This software is released under the MIT License. * https://opensource.org/licenses/MIT */ let BaseGame = require('./../../core/base_game') let SimCamera = require('./../../core/camera/sim') let CustomButton = require('./../../components/custom_button') let { ipcRe...
//giving image height a value breaks the functionality of the keyboard import React, {Component} from 'react'; import { Text, View, StyleSheet, Dimensions, Image, ActivityIndicator, } from 'react-native'; import Animated, {Easing} from 'react-native-reanimated'; import {TapGestureHandler, State} from 'reac...
let trailerFull = document.getElementById('trailerFull'); let trailerNone = document.getElementById('trailerNone'); trailerFull.style.display = 'none'; trailerNone.style.display = 'none'; function setCookie(cookieName, cookieValue, hoursToExpire, path, domain) { let date = new Date(); date.setTime(date.getTime() +...
/* * Copyright (C) 2020 <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 writi...
import React, { Component } from 'react' import I18n from 'react-native-i18n' import { Actions, ActionConst } from 'react-native-router-flux' import { Container, Header, Left, Item, Input, Button, Text, Form, Toast, } from 'native-base' import { Image, View, Linking, ScrollView, ActivityIndi...
import React, { forwardRef, useEffect, useRef, useReducer, useImperativeHandle, } from 'react'; import PropTypes from 'prop-types'; import { classNames, mockState, startOfMonth, subMonths, addMonths, getDaysInMonth, } from '@poool/junipero-utils'; import BaseField from '../BaseField'; import Drop...
'use strict' import { createObjectPrototype } from 'component-registry' import BaseField from './BaseField' import { i18n } from '../utils' /* Credit card field validator Port of: http://jquerycreditcardvalidator.com/ */ import { ICreditCardField } from '../interfaces' export default createObjectPrototy...
import { Input, InputNumber, Card, Button,Table,message,Form,Icon,Popconfirm, Select, Modal, Divider } from 'antd' import React from 'react' import { connect } from 'dva'; //import EditableCell from '../../components/EditableCell' //import EditableContext from '../../components/EditableCell/EditableContext' import styl...
import React from "react" import {Form, FormGroup, Col, Row, FormControl, Button, Checkbox, ControlLabel, Modal, DropdownButton, MenuItem} from "react-bootstrap" import {connect} from "react-redux" import {removeModal} from "../actions/modalAction" import {setModel, removeModel, removeRec} from "../actions" import {add...
const message = document.getElementById("pwa-message"); function loadContentNetworkFirst(){ loadContent() .then(data => { // load all data on user id setPlanList(data); saveContentsLocally(data) .then(() => { setLastUpdated(new Date()); messageD...
"use strict"; require("core-js/modules/es.promise.js"); Object.defineProperty(exports, "__esModule", { value: true }); exports.filterPresetsConfig = filterPresetsConfig; exports.loadPreset = loadPreset; exports.getPresets = getPresets; exports.loadAllPresets = loadAllPresets; exports.resolveAddonName = void 0; var...
var code; var lines; var currentLine = 0; var names = {}; var builtins = { "moveForward": moveForward, "moveBackward": moveBackward, "move": move, "moveTo": moveTo, "dot": dot, "turnRight": turnRight, "turnLeft": turnLeft, "turnTo": turnTo, "arcRight": arcRight, "arcLeft": arcLef...
/* greenpot.js Simulation of a green sea port using system dynamics <NAME> | gs _HjSaE0AAAAJ <NAME> | gs Rjv0zt0AAAAJ 20201029 0827 Start to code. 0946 Able to resize textarea while window. 1008 Try to show time stamp. 1250 Test some + and - loop, and ok. 1437 Start again. 1505 PCTC can limit PCTX. 1527...
'use strict' const fs = require('fs'); const debug = require('debug')('imt:gateway:client'); const EventEmitter = require('events'); const TOKEN = require('./protocol.js').TOKEN; const Protocol = require('./protocol.js').Protocol; const Action = require('./action.js'); const Event = require('./event.js'); const queue ...
class LSStorage { constructor() { this.ls = window.localStorage; } setItem(key, data) { this.ls.setItem(key, data); } getItem(key) { return this.ls.getItem(key); } removeItem(key) { this.ls.removeItem(key); } clear() { this.ls.clear(); } length() { return this.ls.length; } } class Re...
import axios from 'axios'; import openSocket from 'socket.io-client'; export const SET_TIME = 'SET_TIME'; export const SET_CONNECTED = 'SET_CONNECTED'; export const SET_JOINED = 'SET_JOINED'; export const NEW_SWIPE = 'NEW_SWIPE'; export const RESET_MESSAGE = 'RESET_MESSAGE'; export const UPDATE_LIST = 'UPDATE_LIST'; e...
/** * Manages the state for the composition tree and defines methods for interacting with it. */ import R from 'ramda'; import { set, setIn } from 'zaphod/compat'; import initialTree from 'src/data/compositionTree/initialTree'; import { normalizeTree } from 'src/helpers/compositionTree/normalization'; import { comm...
const fs = require("fs"); const path = require("path"); const WebSocket = require("ws"); (async () => { const buffer = await getMetadata(); fs.writeFileSync(path.join(__dirname, "metadata.scale"), `0x${buffer.toString("hex")}`); const magic = buffer.toString("utf-8", 0, 4); if (magic !== "meta") { throw ...
// Helper functions var euclidean = (x1, y1, x2, y2) => Math.sqrt((x1 - x2) ** 2 + (y1 - y2) ** 2); var minIndex = arr => arr.indexOf(Math.min(...arr)); var min = arr => Math.min(...arr); var max = arr => Math.max(...arr); var mean = arr => arr.reduce((a, b) => a + b, 0 ) / arr.length; // K-means clustering module con...
//jshint esversion: 6 // Random and pseudo-random number generation var n = Math.random(); // gives a number between 0 and 0.9999999999999999 (0.9 to 16 decimal places) n = n * 6; // we want to use it for a dice roll. A dice has 6 faces. n = Math.floor(n) + 1; // math floor will round down, which will show numbers 0-...
/* (c) 2020-2021 musictheory.net, LLC MIT License, https://opensource.org/licenses/MIT */ import AnswerBar from "./AnswerBar.js"; import HelpController from "./HelpController.js"; import Instrument from "./Instrument.js"; import ScoreBox from "./ScoreBox.js"; import SettingsController from "./SettingsControlle...
layui.config({ base: '../../../static/admin/js/module/' }).extend({ dialog: 'dialog', }); layui.use(['form', 'jquery', 'laydate', 'layer', 'laypage', 'dialog', 'element'], function () { try { var form = layui.form(); }catch (e) { var form = layui.form; } var layer = layu...
var CONFIG = require('app/common/config'); var Logger = require('app/common/logger'); var UtilsEngine = require('app/common/utils/utils_engine'); var SDK = require('app/sdk'); /**************************************************************************** Node/sprite creation factory. **********************************...
'use strict'; // application dependencies const express = require('express'); const cors = require('cors'); const superagent = require('superagent'); const pg = require('pg'); const app = express(); app.use(cors()); // get application constants require('dotenv').config(); const PORT = process.env.PORT...
/*! Ixian Core | MIT License | github.com/ProjectIxian/Ixian-Core */ var primaryAddress = null; var qrcode = null; var selectedReceiveAddress = null; // copyToClipboard function copied from https://hackernoon.com/copying-text-to-clipboard-with-javascript-df4d4988697f const copyToClipboard = str => { const el =...
var fs = require("fs"); var aesContent = fs.readFileSync("../lib/cryptojs-aes.min.js", "utf8"); var ctrContent = fs.readFileSync("../lib/cryptojs-mode-ctr.min.js", "utf8"); var eaxContent = fs.readFileSync("../build/eax.js", "utf8"); var stats = { passed: 0, failed: 0 }; (function(){ eval(aesContent); ...
import * as THREE from 'three'; import {scene, camera, getRenderer} from './renderer.js'; import {copyScenePlaneGeometry, copySceneVertexShader, copyScene, copySceneCamera} from './shaders.js'; /* const size = 1024; const worldSize = 2; const hackShaderName = 'anime radial'; */ const _makeRenderTarget = (widt...
import React, { memo, useState } from 'react'; import { useMutation } from '@apollo/client'; import { useIntl } from 'react-intl'; import Dropzone from 'react-dropzone'; import theme from 'styled-theming'; import styled from 'styled-components'; import { Alert } from 'reactstrap'; import { slugify, asyncForeach } from...
const test = require('tape') const MockCrock = require('../test/MockCrock') const helpers = require('../test/helpers') const bindFunc = helpers.bindFunc const isFunction = require('../core/isFunction') const isObject = require('../core/isObject') const isString = require('../core/isString') const fl = require('../co...
var util = require('util'); var webutil = require('../util/web'); var Tab = require('../client/tab').Tab; var Amount = ripple.Amount; var TrustTab = function () { Tab.call(this); }; util.inherits(TrustTab, Tab); TrustTab.prototype.mainMenu = 'advanced'; TrustTab.prototype.generateHtml = function () { return re...
import React from "react"; import {Controlled as CodeMirror} from 'react-codemirror2'; import { useHistory } from "react-router-dom"; import { Col, Spinner, Button, UncontrolledTooltip, Badge } from "reactstrap"; import 'codemirror/lib/codemirror.css'; import 'codemirror/theme/material.css'; ...
const vscode = require('vscode'); const tmp = require('tmp'); const path = require('path') const fs = require('fs'); const io = require('socket.io-client'); var SocketSyncController = (function () { const config = vscode.workspace.getConfiguration('telescope'); var host = config.get('host'); var socket; ...
import React, { useCallback, useMemo, useRef } from 'react'; import { Alert, findNodeHandle, Linking, Text } from 'react-native'; import styled from 'styled-components'; import { connectActionSheet } from '@expo/react-native-action-sheet'; import * as Sentry from '@sentry/react-native'; import ScrollContainer from '../...
/* 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 writing, software d...
const screenSize = { width: document.querySelector('.container-canvas').clientWidth - 17, height: document.body.clientHeight } const bgImage = new Image() bgImage.src = 'assets/images/planta.jpg' const config = (id, width, height) => { const canvas = document.querySelector(`${id}`) const context = canvas.getCo...
// // physics.js // // the particle system itself. either run inline or in a worker (see worker.js) // // Ported by <NAME> on 2020-01-30. // import forEach from 'lodash/forEach'; import includes from 'lodash/includes'; import BarnesHutTree from './barnes-hut'; import { Particle, Spring, Point } from './atoms'; class...
var evaluationHost =apiGateWayHost+"/configcenter/"; var templateId; var cdata; layui.config({ base:'../' }).extend({ index:'lib/index' }).use(['index','tree', 'util', 'layer', 'form', 'treeSelect', 'upload'], function() { var tree = layui.tree; var util = layui.util; var layer = layui.layer; va...
function changePanelSegementGradient(SL, colorList) { const $segmentGrad = $('#line-' + $(`[name=${SL}]`).attr('id')[0]); $segmentGrad.empty(); colorList.forEach((color, i) => { const stop = `<stop offset=${100 * i / colorList.length}% \ stop-color="${color.colorCode}" />`; $segmentGrad.html($se...
import React, { useContext } from "react"; import { useLazyQuery } from "react-apollo"; import { Link, useHistory } from "react-router-dom"; import VacancyFilter from "./VacancyFilter"; import Button from "components/Button/Button"; import Slide from "containers/Slide/Slide"; import { VacancyContext } from "contexts/va...
import React, { Component, Fragment } from 'react' import styled from 'styled-components' import { key } from 'styled-theme' const Svg = styled.svg` width: 650px; height: 750px; z-index: 1; @media (max-width: 1199px) { margin-left: -150px; } transition: all .2s ease-in-out; transform: ${({second, thi...
goog.declareModuleId('os.ui.buffer.BufferFormUI'); import '../im/basicinfo.js'; import * as buffer from '../../buffer/buffer.js'; import {isGeometryPolygonal} from '../../geo/geo.js'; import * as osJsts from '../../geo/jsts.js'; import * as osMap from '../../map/map.js'; import MapContainer from '../../mapcontainer.js...
var geocoder; var map; var dealsMap; var dealsMarkers = []; var auth = { consumerKey: "afUNacv8KuTBj9EynqAuIQ", consumerSecret: "<KEY>", accessToken: "<KEY>", accessTokenSecret: "<KEY>", serviceProvider: { signatureMethod: "HMAC-SHA1" } }; function getBusinesses(near, callback){ /** ...
import React, {useCallback, useEffect, useMemo, useState} from 'react'; import { Card, ResourceList, Thumbnail, Stack, TextStyle, Pagination, ResourceItem, Avatar, TextField, Button, Filters, Frame, Loading, Page } from "@shopify/polaris"; import {gql} from "graphql-tag"; import {useLazyQuer...
const fetch = require("node-fetch") const EventHandler = require('../../contracts/EventHandler') const CommandHandler = require('../commands/CommandHandler') const LogEvent = require('../../LogEvent') const CONFIG = require('../../../config.json') const EMOJIS = [ "( ͡° ͜ʖ ͡°)", "¯\\_(ツ)_/¯", "̿̿ ̿̿ ̿̿ ̿'̿'|З= ( ...
import styled, { css } from 'styled-components' import { Link } from 'gatsby' import PropTypes from 'prop-types' import React from 'react' import ReactGA from 'react-ga' const StyledNavBar = styled.div` height: 3.07rem; letter-spacing: 0.236rem; line-height: 4.1; position: fixed; z-index: 10000; left: 0;...
var utils = require('twainetUtils'); var protobuf = require('protobufjs'); var conn = require('twainetConnector'); var module = require('ipcModule'); //helper functions exports.moduleNameToId = function(ipcName) { if(ipcName.get("host_name") != "" && ipcName.get("suffix") != "") return ipcName.get("module_n...
const sqliteParser = require('sqlite-parser'); const moment = require('moment'); const Logger = require('@koopjs/logger'); const config = require('config'); const logger = new Logger(config); class WhereParser { constructor(){ } _trueFieldName(lowercaseFieldName, includePropertyExtension=false){ ...
/* eslint-disable no-sync */ const path = require('path'); const fs = require('fs'); const yaml = require('js-yaml'); const YAML_DIR = 'yaml'; const databaseConstructorTemplate = (contents) => (` const collections = {}; this._collections = collections; const proxy = new Proxy(this, { get: (target, p...
// process modules var util = require("util"), crypto = require("crypto"), shared = require("./shared"), LIB_LAZY = shared.LIB_LAZY; function processModules(modules, options) { var modulesArray = modulesToArray(modules), depsArray = depsToArray(modules), depsUsageArray = depsUsage(depsArray,modulesArray),...
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(d...
#!/usr/bin/env node // @ts-check "use strict"; // Requires const fs = require("fs").promises; const path = require("path"); const globby = require("globby"); const markdownlintLibraryName = "markdownlint"; const markdownlintLibrary = require(markdownlintLibraryName); const { markdownlint, "readConfig": markdownlintR...
import _ from 'lodash' import excelente_thumb from '../img/excelente.png' import bom_thumb from '../img/bom.png' import ruim_thumb from '../img/ruim.png' import grid_icon from '../img/grid.png' import bell_crossed_inv from '../img/bell_crossed_inv.png' import notification_sound from '../assets/pop.mp3' import firebas...
'use strict' import * as dat from 'dat.gui'; import Helpers from './helpers.js'; /*let _size = 100; let _numOfPolygons = 50; let _numOfSides = 6; let _width = 0; let _height = 0; let _mutationChance = 0.05; let _colorMutationChance = 0.15; let _redMutationChance = 0.15; let _greenMutationChance = 0.15; let _blueMuta...
var globals = { stylesheetData : {}, stylesheetLayers : {}, stylesheetBitmaps : {}, stylesheetFonts : {}, stylesheetConstants : {}, stylesheetVariables : {}, insidePack : false, directPoints : [], directPoint : null, fonts : {}, fontsMap : {}, fontsStorage : {}, forc...
import React, { useState, useRef, useEffect } from "react"; import styled from "styled-components"; import { faCircle, faAngleDown, faFilter, } from "@fortawesome/free-solid-svg-icons"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import FullCalendar from "@fullcalendar/react"; // must go b...
const expressModule = require('express'); const corsModule = require('cors'); const corsOptions = { origin: '*', // origin: function (origin, callback) { // const whitelist = ['http://localhost:3000']; // if (whitelist.includes(origin)) { // callback(null, true) // } else { // callback(new ...
/* React Component > Form > Input Field > Type: Date - An HTML5 native Date input field with non-native fallback support as outlined in the MDN documentation Expected data input: this.props.entryId // [int] >= 0 | Used for: IDs - field-date- field-inputYear- field-inp...
/* istanbul ignore if */ if (!Error.prepareStackTrace) { require('source-map-support/register'); } import fs from 'fs-extra'; import path from 'path'; import semver from 'semver'; import snooplogg from 'snooplogg'; import * as request from '@axway/amplify-request'; import { isCI } from 'ci-info'; import { tmpdir } fr...
import React from 'react' import i18next from 'i18next' const receiveIcon = () => { return ( <svg xmlns="http://www.w3.org/2000/svg" width="27.488" height="24" viewBox="0 0 27.488 24"> <g id="give-money" fill="#666"> <path id="Path_17" d="M252.343 73.626c-.821-.329-1.059-.528-1....
const puppeteer = require('puppeteer'); const fs = require('fs') //CHANGE THIS ACCORDING TO YOUR REQUIREMENTS const time_between_scrolls_min_max = [800,1500] //Minimum and Maximum time between scrolls function getRndInteger(min, max) { return Math.floor(Math.random() * (max - min + 1) ) + min; } const getContacts ...
import React, { Component, Fragment } from 'react'; import ReactDOM from 'react-dom'; import {BrowserRouter as Router, Link, Route, Redirect, withRouter } from 'react-router-dom'; import { Pagination, Modal, Card, message, Divider, Table, Select } from 'antd'; import ws from '../../../utils/webservices'; import { cambi...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('va...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _Layer = _interopRequireDefault(require("../../Layer")); var _Tensor = _interopRequireDefault(require("../../Tensor")); var _WebGL = require("../../WebGL2"); var _ndarrayOps = _interopRequireDefault(require...
import lineSegIntersect from 'line-seg-intersect'; import max from './max'; import min from './min'; /** * Label positioner using simulated annealing. * * This code is based on D3 Labeler (https://github.com/tinker10/D3-Labeler) * but heavily extended to support non-anchor obstacles. */ let labHot = []; let lab...
import React, { useEffect, useState } from 'react' //import { Link } from 'react-router-dom' import { Container, Row, Col, Jumbotron, Tabs, Tab, Button, Table } from 'react-bootstrap' import { useFlex, useRecord, Layout } from 'bootflex' import { Spacer, Code, Info, Lead } from 'bootflex' import { Sampl...
import { declare } from '@babel/helper-plugin-utils'; import { types as t } from '@babel/core'; import { join, resolve, relative, isAbsolute, dirname } from 'path'; import fs from 'fs'; const PLUGIN_KEY = 'webpack alias'; const REQUIRE = 'require'; const DEFAULT_CONFIG_NAMES = ['webpack.config.js',...
import clamp from 'lodash/clamp'; import range from 'lodash/range'; import { AXIS_LABEL_TEXT_SIZE, AXIS_FONT_FAMILY, AXIS_PADDING, AXIS_MIN_SIZE, AXIS_MAX_SIZE, } from '../../layers/heatmap-constants'; export function getGeneByCellTile(view, { tileSize, tileI, tileJ, numCells, numGenes, cellOrdering, expr...
const config = { columnWidth : 65, rowHeight : 65, cellRadius : 25, hMargin : 22, vMargin : 22, edgeCurve : 15, boardColor : "rgb(30, 130, 220)", //#1E82DC fallingSpeed : 30 }; function getXinf(column){ return config.hMargin + column.n...
"use strict"; /*----------------------------------------- NoUiSlider - Property Fields 1. Price Range 2. Area Size 3. Lot Size 4. Year Built ------------------------------------------*/ // 1. Price Range // 1. Price Range advance search $.urlParam = function(name){ var results = new RegExp('...
const bodyParser = require('body-parser'); const express = require('express'); const logger = require('morgan'); const app = express(); const PF = require('pathfinding'); const { fallbackHandler, notFoundHandler, genericErrorHandler, poweredByHandler } = require('./handlers.js') // For deployment to Heroku, th...
var patterns = require('./patterns'); var h = require('./helper'); var barChartTimer, watchlistTimer, patternsTimer, quoteTimer, ordersInterval, positionsInterval, balancesInterval; var currentSymbol, currentUrl, patternIntradayTimer, overrideSession = false, regularSession = false; module.exports = { clearBarChar...
import React, { useState, useEffect } from 'react'; //components import Loader from '../loader'; import Tabulator from '../tabulator'; //hiveio/keychain import {keychain, isKeychainInstalled, hasKeychainBeenUsed} from '@hiveio/keychain'; //constants const beechatEP = "https://beechat.hive-engine.com/api/"; // TODO: // ...
/** * Time to text conversions */ var formatTime = function (seconds) { var minutes = Math.floor(seconds / 60), hours = Math.floor(minutes / 60), days = Math.floor(hours / 24), moddedMinutes = minutes % 60, moddedHours = hours % 24, minutesText = (moddedMinutes == 1) ? "1 minute" :...