text stringlengths 8.5k 48.7k |
|---|
import React, { Component } from "react";
import { generatePath } from "react-router";
import { withRouter } from "react-router-dom";
import uniqueId from "lodash/uniqueId";
import Api from "../api";
import FileUploadSelector from "../components/FileUploadSelector";
import PublicationSelector from "../components/... |
/*
版权所有 2009-2015 荆门泽优软件有限公司
保留所有权利
官方网站:http://www.ncmem.com/
产品首页:http://www.ncmem.com/webplug/http-uploader5/index.asp
产品介绍:http://www.cnblogs.com/xproer/archive/2012/05/29/2523757.html
开发文档-ASP:http://www.cnblogs.com/xproer/archive/2012/02/17/2355458.html
开发文档-PHP:http://www.cnblogs.com/xproer/archive/2012/... |
var schemeNames = {
sequential: [
"California-gold",
"California-teal",
"FireAndIce-red",
"FireAndIce-gray",
"VanGogh-yellow",
"VanGogh-blue",
"GrapevineSunrise-green",
"GrapevineSunrise-purple",
"VanGoghAmberAndPurple-amber",
"VanGoghAmberAndPurple-purple",
"PeanutButterAndJelly-peanut",
"Pea... |
// © 2014 <NAME>
// vim:ts=4:sw=4:et
// Opens a WebSocket connection to Debian Code Search to send and receive
// search results almost instantaneously.
// NB: All of these constants needs to match those in cmd/dcs-web/querymanager.go
var packagesPerPage = 5;
var resultsPerPackage = 2;
var animationFallback;
var sear... |
//
// Scripts for contacts panel on cases tab
//
/* global validContact, notify, checkConflicts, elPrint */
function sizeContacts(contacts, panelTarget) {
var windowHeight = panelTarget.height();
var minContactHeight = panelTarget.height() * 0.4;
contacts.not('.new_contact').each(function() {
//... |
import { CubeSym } from "./core/CubeSym.js";
export const TX_CNT = 32;
/*Object.defineProperty(String.prototype, 'hashCode', {
value: function() {
var hash = 0, i, chr;
for (i = 0; i < this.length; i++) {
chr = this.charCodeAt(i);
hash = ((hash << 5) - hash) + c... |
#!/usr/bin/node
const prompt = require('prompt-sync')({
sigint: true
});
const conventions = {
regExp: new RegExp(/(([A-Z]* )?U[0-9]+)( p([0-9]+))?(\-[0-9]+ | )?(.*)/),
parseUnit: (str) => conventions.regExp.exec(str)[1],
parsePageNumber: (str) => conventions.regExp.exec(str)[4],
parseId: (str) => ... |
/**
* https://coding.studio/tchart/
* (c) CODING.STUDIO
*/
/* eslint-disable */
import styles from './Graph.module.scss';
const MONTH_NAMES = [
'Jan',
'Feb',
'Mar',
'Apr',
'May',
'Jun',
'Jul',
'Aug',
'Sep',
'Oct',
'Nov',
'Dec',
];
// const DAY_NAMES = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'F... |
// require the filesystem and discord.js modules
require('console-stamp')(console, { format: ':date(mm/dd/yy HH:MM:ss)' });
const fs = require('fs');
const configPath = './config.json';
let config = undefined;
const wait = require('util').promisify(setTimeout);
const fsp = fs.promises;
const sqlite3 = require('sqlite3'... |
$(".mhn-lock-wrap").css("display", "none");
const originLat = 37.7829427;
const originLon = -122.4309525;
//test out of range location
// const originLat = 38.7829427;
// const originLon = -122.4309525;
console.log("Origin Location: ", originLat, originLon);
function getCurrentTime() {
const timeStamp = new Date();... |
/* global Parse */
const Environment = require('./environment');
const Chat = require('./chat');
const playerMatrix = [
[2, 3, 2, 3, 3],
[2, 3, 4, 3, 4],
[2, 3, 3, 4, 4],
[3, 4, 4, 5, 5],
[3, 4, 4, 5, 5],
[3, 4, 4, 5, 5],
];
class Game extends Parse.Object {
constructor() {
super('Game');
}
/**... |
"use strict";
var assert = require("assert");
var core = require("./core");
var GET_CNAMES = "function f(o){" +
"var r,u;for(var p in o)if((r=o[p])&&typeof r ==='object'&&(u=r[\"__unq\"])){" +
"${getCNames_names}[u]=p;" +
"delete r[\"__unq\"];" +
"}" +
"return o;" +
"};";
function literalToName(string) {
var... |
$(function () {
//初始化鉴定项目
var lbid = $("#idenCheck").val();
var genre = $("#idenCheck").attr("genre");
initIdenProject(lbid, genre);
layui.use(['layer', 'form', 'upload'], function () {
var layer = layui.layer,
laydate = layui.laydate,
form = layui.form;
var ... |
//game font
var customFont = 'Eraser-Regular';
if(Ti.Platform.osname == 'android') {
customFont = 'EraserRegular';
}
//your game time up value, in seconds
var timeUpValue = 300;//default = 300
//images
var startUpImage = 'images/start.jpg';
var gameBackground = 'images/bg.jpg';
var buttonImage = 'images/button.p... |
import Dom from './dom';
let sharedCanvas = wx.getSharedCanvas();
let ctx = sharedCanvas.getContext('2d');
let bli = ctx.canvas.width / 750;
let ww = ctx.canvas.width
var kb = [ "uid", "fen","time"];
function p(s) {
console.log(s);
}
let dom ={};
let currN = 0;
let currU = -1;
let usLS = [];
let myM = -1;
fun... |
//function dragstart(ev) {
// ev.dataTransfer.setData('text', ev.target.id);
//}
//function dragover(ev) {
// ev.preventDefault();
//}
//function drop(ev) {
// var target = this;
// ev.preventDefault();
// var data = ev.dataTransfer.getData('text');
// var elem = document.getElementById(data);
// ... |
// Copyright 2016 Zipscene, LLC
// Licensed under the Apache License, Version 2.0
// http://www.apache.org/licenses/LICENSE-2.0
const path = require('path');
const pasync = require('pasync');
const Profiler = require('simprof');
const ResourceLockedError = require('./resource-locked-error');
const RWLock = require('./... |
/*******************************************************************************
~ Display Area Layout ~
This script sets up the display area for showing the processing results.
*******************************************************************************/
////////// DISPLAY AREA LAYOUT //////////////////////... |
import { isEqual, repeat, sortBy, uniqBy } from "lodash";
import shortid from "shortid";
import { dnaComplement } from "../parser";
import { translateWildNucleotides } from "../sequence";
import enzymes from "./enzymes.js";
/**
* findCutSites
*
* Search through the sequence with the given enzyme and return an arra... |
const START = new Date();
const SEED = Math.floor(START/1000);
const COLORS_HEX = ["114b5f","028090","e4fde1","456990","f45b69"].map(x => '#'+x);
const palettes = [
{ val: ["f5e3e0","2e86ab","3b1f2b","070707","d84727"].map(x => '#'+x), weight: 100, name: "Embroidery" },
{ val: ["141115","cc2936","f2f4f3","2191fb","ff... |
export const TRIGGER_HAPPY_MODULE_NAME = 'trigger-happy';
export const log = (...args) => console.log(`${TRIGGER_HAPPY_MODULE_NAME} | `, ...args);
export const warn = (...args) => {
console.warn(`${TRIGGER_HAPPY_MODULE_NAME} | `, ...args);
};
export const error = (...args) => console.error(`${TRIGGER_HAPPY_MODULE_NA... |
"use strict";
var crypto = require("crypto");
var azure = require("azure-storage");
var async = require("async");
var fs = require("fs");
var https = require("https")
var util = require("util")
var net = require("net")
var azureTable = require("azure-table-node")
var url = require("url")
var maxDl = 40
var maxBufSize... |
const Connectivity = require('./externalConnection');
const Settings = require('../config/settings');
const ZipHelper = require('./zip');
class ContentDownloader {
constructor(t) {
this.Tenant = t;
this.stats = {
Statistics_numIntegrationPackages: 0,
Statistics_numIntegratio... |
/**
* Announcement Registration
*
* @author <NAME>
* @create 24/05/2021 (D/M/Y)
* @param
* @return
*/
import React, { useState, useEffect, useCallback } from "react";
import { useTranslation, withTranslation, Trans } from "react-i18next";
import {
CCard,
CCardBody,
CButton,
CCardH... |
'use strict';
/*
* Purpose:
* The view the user sees when no region has been seleted
* Dependencies:
* jQuey, audio-annotator.css
*/
function StageOneView() {
this.dom = null;
}
StageOneView.prototype = {
// Create dom
create: function() {
var my = this;
var container = $('<div>')... |
import * as THREE from './build/three.module.js';
var vector3Pool = [];
const Vector3Pool = {
new : function(x,y,z) {
var r = vector3Pool.pop();
if( r ) {
r.x = x;
r.y = y;
r.z = z;
}
else{
r = new THREE.Vector3(x,y,z);
}
return r;
}
}
THREE.Vector3.prototype.delete = f... |
import React, {Component} from 'react';
import ResizeAware from 'react-resize-aware';
import {Grid, Popup} from 'semantic-ui-react';
import './react-select.css';
import PVGauge from './PVGauge';
import {NavPane, NavPaneItem} from 'react-desktop/windows';
import NavPanelInformationYouHold from "./NavPanelInfor... |
const express = require('express')
const router = express.Router()
// Tier 1 version 3
// Select an action
router.post('/actions-answer', function (req, res) {
var action = req.session.data['what-action']
if (action == "fertilisers"){res.redirect('/tier1-v3/options/fertilisers?what-action=')}
if (action == "f... |
/* Copyright (c) 2019 Parallax Inc., All Rights Reserved. */
// jQuery-like convience ;)
function $(id) {
return document.getElementById(id);
}
/*
Launcher Communication Port Rules:
* New download, terminal/graphic request, or "pref-port" message from browser? Launcher records portPath as the preferred device.
... |
/*
Copyright 2018, 2019 New Vector 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 a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, sof... |
require([
'jquery',
'waypoints'
], function(jQuery){
(function($) {
$.fn.appear = function(fn, options) {
var settings = $.extend({
//arbitrary data to pass to fn
data: undefined,
//call fn only on the first appear?
one: true,
// X & Y accuracy
accX: 0,
accY: 0
}, options);
... |
// Size of canvas. These get updated to fill the whole browser.
let width = 150;
let height = 150;
const numBoids = 1500;
const visualRange = 50;
const maxNeighbors = 500;
const STATE_REVEALING = 0;
const STATE_COVERING = 1;
const STATE_FADEIN = 2;
const STATE_BETWEEN = 3;
let state = STATE_REVEALING;
let nTicks = ... |
/* Copyright 2016 Mozilla Foundation
*
* 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... |
/* eslint no-mixed-operators: "off" */
const Websocket = require('ws');
const ip = require('ip');
const publicIp = require('public-ip');
const axios = require('axios');
const semver = require('semver');
const disk = require('diskusage');
const os = require('os');
const v8 = require('v8');
const _ = require('lodash');
c... |
// 变量定义---------------------------------
var scene;
var camera;
var renderer;
var stats;
var geometry;
var material;
var line;
var ambientLight;
var loader;
var clock = new THREE.Clock();
var webglContainer = document.getElementById('webgl-container');
var door;
var doorMixer;
var doorBorder;
var doorContent;
var ... |
import PropTypes from 'prop-types';
import React from 'react';
import Helmet from 'react-helmet';
import { connect } from 'react-redux';
import Joi from 'joi';
//
import { Advanced, Basic, Domain, Enums, Managers, Utils } from 'czechidm-core';
import MappingContextCompleters from 'czechidm-core/src/content/script/compl... |
import Base from '../base'
import tpl from './index.html'
import style from './index.less'
import {
SpringTD,
} from '../../utils/animation-spring'
import {
findParent,
throttleRAF,
animation,
} from '../../utils/tool'
const template = document.createElement('template')
template.innerHTML = `<style>${s... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _spawnRx = require('spawn-rx');
var _electronRemote = require('electron-remote');
var _lruCache = require('lru-cache');
var _lruCache2 = _interopRequireDefault(_lruCache);
var _Subscription = require('rxjs/Subscription');
var _Obs... |
// src/components/page/LayeringHeatMapPage.js
import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from '@material-ui/core/styles';
import { HeatMap } from '@stickyboard/openlayers';
const styles = (theme) => ({
root: {
height: '100%',
},
});
const pointList = [
... |
function toggleElementsState(elements, disabled) {
Array.from(elements).forEach(function (el) {
if (disabled) {
el.setAttribute("disabled", true);
el.disabled = true;
} else {
el.removeAttribute("disabled");
el.disabled = false;
}
});
}
function addToMailingList(event) {
event... |
/// <reference path="https://cdn.rawgit.com/borisyankov/DefinitelyTyped/master/jquery/index.d.ts" />
// required for browsers that do not support the Promise object natively
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.... |
import React, { createContext, createRef, PureComponent, Fragment } from 'react';
import PropTypes from 'prop-types';
import { Transformation as Transformation$1, Util, Cloudinary } from 'cloudinary-core';
function _extends() {
_extends = Object.assign || function (target) {
for (var i = 1; i < arguments.length;... |
/**
* 验证开始结束时间
*
* @param {}
* dateStart
* @param {}
* dateEnd
* @return boolean
* @author xuhj
*/
function dateValidation(dateStart, dateEnd, name) {
if (isBlank(dateStart) && isBlank(dateEnd)) {
return true;
}
if (isBlank(dateStart) && !isBlank(dateEnd)) {
$.messager.alert("信息",... |
/*RUTA GLOBAL */
var root = "/"+window.KKATOO_ROOT;
var player;
var arr_diales = new Array();
var frm_filtro = $('#frm-filtro');
/*PLANTILLAS PARA RENDERIZAR*/
var template_agregado = '<tr><td><i class="material-icons">clear</i></td><td style="text-align: left !important;"><i class="material-icons" style="vertical-a... |
/* Interface to access the site in a abstractive manner */
function include(filename) {
if (document.querySelectorAll('[src="' + filename + '"]').length > 0 > 0) {
return;
}
var head = document.getElementsByTagName('head')[0];
script = document.createElement('script');
script.src = filename;
script... |
/* Truffle Test and Test RPC objects */
const assert = require('chai').assert;
const sleep = require('sleep');
require('chai').use(require('chai-as-promised')).should();
const BigNumber = require('bignumber.js');
/* Web 3 Objects */
const Web3 = require('web3');
const web3 = new Web3('http://localhost:8545');
/* Cont... |
// IP cust --- INSERT
// --- expand state management
function minimize() {
if (retrieveSi(srcdoc, "StatAppWznmNavProject", "srefIxWznmVExpstate") == "mind") return;
setSi(srcdoc, "StatAppWznmNavProject", "srefIxWznmVExpstate", "mind");
// change container heights
getCrdwnd().changeHeight("Project", 30);
doc.get... |
import * as Utils from "./utils";
const Repair = (() => {
// the algorithm is like this:
// 1. generate an adjacency map
// 2. from the adjacency map, get the hash table of vertices that border holes
// 3. generate a list of border vertex cycles (wind them clockwise)
// 4. use the advancing f... |
console.info("%c GAODE MAP CARD \n%c Version 1.2.4 ",
"color: orange; font-weight: bold; background: black",
"color: white; font-weight: bold; background: dimgray");
import 'https://webapi.amap.com/loader.js';
import './w3color.js';
import 'https://unpkg.com/@material/mwc-radio@0.18.0/mwc-radio.js?module';
// cu... |
const minify = require("html-minifier").minify;
const { IncomingWebhook } = require("@slack/webhook");
class FormHandler {
constructor(event, forms, config) {
this.mailer = require("mailgun.js");
this.mailgunDomain = config.mailgunDomain || null;
this.mailgunKey = config.mailgunKey || null;... |
'use strict';
// ---------------------------------------------------------------------------
const Exchange = require ('./base/Exchange');
const { DECIMAL_PLACES, PAD_WITH_ZERO, ROUND } = require ('./base/functions/number');
const { AuthenticationError, DDoSProtection, ExchangeError, ExchangeNotAvailable, Insufficie... |
/*
axe INSPIRED BY...
==================
1) Learning jQuery fundamentals in a few days and being massively impressed by the elegance and simplicity of its syntax
2) Questions on StackOverflow showing where plain CSS falls short
3) Wanting to learn to use Javascript objects competently
4) Lea Verou's MarkApp
5) "You mi... |
var GalleryViewer = {
/**
* boolean to determine if init() has been run yet
*/
initialized: false,
/**
* array to cache film strip responses
*/
filmStripCache: {},
/**
* temporary keywords (not applied until hit 'apply')
*/
tempKeywords: "",
/**
* list of keyw... |
/* Schema and constraint checking for native SpecIF data in JSON format.
* Requires: ajv 4.8 or higher.
* License: Apache 2.0 (http://www.apache.org/licenses/)
* Author: <EMAIL>, enso managers gmbh, Berlin (http://www.enso-managers.de)
* We appreciate any correction, comment or contribution via e-mail to <EMA... |
const PORT = process.env.PORT || 3000;
const app = require('express')();
const http = require('http').createServer(app);
var io = require('socket.io')(http);
const { Client } = require('pg');
const { v4: uuidv4 } = require('uuid');
const client = new Client({
connectionString: process.env.DATABASE_URL,
ssl: {
... |
/**
* A script that checks the interpolation of a token's movement to detect
* whether they have passed through a square containing a trap.
*
* A trap can be any token on the GM layer for which the cobweb status is
* active. Flying tokens (ones with the fluffy-wing status or angel-outfit
* status active) will not... |
'use strict';
const { BitEncoder } = require('../util/bitencoder');
const { bitpack5BitBstr } = require('../formats/bitpack_5bit');
const { walkObjectsAndProperties, findObjectById, findPropertyByKey, propDefault } = require('./metadata/util');
const { classToHtypeNumber } = require('./classnames');
const { assert } =... |
// Listen to command from the popup
chrome.runtime.onMessage.addListener(function(request, sender, sendResponse) {
performClustering(request.config);
//automatedNoKMeansTests();
//automatedSOMTests();
//automatedKMeansTests(request.config);
});
function automatedNoKMeansTests(config) {
var config = {
method... |
function getSettings() {
return {
DATABASE_NAME: "lnotes",
DATABASE_VERSION: 24,
SMART_REM_PREFIX: ">>>",
SMART_VIEW_REM_ID: "SOMETHING", // Rem tagged with this Rem are considered as Smart Views
};
}
// =============== Query explorations ================
function remContent(rem) {
return [...rem... |
// In this file you can specify the trial data for your experiment
const trial_list = {
trials : [
_.shuffle(['larry', 'michael', 'david', 'steve', 'cleveland', 'tom']),
_.shuffle(['people', 'problem', 'solution', 'fact', 'agree', 'point']),
_.shuffle(['faq', 'list', 'info', 'information', 'book', 'food']),
... |
/**
@author <NAME>
TODO: need a better way to get the userAgentsNames.
**/
/*
this is here just for debugging purposes, it stops browsers without a console interface
from crashing the script.
*/
window.console = window.console || {log: function(){}};
/*
Base objects for processable Documents.
A processsable doc... |
/* eslint-disable no-undef */
import { Janus } from "janus-gateway";
import Vue from "vue";
export const state = {
janus: null,
plugin: null,
servers: null,
secret: null,
messengerAuth: null,
janus_id: null,
janus_private_id: null,
feeds: [],
participants: [],
error: null,
mode: "default",
ca... |
/**
* Collection of LJM native constants necessary.
*
* Set of constants defined by LJM that are necessary for interfacing with the
* native software layer.
*
* @author <NAME> (chrisjohn404, LabJack Corp.)
**/
exports.LJM_JS_VERSION = 1.0000;
exports.LJM_DRVR_VERSION = '1.0.0';
exports.LJM_MAX_SUPPORTED_VERSION ... |
import React, { Component } from 'react';
import { observer } from 'mobx-react';
import {
Button, Spin, message, Icon, Select, Table, Menu, Checkbox, Tabs, Tooltip, Pagination,
} from 'choerodon-ui';
import {
Page, Header, Content, stores,
} from 'choerodon-front-boot';
import ReactEcharts from 'echarts-for-react';... |
$(function(){
var base_url = $("body").data('base_url'); //base_url come from php functions base_url();
var fsrno = $("#fsrno_id_sec").data("fsrno");
var sa_id = $("#searchSalesorderCode_id").val();
var qty = $("#qty").val();
// $('.btnassignShip').attr('disabled', true);
$('#shipping').on('key... |
//run javaScript in strict mode
"use strict"
// Loggers
var consoleAppender = JL.createConsoleAppender('consoleAppender_editor');
var ajaxAppender = JL.createAjaxAppender('ajaxAppender_editor');
JL().setOptions({"appenders": [ajaxAppender, consoleAppender]});
//set ajax to run in asychronous mode only
$.ajaxSetup({
... |
/* a default game viewer - clients could provide their own verskon*/
var GameViewer = function () {
this.message = function (msg) {
$('#message').html("<div class='alert alert-danger'> " + msg + "</div > ");
};
};
var ClientActions = function () {
};
/* Kharbga Server - Encapsulates all SignalR ... |
'use strict';
require('mocha');
const assert = require('assert').strict;
const match = require('./support/match');
const { isMatch, makeRe } = require('..');
describe('stars', () => {
describe('issue related', () => {
it('should match paths with no slashes (micromatch/#15)', () => {
assert(isMatch('a.js',... |
// Constructive Solid Geometry (CSG) is a modeling technique that uses Boolean
// operations like union and intersection to combine 3D solids. This library
// implements CSG operations on meshes elegantly and concisely using BSP trees,
// and is meant to serve as an easily understandable implementation of the
// algori... |
function createCommonjsModule(fn, module) {
return module = { exports: {} }, fn(module, module.exports), module.exports;
}
var _global = createCommonjsModule(function (module) {
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
var global = module.exports = typeof window != 'undefined' && window... |
import WaveformData from 'waveform-data';
import * as d3 from "d3";
import { text } from 'd3';
const OPTS = {
channelHeight: 50,
height: 50
};
class WaveformChannelData {
constructor(data) {
}
}
export class Timeline {
constructor(element, frames, opts=OPTS) {
this.element = element;
... |
// ============================================================================================================================= //
/*
* This file contains functions for game known as "Lines".
* Author: <NAME>
* Date: September - October, 2004
*/
// ===============================================================... |
const pdfDirectory = [
{name: "Dungeon World: Perilous Wilds", code: "DW_TPW", directory: [
["Plumb the Depths", 54],
["Name Every Person", 66],
]},
{name: "GMM: Wilderness Dressing", code: "GMM_WD", directory: [
["Features & Events", [
["Campsite: Min... |
/**
* Script for validating the prices before adding to cart.
*
* @package WooCommerce Name Your Price/Scripts
*/
/* global woocommerce_nyp_params */
/**----------------------------------------------------------------*/
/* Global utility variables + functions. */
/*------------... |
/* * * *
Imports
* * * */
d3 = require("d3");
turf = require("turf");
var spawn = require('child_process').spawn;
const Twitter = require("twitter");
const fs = require('fs');
const { createCanvas } = require('canvas');
const request = require('request')
pc = require("./polygonClip.js");
ch = require("./chaikin.js");
... |
const domify = require('domify');
const emitter = require('component-emitter');
const debounce = require('debounce');
const cookie = require('component-cookie');
const debug = require('debug');
let myRoot = { navigator: { userAgent: '' }, location: { protocol: 'file', hostname: '' } };
// Establish the object that ge... |
const $$ = parameter => {
return document.querySelector(parameter);
};
//set change listener on discount and tax beginning
let show = false;
const toggleHandler = () => {
show = !show;
if (show) {
document.querySelector(".forDropDown").classList.add("slideDown");
} else {
document.querySelec... |
/**
* Module dependencies.
*/
const fs = require('fs');
const path = require('path');
const express = require('express');
const app = module.exports = express();
const cors = require('cors');
function error(status, msg) {
var err = new Error(msg);
err.status = status;
return err;
}
const returnErr = (r... |
// base imports
import React, { useContext, useEffect, useState } from 'react';
import PropTypes from 'prop-types';
import { useHistory, useLocation, useParams } from 'react-router-dom';
import { Helmet } from 'react-helmet-async';
import MuiSearchBar from 'material-ui-search-bar';
import { useIntl } from 'react-intl';... |
// <NAME> <<EMAIL>>
"use strict";
// modules
const assert = require('../../assert.js');
const Timer = require('../../timer.js');
const { basePath } = require('../../wasm.js');
const gs_module = require('../../../libs/nlopt-wasm/global_sampling.js');
let gs = gs_module({
locateFile: function(path){
return basePat... |
import './MailChampEdit.css';
//import imgLogo from './image/dummylogo.jpg';
import React, { useState, useEffect, useHistory } from 'react';
import axios from 'axios';
import SubCtrl from "../Subscription/subCtrl/subscriptionCtrl";
import swal from "sweetalert";
import TextField from '@material-ui/core/TextField';
im... |
/*
* Nexmo Client SDK
* Main wrapper
*
* Copyright (c) Nexmo Inc.
*/
const WildEmitter = require('wildemitter');
const socket_io = require('socket.io-client');
const logger = require('loglevel');
const prefix = require('loglevel-plugin-prefix');
const bugsnag = require('@bugsnag/js');
const Utils = require('./uti... |
//para: 交互模式
var AIS_MODE = "NORMAL";
//para: 主画布
var renderer;
//para: 基函数画布
var basic_canvas;
//para: 相机
var camera;
//para: 控制器
var controls;
//para: 映射器
var projector;
//para: 光线投射器
var raycaster = new THREE.Raycaster();
//para: 主画布载体
var container;
//para: 基函数画布载体
var para_container;
//para: 主菜单GUI
var gui;
//pa... |
/**
* Parses querystring for parameters.
* Transforms CSV to image.
* Displays image to user.
*/
tilmap = function () {
$('[data-toggle="tooltip"]').tooltip();
tilmap.myBrowser = getBrowser(); // global variable for which browser we've got
// blue-red colormap
tilmap.colormap = util.colormap();
var que... |
/* global alert */
import React, { useContext, useEffect, useRef, useState } from 'react';
import {
ActivityIndicator,
FlatList,
I18nManager,
Keyboard,
KeyboardAvoidingView,
LayoutAnimation,
Platform,
StatusBar,
StyleSheet,
Text,
TouchableOpacity,
View,
Alert,
findNodeHandle,
} from 'react-n... |
"use strict";
var IDS = ["LL", "LP", "RP", "RL"];
// global data structure which holds spectrogram objects.
// When a request for update comes in the sender must specify an id to update
var SPECTROGRAMS = {};
// global visgoth object
var visgoth = new Visgoth();
/*
* Helper function to wrap `document.getElementByI... |
import 'react-native-gesture-handler'
import { AppRegistry, TouchableOpacity, Text } from 'react-native';
import React, { Component } from 'react';
import { Provider } from '@ant-design/react-native';
import { View, Alert, NativeModules } from 'react-native';
import { createAppContainer } from 'react-navigation';
impor... |
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... |
// Precedence is used by the parser to determine which rule to apply when there are two rules that can be applied.
// We use the PREC dict to globally define rule pprecidence
const PREC = {
COMMENT: 1,
STRING: 2,
COMMA: -1,
OBJECT: -1,
USER_TYPE: 1,
DECLARATION: 1,
ASSIGN: 0,
TERNAR... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
var _extends2 = _interopReq... |
'use strict';
/**
* Module dependencies
*/
// Public node modules.
const _ = require('lodash');
const mongoose = require('mongoose');
const Mongoose = mongoose.Mongoose;
const mongooseUtils = require('mongoose/lib/utils');
// Local helpers.
const utils = require('./utils/');
// Strapi helpers for models.
const { ... |
import { ttm_seg7_texture_07001800, } from "../../../texture.inc"
import { mountain_09003800, } from "../../../../../textures/mountain"
import { mountain_09004000, } from "../../../../../textures/mountain"
import * as Gbi from "../../../../../include/gbi"
const ttm_seg7_lights_0700C488 = Gbi.gdSPDefLights1(
0x7f, ... |
const LOCAL_TIME_ZONE = moment.tz.guess()
let MONTH_RETURN = 10
let CHART_RETURN = 10
let TODAY_RETURN = 10
let RETURN_TOGGLE = 0
let YESTERDAY_FLAG = 0
let CHARTING = false
const DEFAULT_EARNINGS_DATA = {
today: 0.1,
lastMonth: 0.1,
earnings: []
}
const slider = (obj) => {
let historic = MONTH_RETURN
if (RE... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } }... |
import * as THREE from 'three';
/**
* OrbitControls for mouse and keyboard controls.
* Changes to turn it into a three.js module for bundling.
* @author qiao / https://github.com/qiao
* @author mrdoob / http://mrdoob.com
* @author alteredq / http://alteredqualia.com/
* @author WestLangley / http://github.com/Wes... |
// good answer from me about MediaStream => MediaStram https://stackoverflow.com/questions/11292076/load-audiodata-into-audiobuffersourcenode-from-audio-element-via-createmediae/70753627#70753627
// https://developer.mozilla.org/en-US/docs/Web/API/MediaSource
// https://developer.mozilla.org/en-US/docs/Web/API/Media_So... |
var CONFIG = require("./config.js");
var CONSTANTS = require("./constants.js");
var util = require("./util.js");
var GDPR = require("./gdpr.js");
var bmEntry = require("./bmEntry.js");
var refThis = this;
function createBidEntry(divID){ // TDD, i/o : done
/* istanbul ignore else */
if(! util.isOwnProperty(window.PW... |
var myData = [
{
"FIELD1": "ID ",
"FIELD2": "Country",
"FIELD3": "Birth Rate / 1000",
"FIELD4": "Cell Phones / 100",
"FIELD5": "Children / Woman",
"FIELD6": "Electricity Consumption / Capita",
"FIELD7": "GdP / Capita",
"FIELD8": "GdP / Capita growth",
"FIELD9": "Inflation Annual",
"FIELD1... |
/*
Unit testing library for the OpenGL ES 2.0 HTML Canvas context
Copyright (C) 2011 <NAME> <<EMAIL>>
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 limit... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.createWithPatches = createWithPatches;
var _isEqual2 = _interopRequireDefault(require("lodash/isEqual"));
var _debounce2 = _interopRequireDefault(require("lodash/debounce"));
var DMP = _interopRequireWildcard(require("diff-match-... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.