text
stringlengths
3.22k
29.5k
#!/usr/bin/env node const test = require('./test') const program = require('commander') const compile = require('./compile') const { eos, isLocal, names, accounts, allContracts, allContractNames, allBankAccountNames, isTestnet } = require('./helper') const docsgen = require('./docsgen') const { settings, scheduler } =...
import React, { Component } from 'react' import './App.css' import axios from 'axios' import {Container, Row, Col, Button} from 'reactstrap' import md5 from 'md5' import ReadMoreButton from './components/ReadMoreButton' class App extends Component { constructor(props) { super(props) this.language = ["ar"...
import React, {Fragment, Component, PureComponent} from 'react' import PageHeaderWrapper from '@/components/PageHeaderWrapper' import { Button, Card, Col, Table, Form, Row, Select, Modal, message, Divider, Input, } from "antd" import {connect} from "dva" import {getUserToken}...
import React, {Component} from 'react'; import {connect} from 'react-redux'; import {withRouter} from 'react-router-dom'; import PropTypes from 'prop-types'; import {getCurrentDrive, saveDrive} from '../../../actions/driveActions'; import classnames from 'classnames'; import '../../../css/drive/index.css' import ListFo...
window.onerror = function(messageOrEvent, source, lineno, colno, error) { var errorData = {}; errorData.message = messageOrEvent; errorData.source = source; errorData.line = lineno; errorData.col = colno; errorData.stack = error.stack; trackErrors(errorData); // parse error.stack into ar...
/** * 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
const { dialog } = require('electron').remote; const { ipcRenderer } = require('electron'); const fetch = require('fetch-timeout'); const SETTINGS = require('./settings.json') const Session = require('./session.js'); let session = new Session(Session.select_methods.DIGIT, SETTINGS.MAXHiSTORYLEN, SETTINGS.MAXHiSTORYLEN...
'use strict'; //MaxListeners Leak Fix process.setMaxListeners(0); const dnsd = require('./dnsd/named'); const randomCase = require('random-case'); const randomstring = require('randomstring'); const shuffle = require('shuffle-array'); const spdy = require('spdy'); const url = require('url'); const forwardUrl = 'https:...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _extends2 = require('babel-runtime/helpers/extends'); var _extends3 = _interopRequireDefault(_extends2); var _keys = require('babel-runtime/core-js/object/keys'); var _keys2 = _interopRequireDefault(_keys); var _toArray2 = require(...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.GitHubPublisher = void 0; function _bluebirdLst() { const data = require("bluebird-lst"); _bluebirdLst = function () { return data; }; return data; } function _builderUtil() { const data = require("builder-util"); ...
/** @jsx React.DOM */ var React = require('react'); var classnames = require('classnames'); var guid = 0; var noop = function(){}; var ComboboxOption = require('./option'); module.exports = React.createClass({ propTypes: { /** * Defaults to 'both'. 'inline' will autocomplete the first matched Option ...
const joi = require('@hapi/joi'); const { JoiValidationConstants, } = require('../../../utilities/JoiValidationConstants'); const { joiValidationDecorator, } = require('../../../utilities/JoiValidationDecorator'); const { SERVICE_INDICATOR_TYPES } = require('../cases/CaseConstants'); const ContactFactory = {}; Co...
"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 path = require('path') const fs = require('fs') const webpack = require('webpack') const react = require('@neutrinojs/react') const copy = require('@neutrinojs/copy') const jest = require('@neutrinojs/jest') const wext = require('neutrino-webextension') const { BundleAnalyzerPlugin } = require('webpack-bundle-ana...
import React, { Component } from 'react'; import { View, Text, FlatList, TouchableOpacity, ActivityIndicator, StatusBar, ScrollView, } from 'react-native'; import { SafeAreaView } from 'react-native-safe-area-context'; import { FontAwesome5 } from '@expo/vector-icons'; import { SearchBar, ListItem } from ...
// display.js // <NAME> // Last Edit 11/6/2016 // graphical display of robot // Boundaries // Robot 1.5 m by .75 m // Container 7.38 m long by 3.88 m wide // Obstacle Start = 1.5 m from Start // Mining Start = 4.44 m from Start // create property to check if telemetry received? // 1 cm to 1 px scale //...
const web3Eth = require('web3-eth'); const utils = require('web3-utils'); const Tx = require('ethereumjs-tx'); // Web3-providers-ws cannot work in IE. const ethProvider = require('web3-providers-http'); import localStorage from 'utils/localStorage'; import { bind as gwBind, balance as gwBalance } from 'services/conver...
/** * @fileOverview Radar Chart */ import React, { Component, PropTypes } from 'react'; import ReactDOM from 'react-dom'; import classNames from 'classnames'; import { scaleLinear, scalePoint } from 'd3-scale'; import { getNiceTickValues } from 'recharts-scale'; import Surface from '../container/Surface'; import Laye...
import info from '../package.json' import vari from './var' import { isMobile, addParentLink, getObjById, generateUUID, } from './utils/index' import { findEle, createInputDiv, layout } from './utils/dom' import { createLinkSvg, createLine } from './utils/svg' import { selectNode, unselectNode, selectNext...
var CleanUp = require('./clean-up'); var Splitter = require('../../utils/splitter'); var RGB = require('../../colors/rgb'); var HSL = require('../../colors/hsl'); var HexNameShortener = require('../../colors/hex-name-shortener'); var DEFAULT_ROUNDING_PRECISION = 2; var CHARSET_TOKEN = '@<PASSWORD>'; var CHARSET_REGEX...
// Copyright 2019 VMware, Inc. // SPDX-License-Identifier: BSD-2-Clause export default class PageBuilder { constructor(nodeOrTag, ...addNodeParameters) { if (typeof(nodeOrTag) === typeof("")) { this._node = PageBuilder.add_node(nodeOrTag, ...addNodeParameters); } else { ...
import fii from 'fergies-inverted-index'; import trav from 'traverse'; import tv from 'term-vector'; function util (fii) { const prefetchSearchableFields = () => { const tmp = []; return new Promise((resolve) => { fii.STORE.createKeyStream({ gte: '○FIELD!', lte: '○FIELD○○' }).on('...
import React, { Component } from "react"; import { connect } from "react-redux"; import { Link } from "react-router-dom"; import { Card, Col, CustomInput, Form, FormGroup, Input, InputGroup, InputGroupAddon, InputGroupText, Row } from "reactstrap"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; impor...
'use strict' /** * @module lib/Response * @copyright 2014-present commenthol * @license MIT */ var util = require('util') var Writable = require('stream').Writable var append = require('./append') var pick = require('mergee').pick var STATUS_CODES = require('http').STATUS_CODES var isStream1 = (function () { i...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var vue = require('vue'); var dom = require('../utils/dom'); var PopupManager = require('../utils/popup-manager'); var isServer = require('../utils/isServer'); function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau...
'use strict'; const { gray, yellow, red, cyan, green } = require('chalk'); const fs = require('fs'); const path = require('path'); const ethers = require('ethers'); const { wrap, toBytes32 } = require('../../..'); const { ensureNetwork, loadConnections, stringify, assignGasOptions } = require('../util'); // The blo...
import { createStore } from 'vuex' import {Toast} from 'vant' import {getLoginStatus,getPurchasedSong,getUserSongList,getUserAccount} from 'network/login' import {getMusicUrl,getLyric} from 'network/player' import {getVideoUrl,MlogToVideo,getVideoDetail,getRecVideo,getRelatedVideo,getMvDetail,getMvUrl} from 'network/...
// vendor import React, { Component } from 'react'; import classNames from 'classnames'; import Moment from 'moment'; import uuidv4 from 'uuid/v4'; // components import ActionsMenu from './DatasetActionsMenu'; import File from './DatasetFile'; import Folder from './DatasetFolder'; // assets import './Dataset.scss'; c...
var request = require('superagent'); var Promise = require('bluebird'); var fs = Promise.promisifyAll(require('fs')); var mkdirp = require('mkdirp'); var path = require('path'); var root = path.dirname(require.main.filename); var npm = require('npm'); var _ = require('lodash'); var npmi = require('npmi'); var ...
/* * Copyright © 2016-2018 The Thingsboard Authors * * 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 applicabl...
//Sync New Slide Orders var dbConnMYSQL; var dbConnCoPath; var strSpecimenID = "empty"; var strSQL; var strSQL1; var strSQL2; var result; var lastInsertIDResult; var mySQLresult; var intResultSize; var intSuccessfullInserts = 0; var strDateTime = DateUtil.getCurrentDate('yyyyMMddHHmmss'); var strLastSyncDateTime = $...
"use strict"; var typeUtils = require("../../core/utils/type"), ajax = require("../../core/utils/ajax"), dataCoreUtils = require("../../core/utils/data"), iteratorUtils = require("../../core/utils/iterator"), extend = require("../../core/utils/extend").extend, isDefined = require("../../core/utils/...
import React, { Component } from "react" import SearchIcon from "../../components/search-icon" import MdArrowDownward from "react-icons/lib/md/arrow-downward" import ArrowForwardIcon from "react-icons/lib/md/arrow-forward" import MdSort from "react-icons/lib/md/sort" import { options, rhythm } from "../../utils/typogr...
// This loads the environment variables from the .env file require('dotenv-extended').load(); var builder = require('botbuilder'); var restify = require('restify'); // Setup Restify Server var server = restify.createServer(); server.listen(8085, function() { console.log('%s listening to %s', server.name, server.url...
"use strict"; var OFFSET = 23; var NORMAL_WIDTH = 6; var SELECT_WIDTH = 8; var NORMAL_OPACITY = 0.1; var SELECT_OPACITY = 1; var CHART_WIDTH = 500; var CUTOFF = 7; // Update cutoff var height = 390; var padding = 40; var middlePadding = (padding * 2) + 100; var width = $(window).width() - middlePadding - CHART_WIDTH ...
// Reducers. // Rolls a dataset by word, returning // { word: String, count: Integer } // as a map. This is used in conjunction with wordCounts. function countByWord(a, x) { if(x.word in a) { a[x.word] += x.count; } else { a[x.word] = x.count; } return a; }// Close countByWord. /...
var domPar = require("../core/xmldom/dom-parser"); var builderPar = require('../core/xmlbuilder/index'); ;(function (exports, DOMParser, xmlbuilder) { // Checks if running in a non-browser environment var inNode = typeof window === 'undefined' ? true : false , utf8_to_b64 , b64_to_utf8; // this library ...
/* Copyright (c) 2016 <NAME>, released under the CeCILL-B license (French BSD license) (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ /*eslint no-constant-condition: ["error", { "checkLoops": false }]*/ import ol_ext_inherits from '../util/ext' import ol_interaction_Interaction from 'ol/interact...
const assert = require('assert'); const rewire = require('rewire'); beforeEach(() => { jest.resetModules(); }); const rewireIndex = () => rewire('./src/index.js'); /* * Exposes getFullEndpointUrl() for unit tests. */ const getFullEndpointUrl = (endpoint, lang) => ( rewireIndex().__get__('getFullEndpointUrl')(...
///////////////////////////////////////////////////////////////////// // Copyright (c) Autodesk, Inc. All rights reserved // Written by Forge Partner Development // // Permission to use, copy, modify, and distribute this software in // object code form for any purpose and without fee is hereby granted, // provided that...
import InterfaceBlockchainBlock from 'common/blockchain/interface-blockchain/blocks/Interface-Blockchain-Block' import BlockchainGenesis from 'common/blockchain/global/Blockchain-Genesis' import BlockchainMiningReward from 'common/blockchain/global/Blockchain-Mining-Reward' import consts from 'consts/const_global' im...
/*************************************************** UserManager.js A Vonalkód Rendszerház felhasználók kezeléséhez készült metódusok és események. ---------------------- Alapítva: 2019.03.05.-03.08. <NAME> Módosult: ****************************************************/ /*##### EVENTS #####*/ $(document).r...
import React from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import Header from '../../components/Header'; import ArtistGrid from '../../components/ArtistGrid'; import List from '../../components/List'; import DropdownField from '../../components/Fields/DropdownF...
const lichess = require('./lichess') const utils = require('./utils') const chessboard = require('./chessboard') const STOCKFISH_JS_PATH = "resources/client/cdn/stockfish.wasm.js" const DEFAULT_REDUCE_THINKING_TIME = 1 const path = require('path') const spawn = require('child_process').spawn const STOC...
/*- * #%L * peregrine vuejs page renderer - UI Apps * %% * Copyright (C) 2017 headwire inc. * %% * 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. ...
'use strict'; const Command = require('../../Command.js'); const useable = ['room', 'raid', 'team']; const vulgar = ['n[i!1]gg[e3]r', 'n[i!1]gg[ua]', 'h[i!1]tl[e3]r', 'n[a@]z[i!1]', '[©ck]un[t7]', 'fu[©c]k', '[©c]umm', 'f[a@4]g', 'd[i!1]ck', 'c[o0]ck', 'boner', 'sperm', 'gay', 'gooch', 'jizz', 'pussy', 'penis', 'r[i...
import React, { Component } from "react"; import "./productdetails.css"; import Axios from "axios"; import { Message } from 'shineout' import { Spin } from 'shineout' const formValid = ({ formErrors, ...rest }) => { let valid = true; // validate form errors being empty Object.values(formErrors).forEach((val) => {...
let core; window.onload = ()=>{ core = new CanvasHandler(document.querySelector('.canvas')); document.body.appendChild(new Range({ width: 500, value: 1, class: `input`, min: 1, max: 2e2, scale: 5, finalMark: `to&nbsp;infinity`, log: 3, label: `Magnetic field`, labelWidth: 160, onchange: (v)=>{co...
// TODO :: move to quickAlgo /* pythonCount: returns number of Blockly blocks corresponding to some Python code. Patterns are stored in pythonCountPatterns, tried in the order of the list; block: false means a pattern doesn't count towards the block number if matched. */ var pythonCountPatterns = [ // Comments...
"use strict"; /* * Copyright (C) 2017-2020 HERE Europe B.V. * Licensed under Apache 2.0, see full license in LICENSE * SPDX-License-Identifier: Apache-2.0 */ Object.defineProperty(exports, "__esModule", { value: true }); exports.PickHandler = exports.PickObjectType = void 0; const harp_datasource_protocol_1 = requi...
// copyright 2020 Spider contributors. MIT license. // 2020-03-28 /* global THREE, renderer, camera, divMessage, intersected, requestFile, resetGroups, addBar, groupCases, groupsCases, groupsRecoveries */ let today; let rows; // https://github.com/CSSEGISandData/COVID-19/tree/master/csse_covid_19_data/csse_covid_19...
import { exec } from 'teen_process'; import log from '../logger.js'; import { getAndroidPlatformAndPath, unzipFile, assertZipArchive, getApkanalyzerForOs } from '../helpers.js'; import { fs } from 'appium-support'; import _ from 'lodash'; import path from 'path'; import xmldom from 'xmldom'; import xpath from ...
"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...
/* The SerGIS Project - sergis-author Copyright (c) 2015, SerGIS Project Contributors. All rights reserved. Use of this source code is governed by the MIT License, which can be found in the LICENSE.txt file. */ // Globals: randInt, randID, byId, byClass, forClass, makeNumberHandler, // create, parseOp...
import React from 'react' import { connect } from 'react-redux' import { Button, ButtonGroup, Container, Row, Col, Modal, ListGroup } from 'react-bootstrap' import { MdDone, MdClose, MdChevronLeft, MdChevronRight, MdFullscreen, MdFullscreenExit } from 'r...
/** * (c) Trilby Media, LLC * Author <NAME> * * Based on <NAME>'s Finderjs * MIT License */ import $ from 'jquery'; import EventEmitter from 'eventemitter3'; export const DEFAULTS = { labelKey: 'name', valueKey: 'value', // new childKey: 'children', iconKey: 'icon', // new itemKey: 'item-key...
/* eslint-disable global-require, import/no-dynamic-require, max-classes-per-file, no-use-before-define */ const concat = require('concat-stream'); const conventionalCommitsParser = require('conventional-commits-parser'); const bump = require('conventional-recommended-bump'); const execa = require('execa'); const fs = ...
var quotes = [ "I got an ant farm... them fellas didn't grow shit!", "I went to a doctor, all he did was suck blood from my neck. Don't go see Dr. Acula.", "I had a Mr. Pibb, Mr. Pibb is a replica of Dr. Pepper... but it's the bullshit replica, cause dude didn't even get his degree.", "One time a guy handed me a pi...
/** * Sequencer - A fast(?) fullscreen image-sequence player. * See README or visit github (link below) for details. * @copyright 2012-20 * @version 3.0.0b * @author <NAME> * https://ertdfgcvb.xyz * https://github.com/ertdfgcvb/Sequencer */ const instances = []; import context from "./context....
/* Copyright 2017 Infor * * 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...
var map = L.map('map').setView([17.6078,8.0817], 3); L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors', maxZoom: 18, minZoom: 2, }).addTo(map); var fellows = [ // { // lat:51.5...
var io = io("http://localhost:3000/"); var ww = 3000; var wh = 3000; var player = {id:0,x:ww/2,y:wh/2}; var players = []; var perm = {}; var bullets = []; var canvas = document.getElementById("canvas"); var game = canvas.getContext("2d"); var w; var h; var gridWidth = 30; var name; var cls = 0; var rotation = 0; va...
import React from "react" import { Link, graphql } from "gatsby" import Image from "gatsby-image" import Layout from "../components/layout" import SEO from "../components/seo" export const query = graphql` query($cardSlug: String!) { heroesJson(fields: {cardSlug: {eq: $cardSlug}}) { id ...
const fs = require('fs'); const Database = require('better-sqlite3'); const Client = require('bitcoin-core'); const { getFollowingSnapshots, getSpecificSnapshots, getBlockCommits, getLeaderKeys, } = require('./apis/db'); const { trimBurnBlocks, getLeaders, getMiners, mean, linear, getDateTime, toFixed, lastIndex...
/* More algorithm information here: *https://en.wikipedia.org/wiki/Pollard%27s_rho_algorithm *** This tool only guarantees accurate factorization up to 15 digits as JavaScript considers Integers accurate to 15 digits. That being said sometimes it does correctly factor some larger Integers whereas some fail. F...
/* SolarUsage Monitor main Javascript file. * Shows events and participant information on the web page. */ // Original work Copyright (c) Truffle 2018. // Modified work Copyright (c) TUT Tampere University of Technology 2015-2018. // This software has been developed in Procem-project funded by Business Finland. // Th...
/** * Handles the import requests */ /* * 2011 Peter 'Pita' Martischka (Primary Technology Ltd) * 2012 <NAME> * 2014 <NAME> (Etherpad Foundation / McLear Ltd) * * 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...
/* Polyfill */ if (!Object.assign) { Object.defineProperty(Object, 'assign', { enumerable: false, configurable: true, writable: true, value: function(target, firstSource) { 'use strict'; if (target === undefined || target === null) { throw new TypeError('Cannot convert first argument t...
"use strict"; /* https://jsfiddle.net/hyg9e7vz/ */ // TODO descriptions, "schema:domainIncludes" 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)...
import { detach, getUniqueID, append, closest, selectAll, select, isNullOrUndefined as isNOU, isBlazor } from '@syncfusion/ej2-base'; import { addClass, removeClass, Browser, isNullOrUndefined, setStyleAttribute } from '@syncfusion/ej2-base'; import { isCollide } from '@syncfusion/ej2-popups'; import * as events from '...
import OstWalletSdk from '../OstWalletSdk'; import OstWalletSdkUI from '../OstWalletSdkUI'; import OstJsonApi from '../OstJsonApi'; import OstUserStatus from "../constants/UserStatus"; import OstDeviceStatus from "../constants/DeviceStatus"; import OstWalletSettings from "./OstWalletSettings"; import OstWalletSdkHelper...
/******************************************************************************** * Copyright (c) 2020 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. * * This program and the accompanying materials are made...
var socket = io(); var id,connected=false,once=true; var colors=[{ch:'w',c:'blue'},{ch:'g',c:'#080'},{ch:'s',c:'gray'},{ch:'t',c:'darkgreen'},{ch:'n',c:'black'},{ch:'d',c:'#654321'},{ch:'au',c:'gold'}]; var ins={ArrowUp:false,ArrowDown:false,ArrowLeft:false,ArrowRight:false,space:false}; const vw = 15,vh = 15; var...
import { call, fork, put, select, takeEvery, throttle, } from 'redux-saga/effects' import { getFormValues } from 'redux-form' import isFunction from 'lodash/isFunction' import get from 'lodash/get' import has from 'lodash/has' import keys from 'lodash/keys' import isEqual from 'lodash/isEqual' i...
import React, {Component} from 'react'; import throttle from 'lodash.throttle'; import without from 'lodash.without'; import uniq from 'lodash.uniq'; import RotatingText from 'react-rotating-text'; import {loadAsset} from '../../../../utils/asset-loader'; import {BoundingBox} from '../../../../utils/layout'; import {B...
/** * Peer Sync * wangxm 2019-01-15 */ import ip from 'ip' import { bignum, system } from '@ddn/utils' let _singleton class PeerSync { static singleton (context) { if (!_singleton) { _singleton = new PeerSync(context) } return _singleton } constructor (context) { Object.assign(this, ...
//IMPORTS const model = require("../config/models") const mw = require("../middleware") const { log_error } = require("../tools/errors") const axios = require("axios") const normalizedPath = require("path").join( __dirname, "../googleSheets/keys.json" ) const fs = require("fs") const { google } = require(...
window.output = [] function getRightShift(piece){ let i = 0 for(i=0; i<piece.cells.length; i++){ let flag = false for(let j=0;j<piece.cells.length;j++){ if(piece.cells[j][i]!==0){ flag=true // console.log('non zero') break ...
// responsive images & breakpoints var desktopBreak = 1023, tabletBreak = 700, mobileBreak = 320, screenWidth = 0, screenHeight = 0, screenType = "mobile"; particlesJS.load("particles-js", "assets/js/vendor/particles.data.js"); $(document).ready(function(){ if (window.location.pathname == "/cv.html") { $('...
import React, { PureComponent, Fragment } from 'react'; import PropTypes from 'prop-types'; import nanoid from 'nanoid'; import { Button, FormGroup, ControlLabel, FormControl, HelpBlock } from '@freecodecamp/react-bootstrap'; import { findIndex, find, isEqual } from 'lodash'; import isURL from 'validator/lib/...
const {exec} = require('child_process'); const {expect} = require('chai'); const chalk = require('chalk'); let commandPrefix = 'node ./node_modules/.bin/cypress'; if (process.platform === 'win32') { commandPrefix = 'npx cypress'; } const commandBase = (env = '') => `${commandPrefix} run --env ${env} --headless -...
import React, {Component} from 'react'; import axios from 'axios'; import Paper from '@material-ui/core/Paper'; import Grid from '@material-ui/core/Grid'; import TableCell from '@material-ui/core/TableCell'; import TableHead from '@material-ui/core/TableHead'; import TableRow from '@material-ui/core/TableRow'; import T...
const helpCommand = require('./help') const trackedCommand = require('./tracked') exports.run = async (client, msg, args, options) => { const logReference = Math.random().toString().slice(2, 11) try { // Check target const util = client.createUtil(msg, options) const { canContinue, target, userHasLocation...
import React from 'react'; import * as d3 from 'd3'; import * as d3l from 'd3-svg-legend' import { event as currentEvent } from 'd3-selection'; let svg_count = 0; class AreaChart extends React.Component { constructor(props) { super(props) this.removeExistingBars = this.removeExistingBars.bind(this...
var dates; var Store; var Plant; var Office; var start = 0; var barChartData; var StoreTopIssueTable, userlogsTable; $(document).ready(function() { function updateTime() { var currtime = new Date(); var currtime1 = new Date(currtime.getTime()); var mintime = currtime.getMinutes(); va...
var logger = require('../logger'); const twitterSchema = require("../../schema/twitter"); var path = require('path'); var OAuth2 = require('OAuth').OAuth2; var https = require('https'); const notify = require("../notify"); console.log('__dirname--->',__dirname) var appDir = path.dirname(require.main.filename); const...
/* * Copyright 2016 Google Inc. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicabl...
// On windows, create a .cmd file. // Read the #! in the file to see what it uses. The vast majority // of the time, this will be either: // "#!/usr/bin/env <prog> <args...>" // or: // "#!<prog> <args...>" // // Write a binroot/pkg.bin + ".cmd" file that has this line in it: // @<prog> <args...> %dp0%<target> ...
var qs = require('querystring'); qs.escape = function(q){ return q; }; module.exports = Parse; function Parse(options_or_application_id, master_key) { this._options = {} if(master_key){ this._options.app_id = options_or_application_id; this._options.master_key = master_key; }else{ ...
import $ from '../../core/renderer'; import Action from '../../core/action'; import DOMComponent from '../../core/dom_component'; import { active, focus, hover, keyboard } from '../../events/short'; import { deferRender, deferRenderer, noop } from '../../core/utils/common'; import { each } from '../../core/utils/iterat...
import { updateLeaf, updateLeafs, addLeafs, deleteLeafs, } from '../backend/leafActions'; import { updateSides } from '../backend/sideActions'; import { linkTerm } from '../backend/termActions'; import { updateGroups } from '../backend/groupActions'; export function undoCreateLeaves(action, state) { const le...
"use strict"; /* eslint-disable @typescript-eslint/explicit-member-accessibility, @typescript-eslint/strict-boolean-expressions */ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get:...
var init = require('domready'), classes = require('classes'), dataset = require('dataset'), el = require('el'), event = require('event'), qs = require('querystring'), state = require('./state'), style = require('./style'), parseMap = { lat: parseFloat, lon: parseFloat, duration: parseInteger...
// get the canvas element and its context var canvas = document.getElementById('sketch'); var context = canvas.getContext('2d'); // the aspect ratio is always based on 1140x400, height is calculated from width: canvas.width = $('#sketchContainer').outerWidth(); canvas.height = (canvas.width/1140)*400; $('#sketchContai...
/** * Analyzes a UI5 Component to collect dependency information. * * Tries to find a manifest.json in the same package. If it is found and if * it is a valid JSON, an "sap.ui5" section is searched and evaluated in the following way * - any library dependency is added as a dependency to the library.js module * ...
/* eslint-disable react/destructuring-assignment */ import { useState, useEffect, useReducer } from 'react'; const initialState = { // array of root level nodes (no parent_uuid) tree: [], // all events indexed by counter value events: {}, // counter value indexed by uuid uuidMap: {}, // events with paren...
// For async functions, otherwise we would get "ReferenceError: regeneratorRuntime is not defined" require('babel-polyfill') import Config from './config' import bbox from '@turf/bbox' import along from '@turf/along' import turfLength from '@turf/length' import bearing from '@turf/bearing' import buffer from '@turf/b...
'use strict'; var url = require('url'); var path = require('path'); var request = require('request'); var debug = require('debug')('rdl-rest'); var os = require('os'); var clone = require('lodash.clone'); // Normalize the method name from the rdl name // getFoo putBar deleteBaz, etc // ignore from istanbul coverage b...
import React, { useEffect } from 'react' import PropTypes from 'prop-types' import styled from 'styled-components' import { Title, TextWrapper } from './_common' import paperPlane from 'images/common/blog/paperplanes.png' import validation from 'common/validation' import { Input, Button } from 'components/form' import ...
hiragana = { vowels: [['あ', 'a'],['い', 'i'], ['う', 'u'], ['え', 'e'], ['お', 'o']], k: [['か', 'ka'],['き', 'ki'], ['く', 'ku'], ['け', 'ke'], ['こ', 'ko']], s: [['さ', 'sa'],['し', 'shi'], ['す', 'su'], ['せ', 'se'], ['そ', 'so']], t: [['た', 'ta'],['ち', 'chi'], ['つ', 'tsu'], ['て', 'te'], ['と', 'to']], n: [['な'...