text stringlengths 3.22k 29.5k |
|---|
'use strict';
var mongoose = require('mongoose'),
_ = require('lodash'),
async = require('async'),
fs = require('fs'),
deasync = require('deasync'),
path = require('path');
var components = require('../../components');
var outputFormatsPath = path.join(__dirname, 'output-formats');
var regex = {
... |
const iohook = require("iohook");
const robot = require("robotjs");
const { createWorker } = require("tesseract.js");
const Jimp = require("jimp");
const fuzzyset = require("fuzzyset.js");
const key = require("./key.json");
const readline = require("readline");
const rl = readline.createInterface({
input: process.stdi... |
const [xml2js, request, _, utils, crypto] = [require('xml2js'), require('request'), require('lodash'), require('./utils'), require('crypto')];
// Wechat url config
const config = require('./url-config.js');
// "menu", "assistant", "user", "qrcode", "template"
const _defaultModules = ["user", "qrcode", "template"];
con... |
const dg = $('#tt')
const path = window.location.pathname.split('/')
const baseUri = `${window.location.origin}/${path[1]}`
const formEdit = $('#frmEdit')
const batal = $('#batal')
const colseEdit = $('#closeEdit')
const tgl = $('#tgl')
dg.datagrid({
title: 'Data Manometer',
url: `${baseUri}/api/getDataTekanan... |
var storage = window.localStorage;
var array = new Array();
$(function () {
var channel = $('#contest-name').val() || '0';
/*set chatroom-box height*/
var settop = $('.chatroom-box').offset().top;
$('.chatroom-content').height($(window).height()-100);
$('.chatroom-content').css('top',-(settop-50));
$('.cha... |
var fs = require('fs');
var minimist = require('minimist');
var common = require('../../tasks/util/common');
var getMockList = require('./assets/get_mock_list');
var getRequestOpts = require('./assets/get_image_request_options');
var getImagePaths = require('./assets/get_image_paths');
// packages inside the image se... |
// Made by Cr4xy - Helped by MastaCoder :)
// https://www.youtube.com/channel/UC1CJCNc6rrtjJzxiqYN97aQ - Support Cr4xy's YouTube!
var agarClient = require("agario-client");
config = require("./config.js"),
token = null,
account = new agarClient.Account(),
STATIC_NAME = config.name,
debugObj = {},
... |
/*
Created by: <NAME>
This program preprocesses data and creates updateable and interactable heatmap with
a selection of what to represent
data obtained from crawling a MyAnimeList(MAL) account
credit on how to sort on two variables:
- https://coderwall.com/p/ebqhca/javascript-sort-by-two-fields
- https://stackoverf... |
import Head from 'next/head'
import SiteHeader from '../components/siteHeader'
import SiteFooter from '../components/siteFooter'
import TypeButtonDiv from '../components/typeButtonDiv'
import YouTubeVid from '../components/youTubeVid'
import Fold from '../components/fold'
import MyHeadStuff from '../components/myHeadSt... |
import _extends from 'babel-runtime/helpers/extends';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/i... |
$(document).ready(function () {
// Load nem-browser library
var nem = require("nem-sdk").default;
// Create an NIS endpoint object
var endpoint = nem.model.objects.create("endpoint")(nem.model.nodes.defaultTestnet, nem.model.nodes.defaultPort);
// Create an empty un-prepared transfer transaction ... |
const Entity = require('prismarine-entity')
const path = require('path')
const requireIndex = require('../requireindex')
const plugins = requireIndex(path.join(__dirname, '..', 'plugins'))
const UserError = require('flying-squid').UserError
const UUID = require('uuid-1345')
const Vec3 = require('vec3').Vec3
module.exp... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const cli_framework_1 = require("@ionic/cli-framework");
const cli_framework_prompts_1 = require("@ionic/cli-framework-prompts");
const utils_fs_1 = require("@ionic/utils-fs");
const lodash = require("lodash");
const path = require("path");
co... |
/**
* 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... |
var router = require("express").Router(),
namer = require("../lib/namer"),
app = require("../lib/app").getInstance(),
models = require("../lib/models"),
components = require("../lib/components");
models.use(Git);
router.get("/pages/new", _getPagesNew);
router.get("/pages/new/:page", _getPagesNew);
router.... |
'use strict';
var _ = require('underscore');
var PLUGIN_API = require('../../pluginAPI');
var PLUGIN_NAME = 'SCORE';
var redis;
//var studentWall = [];
function App(idSession, plugins, redisL) {
var studentScores = {};
redis = redisL;
this.pluginStudentMessageListener = function(socket, pluginMessageType, data)... |
'use strict'
const d3 = require('./d3-subset.js')
const HtmlContent = require('./html-content.js')
const { validateKey } = require('../validation.js')
class HoverBox extends HtmlContent {
constructor (d3Container, contentProperties = {}) {
super(d3Container, Object.assign({
type: 'node-link',
positi... |
import React, { Component } from 'react';
import { Pie } from '@antv/g2plot';
import { getLegendType, formatrChartValue, formatYaxisList, getChartColors, getAlienationColor } from './common';
import { formatSummaryName, getIsAlienationColor, isNumberControl } from 'src/pages/worksheet/common/Statistics/common';
import ... |
import React from 'react'
import PropTypes from 'prop-types'
import { ButtonContainer } from './styled'
import Line from './Line'
import Box from './Box'
import Circle from './Circle'
import Point from './Point'
import Polygon from './Polygon'
import Freehand from './Freehand'
import { DrawToolbar } from 'DrawToolbar'
... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _propTypes = require('prop-types');
var _propTypes2 = _interopRequireDefault(_propTypes);
var _createReactClass = require('create-react-class');
var _c... |
import {
warn,
err
} from '../helpers/warn.js'
import {
diffRouter,
vueDevRouteProxy,
getRouterNextInfo,
formatUserRule,
nameToRute,
encodeURLQuery,
strPathToObjPath
} from './util.js'
import {
parseQuery,
formatURLQuery,
} from '../helpers/util.js'
import {
vuelifeHooks,
vueMount
} fro... |
import * as React from 'react';
import PropTypes from 'prop-types';
import Box from '@mui/material/Box';
import { DataGridPro, GridToolbar } from '@mui/x-data-grid-pro';
import { useDemoData } from '@mui/x-data-grid-generator';
import KeyboardArrowRightIcon from '@mui/icons-material/KeyboardArrowRight';
import { styled... |
import { Meteor } from 'meteor/meteor';
import { Match } from 'meteor/check';
import { Accounts } from 'meteor/accounts-base';
import { TAPi18n } from 'meteor/rocketchat:tap-i18n';
import _ from 'underscore';
import { escapeRegExp, escapeHTML } from '@rocket.chat/string-helpers';
import * as Mailer from '../../../mail... |
import updateNotifier from 'update-notifier';
import chalk from 'chalk';
import inquirer from 'inquirer';
import detect, { isStorybookInstalled } from './detect';
import hasYarn from './has_yarn';
import types, { installableProjectTypes } from './project_types';
import {
commandLog,
codeLog,
paddedLog,
installD... |
const blob = new Blob(['importScripts("https://cdn.jsdelivr.net/npm/lzma@2.3.2/src/lzma_worker.min.js");']);
const lzma = new LZMA(window.URL.createObjectURL(blob));
let editor = null;
let select = null;
let clipboard = null;
let statsEl = null;
const init = () => {
handleLegacyUrl();
initCodeEditor();
in... |
var MAX_SUPPORTED_PAGES_NO_AUTH = 30;
$(document).ready(function() {
$('#plot-container').hide();
$('#url-container').hide();
$('#repo').keyup(function(event) {
if (event.keyCode == 13) {
go();
}
});
$(window).scroll(function() {
if ($(this).scrollTop() > 100) {
$('.scrollToBottom').fadeOut();
} e... |
// General
export {default as LOGO} from "./logo.svg"
export {default as LOGOICON} from "./logo-icon.svg"
export {default as MORE} from "./general-more.svg"
export {default as MAIL} from "./general-mail.svg"
export {default as DROPDOWN} from "./general-dropdown.svg"
export {default as CLOSEALT} from "./close-alt.svg"
e... |
// copied from https://github.com/ZSAIm/iqiyi-parser/blob/master/js/tencent.js
var document = {
URL: "https://v.qq.com/x/cover/bzfkv5se8qaqel2/j002024w2wg.html",
referrer: ""
};
var window = {
document: document,
navigator: {
userAgent: "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 ... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _debounce2 = require('lodash/debounce');
var _debounce3 = _interopRequireDefault(_debounce2);
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in... |
/**
* 试驾登记
*/
import React from 'react';
import { Helmet } from 'react-helmet';
import Http from '../../utils/http';
import Ui from '../../utils/weixin';
import $ from 'jquery';
import Helper from '../../utils/helper';
import HomeLink from './components/home.link';
import {SERVER_BASE_PATH} from '../../global.config... |
const http = require('http')
const express = require('express')
const WebSocket = require('ws');
const WebSocketServer = WebSocket.Server;
const bodyParser = require('body-parser');
const log = require('./log.js').log;
//log.set(2);
const post = require('./post.js').post;
const cmd = require('./cmd.js').cmd;
let con... |
import {
Button,
Dropdown,
InlineLoading,
InlineNotification,
NotificationActionButton,
SkeletonText,
TextArea,
} from "carbon-components-react";
import { Column, Row } from "gatsby-theme-carbon";
import { Controller, useForm } from "react-hook-form";
import React, { useEffect, useState } from "react";
i... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
$(document).on("ready",inicio);
function inicio()
{
grafico_ventas();
}
function grafico_barras(year, moth){
var empresa = "... |
const DONOTHING = 0;
const LOCAL_TRANSFORM = 1 << 0;
const WORLD_TRANSFORM = 1 << 1;
const TRANSFORM = LOCAL_TRANSFORM | WORLD_TRANSFORM;
const UPDATE_RENDER_DATA = 1 << 2;
const OPACITY = 1 << 3;
const COLOR = 1 << 4;
const RENDER = 1 << 5;
const CUSTOM_IA_RENDER = 1 << 6;
const CHILDREN = 1 << 7;
const POST_UPDATE_RE... |
/*
This program will check IPFS gateways status using 2 methods
1) By asking for a script through a <script src=""> tag, which when loaded, it executes some code
2) By asking data through ajax requests to verify gateway's CORS configuration
*/
const HASH_TO_TEST = 'bafybeifx7yeb55armcsxwwitkymga5xf53dxiarykms3ygq... |
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
var _createClass = function () { function defineProperties(ta... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var react_1 = require("react");
var react_2 = tslib_1.__importDefault(require("react"));
var react_redux_1 = require("react-redux");
var modal_dialog_1 = tslib_1.__importStar(require("@atlaskit/modal-dialog"));
... |
import * as GameTest from "mojang-gametest";
import {
BlockLocation,
MinecraftBlockTypes,
MinecraftItemTypes,
World,
} from "mojang-minecraft";
import GameTestExtensions from "./GameTestExtensions.js";
function placeDripstoneTip(test, pos, hanging, waterlogged = false) {
const pointedDripstonePermutation = M... |
import {ascending, descending, rollup, sort} from "d3";
import {color} from "d3";
import {nonempty} from "./defined.js";
import {plot} from "./plot.js";
import {registry} from "./scales/index.js";
import {styles} from "./style.js";
import {basic} from "./transforms/basic.js";
import {maybeReduce} from "./transforms/gro... |
import { scaleLinear } from 'd3-scale'
import PropTypes from 'prop-types'
import React, { useState } from 'react'
import styled from 'styled-components'
import { Track } from '@gnomad/region-viewer'
import { Checkbox, SegmentedControl } from '@gnomad/ui'
import { getCategoryFromConsequence, getLabelForConsequenceTerm... |
import * as utils from '../utils';
function init (scope) {
const {
actions,
browser,
/** @lends Interactable */
Interactable,
Interaction,
defaults,
} = scope;
// Less Precision with touch input
const defaultMargin = browser.supportsTouch || browser.supportsPointerEvent? 20: 10;
const... |
import { version } from "punycode";
// Learn cc.Class:
// - [Chinese] http://www.cocos.com/docs/creator/scripting/class.html
// - [English] http://www.cocos2d-x.org/docs/editors_and_tools/creator-chapters/scripting/class/index.html
// Learn Attribute:
// - [Chinese] http://www.cocos.com/docs/creator/scripting... |
/* Copyright 2017 Tierion
* 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, soft... |
//modified functions
omnis_form.prototype.prepareForScripts = function() {
function a(a) {
var b;
a.subFormObj && a.subFormObj.userInfo ? (b = jOmnis.parseCommaSeparatedList(a.subFormObj.userInfo), b = ["$init", eDoMethodFlags.clientOnly | eDoMethodFlags.noLog].concat(b), b = a.callMethodEx.... |
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
import _extends from "@babel/runtime/helpers/esm/extends";
import * as React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import { unstable_composeClasses as composeClasses } from '@mui/base';
import... |
// Copyright (c) 2015 - 2017 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify... |
const isString = require('lodash.isstring');
const isFunction = require('lodash.isfunction');
const isEmpty = require('lodash.isempty');
const chalk = require('chalk');
const uuid = require('uuid');
const mochaUtils = require('mocha/lib/utils');
const stringify = require('json-stringify-safe');
const diff = require('di... |
"use strict";
/*
* Copyright (c) 2018, salesforce.com, inc.
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause
*/
Object.defineProperty(exports, "__esModule", { value: true });
const kit_1 = r... |
// CHANGE VERSION to effect change ---------------------
// HOMEPAGE
// const Sversion = 0.4
// const staticCacheName = Sversion + ''
const staticCacheName = 'site-static-v0.8';
// OTHER RES when SCROLLING & CLICK
// const Dversion = 0.6
// const dynamicCacheName = Dversion + ''
const dynamicCacheName = 'si... |
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prot... |
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(generator["throw"]... |
import React, { useEffect } from "react"
import "./styles.css"
import L from "leaflet"
import "leaflet-arrowheads"
import icon from "./constants"
import {antPath} from 'leaflet-ant-path'
var mapOptions = {
center: [15.2999988, -61.3833318],
zoom: 11,
zoomDelta: 0.5,
zoomSnap: 0,
wheelPxPerZoomLevel: 100
}
let ... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var core_1 = require("@ag-grid-community/core");
var numberFormats_1 = require("./numberFormats");
var fonts_1 = require("./fonts");
var fills_1 = require("./fills");
var borders_1 = require("./borders");
var cellStyleXfs_1 = require("./cellSt... |
const path = require('path');
const env = require('dotenv');
const webpack = require('webpack');
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
const HtmlWebpackPlugin = require('html-webpack-plugin');
const CleanWebpackPlugin = require('clean... |
/**
*
*/
angular.module('myApp', []).controller('myController', function($scope, $http, $filter) {
$scope.getCountGroupsUrl = '/api/count/groups/'
$scope.getAppListByGroupUrl = '/api/apps/'
$scope.getAppHistoryUrl = '/api/history/'
$scope.getAppStatisticsUrl = '/api/statistics/'
$scope.countGroups
$scope.curre... |
var test = require('../util/test')(__filename);
var get = require('../../packages/object-safe-get');
var compare = require('../../packages/collection-compare');
test('returns existing properties using dot-notation arg', function(t) {
t.plan(6);
var obj = {a: {aa: {aaa: 2}}, b: 0};
t.ok(compare(get(obj, 'a'), {aa... |
'use strict';
/**
* Twitch renderer
*
* Uses <iframe> approach and uses Twitch API to manipulate it.
* @see https://github.com/justintv/Twitch-API/blob/master/embed-video.md
*/
const TwitchApi = {
promise: null,
/**
* Create a queue to prepare the creation of <iframe>
*
* @param {Object} settings - an o... |
'use strict';
const assert = require('assert');
const { Big } = require('big.js');
const utils = require('./utils.js');
const timeGen = Symbol('timeGen');
const getWorkId = Symbol('getWorkId');
const getDataCenterId = Symbol('getDataCenterId');
const tilNextMillis = Symbol('tilNextMillis');
const EVENT_APP_INIT = 'e... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.getManifestHandler = getManifestHandler;
exports.getManifestResponseAsync = getManifestResponseAsync;
exports.getSignedManifestStringAsync = getSignedManifestStringAsync;
exports.getUnsignedManifestString = getUnsignedManifestString... |
/* global bootbox, base_url, app, angular */
"use strict";
app.controller('userSecurityCtrl', [
'$scope', '$http', 'uiGridConstants', function($scope, $http, uiGridConstants) {
// filter
$scope.filterOptions = {
filtertext: '',
contact: '',
role: '',
func... |
import * as ts from 'typescript';
import { DiagnosticCategory } from 'typescript';
import { existsSync, readFileSync, statSync, exists, mkdir, writeFile } from 'fs';
import { sep, extname } from 'path';
import { createFilter } from 'rollup-pluginutils';
import resolveId from 'resolve';
import sass from 'sass';
functio... |
// Basic Info
var onQuestionNum = 0; // Increment this every time a question is answered
var score = 0;
var questionDifficulty = ["easy", "medium", "hard"];
// Timer
var minutes = 1;
var totalSeconds = 60 * minutes;
var timeLeft = totalSeconds;
var timerRunning = false;
var timerElem = document.getElementById("time");... |
import * as THREE from 'three';
import CancelledCommandException from '../Core/Scheduler/CancelledCommandException';
// Draw a cube with lines (12 lines).
function cube(size) {
var h = size.clone().multiplyScalar(0.5);
var geometry = new THREE.Geometry();
geometry.vertices.push(
new THREE.Vector3(-... |
// Input data
var machines = "data/machines.json";
var cluster_info = "cluster_info.json";
function postAjax(url, data, success) {
var params = typeof data == 'string' ? data : Object.keys(data).map(
function(k){ return encodeURIComponent(k) + '=' + encodeURIComponent(data[k]) }
).join('&');
... |
'use strict'
const BB = require('bluebird')
const chain = require('slide').chain
const detectIndent = require('detect-indent')
const detectNewline = require('detect-newline')
const readFile = BB.promisify(require('graceful-fs').readFile)
const getRequested = require('./install/get-requested.js')
const id = require('.... |
var ref = require("prosemirror-menu");
var wrapItem = ref.wrapItem;
var blockTypeItem = ref.blockTypeItem;
var Dropdown = ref.Dropdown;
var DropdownSubmenu = ref.DropdownSubmenu;
var joinUpItem = ref.joinUpItem;
var liftItem = ref.liftItem;
var selectParentNodeItem = ref.selectParentNodeItem;
var undoItem = ref.undoIte... |
"use strict";
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for details.
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
return new (P || (P = Promise))(function (resolve, reject) {
... |
/**
* Copyright(C),2019-2029,www.jszcrj.com
* Author: <EMAIL>
* Date: 2019.01.31
* Version: 0.0.1
* Description: 线路的绘画,支持LineString、MultiLineString两种数据格式,支持颜色渐变
*/
import {
isEmpty, // 是否为空
detectmob, // 检查设备类型
clearPushArray // 清空数组并添加新内容
} from '../common/Util';
import CanvasOverlay from './bas... |
//Import statements
import lance1Portrait from "../assets/lance1Portrait.png";
import lance2Portrait from "../assets/lance2Portrait.png";
import sword1Portrait from "../assets/sword1Portrait.png";
import sword2Portrait from "../assets/sword2Portrait.png";
import axe1Portrait from "../assets/axe1Portrait.png";
import ax... |
function viewport() {
var e = window,
t = "inner";
return "innerWidth" in window || (t = "client", e = document.documentElement || document.body), { width: e[t + "Width"], height: e[t + "Height"] }
}
function toPosition() {
if (window.location.hash) {
var e = window.location.hash.substr(1);... |
import Source from 'Source/Source';
import Cache from 'Core/Scheduler/Cache';
import CRS from 'Core/Geographic/Crs';
/**
* @classdesc
* An object defining the source of a single resource to get from a direct
* access. It inherits from {@link Source}. There is multiple ways of adding a
* resource here:
* <ul>
* ... |
const { BotConfig, ChangesModel } = require('../models/models')
const { getAhaClient, loadIdea, loadFeature, getAhaUrls } = require('../lib/aha');
const { continueSession } = require('pg/lib/sasl');
const { Template } = require('adaptivecards-templating');
const gravatar = ... |
const fs = require("fs");
// const fsp = fs.promises;
const Jimp = require("jimp");
// const ytdl = require("ytdl-core");
const yn = require("youtube-node");
const yt = new yn;
yt.setKey(process.env.GOOGLEAPIKEY);
function getVideo(id) {
// eslint-disable-next-line no-async-promise-executor
return new Promise(async ... |
"use strict";
let gulp = require("gulp");
let sass = require("gulp-sass");
let sourcemaps = require("gulp-sourcemaps");
let replace = require('gulp-replace');
let plumber = require("gulp-plumber");
let postcss = require("gulp-postcss");
let autoprefixer = require("autoprefixer");
let babel = require('gulp-babel');
le... |
function t(t) {
if (Array.isArray(t)) {
for (var a = 0, o = Array(t.length); a < t.length; a++) o[a] = t[a];
return o;
}
return Array.from(t);
}
require("../../../../components/function/formatMsgTime/formatMsgTime");
var a = require("../../../../components/model/discover/goods-detail/goods... |
'use strict';
let math = require('../util/math');
let svg = require('../util/svg');
let Interface = require('../core/interface');
let Point = function(point,envelope) {
this.x = point.x;
this.y = point.y;
this.envelope = envelope;
this.element = svg.create('circle');
this.element.setAttribute('fill',this... |
"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... |
import React, { useState } from 'react';
import {
Formik, Field, Form, ErrorMessage
} from 'formik';
import * as Yup from 'yup';
import LockOutlinedIcon from '@material-ui/icons/LockOutlined';
import axios from 'axios';
import { Redirect, useHistory } from 'react-router-dom';
import {
Container,
Box,
Typography... |
'use strict';
exports.__esModule = true;
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
exports['default']... |
const master = require('cluster')
const cluster = require('./cluster.js')
const numCPUs = require('os').cpus().length
const logger = require('../utils/logger.js')
const EventEmitter = require('events')
const Eris = require('eris')
const Queue = require('../utils/queue.js')
const pkg = require('../../package.json')
/**... |
'use strict';
var path = require('path');
var Generator = require('yeoman-generator');
var yosay = require('yosay');
var chalk = require('chalk');
var cordova = require('cordova-lib').cordova.raw; // get the promise version of all methods
var fs = require('fs');
// local modules
var utils = require('../../utils/utils... |
import PropTypes from "prop-types";
import React, { useEffect, useRef, useState } from "react";
import { ArrowDown } from "./svgindex";
const TextField = (props) => {
const [value, setValue] = useState(props.selectedVal ? props.selectedVal : "");
useEffect(() => {
if (!props.keepNull) props.selectedVal ? setV... |
class Position {
constructor (x = 0, y = 0) {
this._x = x;
this._y = y;
this.watchers = [];
}
get x () {
return this._x;
}
set x (value) {
this._x = value;
this.notifyWatchers();
}
get y () {
return this._y;
}
set y (value)... |
"use strict";
import React from 'react';
import store from '../../../../core/store';
import css from './lanes.css';
import cx from 'classnames';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { actions} from 'react-redux-form';
import { requestProjectsHavingALibrary,
... |
import React, { useEffect, useState, useRef } from "react";
import {
Text,
ScrollView,
Modal,
View,
Button,
Alert,
StyleSheet,
Platform,
TouchableHighlight,
SafeAreaView,
} from "react-native";
import { Card, Input } from "react-native-elements";
import * as Animatable from "react-nati... |
//const { set } = require("lodash");
var isError = 0;
// corrects decimal point positions
function dm(amount)
{
string = "" + amount;
dec = string.length - string.indexOf('.');
if (string.indexOf('.') == -1)
return string + '.00';
if (dec == 1)
return string + '00';
if (dec == 2)
return string + '0';
if (... |
const {join} = require('path');
const {_buildBaseExternals, _buildUmdExternals} = require('./build/rollup/_baseExternals');
const {_buildLazyReq} = require('./build/rollup/_lazyReq');
const replacePlugin = require('@rollup/plugin-replace');
// ########## BEGIN SETUP
const CONFIG = {
assetFileNames: '[name][extname]... |
/**
* 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... |
"use strict";
const path = require("path");
const fs = require("fs");
const querystring = require("querystring");
const url = require("url");
const crypto = require("crypto");
const oicq = require("oicq");
const http = require("http");
const https = require("https");
const WebSocket = require("ws");
const filter = requ... |
import React, { useState } from 'react';
import _ from 'lodash';
import produce from 'immer';
import { SketchPicker } from 'react-color';
import { connect } from 'react-redux';
import { usePopupState, bindTrigger, bindPopover } from 'material-ui-popup-state/hooks';
import { update } from '@reducers/data';
import { upl... |
import { widgetsBase } from './widgets.base';
import { widgetsHandle as widgetsHandleFactory } from './widgets.handle';
/**
* @module widgets/annotation
* @todo: add option to show only label (without mesh, dots and lines)
*/
const widgetsAnnotation = (three = window.THREE) => {
if (three === undefined || three.O... |
// https://www.npmjs.com/package/gulp-remove-logging
// generated on 2020-06-27 using generator-webapp 4.0.0-8
const { src, dest, watch, series, parallel, lastRun } = require('gulp');
const gulpLoadPlugins = require('gulp-load-plugins');
const version = require('gulp-version-number');
const fs = require('fs');
const mk... |
const months = [
'January',
'February',
'March',
'April',
'May',
'June',
'July',
'August',
'September',
'October',
'November',
'December',
];
export default {
name: 'calendar',
props: {
locale: {
type: String,
default: 'en-US',
},
type: {
type: String,
de... |
/* eslint-disable class-methods-use-this */
import Phaser from 'phaser';
import STYLE from '../styles/style';
import Player from '../component/Player';
import ChaserShip from '../component/ChaserShip';
import GunShip from '../component/GunShip';
import CarrierShip from '../component/CarrierShip';
import ScrollingBackgr... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.registerPreviewStyle = registerPreviewStyle;
exports.getPreviewStyles = getPreviewStyles;
exports.registerPreviewTemplate = registerPreviewTemplate;
exports.getPreviewTemplate = getPreviewTemplate;
exports.registerWidget = registerW... |
import Cubie from "./cubie.js";
import * as THREE from "./node_modules/three/src/Three.js";
import TWEEN from "./node_modules/tween.js/dist/tween.esm.js";
import { CubeCamera } from "./node_modules/three/src/Three.js";
class Cube {
constructor(size, scene) {
this.size = size;
this.scene = scene;
this.piv... |
const assert = require('assert');
const fs = require('fs');
const {promisify, rdtscp} = require('util');
const readFileAsync = promisify(fs.readFile);
const int64 = require('node-int64');
const JSSalsa20 = require('js-salsa20');
function getRand(max) {
return Math.floor(Math.random() * Math.floor(max));
}
async fun... |
// handles collecting stats for phone-home for on-prem installations, and dumping them to
// mongo for later transmission
'use strict';
const LicenseManager = require('../../../shared/server_utils/LicenseManager');
const ArrayUtilities = require(process.env.CSSVC_BACKEND_ROOT + '/shared/server_utils/array_utilities... |
// Copyright (c) Microsoft Corporation and others. Licensed under the MIT license.
// SPDX-License-Identifier: MIT
const expect = require('chai').expect
const sinon = require('sinon')
const MavenFetch = require('../../../../providers/fetch/mavencentralFetch')
const PassThrough = require('stream').PassThrough
const pro... |
/*!
* ScrambleTextPlugin: 3.0.0
* https://greensock.com
*
* @license Copyright 2008-2019, GreenSock. All rights reserved.
* Subject to the terms at https://greensock.com/standard-license or for
* Club GreenSock members, the agreement issued with that membership.
* @author: <NAME>, <EMAIL>
*/
/* eslint-disable *... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.