text
stringlengths
5.97k
41.2k
var should = require("should"); var math = require("mathjs"); var shared = require("../../www/js/shared/JsonUtil"); var Logger = require("../../www/js/shared/Logger"); var JsonUtil = require("../../www/js/shared/JsonUtil"); var DVSFactory = require("../lib/DVSFactory"); var LPPCurve = require("../lib/LPPCurve"); var Mo...
/* root element for changing :root-CSS-variables */ let domRoot = document.documentElement; /* HSL sliders on top */ let domSliderHue = document.querySelector("#slider-hue"); let domSliderSat = document.querySelector("#slider-sat"); let domSliderLtn = document.querySelector("#slider-ltn"); /* HSL input fields for light...
/* Visualization script in js */ var vizSVG = null; var viz = null; var legendSVG = null; var legend = null; var margin = {top: 20, right: 10, bottom: 50, left: 50}; var width = 1000; var height = 500; var xScale = null; var yScale = null; var indexValue = null; var crimeInput = null; var RoomsInput = null; var crime...
import React from 'react'; import _ from 'lodash'; import { connect } from 'react-redux'; import Immutable from 'immutable'; // import * as Basic from '../../components/basic'; import * as Advanced from '../../components/advanced'; import { RoleManager, IdentityManager, IdentityRoleManager, IdentityContractManager, Con...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.NestedSelectControlRenderer = void 0; var tslib_1 = require("tslib"); var react_1 = tslib_1.__importDefault(require("react")); var Overlay_1 = tslib_1.__importDefault(require("../../components/Overlay")); var Checkbox_1 = tslib_1.__imp...
'use babel'; import ViolentmonkeyConnectView from './violentmonkey-connect-view'; import { CompositeDisposable } from 'atom'; import {accessSync, existsSync, readFileSync, writeFileSync, mkdirSync} from 'fs'; import {join, relative, dirname, extname, normalize, parse} from 'path'; function getFileLastCommit(git_dir,f...
<!-- /* Source: http://yvoschaap.com */ /* so we have bind available in our vanilla javascript */ Function.prototype.bind = function(obj,args) { var method = this, temp = function() { return method.call(obj, args); }; return temp; } var ytEmbed = { ytQuery : 0, cl : 0, callback : {}, ...
var createSingleActionView = function ({ onSave= undefined, onClose= undefined, originalData = "" }={}) { var self ={}; var objectIsActive = false; let currentActionUuid = undefined let sourceOccElement = undefined let theme = { menu : function (action) { return ` <div class="ui mini...
/** * @preserve JDate: creates a new jalali date object with the current date and time. * * @version 1.0.1 * @author <NAME> * @copyright The Financial Times Limited [All Rights Reserved] * @license MIT License https://opensource.org/licenses/MIT */ function JDate(year, month, date, hours, minutes, seconds, mill...
"use strict"; function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } } String.prototype.replaceAll = function (search, replacement) { var target = this; return target.repl...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.RxStorageKeyObjectInstanceLoki = void 0; exports.createLokiKeyObjectStorageInstance = createLokiKeyObjectStorageInstance; exports.createLokiKeyVa...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); require('@babel/polyfill'); var AWS = require('aws-sdk'); function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } var AWS__default = /*#__PURE__*/_interopDefaultLegacy(AWS); funct...
var thematicalVectorConfiguratorLabel = { 'selectValue': OpenLayers.i18n('Select a value'), 'attribute': OpenLayers.i18n('Attribute'), 'exact': OpenLayers.i18n('Exact'), 'range': OpenLayers.i18n('Range'), 'value': OpenLayers.i18n('Value'), 'color': OpenLayers.i18n('Color'), 'min': OpenLayers...
// Global vars var pymChild = null; var isMobile = false; var isMedium = false; var fastMode = false; var thisGraphic; var animHasStarted = false; var animHasFinished = false; var clickedReplay = 0; var animFrontDelay, animBackDelay; /* * Initialize the graphic. */ var onWindowLoaded = function() { if (Moderniz...
$(document).ready(function(){ //when each image is clicked $('.image-back').click(function(){ var thisdiv = $(this); var sliderid = thisdiv.parent().parent().attr('id'); var thisid = $("#"+sliderid); var midchild = $('#slider-container').children('.mid'); var index, midindex, newval, lfti...
// A Simple WSClient for PennMUSH // -grapenut var defaultHost = "ats.trekmush.org"; var defaultPort = '1701'; // pre-define the connection object, later it will be set to // conn = WSClient.open('ws://host:port/wsclient') var conn = null; // user information var login = document.getElementById('client-login'); var ...
/* * cli.js * Copyright (C) 2015 <NAME> <kovid at kovidgoyal.net> * * Distributed under terms of the BSD license. */ "use strict"; /*jshint node:true */ var path = require('path'); var utils = require('./utils'); var colored = utils.safe_colored; var has_prop = Object.prototype.hasOwnProperty.call.bind(Object.pr...
'use strict'; // LECTURE: Functions // 1. Write a function called 'describeCountry' which takes three parameters: // 'country', 'population' and 'capitalCity'. Based on this input, the // function returns a string with this format: 'Finland has 6 million people and its // capital city is Helsinki' // 2. Call this func...
/* eslint-disable quote-props */ import i18n from '@/locales' import BrandIcon from '@/sections/BrandIcon' export const metricMaps = { cpu: { key: 'cpu', label: i18n.t('monitor.metrics_cpu'), metrics: { usage_active: { key: 'usage_active', label: i18n.t('monitor.metrics_cpu_usage_ac...
/* -*- Mode: js2; js2-basic-offset: 2; indent-tabs-mode: nil; -*- */ /* vim: set ft=javascript ts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. ...
/**! * FlexSearch.js * Copyright 2018-2021 Nextapps GmbH * Author: <NAME> * Licence: Apache-2.0 * https://github.com/nextapps-de/flexsearch */ import { encode as default_encoder } from './lang/latin/default.js'; import { create_object, create_object_array, concat, sort_by_length_down, is_array, is_string, is_obj...
"use strict"; /* Attachment Pane ** ** - Attach a document to a thing ** - View attachments ** - Look at all unattached Supporting Documents. ** - Drag a document onto the pane to attach it @@ ** ** */ var UI = require('solid-ui'); var $rdf = require('rdflib'); module.exports = { icon: UI.icons.iconBase...
import { AugmentedObject } from "next-core-object"; import { extend, isString, isFunction, some, splice, sortObjects } from "next-core-utilities"; import AbstractModel from "../model/abstractModel.js"; import { ValidationFramework } from "next-core-validation"; import CollectionIterator from "./iterator.js"; // import ...
/** * Created by avireddi on 12/18/2019. */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Add as AddIcon, Trash as DeleteIcon, StatusWarning } from 'grommet-icons'; import { Anchor, Box, Button, Footer, FormField, ...
//----------------------------------------------------------------------------- // transect.c // // Project: EPA SWMM5 // Version: 5.1 // Date: 03/20/14 (Build 5.1.001) // Author: <NAME> // // Geometry processing for irregular cross-section transects. //--------------------------------------------...
/** * Execute the page callback associated with the current path and return its * content. * @return {Object} */ function menu_execute_active_handler() { try { // Determine the path and then grab the page id. var path = null; if (arguments[0]) { path = arguments[0]; } if (!path) { path = drupalga...
var ABID; var vizCanvas; var varViz; var mapViz; var varDiv; var varDivNode; //-----Column Locations----// var FDcol = 1; var FDtcol = 2; var GScol = 5; var GStcol = 6; var HWcol = 7; var HWtcol = 8; var xG25col = 27; var xG25tcol = 28; var xL0col = 29; var xL0tcol = 30; var mL25col = 31; var mL25tcol = 32; var firstR...
'use strict'; var Cesium = require('cesium'); var fsExtra = require('fs-extra'); var path = require('path'); var createI3dm = require('./createI3dm'); var optimizeGltf = require('./optimizeGltf'); var AttributeCompression = Cesium.AttributeCompression; var Cartesian2 = Cesium.Cartesian2; var Cartesian3 = Cesium.Cartes...
const LeftControls = { data() { return { closed: true, quizReady: false, quizReadyCallback: null, treeListSearchCallback: null, currentPage: 0, pages: [{ title: 'Éléments' }, { title: 'Positions' }], positions: [], tree: { name: '', geomitems: [], ...
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- / /* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */ 'use strict'; // The appscreen is the main part of the homescreen: the part that // displays icons that launch all of the installed apps. var appscreen = null; navigator....
/*jshint camelcase: false */ 'use strict'; //============================================= // DEPENDENCIES //============================================= /** * Load required dependencies. */ var fs = require('fs'); var pkg = require('./package.json'); var del = requi...
/** * Angular JS File Version: 2.0.0 */ if(typeof(RCACONFIG) === 'undefined'){ RCACONFIG = { 'templateUrl': '../views/', 'ajaxUrl': '/api/', }; } var app = angular.module('rcaCricket', ['ngAnimate']) .constant('appConfig', { path: { img: 'http://img.litzscore.com/', }, cricket: { po...
// datasets for test let warning_data = [ { region: "VIC", warning: "Orange", warning_message: "view", urgent: "Urgent" } ] let temperature_data, humidity_data, season_data, data_data, card_data let VIC, NSW, QLD, NT, SA, WA, TAS = [] let currentLocation, times, areas // const socket = io('https://...
import React, { useState, memo, useEffect, useMemo, useRef } from 'react'; import { connect } from 'react-redux'; import { compose } from 'redux'; import { useInjectReducer } from 'utils/injectReducer'; import { createStructuredSelector } from 'reselect'; import FilesUploadComponent from 'components/FilesUploadComponen...
import React, { createElement, useCallback, useContext, useEffect, useMemo, useRef, useState, } from 'react'; import { findDOMNode } from 'react-dom'; import styled from 'styled-components'; import { Box, Grommet, Paragraph, ResponsiveContext } from 'grommet'; import Icon from './libraries/designer/Icon';...
Promise.prototype.done = Promise.prototype.done || function (onFulfilled, onRejected) { this.then(onFulfilled, onRejected) .catch(function (reason) { // 抛出一个全局错误 setTimeout(() => { throw reason }, 0) }) } Promise.prototype.finally = Promise.prototype.finally || function (callback) { let ...
/* Autoreact form groups for viewing, editing and adding records */ import * as autoutils from './autoutils.js'; import * as autoformdata from './autoformdata.js'; import * as autolang from './autolang.js'; import * as autoapi from './autoapi.js'; import * as autoedit from './autoedit.js'; // ====== module start...
var SELECTED_STORE_ORDERS_HISTORY_URL = buildUrlWithContextPath("pages/getSelectedStoreOrdersHistory"); var REFRESH_TABLE_OWNER_URL = buildUrlWithContextPath("pages/getTableOwnerInformation") var CREATE_STORE_URL = buildUrlWithContextPath("pages/createStore"); var CREATE_NEW_ITEM_URL = buildUrlWithContextPath("pages/cr...
function GetImageWindowSize() { var windowSize = jsUtils.GetWindowSize(); return {'width' : parseInt(windowSize.innerWidth - 20), 'height' : parseInt(windowSize.innerHeight - 20 - 110), 'top' : parseInt(windowSize.scrollTop) + 10}; } var SlideSlider = false; var player = false; function __show_slider(active, ...
import { colors } from './boxColors.js'; import { boxGeom_create } from './boxGeom.js'; import { align } from './boxTransforms.js'; import { camera_lookAt } from './camera.js'; import { light_create } from './directionalLight.js'; import { component_create, entity_add } from './entity.js'; import { geom_clone, geom_mer...
/*! ========================================================= * Argon Dashboard React - v1.1.0 ========================================================= * Product Page: https://www.creative-tim.com/product/argon-dashboard-react * Copyright 2019 Creative Tim (https://www.creative-tim.com) * Licensed under MIT (https:/...
/*! * Mowe Citodon Project v0.0.1 (http://letsmowe.org/) * Copyright 2013-2016 Mowe Developers * Licensed under MIT (https://github.com/mowekabanas/citodon/blob/master/LICENSE) */ /* Contact */ /* Contact email manipulation */ var formSentCount, formSentTry; var formSentCountLimit, formSentTryLimit; formSen...
var cityData=[],branchOfbank={"boc":"中国银行","postgc":"中国邮政储蓄银行","bob":"北京银行","bea":"东亚银行","njcb":"南京银行"},submitState=true; function getTenpayBarchData(){ var bankCode=jQuery("div[role='select']>span").attr("value"); var d=jQuery("#ad_city").data("ids"); if(!bankCode||!d) return; $.ajax({ type:"post", url:...
const _ = require('lodash'); const util = require('util'); const B = require('bluebird'); const wd = require('wd'); const fs = require('fs'); const path = require('path'); const stats = require('stats-lite'); const { sleep } = require('asyncbox'); const { tests } = require('./tests'); const { sendToSumo } = require('./...
var MyApp = {}; // Globally scoped object //document.getElementById("calculateButton").addEventListener("click", step1, false); //import * as THREE from './build/three.module.js'; import * as THREE from 'https://unpkg.com/three@v0.138.0/build/three.module.js'; //import * as SkeletonUtils from './jsm/utils/SkeletonU...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Tracing = void 0; exports.shouldCaptureSnapshot = shouldCaptureSnapshot; var _fs = _interopRequireDefault(require("fs")); var _os = _interopRequireDefault(require("os")); var _path = _interopRequireDefault(require("path")); var ...
var isoLangs={af:{name:"Afrikaans",nativeName:"Afrikaans"},sq:{name:"Albanian",nativeName:"Shqip"},am:{name:"Amharic",nativeName:"\u12a0\u121b\u122d\u129b"},ar:{name:"Arabic",nativeName:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629"},hy:{name:"Armenian",nativeName:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576"},az:{name:"A...
var $ = jQuery; var emailfilter = /^\w+[\+\.\w-]*@([\w-]+\.)*\w+[\w-]*\.([a-z]{2,4}|\d+)$/i; var hash; var screen_md = 840; var screen_sm = 720; ( function( $ ) { feather.replace(); $.fn.equalizeHeights = function(){ return this.height( Math.max.apply(this, $(this).map(function(i,e){return $(e).height()})...
function MLSOverviewWindow(O) { O=O||this; JSQWidget(O); O.div().addClass('MLSOverviewWindow'); this.setDocStorClient=function(DSC) {m_right_window.setDocStorClient(DSC);}; this.refresh=function() {refresh_right_window();}; this.setLoginInfo=function(info) {m_right_window.setLoginInfo(info);}; var m_left_windo...
#!/usr/bin/env node /* onetable - OneTable cli Usage: Migrations: onetable [all, down, generate, list, outstanding, repeat, reset, status, up, N.N.N] Reads migrate.json: crypto: { "cipher": "aes-256-gcm", "password": "<PASSWORD>" }, delimiter: ':...
'use strict'; /** The smallest positive normal value of type number, 2-1022. It is equal to the hexadecimal floating-point literal 0x1.0p-1022. */ // const MIN_NORMAL = 2.2250738585072014E-308; // const MAX_FIXED_DECIMAL_PLACES = 20; const integerRegex = /^[+-]?\d+(\.0*)?$/; const numberRegex = /^[+-]?(\d+\.?|\d*\....
import { apiValue, isDate, mapGet, padInt, $1, enc, resolve, omit } from "@servicestack/client" import { lastRightPart, combinePaths, appendQueryString } from "@servicestack/client" import { MapFn, ImageInfo, MetadataOperationType, AuthenticateResponse } from "../../lib/types" import { Files } from "./Files" /*minify:*...
import randomToken from 'random-token'; import IdleQueue from 'custom-idle-queue'; import BroadcastChannel from 'broadcast-channel'; import PouchDB from './pouch-db'; import { adapterObject, hash, validateCouchDBString, isLevelDown, promiseWait } from './util'; import { newRxError, pluginMi...
/* global $, courseTeesJSON, numRounds, coursesJSON, tournamentName, dateStart, numRounds, playersJSON, id, name, duplicate, dateId, date, dateDuplicate */ var editTournamentTable; var addRowId = 0; function updateScorecardRound(data) { var rowId = $(data).data('rowId'); var playerHCP = $('#hcp'+rowId).v...
// init(); // main(); // basic(); // commonFourLine(); principle(); function principle () { const canvas = document.getElementById('glcanvas'); const gl = canvas.getContext('webgl'); const vertex = ` attribute vec2 a_position; attribute vec4 a_color; uniform mat3 u_matrix; varying vec...
const EventEmitter = require('events'); class HttpDuplex extends EventEmitter { /** * Constructs a proxy object over input and output resulting in a unified stream. * Generally meant to combine request and response streams in the http.request event * @class HttpDuplex * @param {http.IncomingMes...
/* * Copyright (c) 2009 <NAME> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL W...
import { Directionality, BidiModule } from '@angular/cdk/bidi'; import { CommonModule } from '@angular/common'; import { Component, ChangeDetectionStrategy, ViewEncapsulation, ChangeDetectorRef, Optional, Input, NgModule } from '@angular/core'; import { NzOutletModule } from 'ng-zorro-antd/core/outlet'; import { NzIcon...
//import * as jsPDF from "jspdf"; const PDFDocument = require('pdfkit'); const blobStream = require('blob-stream'); const xpath = require('xpath') const select = xpath.useNamespaces({"tei": "http://www.tei-c.org/ns/1.0"}); import printLeiden from './leidenGenerator' import addBibliography from './addBibliography' con...
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } f...
/** This game is based on a telegram game called DERP: Assassination. The rules can be seen here: https://drive.google.com/file/d/1Cf7frrCWlBqoG64SVPrLkcMjCPaYcm0x/view?usp=sharing */ const express = require('express'); const app = express(); const bodyParser = require('body-parser'); const telegram = require...
// TODO(hakanu): Get rid of this file contents and move // vue logic here from the template. Array.prototype.remove = function () { var what, a = arguments, L = a.length, ax; while (L && this.length) { what = a[--L]; while ((ax = this.indexOf(what)) !== -1) { this.splice(ax, 1); } } ...
Date.prototype.format =function(format) { var o = { "M+" : this.getMonth()+1, //month "d+" : this.getDate(), //day "h+" : this.getHours(), //hour "m+" : this.getMinutes(), //minute "s+" : this.getSeconds(), //second "q+" : Math.floor((this.getMonth()+3)/3), //quarter "S" : this.getMilliseconds() //millisecond }...
global.console = console; var async = require('async'); var gui = require('nw.gui'); var $ = window.jQuery; var Handlebars = require('handlebars'); var _ = require('lodash'); var Window = gui.Window.get(); var mb = new gui.Menu({type:'menubar'}); mb.createMacBuiltin('Github Pulls'); Window.menu = mb; var reloadM...
import React, { useState } from 'react'; import { v4 as uuidv4 } from 'uuid'; import { connect, useDispatch } from 'react-redux' import moment from 'moment'; import { Button, Form } from 'react-bootstrap'; import DatePicker from 'react-date-picker'; import { toast } from 'react-toastify'; import { updateUser } from ".....
import * as THREE from 'three'; import * as BufferGeometryUtils from 'three/examples/jsm/utils/BufferGeometryUtils.js'; import metaversefile from 'metaversefile'; const {useApp, useFrame, usePhysics, useProcGen, addTrackedApp, useDefaultModules, useCleanup, createMapChunk, createMapChunkMesh} = metaversefile; // const...
const moment = require('moment'); const _ = require('lodash'); const StrategyManager = require('./strategy/strategy_manager'); const Resample = require('../utils/resample'); const CommonUtil = require('../utils/common_util'); module.exports = class Backtest { constructor(instances, strategyManager, exchangeCandleCom...
var PunchAlgorithm = { init: function(n=25, tol=0.5, vtol=0.03, extremeMAD = 0.10, triggerMAD = 0.005, initialVoltage = 1.65, RCconstant = 0.330, RCConstantMultiple = 4, lookAhead = 5, timeLimit = 0.01, minStrikeVal = 12) { this.stackSize = n; this.slopeTolerance = tol; // absolute of slope/deriv is 0.5 ...
/* Tea Time! Copyright (c) 2015 - 2021 <NAME> The MIT License (MIT) 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, co...
/* * MEPsOnTwitter: a list of MEPs, by country, and their twitter accounts. * Automaticly generated by https://github.com/marado/MEPsOnTwitter * Source data from https://github.com/eliflab/European-Parliament-Open-Data (revision: 862a6113eea1b6c71fc20d6520112bdd5e44b384) * Data license: http://opendatacommons.or...
//This page is used to generate questions import React from "react"; import { useState, useEffect } from "react"; import "./questionForm.css"; import Select from "@material-ui/core/Select"; import Switch from "@material-ui/core/Switch"; import CheckBoxIcon from "@material-ui/icons/CheckBox"; import ShortTextIcon from "...
import Phaser from "phaser"; import config from "../main.js"; let game, ball, sasuke, sasukefire, healthbar1, healthbar2, healthbar3; let score = 0; let healthCounter = 3; let overlapTriggered = false; window.onload = () => (game = new Phaser.Game(config)); let gameOptions = { platformSpeedRange: 500, //speed range...
/*! * byte - benchmark/buffer_slice_and_copy.js * Copyright(c) 2013 fengmk2 <<EMAIL>> (http://fengmk2.github.com) * MIT Licensed */ "use strict"; /** * Module dependencies. */ var Benchmark = require('benchmark'); var benchmarks = require('beautify-benchmark'); var suite = new Benchmark.Suite(); var buffer =...
const fs = require('fs'); // The only one instance of the AddonInterface class let addonInterfaceObj = null; // input event names will be used to send to the TeleFrame renderer const validInputEvents = [ 'next', 'previous', 'pause', 'play', 'playPause', 'newest', 'delete', 'star', 'mute', 'reboot'...
var plogonArray=[]; var pointsArray=[]; var drawInteraction, tracingFeature, startPoint, endPoint, snapInteraction; var drawing = false; var previewVector; var baseVector; var drawVector; function CreateGeofence(type){ plogonArray=[]; pointsArray=[]; previewVector; baseVector; drawVector; // var sou...
/** * @Author: <NAME> <justinhao> * @Date: 2017-12-13 * @Email: <EMAIL> * @Last modified by: justinhao * @Last modified time: 2018-06-04 */ import Big from 'big.js'; import _ from 'lodash'; import each from 'lodash/each'; import isArray from 'lodash/isArray'; import isEmpty from 'lodash/isEmpty'; import isI...
/* global $ $$ animateElement scrollElementIntoView */// dom.js /* global API */// msg.js /* global URLS debounce isEmptyObj sessionStore */// toolbox.js /* global filterAndAppend */// filters.js /* global installed newUI */// manage.js /* global prefs */ /* global sorter */ /* global t */// localization.js 'use strict...
//const gpxParse = require("gpx-parse-alpaca"); import {finishTimeFormat} from './reducers/reducer'; import { DateTime } from 'luxon'; import {inputPaceToSpeed} from "./ui/ridingPace"; import {getPowerOrVelocity} from "./windUtils"; import {setMinMaxCoords} from "./actions/actions"; const kmToMiles = 0.62137; /** Be...
/* eslint-disable */ import { useState, useEffect, useRef } from "react"; import axios from "../connection/requester"; // components import Button from "../components/Button"; import PBar from "../components/PBar" // api import { shop } from "../apis"; // css import "../css/ShopCore.css"; // img import marker1 fro...
// Plotting functions var groupInfo = {}; // populated by setup.js var Ocean_color = "#81a6d3"; var Ferns_color = "#afa393"; var Tree_color = "#568e14"; var Trees_color = Tree_color; var Herbs_color = "#ff7f50"; var Unkown_color = "#FF4400"; var groupColors = { "TRSH": Trees_color, "HERB": Herbs_color, "VACR": Fern...
var lastSubmitInput= []; var lastSubmitFilters= []; var variables = new Set(); var dataSet = []; var myTable; function show_filter() { var filter_type = document.getElementById("filter_type").value; console.log("Filter Type = "+filter_type); document.getElementById("filter_value_show").style.display = 'none'; ...
import { mc, PREFIX, MISC_PREFIX, CHAT_PREFIX, GUI_PREFIX, ITEM_PREFIX, ADVANCE_PREFIX, BP, C08PacketPlayerBlockPlacement, C09PacketHeldItemChange, C0APacketAnimation, playerESP, DiscordRPC, DiscordRichPresence, DiscordEventHandlers, ghostBlockExclude, ...
/* Copyright (c) 2012, 2014, Oracle and/or its affiliates. All rights reserved. This program is 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; version 2 of the License. This program is distributed in the ...
import { fromJS, Map as Map$1, Set, List } from 'immutable'; import localForage from 'localforage'; import zipObject from 'lodash/zipObject'; import curry from 'lodash/curry'; import flow from 'lodash/flow'; import isString from 'lodash/isString'; import _get from 'lodash/get'; function _extendableBuiltin(cls) { fun...
/** * 百度地图 */ import BMap from 'BMap' import { GetGridList, GetGridInfo, GetGridStatic } from '@/modules/grid/api/index' import transCoords from '@/utils/gps' import { getColorByIndex } from '@/utils/color' import gridImg from '@/modules/grid/images/community/grid.png' import gridActiveImg from '@/modules/grid/images...
#! /usr/bin/env node require('dotenv').config() console.log('Running seed'); const async = require('async') const Food = require('./models/food') const User = require('./models/user') const Cart = require('./models/cart') const Order = require('./models/order') const Favorite = require('./models/favorite') const bcryp...
/* Att göra: Sortera hitpoints efter tidskod när man ändrar Ändra så att beatet visas i förhållande till hitpoint Sent beat hamnar till höger om mitten (tvärt om mot nu) */ var projectID = 0; var mxOffsetFrames = 3; var acceptableRange = {}; acceptableRange.beforeFrames = -2; acceptableRange.afterFrames ...
/* --------------------------- ---------- VARS ----------- --------------------------- */ // module settings overlay animation duration var animationTime = 1000; /* --------------------------- ----- LOGIN / SIGN-UP ----- --------------------------- */ // toggles login form $('#login-form-link').click(function(e) { ...
// ----------------------- var _download_file = function (data, filename, type) { var a = document.createElement("a"), file = new Blob([data], {type: type}); if (window.navigator.msSaveOrOpenBlob) // IE10+ window.navigator.msSaveOrOpenBlob(file, filename); else { // Others var url ...
let mapUI = (function () { let vertexRadius = 6; let edgeWidth = 5; /** * populate the base map based on the map object */ function initializeGame() { //initialize map generateHexDivs(); generateVertices(); positionMap(); placeHarbors(); putFish...
const QuadShaderCanvas = require('./quadShaderCanvas.js'); const StateTransformer = require('./StateTransformer.js'); const CaveGenerator = require('./caveGenerator.js'); const AppState = require('./appState.js'); const Util = require('./util.js'); const Events = require('./events.js'); const EvolveAid = require('./evo...
import {DraftBotBackup} from "./backup/DraftBotBackup"; import {Constants} from "./Constants"; import Entity from "./models/Entity"; import Player from "./models/Player"; import InventorySlot from "./models/InventorySlot"; import InventoryInfo from "./models/InventoryInfo"; import PetEntity from "./models/PetEntity"; i...
function Enno() { this.source = null; this.sourceListing = null; this.sourceConfig = null; this.sourceConfigReverse = null; this.sampleID = null; this.sample = null; this.container = document.getElementById('sample-container'); this.connectionMapping = {}; var that = this; // ...
// https://material.io/design/navigation/navigation-transitions.html import { nextTick } from '../dom'; /** * @param {string} px * @return {number} */ function pxToInteger(px) { if (!px) { return 0; } return parseInt(px, 10); } /** * @param {string} stringValue * @param {number} scaleX * @param {numb...
var app = require('express')(); var http = require('http').createServer(app); var io = require('socket.io')(http,{path: '/octagon/socket.io'}); var mysql = require('mysql'); const util=require('util'); const RiveScript = require('rivescript'); Promise.prototype.isPending = function(){ return util.inspect(this).index...
// Upsert new lead data into Close.io 'use strict'; if (process.argv.length !== 5) { log("Usage: node <script> <Close.io API key> <Intercom 'App ID:API key'> <mongo connection Url>"); process.exit(); } // TODO: Test multiple contacts // TODO: Support multiple emails for the same contact (i.e diff trial and coco e...
export const allGodFamily = [{ value: 'Series00', label: '无系列' }, { value: 'Series01', label: '启程伴侣' }, { value: 'Series02', label: '主角光环' }, { value: 'Series03', label: '模型工厂' }, { value: 'Series04', label: 'KLK' }, { value: 'Series05', label: 'BR' }, { value: 'Serie...
var atlasRawClasses = [1,2,3,4,6,7,8,9,10,11,12,13,14,15,21,22,23,24,25,27,28,29,31,32,78,99] /* Load and export Atlas images and collection */ // Import Atlas Images and collection. We've changed the preferred names since this. var atlasV1_2000 = ee.Image('users/svangordon/walt2000') var atlasV1_2013 = ee.Image('us...
"use strict" import * as CanvasUtils from "../util/canvas-utils" import * as Point2d from "../core/point2d" import BaseShape from "../shapes/base-shape" import BasicStyle from "../style/basic-style" import { bindAll } from "../util/utils" import Camera2d from "../view/camera2d" import EventHander from "../util/event-h...
/* old precedence -1 = rubbish 0 = comma 1 = number 2 = variable (should have the same precedence as number, but the value indicates its type 3 = + - 4 = / * 5 = ^ 6 = unary minus when a minus follows an infix operator, an open paren, or comes at the beginning of the input, it should be considered unary. 7 ...