text stringlengths 8.5k 48.7k |
|---|
// Requires dashboard-ajax.js
// Requires modal.js
// var g_order specified in checkin.php
// For the photo_modal dialog, this boolean controls whether the racer gets
// checked in as a side-effect of uploading a photo.
var g_check_in;
// Default values for autocrop, depending on repo. If user changes the setting,
... |
import { I as anObject, p as global_1, f as fails, R as shared, b as functionUncurryThis, h as functionCall, t as toString_1, L as objectCreate, i as internalState, _ as _export, w as wellKnownSymbol, D as redefine, $ as createNonEnumerableProperty, s as stringMultibyte, F as isCallable, N as classofRaw, c as toObject,... |
/*
Goals:
- Have function where people can input their scores (clicking, or another method)
- Can figure this out on Tuesday evening if needed
Time: 2-3 hours
- Have way that users can acknowledge finishing the quiz
Time: 1-2 hours
- Put images and descriptions to appear once they ha... |
import {colorToRgbString, LayerType} from '../firebase_layers.js';
import {latLngToGeoPoint, transformGeoPointArrayToLatLng} from '../map_util.js';
import {isUserProperty} from '../property_names.js';
import {getDisaster} from '../resources.js';
import {getAssetPropertyNames, getDisasterAssetsFromEe} from './list_ee_a... |
/* global Vector3 createButtonRow createRangeRow */
/// <reference path="../src/LibXOR.ts" />
/// <reference path="htmlutils.js" />
function accum(a, b, bscale) {
a.x += b.x * bscale;
a.y += b.y * bscale;
a.z += b.z * bscale;
}
/**
*
* @param {StateVector} o1
* @param {StateVector} o2
* @param {num... |
/** The array above we may substitute with a jquery/ajax/http
* request. It may be easier to use the array... especially
* if we are going to do the ChangePosts() function. **/
const some_social_posts = [
/** Example: **/
/*{
// Any image really, it could be the posters profile pic or
// it... |
const QuestionObject = {
'campaignId': 0,
'account_number': 0,
'questionId':0,
'userId':0,
'surveyId':0,
'questionNumber':0,
'question':'',
'helpText':'',
'controlType':'',
'childControls': {}
};
const SurveyObject = {
'surveyId':0,
'userId':0,
'AllQuestions... |
var tls = require('tls');
var uuidv4 = require('uuid/v4');
var CatchUpSubscription = require("./catchUpSubscription");
var Messages = require("./messages");
var Commands = require("./commands");
var OperationResult = require("./operationResult");
var ReadAllRe... |
import React, { Component } from 'react';
import pipe from 'lodash/fp/pipe';
import find from 'lodash/fp/find';
import uniqBy from 'lodash/fp/uniqBy';
import sortBy from 'lodash/fp/sortBy';
import reverse from 'lodash/fp/reverse';
import capitalize from 'lodash/capitalize';
import timeago from 'timeago.js';
import Reac... |
// era-staccato-lib.js
// Copyright 2015 <NAME>. Released under the MIT License.
//
// These are utilities written in Staccato. For now, I'm porting the
// utilities from era-avl.js.
//
// See era-staccato.js for more information about what Staccato is.
var stcNextGensymI = 0;
function stcGensym() {
return "gs-" +... |
var lastUpKeydownTime = 0;
var lastDownKeydownTime = 0;
var lastLeftKeydownTime = 0;
var lastRightKeydownTime = 0;
var keyUpLag = 500;
var upKey = 87;
var leftKey = 65;
var rightKey = 68;
var downKey = 83;
//var upKey = 38;
//var leftKey = 37;
//var rightKey = 39;
//var downKey = 40;
var STAGE_HEIGHT = 500;
var STAGE_... |
var ext = {};
var extensions = {
'threed': [['3ds', '3dm', 'max', 'obj'], '3D'],
'aftereffects': [['aep', 'aet'], 'Adobe Aftereffects'],
'audio': [['mp3', 'wav', '3ga', 'aif', 'aiff', 'flac', 'iff', 'm4a', 'wma'], 'Audio'],
'cad': [['dxf', 'dwg'], 'CAD'],
'compressed': [['zip', 'rar', 'tgz', 'gz', '... |
var canvas;
var gl;
var programId;
// Define two constants (by convention) for the number of subdivisions of u and v.
var SUBDIV_U = 32;
var SUBDIV_V = 16;
// Lighting stuff
var lightPosition = vec4(5.0, 5.0, 5.0, 0.0 );
var lightAmbient = vec4(0.2, 0.2, 0.2, 1.0 );
var lightDiffuse = vec4( 1.0, 1.0, 1.0, 1.0 );
var ... |
import Layer from "./model";
import mqtt from "mqtt";
import moment from "moment";
import {Cluster, Vector as VectorSource} from "ol/source.js";
import VectorLayer from "ol/layer/Vector.js";
import {transformToMapProjection} from "masterportalAPI/src/crs";
import Feature from "ol/Feature.js";
import Point from "ol/geom... |
const CUBE = 0,
SPHERE = 1,
CONTAINER = 2;
const vshader = `
attribute vec4 position;
attribute vec4 color;
attribute vec4 normal;
uniform mat4 mvp;
uniform mat4 m;
uniform mat4 it;
varying vec4 v_c;
varying vec3 v_n;
varying vec3 v_p;
void main() {
gl_Position = mvp * position;
v_p = vec3(m * position);
v_n = nor... |
var _ = require('underscore')
exports.readStylesXml = readStylesXml
exports.Styles = Styles
exports.defaultStyles = new Styles({}, {})
exports.readRunProperties = readRunProperties
exports.findTagByNameInArray = findTagByNameInArray
exports.readChildTagVal = readChildTagVal
exports.readBooleanElement = readBooleanEle... |
/* This is a plugin for the mesh domain, meant to be used with mesh-domain/mesh.dsl and mesh-domain/SimplicialComplex.sty.
It does the following:
First, it instantiates every declared simplicial complex. This is done in `makeObj`. To make a random mesh, it calls rand-mesh.js, using parameters `pointRange` and `numPoi... |
// Copyright 2017 <NAME>, <NAME>, <NAME>, and <NAME>.
//
// 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 appl... |
import React, { Component } from "react";
import ReactGA from "react-ga";
import { Transition } from "@headlessui/react";
import { withTranslation } from "react-i18next";
import {
getFormattedPriceByLocal,
getPageOrDefaultLanguage
} from "../../utils/utils";
import { Button } from "../../SubComponents/Button";
impo... |
/*
CICLO DE LAS FUNCIONES ADICIONALES
init - datos
datos: recibe json
recorrer_grupo: json, grupos, fecha y partido
**** termino la carga de grupos ***
**** fase octavos ****
clasificacion_equipos - crear_puntaje_equipo - calcular_puntos
calcular_puntos - actualizar_tabla
generar_octavos - octavos
octavos - armar_l... |
/* NUGET: BEGIN LICENSE TEXT
*
* Microsoft grants you the right to use these script files for the sole
* purpose of either: (i) interacting through your browser with the Microsoft
* website or online service, subject to the applicable licensing or use
* terms; or (ii) using the files as included with a Microsoft p... |
var isChannelReady = false;
var isInitiator = false;
var isStarted = false;
var isNew = false;
var localStream,
remoteStream,
screenShareStream;
var off = [];
var ans = {};
var clientsList = [];
var chatChannel;
var clientsData = [];
var events = [];
var screenFlag = false;
var receiveBuffer = [];
var receivedSize ... |
function getOffset(el) {
el = el && el.getBoundingClientRect();
var scrollX = Number(window.scrollX || window.pageXOffset || 0);
var scrollY = Number(window.scrollY || window.pageYOffset || 0);
return el && {
left: (el.left + scrollX),
top: (el.top + scrollY)
};
}
funct... |
function max_width(els) {
var ws = els.map( function(){
return $(this).width(); }).get();
return Math.max.apply(null, ws);
}
function max_height(els) {
var hs = els.map( function(){
return $(this).height(); }).get();
return Math.max.apply(null, hs);
}
function get_wsobj_group(id) {
var obj = $("... |
var g_checkedFilter;
//var g_theme;
//var g_serial;
//var g_palette;
//var g_showTitles = true;
//var g_showHover = true;
$(function() {
g_checkedFilter = window.location.search.split("?")[1];
g_checkedFilter = g_checkedFilter === 'png' ? undefined : g_checkedFilter;
buildCheckboxList();
initWidgetTestA... |
/* Copyright (c) 2012-2016 The ANTLR Project. All rights reserved.
* Use of this file is governed by the BSD 3-clause license that
* can be found in the LICENSE.txt file in the project root.
*/
var Token = require('./../Token').Token;
var ATN = require('./ATN').ATN;
var ATNType = require('./ATNType').ATNType;
var A... |
#! /usr/bin/env node
const path = require('path');
const util = require('util');
const _ = require('lodash');
const graphviz = require('graphviz');
const DataURI = require('datauri');
const convert = require('color-convert');
const {ShellString, cp, mkdir, exec, which, cat} = require('shelljs');
const yargs = require(... |
// import parser from 'intl-messageformat-parser';
import moment from 'moment';
import uuidv4 from 'uuid/v4';
import React, { useState, useEffect } from 'react'
import { Tooltip } from 'antd';
import { QuestionCircleOutlined } from '@ant-design/icons';
import { formatMessage } from 'umi-plugin-locale';
// import localS... |
import {Post, PostComment, ReactionValues, Source, Study} from "./study"
import {
areCellsBlank,
ExcelBoolean,
ExcelImage, ExcelLimit,
ExcelNumber, ExcelPercentage,
ExcelString, ExcelTextOrImage, isCellBlank,
readCell, readCellWithDefault,
WorkbookColumn,
WorkbookLoc
} from "../utils/exc... |
//--------------------------------Global---------------------------------------------
var SUBLIST_INDEX = 0;
var visiableNum = 10;
var QUNIT_TEST_ARRAY_INDEX = -1;
var QUNIT_TASK_QUEUE_INDEX = -1;
var QUNIT_MODULE_ITEM_INDEX = -1;
var QUNIT_TOOLBAR_INPUT_INDEX = 0;
var locate = new Array("onMenu", "onToolbar", "onResu... |
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... |
'use strict';
// 1. Collect all possible adapters in docs/LN/adapterreff and do not collect yet local files marked as "local: true"
// 2. Cross translate adapters in master/front-end/public/LN/adapterreff. start from english
const request = require('request');
const fs = require('fs');
const path = require('path');
c... |
/*
Copyright 2018 0kims association.
This file is part of snarkjs.
snarkjs is a free software: you can redistribute it and/or
modify it under the terms of the GNU General Public License as published by the
Free Software Foundation, either version 3 of the License, or (at your option)
any later... |
import {
LitElement,
html,
} from 'beaker://app-stdlib/vendor/lit-element/lit-element.js';
import { repeat } from 'beaker://app-stdlib/vendor/lit-element/lit-html/directives/repeat.js';
import { emit } from 'beaker://app-stdlib/js/dom.js';
import { pluralize, toNiceDomain } from 'beaker://app-stdlib/js/strings.js';... |
"use strict";
var _ = require("lodash");
var events = require("events");
// Used to denote membership in lookup tables (a primitive value such as `true`
// would be silently rejected for the property name "__proto__" in some
// environments)
var marker = {};
/**
* Creates a scope manager that handles variables... |
/**
* Copyright 2018-2022 bluefox <<EMAIL>>
*
* MIT License
*
**/
import React from 'react';
import Connection, { PROGRESS } from './Connection';
import PropTypes from 'prop-types';
import * as Sentry from '@sentry/browser';
import * as SentryIntegrations from '@sentry/integrations';
import DialogError from './Di... |
'use strict';
var LocalizationContext = require('./LocalizationContext-2d436a96.js');
var React = require('react');
var PropTypes = require('prop-types');
var Sb = require('sendbird');
var actionTypes = require('./actionTypes-a9f232df.js');
var index = require('./index-35867d77.js');
var cssVars = require('css-vars-po... |
import React, {Component} from 'react'
import env from '../env'
import psl from '../quests_line'
import tuto from '../tuto_line'
import bk from '../backStories_line'
import M from 'materialize-css'
import loadHash from 'lodash'
import getQuests from '../function/getQuests'
import getCharacters from '../function/getCha... |
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
'use stric... |
/*
FileReader共有4种读取方法:
1.readAsArrayBuffer(file):将文件读取为ArrayBuffer。
2.readAsBinaryString(file):将文件读取为二进制字符串
3.readAsDataURL(file):将文件读取为Data URL
4.readAsText(file, [encoding]):将文件读取为文本,encoding缺省值为'UTF-8'
*/
var wb;//读取完成的数据
var rABS = false; //是否将文件读取为二进制字符串
function importf(obj) {//导入
if(!obj.files) {
r... |
// Copyright (C) 2007, <NAME> <<EMAIL>>
// 2007, <NAME> <<EMAIL>>
// 2008-2009, <NAME> <<EMAIL>>
/**
* @fileOverview JavaScript code for gitweb (git web interface).
* @license GPLv2 or later
*/
/* ============================================================ */
/* functions for generic gitweb... |
// 【编辑相关】
import {
loadJson,
assert,
sleep,
ROOT,
genMutations,
B,
notify,
showMsg,
dlgPost,
utilPost,
setClipboardJson
} from 'boot/utils'
import { JSON_FILE_FILTERS } from 'boot/filefilters'
import PathNode from 'src/core/PathNode'
import AStarPathFinder from 'src/core/AStarPathFinder'
import Di... |
// when you need to update this list, you can use randomize_order.html
// to generate new radnom order (or to have an ordered list making the
// finding of duplicates easier)
// also you can test individual quotes using fetch_quote.html
var napi_ige_quote_locations = [
"Ef. 5, 1-2",
"Mt. 6, 24",
"Mt. 6, 19-21",
... |
import React, { memo, useRef, useCallback, useEffect, useState, useLayoutEffect } from 'react';
import { scaleOrdinal, schemeCategory10 } from 'd3';
import { EventType, Layout } from 'webcola';
import cloneDeep from 'lodash.clonedeep';
import { tree, hierarchy } from 'd3-hierarchy';
// references: https://stackoverflo... |
var insfid;
var charts;
var websocketURL, dic, starows, redata, symbol=0, welderName, socket;
var worknum=0, standbynum=0, warnnum=0, offnum=0, flag = 0, showflag = 0;
var liveary = new Array(), machine = new Array;
$(function(){
loadtree();
websocketUrl();
websocket();
//状态发生改变
$("#status").combobox({... |
"use strict";
/**
* Copyright (c) 2021 mol* contributors, licensed under MIT, See LICENSE file for more info.
*
* @author <NAME> <<EMAIL>>
* @author <NAME> <<EMAIL>>
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.MeshExporter = void 0;
var tslib_1 = require("tslib");
var util_1... |
import React, { Component, Fragment } from 'react';
import { connect } from 'dva';
import moment from 'moment';
import router from 'umi/router';
import { routerRedux, Route, Switch } from 'dva/router';
import { Row, Col, Card, Form, Input, Select, Button, DatePicker, Space } from 'antd';
import styles from '@/pages/Ope... |
//{"id":5240052,"gpuId":51,"temperatureGpu":39,"utilizationGpu":0,"powerDraw":71,"memoryUsed":31100,"queryTime":"2020-10-20T08:12:04.313423"},
Ext.define('Metric', {
extend: 'Ext.data.Model',
fields: [
{name: 'id', type: 'int', mapping:'id'},
{name: 'gpuId', type: 'int', mapping:'gpuId'},
{... |
import DSA5 from "../system/config-dsa5.js";
import DiceDSA5 from "../system/dice-dsa5.js";
import DSA5_Utility from "../system/utility-dsa5.js";
function automatedAnimation(successLevel, options = {}) {
if (DSA5_Utility.moduleEnabled("autoanimations")) {
console.warn("Animations for on use effects not ena... |
import {
composeOptionsTemplates,
createOptionsObject
} from "./internal/options";
import {
stickyExec,
getRegexSource,
joinRegexFlags,
compileStickyCompatibleRegex
} from "./regex";
import {
isObject,
isAlpha,
isAlphanumeric
} from "./is";
import { assign } from "./object";
import parseEscapeSequence from "./... |
var numberOfRows = 8;
var checkers = null;
var checkersLogic = null;
var gameHistory = [];
var gameIdVal = "";
var playerValue = "";
function initializeBoard(initGameID,player){
gameIdVal = initGameID;
playerValue = player;
var val = JSON.stringify({"gameIdInfo" : gameIdVal});
sendSomething(
"POST",
"/... |
/**
* Copyright (c) 2006-2015, JGraph Ltd
* Copyright (c) 2006-2015, <NAME>
* Copyright (c) 2021, <NAME>
*/
import { addProp, extendFrom, isSet, makeComponent } from '../Helpers';
import Shape from '../shape/Shape';
import {
ALIGN_CENTER,
ALIGN_MIDDLE,
ALIGN_RIGHT,
DEFAULT_FONTFAMILY,
DEFAULT_FONTSIZE,
... |
const {GlobalFuncs} = require('../global-funcs.js');
const {AIAgentWaitingState} = require('./ai-agent-states/ai-agent-waiting-state.js');
const logger = require("../../logger.js");
class AIAgent {
constructor() {
this.gs = null;
this.globalfuncs = null;
this.id = null;
this.userId = null;
this.characterId... |
/**
* Created by xgharibyan on 5/25/15.
*/
var moment = require('moment');
var helpers = {
clearVariable : function(variable){
var parsedVariable = variable.substring(0, variable.length - 3);
return parsedVariable;
}
};
//var today = moment().add(currHour < 6 ? 0 : 1).format("YYYY-MM-DD");
/... |
const fs = require('fs');
const path = require('path');
const mkdirp = require('mkdirp');
const sortBy = require('lodash/sortBy');
const glob = require('glob');
const recast = require('recast');
const traverse = require('ast-traverse');
const get = require('lodash/get');
const del = require('del');
const createCsvWrite... |
Core = function () {
var remoteConfiguration = null;
var platform = {
brand: "",
model: "",
hbbtvversion: ""
};
var configuration = {};
this.configure = function (config) {
configuration = config;
};
this.getConfiguration = function () {
return conf... |
/**
* @file OS/2表
* @author mengke01(<EMAIL>)
*
* http://www.microsoft.com/typography/otspec/os2.htm
*/
// Unicode ragnes
// ref: https://www.microsoft.com/typography/otspec/os2.htm#ur
var ranges = {
'0': [[0x0000,0x007F]],
'1': [[0x0080,0x00FF]],
'2': [[0x0100,0x017F]],
'3': [[0x0180,0x024F]],
... |
'use-strict';
import { createSocket } from 'dgram';
import { fileURLToPath } from 'url';
import fs from 'fs-extra';
import path from 'path';
import pickPort from 'pick-port';
import { spawn } from 'child_process';
import * as cameraUtils from 'camera.ui/src/controller/camera/utils/camera.utils.js';
import Logger from... |
// Globals
//var $, emojione
// 3rd party libraries
var Peer = require('simple-peer')
var Tracker = require('bittorrent-tracker/client')
var Mustache = require('mustache')
var WebTorrent = require('webtorrent')
var localforage = require('localforage')
var Doc = require('crdt').Doc
var crypto = require('crypto-browseri... |
const { URL } = require('url');
const { default: logger } = require('logger');
const Dataset = require('models/dataset.model');
const RelationshipsService = require('services/relationships.service');
const { RWAPIMicroservice } = require('rw-api-microservice-node');
const SyncService = require('services/sync.service');... |
"use strict";
/*---------------------------------------------------------
* Copyright (C) Microsoft Corporation. All rights reserved.
*--------------------------------------------------------*/
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
return new (P || (P = Promise... |
// Simpatico main Interactive Front-End (simpatico-ife.js)
//-----------------------------------------------------------------------------
// This JavaScript is the main entry point to the Interactive Front-End
// component of the Simpatico Project (http://www.simpatico-project.eu/)
//
//-----------------------------... |
/**
Copyright 2018 Google LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
di... |
import axios from 'axios'
import store from '@/store'
import Lib from '@/util/walletlib'
// import coinsNames from '@/util/coinsNames'
import Web3 from 'web3'
import EosWrapper from '@/util/EosWrapper'
class Wallets2Tokens {
constructor (walletName = null) {
let data = this.getWalletFromCache()
let existingW... |
function aDanMu(f) {
this.opt = {
danMuHtml: '<span style="display:block;color:#f00;">Welcome to use TGideas danmu component.</span>',
className: "",
danMuStage: null,
hSpacing: 0,
flyTime: 0
};
if ("object" === typeof f)
for (var g in f)
this.opt[g] = f[g];
this.d... |
var inherit = require('./inherit');
var feature = require('./feature');
/**
* Contour feature specification.
*
* @typedef {geo.feature.spec} geo.contourFeature.spec
* @property {object[]} [data=[]] An array of arbitrary objects used to
* construct the feature.
* @property {object} [style] An object that contain... |
/*!
* express-session
* Copyright(c) 2010 Sencha Inc.
* Copyright(c) 2011 <NAME>
* Copyright(c) 2014-2015 <NAME>
* MIT Licensed
*/
// it doesn't allow using some syntax
'use strict';
/**
* Module dependencies.
* @private
*/
// Basic HTTP cookie parser and serializer for HTTP servers.
var cookie = require('co... |
// Sea of Honor
//
// made by michengs
// updated by HSDN
const { SpawnMarker, SpawnVector, SpawnCircle, applyDistance } = require("../lib");
let player, entity, library, effect;
let green = false;
let purple = false;
let boss_thirty = false;
let party_makers = [];
function skilld_event(skillid, handl... |
import { state } from './board.js';
import { Card, List } from './constructors.js';
import { refreshActivityLog } from './event_bindings.js';
const $listNameBox = document.querySelector('.list-name-box');
const $mainWrapper = document.querySelector('.main-wrapper');
const $main = document.querySelector('main');
const ... |
// scene/demo-specific variables go here
// Rendering variables
let triangleDataTexture, aabbDataTexture;
// HDR image variables
let hdrPath, hdrTexture, hdrLoader, hdrExposure = 1.0;
// Environment variables
let skyLightIntensity = 2.0, sunLightIntensity = 2.0, sunColor = [1.0, 0.98, 0.92];
let sunAngle = Math.PI /... |
class EventEmitter {
constructor() {
this.events = {};
}
on(event, listener) {
if (!(event in this.events)) {
this.events[event] = [];
}
this.events[event].push(listener);
return () => this.removeListener(event, listener);
}
removeListener(event,... |
"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.... |
// standard global variables
let controls;
let renderer;
let camera;
let threeD;
let sceneLayer0TextureTarget;
let sceneLayer1TextureTarget;
let sceneLayer0;
// let lutLayer0;
let sceneLayer1;
let meshLayer1;
let uniformsLayer1;
let materialLayer1;
let lutLayer1;
let sceneLayerMix;
let meshLayerMix;
let uniformsLayerMi... |
"use strict";
/* JAVASCRIPT-teknisk:
let i forhold til var,
se: https://stackoverflow.com/questions/762011/whats-the-difference-between-using-let-and-var
Alle variabler definert som var innenfor en funksjon er synlig overalt i funksjonen.
Eksempel:
function byE40() {
//nish *is* visible out ... |
const util = require('util');
const assert = require('assert');
const stdhttp = require('http');
const crypto = require('crypto');
const querystring = require('querystring');
const url = require('url');
const jose = require('node-jose');
const uuid = require('uuid/v4');
const base64url = require('base64url');
const _ ... |
import {
isArray, isNumber, isString, isUndefined, includes, min, max, has, find,
each, values, sortBy, identity, filter, map, extend, reduce, pick, flatten, uniq,
} from 'lodash';
import moment from 'moment';
import d3 from 'd3';
import plotlyCleanNumber from 'plotly.js/src/lib/clean_number';
import { createFormat... |
/**
* @license
* Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
* The complete set of contributors may be f... |
// Copyright 2012 <NAME>, Inc. All rights reserved.
'use strict';
var domain = require('domain');
var EventEmitter = require('events').EventEmitter;
var http = require('http');
var https = require('https');
var util = require('util');
var assert = require('assert-plus');
var mime = require('mime');
var once = requi... |
/*
~~ == SELENE ==================================
Development Version : 0.1
This Product is copyrighted and cannot be used without proper license or Author's Permission
*/
var SELENE_GLOBALS = {
};
//;(function ( $, window, document, undefined ) {
// == Global Constants for plugin =======... |
/** Toggle between showing and hiding the sidenav, and add overlay effect **/
function w3_open() {
// Get the Sidenav
var mySidenav = document.getElementById("mySidenav");
// Get the DIV with overlay effect
var overlayBg = document.getElementById("myOverlay");
if (mySidenav.style.display === "bloc... |
import { _ as _extends } from './objectWithoutPropertiesLoose-1048eeae.js';
import './index-9a858da8.js';
import { _ as _objectWithoutProperties } from './objectWithoutProperties-94ce8121.js';
import { a as _toConsumableArray, u as useTheme, z as zIndex } from './useTheme-d938d124.js';
import { g as getThemeProps } fro... |
import { document } from 'ssr-window';
import $ from 'dom7';
import Utils from '../../utils/utils';
import FrameworkClass from '../../utils/class';
class Searchbar extends FrameworkClass {
constructor(app, params = {}) {
super(params, [app]);
const sb = this;
const defaults = {
el: undefined,
... |
// © Copyright IBM Corporation 2016,2017.
// Node module: microgateway-datastore
// LICENSE: Apache 2.0, https://www.apache.org/licenses/LICENSE-2.0
var _ = require('lodash');
var async = require('async');
var logger = require('apiconnect-cli-logger/logger.js')
.child({ loc: 'microgateway:datastore:optimizedD... |
/**
* Copyright 2012-2021, Plotly, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
var polybool = require('polybooljs');
var Registry = require('../../registry');
var dashStyle = require('../..... |
import BaconModel from 'bacon.model';
import compareVersions from 'compare-versions';
import Debug from 'debug';
const debug = Debug('instrumentpanel:instrumentpanel')
import {
getUrlParameter,
getLayoutName
} from '../util/browser';
import {
isPreferredUnits,
retrievePreferredUnits,
storePreferredUnits,
... |
'use strict' ;
const fs = require( 'fs' ) ;
module.exports = { lsdynamat , runlsdynamat , lsdynamat005 , dimension , biota , bishopb , ctu , ctsf , rrsf , ctg , rrg , ctm , rrm } ;
/**
*
* function lsdynamat: construct object and write systematic material cards for LSDYNA
*
* @constructor
*
* @param {number... |
'use strict';
var PlainValue = require('./PlainValue-ec8e588e.js');
var parseCst = require('./parse-e9665665.js');
var resolveSeq = require('./resolveSeq-85504264.js');
var Schema = require('./Schema-515201f1.js');
const defaultOptions = {
anchorPrefix: 'a',
customTags: null,
indent: 2,
indentSeq: true,
kee... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const crud_1 = require("@nestjsx/crud");
const util_1 = require("@nestjsx/util");
const o0_1 = require("@zmotivat0r/o0");
const class_transformer_1 = require("class-transformer");
const typeorm_1 = require("typeorm");
class TypeOrmCrudService ... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = loadConfig;
Object.defineProperty(exports, "DomainLocale", {
enumerable: true,
get: function() {
return _configShared.DomainLocale;
}
});
Object.defineProperty(exports, "NextConfig", {
enumerable: ... |
//var shuffleSequence = seq("intro", "sst1", rshuffle("sst", "ssf", "ssu", "ext", "exf", "exu"));
//var randomCode = Math.random().toString(36).substr(2,9);
//var completionCode = String("QUANT-" + randomCode);
//var completionMessage = "Thank you for your participation. The results were successfully transmitted. Your ... |
'use strict';
var Constants = require('lib/Constants');
var AssetGroup = require('assets/AssetGroup');
var AssetGroups = require('assets/AssetGroups');
var AssetLoader = require('assets/AssetLoader');
var AssetManager = require('assets/AssetManager');
var SearchController = require('search/SearchController');
var Labe... |
/*
Option UI components. Copyright (c) 2019 zett42.
https://github.com/zett42/PlasmaFractal2
MIT License
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 wit... |
'use strict';
const path = require('path');
const assert = require('assert');
const mm = require('..');
const mi = require('minimatch');
if (!process.env.ORIGINAL_PATH_SEP) {
process.env.ORIGINAL_PATH_SEP = path.sep
}
describe('options', () => {
beforeEach(() => (path.sep = '\\'));
afterEach(() => (path.sep = ... |
/***
EXTENSION TO THE SVG-RENDERER TO ENABLE 3D SHAPES
***/
////// HELPER METHODS //////
var dFactor = (4 * (Math.sqrt(2) - 1) / 3) / (PI / 2);
function defined(obj) {
return obj !== undefined && obj !== null;
}
//Shoelace algorithm -- http://en.wikipedia.org/wiki/Shoelace_formula
function shapeArea(vertexes) {
... |
'use strict';
// Find our worst-performing levels recently-matches and warn about them on Slack.
// Look through a bunch of LevelSessions for mainstream users on weekdays, see what is bad and what has changed, notify about any we haven't notified recently.
// Comparing things like completion rates and completion times ... |
const Bluebird = extendBluebird( require( 'bluebird' ) )
, _ = require( 'lodash' )
, semver = require( 'semver' )
, process = require( 'process' )
, os = require( 'os' )
, fs = Bluebird.promisifyAll( require( 'fs' ) )
, moment = require( 'moment' )
, chalk = require( 'chalk' )
, console = require( '... |
/*
* Duktape debugger web client
*
* Talks to the NodeJS server using socket.io.
*
* http://unixpapa.com/js/key.html
*/
// Update interval for custom source highlighting.
var SOURCE_UPDATE_INTERVAL = 350;
// Source view
var activeFileName = null; // file that we want to be loaded in source view
var ... |
let request = {}
let requestText = ''
let mode = ''
let maxIterations = 5 // Number of move iterations to be performed.
let iterations = 0
let bigIterations = 0
let storage = []
let newStorage = []
let predator = {}
let snack = {}
// Thinking methods are for life-saving moves and cannot be ignored. snakeOptions preven... |
"use strict";
const TileSet = VectorTiles;
const SHOW_FRONT = { front:1.0, back:0.0 };
const SHOW_BACK = { front:0.0, back:1.0 };
const SHOW_BOTH = { front:1.0, back:0.5 };
//make a canvas into a knitout visualizer:
function ShowKnitout(canvas) {
canvas.showKnitout = this;
canvas.tabIndex = 0;
this.canvas = canv... |
export const structuredColumns = [
"CTYDIST",
"ELEMDIST",
"DNAME",
"DCOUNTY",
"DSUPAREA",
"DPYC",
"DPYAV",
"DPYTATL",
"DPHONE",
"DFAX",
"DELEMSN",
"DELEMST",
"DELEMSRS",
"DELEMSNS",
"DELEMSTS",
"DMIDSSN",
"DMIDSST",
"DMIDSSRS",
"DMIDSSNS",
"DMIDSSTS",
"DJRSN",
"DJRST",
"DJR... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.