text
stringlengths
8.5k
48.7k
// -------------------------------------------------------------------------------------------- // --- FF4j : Feature Flipping for Java // -------------------------------------------------------------------------------------------- const chalk = require('chalk'); const generator = require('yeoman-generator'); co...
var gUserCurrency = null; var gUserPricePoints = null; var gSupportedCurrencies = {}; var gCoinsObjectURL = 'http://apps.facebook.com/' + appNamespace + '/coin.html'; var gUserCountryPricePoints = { count: 0, default: "US", countries: [] }; var gSupportedCurrencies = { 'USD': { symbol: '$', p...
const fs = require('fs').promises; const gremlin = require('gremlin'); const AwsSigV4DriverRemoteConnection = require('./aws-sigv4-driver-remote-connection'); gremlin.driver.AwsSigV4DriverRemoteConnection = AwsSigV4DriverRemoteConnection; const R = require('ramda'); const AWS = require('aws-sdk'); const Ajv = require...
if (typeof require == "undefined") require = require("buffer/").Buffer; const XMLHttpRequest = require("xmlhttprequest").XMLHttpRequest; const //CLI below defaultProvider = "https://rpc.tezrpc.me/", library = { bs58check: require('bs58check'), sodium: require('libsodium-wrappers'), bip39: require('bip39'), pbk...
/* This file contains the implementations for Blocks in the operators category. */ function B_Add(x, y) { ReporterBlock.call(this, x, y, "operators"); this.addPart(new NumSlot(this, "NumS_1", 0)); this.addPart(new LabelText(this, "+")); this.addPart(new NumSlot(this, "NumS_2", 0)); } B_Add.prototype = Object.create...
import React, { Component } from 'react'; import axios from 'axios'; import './VideoRoomComponent.css'; import { OpenVidu } from 'openvidu-browser'; import { Camera, CameraOptions } from '@mediapipe/camera_utils' import { FaceMesh, FACEMESH_FACE_OVAL, FACEMESH_LEFT_EYE, FACEMESH_LEFT_EYEBROW, FACEMESH_LIPS, ...
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // jQuery //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// var $ = jQuery.noConflict(); window.jQuery = $; var resizeId; var ...
export { default as DashboardDefaultSection1 } from './DashboardDefaultSection1'; export { default as DashboardDefaultSection2 } from './DashboardDefaultSection2'; export { default as DashboardDefaultSection3 } from './DashboardDefaultSection3'; export { default as DashboardDefaultSection4 } from './DashboardDefaultSec...
const http = require('http'); const https = require('https'); const { Readable } = require('stream'); //const { URL } = require('url'); const { Headers } = require('./headers'); const VERSION = require('../package.json').version; // symbols below used to hide properties considered private const s_objectMode = Symbol('O...
import * as THREE from 'three'; import { OrbitControls } from 'three-addons/controls/OrbitControls.js'; import { Reflector } from 'three-addons/objects/Reflector.js'; import { assetManager, cameraNoise, NoiseGenerator } from './custom/AssetManager.js'; import { guiManager } from './custom/GuiManager.js'; import { Trans...
/* eslint-disable @typescript-eslint/no-use-before-define */ /* eslint-disable no-param-reassign */ /* eslint-disable no-restricted-syntax */ /*//////////////////////////////// ABOUT \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*\ WebSocketServer and Network Management for URSYS \*\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ * //////...
/* eslint-disable */ /* REQUIREMENTS */ import * as Rx from 'rxjs'; import axios from 'axios'; const assign = require('object-assign'); // ACTIONS import { loadedData, loadError, updateStyleMillesimeBtn, GET_MILLESIME_LAYERS, getMillesimeLayers, SET_MILLESIME_SELECTED, setParentSelected } from './actions'; const { FEAT...
"use strict"; /**! * @module display * @file Display functions. * @description This module regulates the five display items (x- and y-axis), * size, opacity, and color of the assembly plot. */ /** * Initialize display controls. * @function initDisplayCtrl * @param {Object} mo - main object */ function initD...
var ddcarousel = function (options) { const appName = "ddcarousel", cssClass = { cont: "ddcarousel-container", stage: "ddcarousel-stage", nav: "ddcarousel-nav", item: "ddcarousel-item", dots: "ddcarousel-dots", dot: "ddcarousel-dot", prev: "ddcarousel-prev", next: "ddcarousel-next", vert: ...
//创建时间:2015年12月24日 15:05:04 //创建人:李君 //最后更新时间:2015年12月24日 15:07:41 //更新人:李君 //说明:公用函数库 /***************************************************************/ //拓展Util var Util={}; //--------------------------- Util.getRectBoxObj=function(element){ /*box.getBoundingClientRect().top // 元素上边距离页面上边的距离 box.getBoundingCl...
"use strict"; var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault"); exports.__esModule = true; exports.stressTest = stressTest; var _setTimeout2 = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/set-timeout")); var _now = _interopRequireDefault(require("...
// Used to hold onto the current views' exposed filter query string. var _views_exposed_filter_query = null; // Used to mark if the exposed filter's reset button is shown or not. var _views_exposed_filter_reset = false; // Used to hold onto the current views' exposed filter submit's theme variables. var _views_expose...
import { MTLLoader } from './three.js/examples/jsm/loaders/MTLLoader.js'; import { OBJLoader } from './three.js/examples/jsm/loaders/OBJLoader.js'; import { GUI } from './lib/dat.gui.js'; var scene; var camera; var renderer; var controls; var moveForward = false; var moveBackward = false; var move...
var DICT = { 'Attributes': '變項', 'Full Data and Avg.': '全部資料', 'Cluster 1': '第', 'Cluster 2': '群', 'Larger than Avg.': '大於全部資料均值', 'Smaller than Avg.': '小於全部資料均值', 'Cluster': '分群', 'Count': '筆數', 'SSE_TH': '計算分群品質' }; var _process_file = function(...
var invoke = require('../utils/invoke-transaction.js'); var helper = require('../utils/helper.js'); var async = require('async'); var config = require('../config.json'); var bankService = require('./bankService.js'); var fundService = require('./fundService.js'); var queueService = require('./queueService.js'); var log...
// Index of the max value in array. function index_of_max(arr) { var max = arr[0], index = 0; for (var i = 1; i < arr.length; i++) {if (arr[i] > max) {index = i; max = arr[i]}}; return [max, index]; }; // Index of the min value in array. function index_of_min(arr) { var min = arr[0], index = 0; for (var i = 1; i < arr....
import React, { useState, useEffect, useRef, useContext } from "react"; import { Chessboard } from "react-chessboard"; import Chess from "chess.js"; import * as SockJS from "sockjs-client"; import * as Stomp from "stompjs"; import { ChessContext } from "../Context/chess-context"; import Swal from "sweetalert2"; import ...
//VSCode Run support===================================================================================== //为便于在JS IDE如VSCode,webStorm里脱离APP环境执行JS,以快速验证JS代码正确性 //如果不在App环境,Native接口重定向到JS同名函数打印调用 //jsFlutterRequire 转调Node运行环境中的require //只有js_framework_lib中的文件,才能用这个头 let jsFlutterRequire = typeof mxRequire != "undefined"...
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may n...
import React, { useState, useContext, useEffect } from 'react'; import ReactDOM from 'react-dom'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import Select from 'react-select'; import api from '../apiv2'; export const ImportIndicatorsContext = React.createContext(); // **************************...
/* eslint-disable no-unused-vars */ import { Icon, Paper, Table, TableFooter, TablePagination, TableRow, CircularProgress, LinearProgress, withStyles } from '@material-ui/core'; import DoubleScrollbar from "react-double-scrollbar"; import PropTypes from 'prop-types'; import * as React from 'react'; import MTableAction ...
/** * WordPress dependencies */ import { forwardRef, useEffect, useRef, useState, useMemo, useLayoutEffect, } from '@wordpress/element'; import { BACKSPACE, DELETE, ENTER, LEFT, RIGHT, SPACE, ESCAPE, } from '@wordpress/keycodes'; import { getFilesFromDataTransfer } from '@wordpress/dom'; import { useMerg...
// Created by <NAME> in January 2014. // Copyright (c) 2012 <NAME>. All rights reserved. // Licensed under BSD 2-Clause. /// ---------------- /// Move these away: function isset(variable) { return (typeof(variable) !== 'undefined' && variable !== null); } /// ---------------- /// http://stackoverflow.com/qu...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const cli_framework_1 = require("@ionic/cli-framework"); const fn_1 = require("@ionic/cli-framework/utils/fn"); const format_1 = require("@ionic/cli-framework/utils/format"); const node_1 = require("@ionic/cli-framework/utils/node"); const uti...
const TEXT_AREA_OBJ = ["textarea", "input"]; const TEXT_AREA_OBJ_EXCEPT = []; const NEED_STYLE_ELEMENTS = [ "font", "color", "overflow", "overflowX", "overflowY", "textAlign", "whiteSpace", "overflowWrap", "letterSpacing", ]; const MAX_MEMORY = 1000000; const letters = "<KEY>"; const lang = [ { setL...
const { readdirSync, readFileSync, existsSync } = require('fs'); const Keyv = require('keyv'); const Discord = require('discord.js'); const YZCrit = require('./yearzero/YZCrit'); const Util = require('./utils/Util'); const PageMenu = require('./utils/PageMenu'); const ContextMessage = require('./utils/ContextMessage');...
// in: module for in metwork // Date: 2019/03/21 // Version: 1.3 // Update: // Add EndSession var exports = module.exports = {}; var appname = ''; var iocmma = ''; var mbusgw = ''; var mbusport; var motebus; var inmsgcb; var eventcb; var sscb; var mbstate = ''; var mymote; var mymma = ''; var mymmaport = ''; var xmsg...
/* eslint-disable */ import { getPurple, getPurpleLite, getPrimaryTheme, getMoodyPurple, getAdminRed } from '../utils/misc'; const muiConfig = { palette: { primaryColor: getPrimaryTheme(), accentColor: getMoodyPurple() } }; const faintBlack = '#e5c8ec1f'; // try to find ho...
class Mechanical { constructor(){ this.editMech = 0; } createItem(op, pos, content, by){ var item = { id: this.editMech, op: op, pos: pos, content: content, by: by, timestamp: getTime() }; this.editMech++; return item; } } class Structural { constructor(){ ...
$(document).ready(function(){ if ($('#distribution_popup').val() == '1') { if ($('#have-a-new-voucher-add').length && $('#have-a-new-voucher-add').val() != '') { var url = $('#have-a-new-voucher-add').data('url'); setTimeout(function(){ $.confirm({ icon: 'fa fa-warning', titl...
'use strict'; let fs = require("fs"); let util = require("util"); let crc = require("crc"); function onLoadImage() { let imgPath = document.getElementById("imgPath").value; let sectorSize = parseInt(document.getElementById("sectorSize").value); console.log("Loading image:", imgPath); clearLoadIm...
/** * Copyright 2013 j <<EMAIL>> * * 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 t...
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"]...
"use strict"; function allocateTexture() { var texture = gl.createTexture(); gl.bindTexture(gl.TEXTURE_2D, texture); gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.NEAREST); gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, gl.NEAREST); gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRA...
import { apiService } from '../app.js' import { dataTest, mainMenu } from '../apiService.js'; import { formatMonth, formatDay, formatHour } from '../helpers.js'; import SequenceController from './sequenceController.js'; //HELPERS const hierarchySize = (d) => d.value; const sortBySize = (a, b) => hierarchySize(b) - hi...
import { InjectionToken, APP_BOOTSTRAP_LISTENER, Optional, Inject, PLATFORM_ID, ApplicationRef, NgModule } from '@angular/core'; import { isPlatformServer, isPlatformBrowser, DOCUMENT } from '@angular/common'; import { filter, take } from 'rxjs/operators'; /** * Attempt to generate key from node position in the DOM ...
//@ts-check import * as ui from "../ui.js"; const { isSafeInteger: isInt, isFinite: isNum, parseFloat: asNum } = Number; /** @type {{ s?: string, u?: string }} */ // @ts-ignore const opts = Object.fromEntries(new URL(location.href).searchParams); /** @type {HTMLElement} */ const appEl = document.getElementById("app")...
/** * @author qiao / https://github.com/qiao * @author mrdoob / http://mrdoob.com * @author alteredq / http://alteredqualia.com/ * @author WestLangley / http://github.com/WestLangley * @author erich666 / http://erichaines.com * @author gullfaxi171 / http://gullfaxi.fr */ /*global THREE, console */ // ...
// important: only add lines at the bottom in order to avoid breaking links const lines = [ "Where's the cue ball going?!" , "It's okay." , "Quick glance at the scoreboard, 46 points behind." , "That's a bad miss." , "That was a bad miss." , "Bit of pressure on this one." , "This is a frame-...
const chai = require("chai"); const chaiAsPromised = require("chai-as-promised"); chai.use(chaiAsPromised); const expect = chai.expect; const proxyquire = require("proxyquire"); const sinon = require("sinon"); const market_response = { "Crystal": [ { price: 17950000, amount: 536, seller: "trgKai" }, { price: 1817...
if (!window.WebSocket){ $('#checkwebsocket').html("Your browser doesn't support websockets." + "Please use the latest version of Firefox, Chrome, IE, Opera or Microsoft Edge."); } var wsuri = "wss://" + window.location.host + "/chess"; var sock; var matchID; var moveSound = new Audio('../sound/chessmove.mp3'); var ...
/* // THE BEST FEATURES ARE THE ONES THAT THE PLAYER THINKS EXISTS BUT ACTUALLY DOESNT // U CAN HAVE COOL GRAPHICS BUT IF THEY DONT MEAN ANYTHING MEANINGFUL TO THE GAMEPLAY IT DOESNT MATTER //////////////////////////////////////////////////// //////////////////////////////////////////////////// TODO LEVEL 1 POWERS Ge...
// merry christmas // load modules const path = require("path"); const http = require("http"); const express = require("express"); const socket = require("socket.io"); const fs = require("fs"); const flatted = require("flatted"); const c3ds = require("./c3ds"); //"chat 3d server" module // globals const app = express...
"use strict"; // Inspired by // https://github.com/webrtc/samples/blob/gh-pages/src/content/insertable-streams/endtoend-encryption var CallMediaType; (function (CallMediaType) { CallMediaType["Audio"] = "audio"; CallMediaType["Video"] = "video"; })(CallMediaType || (CallMediaType = {})); var VideoCamera; (funct...
var opts = { lines: 13, // The number of lines to draw length: 20, // The length of each line width: 10, // The line thickness radius: 30, // The radius of the inner circle corners: 1, // Corner roundness (0..1) rotate: 0, // The rotation offset direction: 1, // 1: clockwise, -1: countercloc...
import React, { Component } from 'react'; import { SafeAreaView, View, Text, StyleSheet, Image, Dimensions, TouchableOpacity, ScrollView, FlatList } from 'react-native'; import { CheckBox } from 'react-native-elements'; import BaseScreen from '../BaseScreen/BaseScreen'; import Header from '../../components/common/BackH...
'use strict'; const canvas = document.getElementById('canvas'); const ctx = canvas.getContext('2d'); window.addEventListener('resize', resize); function resize() { canvas.width = window.innerWidth; canvas.height = window.innerHeight; } resize(); let x, y; window.onmousemove = function(event) { x = event.pag...
/*! * reactjs-popup v1.5.0 * (c) 2019-present <NAME> <<EMAIL>> * Released under the MIT License. */ 'use strict'; function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } var React = _interopDefault(require('react')); function _classCallCheck(instance, Co...
exports.help = help() function help() { return ` *☾ Mis comandos ☽* 。☆✼★━━━━━━━━━━━━★✼☆。 💥Sergio🦠💥 ┏━━━┓ _330_ *Wabot* *Fixed By* _*Sergio🦠*_ ––•(-••-)•–– ┏━━━┳━━━┳━━━┓ ┗━━━┻━━━┻━━━┛ PORFAVOR ESCRIBA LOS COMANDOS TAL Y COMO APARECE ABAJO; SI NO NO JALA Y LUEGO SE MOLESTAN:/ M...
/** * The Wingman virtual DOM window manager. * * @author nethe550 * @license MIT */ /** * @typedef {{ width: number, height: number, minWidth: number, minHeight: number, draggable: boolean, resizable: boolean, centered: boolean, darkMode: boolean, shadow: 'always' | 'hover' | 'active' | 'none', title: ...
$(function(){ var base_url = $("body").data('base_url'); //url var datas = $("body").data('datas'); // data for query var search_label = $("body").data('label'); //label search prItems = []; grandtotal = 0; $(".BtnNext").click(function(e){ e.preventDefault(); var searchSupplier = $(".searchSupplier").v...
"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 (Object.protot...
import React from 'react'; import MapView, { PROVIDER_GOOGLE } from 'react-native-maps'; import Marker from 'react-native-maps'; import { StyleSheet, Dimensions, FlatList, ActivityIndicator, Text, View, TextInput, Button } from 'react-native'; //import MapViewDirections from './components/MapViewDirections'; import M...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DrawerRenderer = void 0; var tslib_1 = require("tslib"); var react_1 = tslib_1.__importDefault(require("react")); var Scoped_1 = require("../Scoped"); var factory_1 = require("../factory"); var Drawer_1 = tslib_1.__importDefault(requir...
'use strict' /* eslint-env browser, webextensions */ const debug = require('debug') const log = debug('ipfs-companion:request') log.error = debug('ipfs-companion:request:error') const LRU = require('lru-cache') const IsIpfs = require('is-ipfs') const isFQDN = require('is-fqdn') const { pathAtHttpGateway } = require('...
function BranchData() { this.position = -1; this.nodeLength = -1; this.src = null; this.evalFalse = 0; this.evalTrue = 0; this.init = function(position, nodeLength, src) { this.position = position; this.nodeLength = nodeLength; this.src = src; return this; } ...
/** * Copyright 2012-2019, 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 d3 = require('d3'); var tinycolor = require('tinycolor2'); var Plots = require('../../plots/plots'); var Re...
'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 (Object.protot...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var util_1 = require("@antv/util"); var dependents_1 = require("../dependents"); var description_1 = tslib_1.__importDefault(require("../components/description")); var base_1 = require("../components/label/base"...
let process function capitalizeString(e) { return e.charAt(0).toUpperCase() + e.slice(1) } function prefixProperty(e, t, i) { if (e.hasOwnProperty(t)) { const n = {}, r = e[t], s = capitalizeString(t), o = Object.keys(i) for (let e = 0; e < o.length; e++) { ...
/** * @createTime 2014-12-15 * @author louis.tru <<EMAIL>> * @copyright © 2011 louis.tru, http://mooogame.com * @version 1.0 */ // include('third_party/ace/demo/show_own_source.js'); include('tesla/storage.js'); include('tesla/url.js'); include('tesla/gui/page.js'); include('tesla/gui/screen.js'); include('tesla/...
import View from '../utils/view'; import {d3, globals, getSigFigString} from './cct_globals'; class ScentedSliderPopup extends View{ constructor(elem,model){ super(elem, model); this.popup_dims = { 'width': 350, 'height': 200, 'left_padding': 45, 'ri...
/** * build * * Functions for building new reactions. */ var utils = require('./utils') var _ = require('underscore') module.exports = { get_met_label_loc: get_met_label_loc, new_reaction: new_reaction, rotate_nodes: rotate_nodes, move_node_and_dependents: move_node_and_dependents, new_text_label: new_t...
var midi = require('midi'); var fs = require('fs'); var robot = require("robotjs.node"); // Set up a new input. var input = new midi.input(); var output = new midi.output(); // Count the available input ports. var ports = input.getPortCount(); for (i=0; i<ports; i++) { console.log('index: ' + i + ' -> ' + input.ge...
var UNIT_PARAMS = { minMireds: 153, maxMireds: 370, maxBrightness: 255 }; var UI_TABS = [ { tag: "tab-wifi", friendly: "Wifi", }, { tag: "tab-setup", friendly: "Setup", }, { tag: "tab-led", friendly: "LED", }, { tag: "tab-radio", friendly: "Radio", }, { tag: "tab-mqtt"...
/** GoodForm 0.5 * * http://github.com/cementhorses/good_form * * Copyright (c) 2008-* <NAME>. Released by <NAME> under the MIT * License. Active Record validations and documentation liberally extracted and * modified. * * Rails developers will find a nice little bridge here: * * http://github.com/cementhorse...
const statusDesc = require('./status_desc'); const unitType = require('./unit_type'); const rejectNote = require('./reject_note'); function randomInt(min, max) { return Math.floor(Math.random() * (max - min)) + min; } function CRC16(source) { let length = source.length; let seed = 0xFFFF; let poly = 0x8005; ...
// MOCHA TEST SUITE // Designed to work against a fake-isy-994i server (see github.com/rodtoll/fake-isy-994i). Will not run unmodified against a real server as test devices // won't be found on that server AND real servers can't have their state reset. // var restler = require('restler'); var assert = require('assert')...
const { h, Component } = require("preact"); const topojson = require("topojson"); const canvasDpiScaler = require("canvas-dpi-scaler"); const select = require("d3-selection"); // For events to work import d3 from "../d3-custom"; // Modularise D3 const versor = require("../lib/versor"); // Canvas rotation library cons...
/* global chrome, $, Timemap, tmData */ var MAX_MEMENTOS_IN_DROPDOWN = 500 function createShadowDOM (cb) { const selector = '#minkuiX' const shadow = document.querySelector('#minkWrapper').attachShadow({ mode: 'open' }) const template = document.querySelector(selector) shadow.appendChild(template) if (cb)...
/** * Copyright 2012-2019, 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 d3 = require('d3'); var d3Hierarchy = require('d3-hierarchy'); var Registry = require('../../registry'); va...
"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 (Object.protot...
import React, { useEffect, useState } from 'react'; import { Tab, Tabs, TabList, TabPanel } from 'react-tabs'; import classNames from 'classnames/bind'; import { Button, Icon, Loader, Mark } from '@fogcreek/shared-components'; import Image from 'Components/images/image'; import { TeamAvatar, ProjectAvatar } from 'Comp...
import React, { useState, useEffect } from "react"; import PropTypes from "prop-types"; import { fetchJSON, fetchWithMethod, HTTP_METHODS } from "../utils/api"; import { SPACETIME_SHAPE } from "../utils/types"; import { SectionDetail, InfoCard, SectionSpacetime, ROLES } from "./Section"; import { Switch, Route } from "...
/*global sjcl:true, jQuery:true, lzw:true, zerobin:true, prettyPrint:true */ /* This file has been migrated away from jQuery, to Vue. Because of the way the code base used to be, a lot of the operations are still using imperative DOM manipulation instead of the Vue declarative style. We haven't had the time ...
/* global joo_global_object, Uint8Array_, BigInt_, _0n, _1n, _2n, _32n, caml_bigint_of_bytes, caml_js_to_bool, caml_string_of_jsstring */ // CONSTANTS // the modulus. called `p` in most of our code. // Provides: caml_pasta_p_bigint // Requires: BigInt_ var caml_pasta_p_bigint = BigInt_('0x4000000000000000000000000...
// Node in an SVG document // Contains all the options for optimising how the SVG is written var SVG_Element = function(element, parents) { this.tag = element.nodeName; this.attributes = {}; this.styles = {}; this.parents = parents; this.children = []; this.text = ""; // Add attributes to h...
"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...
/* * == BSD2 LICENSE == * Copyright (c) 2014, Tidepool Project * * This program is free software; you can redistribute it and/or modify it under * the terms of the associated License, which is identical to the BSD 2-Clause * License as published by the Open Source Initiative at opensource.org. * * This program ...
/****************************************************************************** * Copyright 2010-2021 migenius pty ltd, Australia. All rights reserved. * Portions of this file are Copyright © 2010-2021 three.js authors *****************************************************************************/ import { Matrix4x4,...
/** * The actual Validation module. * Creates a Joi schema and tests the deserialized YAML descriptor */ 'use strict'; //------------------------------------------------------------------------------ // Requirements //------------------------------------------------------------------------------ const Joi = requ...
var DTP = {}; DTP.trace = function (message) { console.log(message); }; (function (DTP) { DTP.ProfileRepository = (function () { function ProfileRepository(settings, storage) { // No serializable Object.defineProperty(this, 'settings', { value: settings, writable: true }); ...
#!/usr/bin/env node /** * @license Copyright (c) 2003-2021, CKSource - <NAME>. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ /* eslint-env node */ const puppeteer = require( 'puppeteer' ); const chalk = require( 'chalk' ); const stripAnsiEscapeCodes =...
//const { RdfXmlParser } = require("../js/rdfjs/rdf-ext-1.0.0"); //const { xmlScribe } = require("../js/rdfjs/rdf-ext-1.7.1"); var debug = false; var beforeUnloadMessage = null; var startupRDF = ` @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>. @prefix contact: <http://www.w3.org/2000/10/swap/pim/contact#...
// Copyright (c) 2019 ml5 // // This software is released under the MIT License. // https://opensource.org/licenses/MIT /* Generic NeuralNetwork class */ import * as tf from '@tensorflow/tfjs'; import callCallback from '../utils/callcallback'; import { saveBlob } from '../utils/io'; // import { input } from '@tenso...
function validationOnFly(elementType, elementKey, errorEType, errorKey) { if (elementType == "class") { if ($(elementKey).length > 0) { elementKey = "." + $(elementKey).attr("class").split(' ').pop(); } else { elementKey = "." + elementKey; } } else i...
// the main topic visor controller var articles = new Array(); var topics = new Array(); var svg_width; var svg_height; var top2cat; var categories; var cat_data; var selected_topic_id = -1; var setter = new Object(); // set the parameter of viz sketch var init_mode = "normal"; // Method to draw the topic flow vi...
/*! * util.js - utils for bmocha * Copyright (c) 2018-2019, <NAME> (MIT License). * https://github.com/bcoin-org/bmocha * * Parts of this software are based on nodejs/node: * Copyright Node.js contributors. All rights reserved. * https://github.com/nodejs/node */ /* eslint no-control-regex: "off" */ 'use ...
var gulp = require('gulp'); var typescript = require('gulp-typescript'); var Builder = require('systemjs-builder'); var merge = require('merge-stream'); var inlineNg2Template = require('gulp-inline-ng2-template'); var fs = require('fs'); var path = require('path'); var del = require('del'); var tsconfig = require('./t...
var amplitudeA; var amplitudeB; var amplitudeD; var amplitudeK var amplitudeF var amplitudeE var amplitudeZ var amplitudeG var soundAFFT var levelA var levelB //b var biscottes = [] var pg var transparence //h var cordes = [] //l var cerclesConfiance = [] var pgE var pgC var timeStart var timeAnim var rouge = 0 ...
let modInfo = { name: "The Number Tree", id: "factor", author: "3^3=7", pointsName:"points", modFiles: ["Zero.js","X.js", "tree.js","Number.js","NegativeNumber.js","UpgradeFactor.js","Factor.js","Infinity.js","Achievement.js","FactorShift.js","InfinityPoint.js","MathematicsSymbol.js","EternityPoints.js","Ordinal.j...
//==========baidu map relative begin===================== var autoComplete = null; function initLocationQueryControl(inputId, map) { var G = function(id) { return document.getElementById(id); }; var setPlace = function(myValue) { // map.clearOverlays(); //清除地图上所有覆盖物 function myFun() { ...
'use strict'; var r1_calculateMetrics, r1_setFontMetrics, r1_designParameters, _r1_t0, _r1_t1, _r1_t2, _r1_t3, _r1_t4, _r1_t5, _r1_t6, _r1_t7, _r1_t10, _r1_t11; var r1_Point = require('../support/point'); var _r1_t8 = require('../support/transform'); var r1_Transform = _r1_t8; var r1_tp = _r1_t8.transformPoint; var r1_...
var container var camera, controls, scene, renderer var textureLoader var clock = new THREE.Clock() var ballMesh var mouseMesh var ambientLight var rb88 = new THREE.Object3D(); var listener = new THREE.AudioListener(); // Physics variables var gravityConstant = -9.8 var collisionConfiguration var dispatcher var broadp...
// Load .env file require("dotenv").config(); const express = require("express"); const session = require("express-session"); const exphbs = require("express-handlebars"); const passport = require("passport"); const path = require("path"); const favicon = require("serve-favicon"); const logger = require("./lib/appLogge...