text
stringlengths
3.22k
29.5k
import _ from 'lodash'; import * as Constants from '../constants'; const binarySymbols = { Add: '+', Subtract: '-', Multiply: '*', Divide: '/', Remainder: '%', LogicalOr: '||', LogicalAnd: '&&', Equals: '==', NotEquals: '!=', LessThan: '<', LessThanOrEqual: '<=', GreaterThan: '>', GreaterThan...
const { task } = require("hardhat/config") const { ethers: { constants: { MaxUint256 }}} = require("ethers") task("accounts", "Prints the list of accounts", require("./accounts")) task("gas-price", "Prints gas price").setAction(async function({ address }, { ethers }) { console.log("Gas price", (await ethers.provide...
var has_been_moved = false; var modules_list = new Array(); var hooks_list = new Array(); var hookable_list = new Array(); var timer; $(document).ready(function() { // do some place for submit button $('body').css('margin-top', '45px'); // this is the result box, which will "pop up" the succeed or fail result $('#f...
// WebTorrent Desktop server API // - Tell auto-updaters the latest version // - Log crash reports // - Log telemetry module.exports = { serve } const bodyParser = require('body-parser') const cp = require('child_process') const express = require('express') const expressRateLimit = require('express-rate-limit') const ...
'use strict'; var React = require('react'); var PropTypes = require('prop-types'); var { View, StyleSheet, PanResponder, Animated, TouchableWithoutFeedback, Dimensions, Easing, BackHandler, Platform, Modal, Keyboard } = require('react-native'); var createReactClass = require('create-react-class'...
import React, { PureComponent } from 'react'; import { connect } from 'dva'; import { Row, Col, Card, Icon, Table, Form, Checkbox, Avatar, Modal, Button, Select, Popconfirm, Tooltip, Input, message } from 'antd'; import DateTimeColumn from '../../components/DateTimeColumn'; import { RIGHTS, APPROVE_ROLES, RIGHT } from ...
/* eslint-disable */ import React, { useContext } from 'react'; import { TextField, Typography, Box, Button, Select, InputLabel, FormControl, FormHelperText, } from '@material-ui/core'; import { makeStyles } from '@material-ui/core/styles'; import DateFnsUtils from '@date-io/date-fns'; import { Keyboa...
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ "use strict"; var tsc_wrapped_1 = require('@angular/tsc-wrapped'); var fs = require('fs'); var path = require('path')...
"use strict"; function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" :...
//NODE NATIVE MODULES const path = require("path"); const fs = require("fs"); const cp = require("child_process"); //SERVER SIDE const https = require("https"); const express = require("express"); const app = express(); const server = require("http").Server(app); const io = require("socket.io")(server); //SERVER SIDE...
const bcrypt = require('bcryptjs'); const db = require('../helpers/db') module.exports = { userInfo, postInfo, commentInfo, likeInfo } async function userInfo(user) { //check if users empty const users = await user.findAll() if (users.length === 0) { var params = [ { ...
//1.初始化 npm init --yes //2.下载依赖 cnpm i cors body-parse express jsonwebtoken -s //获取实例,创建对象 const express = require('express'); const app = express(); //相当于导入一个模块 //服务器内置模块 //node.js commonJs规范 const fs = require('fs'); /** * @param {*当前页中显示的数量} pageSize * @param {*当前页} currentPage * @param {*当前数组} arr * @return...
'use strict'; const generate = require('@babel/generator').default; const hash = require('string-hash-64'); const { visitors } = require('@babel/traverse'); const traverse = require('@babel/traverse').default; const parse = require('@babel/parser').parse; /** * holds a map of hooks names as keys and array of argumen...
// // Copyright (C) 2016-2017 DBot. All other content, that was used, but not created in this project, is licensed under their own licenses, and belong to their authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You m...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.walk = exports.flatten = exports.isEquivalent = exports.CLASS = exports.LITERAL = exports.NAME = exports.DICT = exports.SET = exports.LIST = exports.TUPLE = exports.STARRED = exports.BINOP = exports.UNOP = exports.LAMBDA = exports.IFEX...
import Button from "@material-ui/core/Button"; import IconButton from "@material-ui/core/IconButton"; import Menu from "@material-ui/core/Menu"; import MenuItem from "@material-ui/core/MenuItem"; import Paper from "@material-ui/core/Paper"; import Select from "@material-ui/core/Select"; import { makeStyles } from "@mat...
// Get the winning word on page load const winning = allWords[Math.floor(Math.random() * 2315)].toLocaleUpperCase(); const winningWord = Array.from(winning); // Arrays for generating the three rows of the keyboard const firstRow = { letters: ['Q','W','E','R','T','Y','U','I','O','P'], result: ...
/* Tencent is pleased to support the open source community by making WeChat iHearing available. Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the Lice...
/* jshint node: true */ 'use strict'; var Q = require('q'), Areq = require('areq'), znp = require('cc-znp'), ZSC = require('zstack-constants'); var zdoHelper = require('./zdo_helper'); function Zdo(controller) { this._areq = new Areq(controller, 10000); } /*******************************************...
// Copyright (c) 2018, the IFMLEdit project authors. Please see the // AUTHORS file for details. All rights reserved. Use of this source code is // governed by the MIT license that can be found in the LICENSE file. /*jslint node: true, nomen: true */ "use strict"; var _ = require('lodash'), $ = require('jquery'), ...
// ############################# // ### start import require ### // ### import write/read file const fs = require('fs'); // ### import discord.js const { Client, Permissions, MessageEmbed} = require('discord.js'); const permissions = new Permissions(8); const client = new Client({ partials: ['MESSAGE', 'CHANNEL'...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.selectMediaFiles = selectMediaFiles; exports.selectMediaFileByPath = selectMediaFileByPath; exports.selectMediaDisplayURL = selectMediaDisplayURL; exports.default = void 0; var _immutable = require("immutable"); var _v = _interopR...
import React, { Component } from 'react'; import { CircleLoader, RingLoader } from 'react-spinners'; import { Container, Row, Col, Collapse, Table } from 'reactstrap'; import { Pagination, PaginationItem, PaginationLink } from 'reactstrap'; import { Button, Form, FormGroup, Label, Input, FormText, FormFeedback, Toolti...
/** * Login Selenium Page Object for Norman * Created by I834373 on 03/24/2015. */ 'use strict'; var fs = require('fs'); var path = require('path'); var driver = browser.driver; var promise = protractor.promise; // The following code is from from https://gist.github.com/jamm/52af2b1f998fed1e9520 // Example of usag...
var map; var do_fit = false; var markers = {}; var livemarkers = true; function initialize_googlemaps() { var lat = 50.098280; var lon = 10.187189; var params = getSearchParameters(); var center = new google.maps.LatLng(lat,lon); do_fit = (params.fit) ? true : false; mapOptions = { center: center, zoom: 3...
angular.module( 'orderCloud' ) .config( OrderHistoryConfig ) .controller( 'OrderHistoryCtrl', OrderHistoryController ) .controller( 'OrderHistoryDetailCtrl', OrderHistoryDetailController ) .controller( 'OrderHistoryDetailLineItemCtrl', OrderHistoryDetailLineItemController ) .factory( 'OrderHistoryF...
import React, { PropTypes } from 'react' import { connect } from 'react-redux' import { createStructuredSelector } from 'reselect' import echarts from 'echarts/lib/echarts' import Container from '../../../app/components/Container' import DashboardItem from '../../../app/containers/Dashboard/components/DashboardItem' i...
const assert = require('assert') const webdriver = require('selenium-webdriver') const { By, until } = webdriver const { delay, } = require('./func') const { assertElementNotPresent, checkBrowserForConsoleErrors, findElement, findElements, openNewPage, verboseReportOnFailure, setupFetchMocking, prepar...
import React, { useEffect, useState, Fragment } from 'react'; import "./style.css"; const nodefetch = require("node-fetch"); const csv = require("csvtojson"); const SHEET_ID="1DOQ_NRcX5myEx9FWSjqszfVpJmFQVeuUvVLKHMyLZ9s" const colorCategory = { Core: "#212180", Coordinated: "#82DBE1", Aligned: "#FF942B" } con...
/* jshint loopfunc: true */ var WebSocket = require('ws'); var noble = require('./index'); var serverMode = !process.argv[2]; var port = 0xB1e; var host = process.argv[2]; var wss; class NobleClientContext { peripherals = {}; ws = null; activeScanServiceUuids = []; constructor(ws) { this.ws = ws; ...
//-------------------------------------------------------------------------- //----------------------------------------------------[VARIABLE DECLARATION] var statisticsObj = { "number_democrats":0, "number_republicans":0, "number_independents":0, "percentage_vote_party_democr...
import React, { useReducer, useEffect, useState } from 'react'; import sampleSize from 'lodash.samplesize'; import { Config } from './config'; import MinesweeperView from './MinesweeperView'; // state: { // difficulty: 'Beginner' || 'Intermediate' || 'Expert', // status: 'new' || 'started' || 'died' || 'won', // ...
const { expect } = require('chai'); const { constants } = require('@openzeppelin/test-helpers'); const ether = require('@openzeppelin/test-helpers/src/ether'); const { ZERO_ADDRESS } = constants; const RECEIVER_MAGIC_VALUE = '0x150b7a02'; const GAS_MAGIC_VALUE = 20000; describe('ERC721PsiRandomSeedRevealUpgradeable',...
"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(gene...
const path = require("path"); const fs = require("fs-extra"); const ejs = require("ejs"); const glob = require("glob"); const Debug = require("debug"); const debug = Debug("mysql-schema-generator"); const MySQLSchema = require("mysql-schema"); class MySQLSchemaGenerator { static get DEFAULT_OPTIONS() { return { ...
import { Backdrop, Button, Card, CardActionArea, CardContent, CircularProgress, Container, Divider, makeStyles, Typography, } from "@material-ui/core"; import { Skeleton } from "@material-ui/lab"; import axios from "axios"; import React, { useState } from "react"; import { useDispatch, useSelector } from "rea...
/** * Copyright (c) 2018-2022 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author <NAME> <<EMAIL>> */ import { __assign } from "tslib"; import { Mat4, Vec3 } from '../../../mol-math/linear-algebra'; import { Box, PerforatedBox } from '../../../mol-geo/primitive/box'; import { ...
/** * @module og/quadTree/EntityCollectionNode */ 'use strict'; import { Sphere } from '../bv/Sphere.js'; import { EntityCollection } from '../entity/EntityCollection.js'; import { Extent } from '../Extent.js'; import { LonLat } from '../LonLat.js'; import { Vec3 } from '../math/Vec3.js'; import * as mercator from ...
/******************************************************************************* * Copyright 2015 The MITRE Corporation * and the MIT Kerberos and Internet Trust Consortium * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * Yo...
var path = require('path'); var _ = require('underscore'); var logger = require('log4js').getLogger(path.relative(process.cwd(),__filename)); var request = require('request'); var Quote = {}; Quote.isQuoteTime = function() { var now = new Date(); var day = now.getDay(); var hh = now.getHours(); var mm = now.getMi...
import { dispatch as d3_dispatch } from 'd3-dispatch'; import { osmNodeGeometriesForTags } from '../osm/tags'; import { presetCategory } from './category'; import { presetCollection } from './collection'; import { presetField } from './field'; import { presetPreset } from './preset'; import { utilArrayUniq, utilRebind...
// Copyright (c) Jupyter Development Team. // Distributed under the terms of the Modified BSD License. // Inspired by: https://github.com/jupyterlab/jupyterlab/blob/master/dev_mode/index.js import { PageConfig, URLExt } from '@jupyterlab/coreutils'; // Promise.allSettled polyfill, until our supported browsers implem...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.run = run; Object.defineProperty(exports, "init", { enumerable: true, get: function () { return _initCompat.default; } }); exports.bin = void 0; function _chalk() { const data = _interopRequireDefault(require("chalk"));...
var RE_SPACEDASH = /[- ]/g; // Module exports var iconv = module.exports = { toEncoding: function (str, encoding) { return iconv.getCodec(encoding).toEncoding(str); }, fromEncoding: function (buf, encoding) { return iconv.getCodec(encoding).fromEncoding(buf); }, encodingExists: funct...
import React from 'react' import Loadable from '@loadable/component' import PropTypes from 'prop-types' import styled from 'styled-components' import useGTMData from '../hooks/gtm-data-hooks' import Copyright from './copyright' import { Nav, NavStatic, NavPartners, NavInterim } from './nav' import BeSquareNav from './b...
var fs = require('fs'); var md5 = require('MD5'); var Book = require('../models/book'); var Template = require('../models/template'); var t = require('../static/translations'); // helper function to store multiple pages function uploadPageImages (res, book, pages, start_index, image_index) { // reached end of book ...
var JSON_URL = '../../jsp/file_manager_json.jsp'; var KE = parent.KindEditor; var id = KE.util.getParam(location.href, 'id'); var fileManagerJson = (typeof KE.g[id].fileManagerJson == 'undefined') ? JSON_URL : KE.g[id].fileManagerJson; var lang = KE.lang.plugins.file_manager; KE.event.ready(function() { var mo...
window.onpopstate = function (event) { if (event.state.view === 'mailbox') load_mailbox(event.state.mailbox); if (event.state.view === 'compose') compose_email(); if (event.state.view === 'read') read_email(event.state.email_id); } document.addEventListener('DOMContentLoaded', funct...
/*global require, exports*/ 'use strict'; var utils = require('./utils'); var WebappShared = function() { }; WebappShared.prototype.setOptions = function(options) { this.config = options.config; this.gaia = options.gaia; this.webapp = options.webapp; this.used = { js: [], // List of JS file p...
import React, { useState } from 'react' import styled from '@emotion/styled' import { Mutation, Query } from 'react-apollo' import PropTypes from 'prop-types' import { Transition } from 'react-spring' import { GET_PUBLIC_RESOLVER } from '../../graphql/queries' import mq from 'mediaQuery' import { useEditable, useEthPr...
import Component from '../../base/component'; import ListMenu from '../../elements/menu/list-menu/list-menu'; const win = window; const dom = document; const body = dom.body; // 返回已选中的根 root option function getRootSelectedOption(el) { const parentEl = el.parentNode.parentNode; if (parentEl.classList.contains('lis...
import { t, localizer } from '../../core/localizer'; import { localize } from './helper'; import { prefs } from '../../core/preferences'; import { fileFetcher } from '../../core/file_fetcher'; import { coreGraph } from '../../core/graph'; import { modeBrowse } from '../../modes/browse'; import { osmEntity } from '../....
var rootApi = "/api/beam/quality/control"; var apiUrl = rootApi + "/template/"; var backUrl = "/page/beam/quality/control/"; var applierData = getApiData("/appliers/list"); var eventsData = getApiData("/events/list"); var clothOrderData = getApiData("/clothOrderDetails/list"); var sourceStation; var clothOrderStation; ...
var startButton; function setup(){ createCanvas(1435,785); background("Blue"); textSize(20); text("Enter your name here: ",675,230); login = createInput(''); login.style('font-style','bold'); login.position(695,300,50,50); textSize(50); text("This is just a Game Title!",500,100); startButton = ...
import React, { useEffect, useState } from 'react'; import { useDispatch, useSelector } from 'react-redux'; import axios from 'axios'; import { Button, Col, Container, Image, ListGroup, Row } from 'react-bootstrap'; import { LinkContainer } from 'react-router-bootstrap'; import { addUserComment, getEventDetails, toggle...
PALETTE={}; /** * Palette panel driver * RGB Mode: R(0~255), G(0~255), B(0~255) * HSV Mode: H(0~360), S(0~180), V(0~255) * For integer values, HSV covers 99.65% of the RGB space. */ /** * The palette canvas size is set to 255x255 */ // ================== Tool Functions ===================== // rgb=[r,g,b], re...
function HazaarJSHelper(options) { this.extend = function () { var target = arguments[0]; for (var x = 1; x < arguments.length; x++) { for (key in arguments[x]) if (!(key in target)) target[key] = arguments[x][key]; } return target; }; this.http_b...
import React from "react"; import { Link } from "gatsby"; import styled from "styled-components"; import { Tabs, useTabState, usePanelState } from "@bumaga/tabs"; import { Paragraph } from "../../atoms/typography/paragraph"; import { motion } from "framer-motion"; import { color } from "../../atoms/styles/colors"; impo...
/** * pin multiple images from websites * * LICENSE: MIT * * @category cubetboard * @package Pins * @subpackage website image * @copyright Copyright (c) 2007-2014 Cubet Technologies. (http://cubettechnologies.com) * @version 2.0 * @author <NAME> <<EMAIL>> * @date 30-Oct-2013 */ var gm = require('gm')...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import FormField from '../../components/FormField'; import FormFieldAdd from '../../components/FormFieldAdd'; import Button from '../../components/Button'; import TextHelp from '../../components/TextHelp'; import DownIcon from '../../icons/D...
//############################## Helper functions ############################# // Shows slides. We're using jQuery here - the **$** is the jQuery selector function, which takes as input either a DOM element or a CSS selector string. function showSlide(id) { // Hide all slides $(".slide").hide(); // Show just the sl...
// Copyright 2018 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'chrome://resources/cr_elements/cr_button/cr_button.m.js'; import 'chrome://resources/cr_elements/icons.m.js'; import 'chrome://resources/cr_elemen...
var QUnit = require('qunitjs'); var locale = require('devextreme/localization').locale; var numberLocalization = require('devextreme/localization/number'); var dxVersion = require('devextreme/core/version'); var compareVersions = require('devextreme/core/utils/version').compare; require('../src/number'); var locales ...
/* * Copyright 2017, GeoSolutions Sas. * 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. */ const React = require('react'); const Message = require('../../../../components/I18N/Message'); const Layers = requir...
/** * @File: 任务主文件 * @Author: 花夏(<EMAIL>) * @Version: V1.0.0 * @Date: 2020-10-21 17:40:18 */ // 'use strict'; const Generator = require('yeoman-generator'); const ora = require('ora'); // const yosay = require('yosay'); const download = require('download-git-repo'); const copydir = requir...
/** * Copyright 2016 The AMP HTML Authors. 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 require...
'use strict'; const lib = require('./lib'); let whitespaceChars = ' \n\t\r\u00A0'; let delimChars = '()[]{}%*-+~/#,:|.<>=!'; let intChars = '0123456789'; let BLOCK_START = '{%'; let BLOCK_END = '%}'; let VARIABLE_START = '{{'; let VARIABLE_END = '}}'; let COMMENT_START = '{#'; let COMMENT_END = '#}'; let TOKEN_STRI...
var args = arguments [0] || {}; var dateDataSet = []; const LISTITEM_HEIGHT = 320; const BLUR_RADIUS = 1; var current_office_id = ""; var moment = require("alloy/moment"); var mod = require('bencoding.blur'); function scrambleWord (s) { var word = s.split('') , scram = ''; while (word.length) { scram += wor...
'use strict'; var bcrypt = require('bcryptjs'); var mongoose = require('mongoose'); var Schema = mongoose.Schema; var userSchema = new mongoose.Schema({ email: { type: String, lowercase: true }, //password: { type: String, select: false }, password: String, name: String, picture: String, bitbuc...
import template from './sw-flow-detail.html.twig'; import './sw-flow-detail.scss'; import { ACTION } from '../../constant/flow.constant'; const { Component, Mixin, Context, State } = Shopware; const { Criteria } = Shopware.Data; const { mapState, mapGetters, mapPropertyErrors } = Component.getComponentHelper(); Comp...
/* Import plugin specific language pack */ tinyMCE.importPluginLanguagePack('flash', 'en,de,sv,zh_cn,cs,fa,fr_ca,fr,pl'); function TinyMCE_flash_initInstance(inst) { if (!tinyMCE.settings['flash_skip_plugin_css']) tinyMCE.importCSS(inst.getDoc(), tinyMCE.baseURL + "/plugins/flash/flash.css"); } function TinyMCE_fl...
"use strict"; exports.PopupProps = exports.Popup = void 0; exports.defaultOptions = defaultOptions; exports.viewFunction = void 0; var _inferno = require("inferno"); var _inferno2 = require("@devextreme/runtime/inferno"); var _window = require("../../../core/utils/window"); var _devices = _interopRequireDefault(re...
/**************************************************************************** Copyright (c) 2010-2013 cocos2d-x.org Copyright (c) 2008-2010 <NAME> Copyright (c) 2011 Zynga Inc. http://www.cocos2d-x.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associa...
let affiliatedStates = ['ND', 'KS', 'NE', 'AR', 'TN', 'KY', 'OH'] ; let hcsrnStates = [] async function drawImplementations(overviewData, site_abbr, draw_div) { // What specs do we want to display? const key_specs = { "enrl": {"name": "Enrollments" , "sort_order": 1}, "ute-enc": {"name": "U...
const _ = require('lodash'); const BPromise = require('bluebird'); const inflection = require('inflection'); const pagination = require('./pagination'); const params = require('./lib/params'); // This corresponds to Knex's query builder methods. const JOIN_TYPES = [ 'innerJoin', 'leftOuterJoin', 'rightOuterJoin' ]; f...
/** * @author <NAME> - https://github.com/VitorCodes */ import React, { Component } from 'react'; import { View, Text, Dimensions, Animated, Easing, PanResponder } from 'react-native'; import Style from './styles'; const { width: Width = width, height: Height = height } = Dimensions.get('window'); class Slider...
var five = require("../lib/johnny-five.js"); /** * PVector is a slightly-ported version of * Processing.js's PVector. */ var PVector = require("./pvector.js").PVector; /** * To run this program you must first install * libusb and OpenNI... Good luck with that. * * Two sets of instructions are available: * - htt...
"use strict"; var dialog = new Dialog(); var TinyEditor = (function () { function TinyEditor(editor, options) { var _this = this; this.TOOLBAR_ITEM = '__toolbar-item'; this.callback_onchange = null; this.editor = editor; editor.classList.add("__editor"); editor.setAtt...
import { html } from 'lit-element'; import { marked } from 'marked'; import { unsafeHTML } from 'lit-html/directives/unsafe-html'; // Templates import overviewTemplate from '~/templates/overview-template'; import headerTemplate from '~/templates/header-template'; import { schemaInObjectNotation, generateExample } from...
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.hasOwnProperty(p)) d[p] =...
/* global gl */ import { addElem, createTable, getColorForWebGLObject, helpToMarkdown, } from './utils.js'; import { formatWebGLObject, getWebGLObjectInfo, } from './context-wrapper.js'; import { createExpander, expand, makeDraggable, updateElemAndFlashExpanderIfClosed, } from './ui.js'; import ...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.styles = undefined; var _extends2 = require('babel-runtime/helpers/extends'); var _extends3 = _interopRequireDefault(_extends2); var _defineProperty2 = require('babel-runtime/helpers/defineProperty'); var _defineProperty3 = _int...
/*global Node,Element,WebKitPoint,webkitConvertPointFromNodeToPage,webkitConvertPointFromPageToNode */ /** * @module montage/core/dom * @requires montage/core/geometry/point */ var Point = require("./geometry/point").Point, NodePrototype = Node.prototype, ElementPrototype = Element.prototype; /** * @funct...
const { Binary } = require('binary-install-raw') const os = require('os') const chalk = require('chalk') const fetch = require('node-fetch') const { filesystem, patching, print, system } = require('gluegun') const { fixParameters } = require('../command-helpers/gluegun') const path = require('path') const semver = requ...
/** * * Created by Dominik on 25.04.2016. * Based on sample_client.js from https://github.com/node-opcua/node-opcua/blob/master/documentation/sample_client.js * */ /*global require,console,setTimeout */ /*global require,setInterval,console */ //process.env.debug = "mi5-simple-opcua:*"; const Promise = require('bl...
/* ** This Gruntfile is based heavily on the Gruntfile from UI Bootstrap. ** Copyright (c) 2012-2017 the AngularUI Team, https://github.com/organizations/angular-ui/teams/291112 ** https://github.com/angular-ui/bootstrap/blob/0d79005f8d1f4d674bb04ba93c41bb9c06280b4f/Gruntfile.js */ var marked = require('marked'); v...
import { initializeApp } from "https://www.gstatic.com/firebasejs/9.6.5/firebase-app.js"; import { getDatabase, ref, get, child, onValue, update } from "https://www.gstatic.com/firebasejs/9.6.5/firebase-database.js"; import { getStorage, ref as sRef, uploadBytesResumable, get...
require('chai').use(require('chai-as-promised')).should(); const { assert } = require("chai"); // Time manipulation: npm i ganache-time-traveler const timeMachine = require('ganache-time-traveler'); var CarpoolingFactory = artifacts.require("./CarpoolingFactory.sol"); var Carpooling = artifacts.require("./Carpooling....
import * as THREE from "three"; import LEGENDS from "../../config/legends/primary/primary"; import SUBS from "../../config/legends/subs/subs"; import KeyUtil from "../../util/keyboard"; const MIP_COUNT = 0; //genertates a texture with canvas for top of key export const keyTexture = (opts) => { let w = opts.w; let...
import { arr } from 'lively.lang'; import { acorn, loose, walk, addAstIndex, findNodesIncluding, custom } from './acorn-extension.js'; import { AllNodesVisitor } from './visitors.js'; export { walk, parse, parseFunction, fuzzyParse, addSource }; custom.addSource = addSource; function addSource (...
import { useSelector, useDispatch, useStore } from "react-redux"; import { useLocation } from "react-router-dom"; import { unwrapImmutable } from "../../utils"; import { removeTab } from "../../actions/navigation"; import { selectMappedCurrentModuleList, selectSegmentHrefMapper, selectPrependPathConfig, getCurrentS...
"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { t...
var doT = require('dot'); var mdDialog = require('mdDialog').index; var userController = require('src/api/user'); var departmentController = require('src/api/department'); var importUserController = require('src/api/importUser'); var Confirm = require('confirm'); var utils = require('src/util'); import './style.less';...
import { deepAccess, isPlainObject, isArray, replaceAuctionPrice, isFn } from '../src/utils.js'; import { config } from '../src/config.js'; import { registerBidder } from '../src/adapters/bidderFactory.js'; const BIDDER_CODE = 'apacdex'; const ENDPOINT = 'https://useast.quantumdex.io/auction/pbjs' const USERSYNC = 'htt...
// knicked from from https://github.com/Rich-Harris/roadtrip // based on v0.5.1 // - allow for multiple router instantiation // - few changes to optimise for my setup // - if base is '/xxx', then: /xxx/my/route, /xxx/, and /xxx are all valid starting paths. previously, '/xxx/' (trailing slash) was invalid // - 404 ...
#!/usr/bin/env node /** * @license 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...
/** * Home Credit (https://www.homecredit.vn/) * * Copyright © 2018-present HomeCredit, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ /* eslint-disable jsx-a11y/label-has-for, react/require-default-pr...
import Drawer from './drawer'; import { SVG_NS } from '../constants'; import { cellId } from './mazeUtils'; const SQUARE_SIZE = 50; /** * Extends Drawer to draw flowers/honeycomb for bee. * @param {MaseMap} map * @param {Object} skin The app's skin, used to get URLs for our images * @param {Bee} bee The maze's Bee...
/** * Copyright 2017, Google, Inc. * 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 i...
const fs = require('fs'); const path = require('path'); // 编码映射1 function UCS2ToCP1252(cp) { var result = cp; switch (cp) { case 0x20AC: result = 0x80; break; case 0x201A: result = 0x82; break; case 0x0192: result = 0x83; break; case 0x201E: result = 0x84; break; case 0x2...