text stringlengths 5.97k 41.2k |
|---|
global.defineManager = require('./Settings/DefineManager');
global.logManager = require('./Utils/LogManager');
global.util = require('util')
const functions = require('firebase-functions');
const admin = require('firebase-admin');
var serviceAccount = require("./service-account.json");
admin.initializeApp({
cred... |
// mixin implementing the reify method
// XXX link bins
// XXX provide list of scripts that need to be run
const npa = require('npm-package-arg')
const pacote = require('pacote')
const binLinks = require('bin-links')
const {dirname, resolve, relative} = require('path')
const {depth: dfwalk} = require('treeverse')
con... |
/*
* Copyright © 2016 I.B.M. 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 applicable law... |
import Analyticsreport from '../models/analyticsreport.model';
import Accounthead from '../models/accounthead.model';
import async from "async";
import common from '../helpers/common';
const moment = require('moment');
var url = process.env.MONGO_HOST;
var MongoClient = require('mongodb').MongoClient;
module.exports ... |
"use strict";
//Import Node Modules.
//----------------------
const express = require("express");
const router = express.Router();
const gSystemConfig = require("../config-application.js"); //System configuration.
const SyncSystemNS = require("../" + gSystemConfig.configDirectoryComponents + "/syncsystem-ns.js");
co... |
function CInterface(iMoney) {
var _iFicheIndex;
var _aFiches;
var _pStartPosAudio;
var _pStartPosExit;
var _pStartPosFullscreen;
var _oButExit;
var _oButFullscreen;
var _fRequestFullScreen = null;
var _fCancelFullScreen = null;
var _oClearBetBut;
var _oRebetBut;
var _oBe... |
function CInterface(iMoney) {
var _iFicheIndex;
var _aFiches;
var _pStartPosAudio;
var _pStartPosExit;
var _pStartPosFullscreen;
var _oButExit;
var _oClearBetBut;
var _oRebetBut;
var _oBetAnte;
var _oDealBut;
var _oButSplit;
var _oHouseWay;
var _oAudioToggle;
var... |
import { firebaseAuth, firebaseDB } from './utils/firebase';
import * as monaco from 'monaco-editor/esm/vs/editor/editor.main';
import * as Firepad from 'firepad/dist/firepad';
import { absolutify } from './utils/absolutify';
function debounce(func, wait, immediate) {
var timeout;
return function() {
var context ... |
var margin = {top: 60, right: 80, bottom: 20, left: 80},
width = 750 - margin.right - margin.left,
height,
// height = 300 - margin.top - margin.bottom
indent = 40;
var canvas = document.getElementById("canvas");
var folder = 'training';
// var folder = "testing"
if (folder == "training") {
height... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const querystring_1 = require("@favware/querystring");
const country_data_1 = require("country-data");
const fast_xml_parser_1 = require("fast-xml-parser");
const node_fetch_1 = tslib_1.__importDefault(require... |
load("script/utils.js")
Optional = Java.type("java.util.Optional")
Collectors = Java.type("java.util.stream.Collectors")
GlobalContext = Java.type("logbook.data.context.GlobalContext")
var fleetId
function header() {
return ["成功"]
}
function begin(fleetId) {
this.fleetId = fleetId
}
function body(data) {
return... |
//Because Browserify encapsulates every module, use strict won't apply to the global scope and break everything
'use strict';
//Require necessary modules
var PropFactory = require('../factories/propfactory.js'),
DecorationFactory = require('../factories/decorationfactory.js'),
EnemyFactory = require('../factories/en... |
"use strict";
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
... |
if ('serviceWorker' in navigator) {
navigator.serviceWorker.register('sw.js');
} // if
let workoutNames = {}; // object containing user-submitted workout details
let workoutTimes = {}; // object containing user-submitted workout durations
let customTimes = {}; // object containg user-submitted custom interval durati... |
/*
* ==========================================
* OpenCA Iface 2.0 - Dynamic Javascript Menu
* (c) by <NAME> and OpenCA Team
* All Rights Reserved
* ==========================================
* OpenCA Licensed Software
* ==========================================
*/
var xmlDoc = null;
var request = null;
var m... |
const Express = require('express');
const Router = Express.Router();
const bodyParser = require('body-parser');
const jwt = require('jsonwebtoken');
const bcrypt = require('bcrypt-nodejs');
const pg = require('pg');
const config = require('./dbconfig');
const SECRET_TOKEN = '<KEY>';
Router.use(bodyParser.json()); // s... |
const basePath = process.cwd();
const { NETWORK } = require(`${basePath}/constants/network.js`);
const fs = require("fs");
const { nextTick } = require("process");
const sha1 = require(`${basePath}/node_modules/sha1`);
const { createCanvas, loadImage } = require(`${basePath}/node_modules/canvas`);
const buildDir = `${b... |
//Hide columns by default
/*
$('td:nth-child(4),th:nth-child(4)').hide();
$('td:nth-child(5),th:nth-child(5)').hide();
$("#backBut").click(function(){
$('td:nth-child(4),th:nth-child(4)').show();
$('td:nth-child(5),th:nth-child(5)').show();
});
*/
var colCount=12;
function checkbox(id, colNum){
if(document.getElem... |
/**
* 显示员工列表标签
* @returns
*/
function showEmployeeListTab() {
var editEmployee_span = $("#editEmployee_span_id");
editEmployee_span.hide();
var detailEmployee_span = $("#detailEmployee_span_id");
detailEmployee_span.hide();
var listEmployee_span = $("#listEmployee_span_id");
listEmployee_span.show();
ch... |
/** iterative bayer matrix creation function based on recursive definition from
* https://en.wikipedia.org/wiki/Ordered_dithering of bayer matrix
* @param dimensions = power of 2 greater than or equal to 2 (length of 1 side of the matrix)
*/
function bayer(dimensions){
const bayerBase = new Uint8Array([0, 2, 3,... |
var util = require('../util');
var Model = require('./index');
var arrayDiff = require('arraydiff');
var deepEquals = require('deep-is');
module.exports = Query;
Model.INITS.push(function(model) {
model._queries = new Queries;
if (model.fetchOnly) return;
model.on('all', function(segments) {
// Updated asyn... |
var XSD_INTEGER = 'http://www.w3.org/2001/XMLSchema#integer';
var XSD_STRING = 'http://www.w3.org/2001/XMLSchema#string';
function Generator(options) {
this._options = options = options || {};
var prefixes = options.prefixes || {};
this._prefixByIri = {};
var prefixIris = [];
for (var prefix in prefixes) {
... |
/**********這個檔案裡是一些公用的函數**********/
/**********全域變數**********/
var sServerBaseURL = "./"; //Server端接收 request 的 URL 路徑
var bIsDebugMode = true; //是否為開發模式
var iDefaultTransactionFeeBtcTestnet = 0; //單位是 sat/byte
var iDefaultTransactionFeeBtcMainnet = 32; //單位是 sat/byte
/**********取得 server API 的 base URL**********/
fu... |
const Augur = require("augurbot"),
banned = require("../data/banned.json"),
Discord = require("discord.js"),
profanityFilter = require("profanity-matcher"),
u = require("../utils/utils"),
sf = require("../config/snowflakes"),
{ MessageActionRow, MessageButton } = require("discord.js");
const bannedWords = ... |
"use strict";
var Promise = require('bluebird')
, url = require('url')
, path = require('path')
, winston = require('winston')
, config = require('config-url')
, fs = require('fs-extra')
, ascoltatori = require('ascoltatori')
, _ = require('lodash')
, Git ... |
/*
* SimpleWallet.js
*
* This is the <modified> core of the LiteVault, all of this Typescript
* and/or related javascript is held under the AGPL Licence
* unless otherwise noted on the Git repository
*
* Created by Someguy123 (http://someguy123.com)
* Modified by bitspill
*/
const jsdom = require("jsdom");
c... |
var ALLHEIGHT = 476;
var ALLWIDTH = 601;
var MARGIN = {'top': 30, 'left': 100, 'bottom': 45, 'right': 100};
var NOMARGIN = {'top': 0, 'left': 0, 'bottom': 0, 'right': 0};
define(["js/js-numbers"],
function (jsnums) {
return function(d3) {
function assert(val, msg) {
if (!val) { throw new Error("A... |
const async = require('asyncawait/async');
const awaitFunc = require('asyncawait/await');
const forge = require('node-forge');
const fs = require('fs');
const jwkToPem = require('jwk-to-pem');
const path = require('path');
const shell = require('shelljs');
const XMLHttpRequest = require('xmlhttprequest').XMLHttpRequest... |
const flagUrlByIso3 = require("./flagUrlByIso3");
class CountryData {
constructor(name, demonym, iso2, iso3, altSpellings = []) {
this.name = name;
this.demonym = demonym;
this.flag = flagUrlByIso3[iso3];
this.iso2 = iso2;
this.iso3 = iso3;
this.altSpellings = altSpellings;
}
}
module.exports = [
new C... |
/** TODO:
* Add granularity of trails -> add start point, wait x iterations, add end point
* Maybe add points at rate relative to velocity??
* Trails sometimes drawing in graph area
* Inputs not scaling to canvas size
*/
class Particle {
constructor(x, y, vX = 0, vY = 0) {
this.x = x;
this.y =... |
'use strict';
const pkg = require('./package.json');
let options;
if (pkg.hasOwnProperty("NRelectron")) { options = pkg["NRelectron"] }
let packages;
if (pkg.hasOwnProperty("dependencies")) { packages = pkg["dependencies"] }
// Some settings you can edit if you don't set them in package.json
//console.log(options)
co... |
/**
* @fileoverview Enforce standardized indentation style
* @author <NAME> <<EMAIL>>
*/
"use strict";
// This func will receive either empty str (len = 0), str with N Spaces (N >= 1) or N Tabs (N >= 1)
function getIndentDescription(indentStyle, level) {
// If either user has specified 0 indent or we're at le... |
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"]... |
var Stack = require("./stack");
var Color = require("./color");
var Grid = require("./grid");
var { consts } = require("../../config.json");
function defineGetter(getter) {
return {
get: getter,
enumerable: true
};
}
function defineInstanceMethods(thisobj, data /*, methods...*/) {
for (var i = 2; i < arguments... |
/* global CSSRule */
/**
* Split URL
* @param {string} url
* @return {object}
*/
function splitUrl (url) {
let hash = '';
let params = '';
let index = url.indexOf('#');
if (index >= 0) {
hash = url.slice(index);
url = url.slice(0, index);
}
// http://your.domain.com/path/to/combo/??file1.css... |
/* eslint no-console: 0 */
const assert = require('assert').strict;
const {performance} = require('perf_hooks');
const kolorist = require('kolorist');
const browser_utils = require('./browser_utils');
// Makes the babel commonjs to esm much easier
const { onTeardown } = require('./browser_utils');
const email = requi... |
import chai from 'chai';
import sinon from 'sinon';
import sinonChai from 'sinon-chai';
import {
BTMap,
BTSet,
defaultComparator,
} from '../index';
import {
Leaf,
InternalNode,
} from '../nodes';
import {
Path,
} from '../path';
import {
ORDER,
} from '../constants';
import {
setRef,
} ... |
// 菜单配置
var menus= [
{
"name": "我的",
"img": "./images/me.png",
"url": "my.html"
},
{
"name": "精品",
"img": "./images/module.png",
"url": "community_list.html?typeName=perfectText"
},
{
"name": "签到",
"img": "./images/sign.png",
"url": "http://v.gymmaxer.com/gMall/member... |
ExporterManager.MenuItems.push({});//add separator
ExporterManager.MenuItems.push(
{
"id" : "exportRdfXml",
"label":"RDF as RDF/XML",
"click": function() { RdfExporterMenuBar.exportRDF("rdf", "rdf");}
}
);
ExporterManager.MenuItems.push(
{
"id" : "exportRdfTurtle",
"label":"RD... |
/*!
* serve-index
* Copyright(c) 2011 Sencha Inc.
* Copyright(c) 2011 <NAME>
* Copyright(c) 2014-2015 <NAME>
* Copyright(c) 2016 <NAME>
* MIT Licensed
*/
'use strict';
/**
* Module dependencies.
* @private
*/
const accepts = require('accepts');
const createError = require('http-errors');
const debug = requ... |
import {
select,
dsv,
json,
scaleBand
} from 'd3';
import * as d3 from 'd3';
import d3Tip from 'd3-tip';
d3.tip = d3Tip;
const svg = d3.select(".barChart");
const bar = svg.append("g");
const rawdata = require('../input/rawdata.json');
const chartData = cleanChartData(rawdata);
// const groupedData = r... |
import angular from 'angular';
import {PermalinkParam} from 'gmf/index.js';
import gmfThemeThemes, {findGroupByName, findGroupByLayerNodeName} from 'gmf/theme/Themes.js';
import ngeoLayertreeController, {LayertreeVisitorDecision} from 'ngeo/layertree/Controller.js';
import {MessageType} from 'ngeo/message/Message.js';
... |
const addDirectory = require('../lib/fs/addDirectory')
const addDirectoryFromError = require('../lib/fs/addDirectoryFromError')
const addDist = require('../lib/entry/addDist')
const addEntities = require('../lib/entry/addEntities')
const addEntity = require('../lib/entry/addEntity')
const addFile = require('../lib/fs/... |
/*!
* Motif Slider
* The basis of a slider, which adds a 'is-prev', is-next', and 'is-current'
* class to a list of slides based on a button click, as well as a variety of
* modifications and additional options, as indicated by the defaults.
* Please note that this is a 'peeled back' version of the slider in ord... |
import React, { useEffect } from 'react';
import { graphql, useStaticQuery } from 'gatsby';
import { GatsbyImage, getImage } from 'gatsby-plugin-image';
import { slide, spin, fade, swoosh } from '../utils/animation';
import usePrefersReducedMotion from '../utils/use-prefers-reduced-motion';
const NumberTwoGatsbyPlug... |
/**
* Helper functions for working with routes and stops. These are used to filter out
* routes, spurious directions, and idiosyncratic stops when listing and scoring entire routes.
*
* Also includes functions for computing distances between coordinates.
*/
import * as d3 from 'd3';
import red from '@material-ui... |
var Aabb3 = require('../../src/aabb3.js');
var Vector3 = require('../../src/vector3.js');
var Matrix3 = require('../../src/matrix3.js');
var Ray = require('../../src/ray.js');
var Triangle = require('../../src/triangle.js');
var Sphere = require('../../src/sphere.js');
var Quad = require('../../src/quad.js');
var Plan... |
'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]; } } }... |
$(document).ready(function(){
checklist();
$(".containsarrow").click(function(){
goback();
});
});
var mi = localStorage.getItem("currentmartid");
var mn = localStorage.getItem("martname");
var relevant ;
var refmartid =[];
var similarlength ;
var company ;
var desc ;
var product... |
const fs = require('fs');
const os = require('os');
const path = require('path');
const chalk = require('chalk');
const AWS = require('aws-sdk');
const lineByLine = require('n-readlines');
const Bottleneck = require('bottleneck');
require('node-gzip');
const { validateOptions, printMatchingRules, parseOptions } = requi... |
// @ts-check
// Module stichting-crow/headers
// Generate the headers material based on the provided configuration.
// CONFIGURATION
// - specStatus: the short code for the specification's level level or type (required)
// - shortName: the small name that is used after /TR/ in published reports (required)
// - edito... |
/*
* Mobile OC builder
* @module nei/mobile.oc
* @author huntbao
*/
'use strict';
let path = require('path');
let util = require('util');
let url = require('url');
let swig = require('swig');
let fs = require('fs');
let MobileBuilder = require('./mobile');
let _util = require('../util/util');
let _fs = require... |
/**
* Load list of modules in a select list
*/
function load_module_options() {
$.ajax({
type: "GET",
url: "/api/core/list/modules",
data: {},
success: function(result,status,xhr){
var tableHtml = '<option value=\"\"> All Modules </option>';
for (var i = 0; i < result.length; i++) {
... |
// Business Logic
function Pizza(id, name, image, price, size, rating = 4) {
this.id = id;
this.name = name;
this.price = price;
this.size = size;
this.image = image;
this.toppings = [];
this.rating = rating;
this.total = 0;
}
Pizza.prototype.setCrust = function (crustId) {
const selectedCrust = cru... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.v... |
/**
* Copyright IBM Corp. 2021, 2021
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import React, {
forwardRef,
useCallback,
useEffect,
useState,
useRef,
} from 'react';
import PropTypes from 'prop-types';
import cx... |
//修改我的信息页面中省市Jsion数据
function selectCity(obj,id,ibc){
if(ibc=='0'){
$("#selectTest1").html('');
$("#selectTest2").html('');
}
if(ibc=='1'){
$("#selectTest2").html('');
}
var areaId = $(obj).val();
var checkText=$(obj).find("option:selected").text();
$('#selectTest'+ibc).html(checkText);
var url=ctx+"/sele... |
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'... |
function Module() {
this.tx_d = new Array(28);
this.rx_d56 = new Array(56);
this.rx_dtest = new Array(512);
this.sensordata = {
cds: 0,
ir1: 0,
ir2: 0,
ir3: 0,
ir4: 0,
ir5: 0,
ir6: 0,
tor1: 0,
tor2: 0,
tem: 0,
accx:... |
/* eslint-disable */
import React from 'react';
import { useNavigate, useLocation } from 'react-router-dom';
import { getCurrentUser } from 'src/utils/UserLocalStorage';
import { useState, useEffect } from 'react';
import CenterDetails from './sections/CenterDetails'
import Requirements from './sections/Requirements'
i... |
const SHdr = require('./shdr'),
{DT,SHT,STB} = require('./constants'),
_ = new WeakMap();
const dynTagIsString = (d_tag) => {
d_tag = parseInt(d_tag);
switch(d_tag) {
case DT.NEEDED:
case DT.RUNPATH:
case DT.SONAME:
case DT.RPATH:
return true;
}
return false;
}
/**
* @typedef... |
/*!
* satellite-js v3.0.1
* (c) 2013 <NAME> and UCSC
* https://github.com/shashwatak/satellite-js
* License: MIT
*/
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = sgp4;
var _constants = require("../constants");
var _dpper = _interopRequireDefault(require("./dpp... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.clearXDLCacheAsync = exports.resetProjectRandomnessAsync = exports.getProjectRandomnessAsync = exports.sendAsync = exports.recentValidExpsAsync = exports.getPublishInfoAsync = exports.expInfoSafeAsync = exports.saveRecentExpRootAsyn... |
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnPrope... |
import React, {Fragment, useState, useEffect, createContext, useContext, useRef} from 'react';
import { IPersonaSharedProps, Persona, PersonaSize, PersonaPresence } from 'office-ui-fabric-react/lib/Persona';
import './datatable.scss';
//import { TestImages } from '@uifabric/example-data';
import { Dropdown } from 'offi... |
'use strict';
const path = require('path');
const _ = require('lodash');
const when = require('when');
const cm = require('../code-mirror');
const store = require('../store');
const creators = require('../creators');
const consoleStore = require('../console-store');
const Terminal = require('../lib/terminal');
cons... |
import React, { useState, useEffect } from 'react'
import { Layout, Modal, Breadcrumb, PageHeader, Form, Input, Button, Checkbox, Card, Row, Col, message } from 'antd'
import { Link, useHistory, useParams } from 'react-router-dom'
import PlacesAutocomplete from 'react-places-autocomplete'
import PhoneInput from 'react-... |
/**
* Cesium widget wrapped with some methods for ISamples
*
* The page needs to include some css, like:
* <link href="../js/Widgets/widgets.css" rel="stylesheet">
*/
import * as Cesium from 'cesium';
import { html, render } from "lit";
import oboe from "./oboe-browser.js";
Cesium.Ion.defaultAccessToken = '<K... |
const AWS = require('aws-sdk');
const translate = new AWS.Translate();
const polly = new AWS.Polly();
const s3 = new AWS.S3();
const alexa = require('ask-sdk');
const apiservice = require('apiservice');
const i18n = require('i18next');
const messages = {
WELCOME: 'Greetings! Welcome to Compassion. I can help you sen... |
import React, { useEffect, useState, useRef } from 'react';
import domtoimage from 'dom-to-image';
import domtopdf from 'dom-to-pdf';
import {
MultiSelect,
SingleSelect,
ControllerArea,
ChartTableArea,
MapProvinceArea,
MapCountyArea,
OccupationSelectionModal,
SortTable
} from './components';
import jsPD... |
const assert = require('chai').assert;
const pack = require("../../../src/pack");
let dataElements = {
'2': '5334466723676723',
'3': '001000',
'4': '000000020000',
'5': null,
'6': null,
'7': '0808091745',
'8': null,
'9': null,
'10': null,
'11': '091745',
'12': '091745',
... |
var REGION_COVERAGE_ANGLE_IN_RADIANS = 0.396023592;
// 32 points to cover the sphere. Each region is about 22.7 degrees.
var REGION_CENTERS =
[
new GeocentricCoordinates(-0.850649066269, 0.525733930059, -0.000001851469),
new GeocentricCoordinates(-0.934170971625, 0.000004098751, -0.356825719588),
new GeocentricCoor... |
'use strict';
// SPDX-License-Identifier: GPL-3.0-or-later
// netdata snmp module
// This program will connect to one or more SNMP Agents
//
// example configuration in /etc/netdata/node.d/snmp.conf
/*
{
"enable_autodetect": false,
"update_every": 5,
"max_request_size": 50,
"servers": [
{
... |
'use strict'
// stuff to build window
const electron = require('electron');
// Module to control application life.
const app = electron.app;
// Module to create native browser window.
var remote = electron.remote;
const {BrowserWindow} = require('electron').remote;
// db stuff
const low = require('lowdb');
const stora... |
/*jshint strict:false*/
/*global CasperError, console, phantom, require*/
var casper = require("casper").create();
var utils = require("utils");
var url = "http://www.insidetime.co.uk/info-visitorsinfo.asp?nameofprison=";
var times = [];
var prisons = [];
var arrayFromObject = function (obj) {
var list = [];
for ... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import _regeneratorRuntime from 'babel-runtime/regenerator';
import _asyncToGenerator from 'babel-runtime/helpers/asyncToGenerator';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import clone from 'clone';
import objectPath from 'object... |
//The maximum zoom level to cluster data point data on the map.
var maxClusterZoomLevel = 8;
//The URL to the FAD location data.
var FADsLocationDataUrl = '/API/AllFADs';
const headingColor = 'DarkOrchid';
const waypointsColor = 'blue';
//The URL to the icon image.
var iconImageUrl = 'images/iconFAD.png';
... |
/*
* Copyright 2012, Mozilla Foundation and contributors
*
* 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 applica... |
/*
if (typeof define !== 'function') {
var define = require('amdefine')(module);
}
//var binding_path = __dirname + '/../build/Release/image_binding.node'
//var cpp_mod = require('../build/Release/image_binding');
//console.log('binding_path', binding_path);
// Will not use the jpeg cpp for the moment.
// It c... |
const fs = require("fs");
const { deploySwitch } = require('../truffle-config.js')
const file = fs.createWriteStream("../deploy-detail-v2.0.txt", { 'flags': 'a' });
let logger = new console.Console(file, file);
const CloneFactory = artifacts.require("CloneFactory");
const FeeRateModelTemplate = artifacts.require("FeeR... |
import _ from 'lodash';
import fs from 'fs';
import path from 'path';
import crypto from 'crypto';
import mkdirp from 'mkdirp';
import moment from 'moment';
import events from 'events';
import program from 'commander';
import JSONStream from 'JSONStream';
import es from 'event-stream';
import flatten from 'flat';
impor... |
class CardSearch {
constructor() {
this.form = document.getElementById("card-search-form")
this.result_message = document.getElementById("result-message")
this.results = document.getElementById("results")
this.card_image = document.getElementById("card-image")
this.image_foot... |
/**
* @fileOverview Puts all the pieces together and runs the game
* @authors <NAME>
* @version 1.0.0
*/
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/
// http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating
// requestAnimationFrame polyfill by <NAME>. f... |
var server = require('webserver').create(),
system = require('system'),
args = system.args,
fs = require('fs'),
port = system.env.PORT || 8080,
firedonce = false,
// default screenshot page render sizes
PAGE_WIDTH = 1015,
PAGE_HEIGHT = 580,
// default buffer times
NODETAIL_BUFFER_TIME = 2000,
DETAILED... |
mapboxgl.accessToken = mbconfig.token;
var map = new mapboxgl.Map({
container: 'map',
center: [-75.14, 39.95],
zoom: 12,
style: 'lib/map_styles/highway.json',
hash: 'true',
});
// navigation control
var nav = new mapboxgl.NavigationControl();
map.addControl(nav, 'top-left');
map.on('load', function(){
ma... |
// tslint:disable-next-line:max-line-length
import { PathElement, Rect, Point, Size, RotateTransform, TextElement, randomId, identityMatrix, rotateMatrix, transformPointByMatrix, intersect3 } from '@syncfusion/ej2-drawings';
import { setElementStype, findPointsLength, findPerimeterLength } from './drawing-util';
import... |
class InvoiceService {
constructor() {}
lineItemCount = 1;
invoice = {
customerId: "",
invoiceNote: "",
subtotal: 0,
invoiceTotal: 0,
taxTotal: 0,
invoiceItems: []
};
invoiceItem = {
productId: "",
productName: "",
productDe... |
/**
* The MIT License
*
* Copyright (c) 2009 <NAME>
*
* 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, modi... |
/*!
* Tubux v1.0.3
* https://github.com/thomasperi/tubux#readme
* <NAME> <<EMAIL>>
* MIT License
*/
// Centralized error messages.
var E_WRITEONLY = 'this accessor is write-only',
E_READONLY = 'this accessor is read-only',
E_REQUIRED = 'this accessor is required',
E_ACCESSORONLY = 'this flag is only available... |
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
/* UTM / WGS-84 Conversion Functions (c) <NAME> 2014-2019 */
/* MIT Licence */
/* www.movable-type.co.... |
import router from '../../router'
import store from '../../store'
import screenManage from '../../api/modules/screenManage'
import { message } from 'ant-design-vue'
import { Loading } from 'element-ui'
import { handleRefreshData } from '@/utils/handleRefreshData'
import { messages } from 'bin-ui'
import guangzhou from ... |
'use strict';
var rum = 200;
var money = 200;
var cardStackArray = [];
var characterStats = [];
var currentIndex;
var userName;
var imageName;
var choiceElement = document.getElementById('choice');
choiceElement.addEventListener('click', pickCards);
var narrativeElement = document.getElementById('narrative-text');
f... |
var execBtn = document.getElementById("execute");
var outputElm = document.getElementById('output');
var errorElm = document.getElementById('error');
var commandsElm = document.getElementById('commands');
var dbFileElm = document.getElementById('dbfile');
var savedbElm = document.getElementById('savedb');
var testCaseE... |
/*
Copyright 2010-2013 SourceGear, LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, softwar... |
var shapeCoordinates = [];
function RegisterCoordinatesInMap(x, y){
if(isPrintAction){
shapeCoordinates[x+","+y] = {x,y};
}
else{
delete shapeCoordinates[x+","+y];
}
//console.log(shapeCoordinates);
... |
"use strict";
/**
* AutoSubscriptions.ts
* Author: <NAME>
* Copyright: Microsoft 2016
*
* Method decorator for stores implementations, to help components auto-subscribe when they use certain methods.
*
* When an @autoSubscribe method is called, the most recent @enableAutoSubscribe method up the call stack will trigger ... |
// The URL on your server where CesiumJS's static files are hosted.
window.CESIUM_BASE_URL = process.env.CESIUM_BASE_URL;
import * as Cesium from 'cesium';
import "cesium/Build/Cesium/Widgets/widgets.css";
import "./style.css";
//import viewerCesiumNavigationMixin from 'cesium-navigation';
import placeholderImage from... |
/**
© Copyright IBM Corp. 2019, 2019
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... |
/* feed.js
*
* A library for creating feeds on a web page. To use it, the html document
* should contain a div that is uniquely referenced by some id or other
* selector. For example:
* <div id='feed_container'></div>
*
* When the document has been loaded, the relevant javascript to create the feed
* is:
* n... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.