text
stringlengths
5.97k
41.2k
/* flower_core.js v1.0 Flower core class part of the CASH Music Flower code more information/downloads available at: http://cashmusic.org/tools/ revisions: + 1.0: initial release requires: + mootools v 1.2.4 distributed under a BSD license, terms: Copyright (c) 2010, CASH Music All rights reserved. Redistributi...
$( document ).ready(function() { cargarEmpresas(); cargarUsuarios(); cargarComponentes(); }); var arrayEmpresa = []; var arrayEmpresaNombre = []; var arrayBus = []; var arrayUser = []; var arrayKit = []; var arrayComponente = []; var tablaComponentes; var barra = 'TX1'; function cargarEmpresas(){ var ...
'use strict'; var utils = require('./utils.js'); // Creates property that is immutable function defineFrozen(object, name, value) { var frozen = JSON.stringify(value); Object.defineProperty(object, name, { enumerable: true, get: function() { return JSON.parse(frozen); } }); } // getKeys([...
/************************************************** ******** DISPLAY FUNCTIONS ********* **************************************************/ function toggleElement(id){ var element = document.getElementById(id); if (element.style.display === "none") { element.style.display = "inline-block"; }...
const loggly = new LogglyTracker(); loggly.push({ logglyKey: 'c5cb1f4e-0af5-459d-8e74-dd390ae4215d', sendConsoleErrors: true, tag: 'mes-stats', }); log('start'); const { from, fromEvent, merge, combineLatest, timer, BehaviorSubject, Subject, } = rxjs; const { tap, map, mapTo, exhaustMap, ...
import { STATE_ADD_DIFFERENTIAL } from './display.js'; import { rowToKaTeX, rowToLaTeX, matrixToKaTeX, vecToName, KATEX_ARGS, } from './utils.js'; import { MIN_PAGE } from './sseq.js'; class InputRow extends HTMLElement { static attributeMap = { label: ['label', 'innerHTML'], ty...
import AST from "./AST"; const errorRepairVar = Symbol("repairVar"); export default class CFGmatcher { constructor(grammar, input) { // Store the grammar this.grammar = grammar; // Enables debug messages this.debug = true; // Create variables used for the AST construction ...
import { Kind, isObjectType, isUnionType, isInterfaceType, SchemaMetaFieldDef, TypeMetaFieldDef, isListType, isNonNullType, isTypeSubTypeOf, } from 'graphql'; import { getPossibleTypes, separateSelectionSet, getFieldNodeNameValue, DeclarationBlock, mergeSelectionSets, hasConditionalDirectives, } from './utils'; import ...
/* eslint-disable eqeqeq */ /* eslint-disable no-undef */ /* eslint-disable default-case */ /** * **ICraft** * * @author NriotHrreion * @license MIT */ /** @enum {PlayerDirection} */ var PlayerDirection = { LEFT: 0, RIGHT: 1 }; var DayTime = { DAY: 0, NIGHT: 1 }; class ICra...
import React, { useState, useEffect, useRef } from "react"; import Layout from "../components/layout" import Head from '../components/head'; import { graphql } from "gatsby" import { Container, Row, Col, Button, Carousel, Modal } from "react-bootstrap" import { slugify, dateFormat, chunkArray} from "../libs/helpers";...
/* * Scroll the pager when scrolling horizontally */ $(window).scroll(function(){ $('.ui-jqgrid-pager').css({ 'left': $(this).scrollLeft() }); }); var conditionid=1; function checkbounces() { $("#dialog-modal").dialog('open'); $('#dialog-modal').html('<p><img style="margin-top:42px" src="'+imag...
// Import the data types for manipulating coin stuff import { RealBadCoinTransfer, RealBadNftMint, RealBadNftTransfer, RealBadTransaction, RealBadBlock } from './RealBadCoin'; import { RealBadCache, RealBadInvalidTransaction, RealBadLedgerState, } from './RealBadState'; import * as ed ...
const remote = require('electron').remote; const app = remote.app; var users = {}; var user_sprites = {} var player = ""; var world = {}; var synced = {}; var sprites; var tile_group; var CHARACTER_MODELS = [ //"assets/white-character.png", //"assets/red-character.png", //"assets/blue-character.png", //"assets/g...
$(document).on("keydown", "form", function(event) { "use strict"; return event.key != "Enter"; }); var loadFile = function(event) { 'use strict'; var output = document.getElementById('output'); output.src = URL.createObjectURL(event.target.files[0]); }; $('.btnPrevious').click(function(){ ...
const { ipcRenderer } = require('electron') const ref = require('ref-napi'); const path = require('path'); const process = require("process"); const cconv = require('color-convert'); import gegl from './ffi/gegl'; import RasterImage from './rasterlib/image'; import RasterLayer from './rasterlib/layer'; import LayerGro...
export const blockLen = 16; let massiveBlob = []; let globalIndex = 0; async function encryptAsync(iv, secret) { const key = new TextEncoder('utf-8').encode('key key key keyy'); // TODO: need to do a looooot more error handling const cryptoKey = await window.crypto.subtle.importKey( 'raw', key, { ...
var status = 0; //被選擇的裝備列表 var selectedList = Array(); //筛选后的背包裝備列表 var newItemList = Array(); var itemBorder = "#fUI/UIWindow.img/Item/New/inventory/0#"; var itemMaster = "#fUI/UIWindow.img/Item/activeExpChairIcon#" var itemIcon = "#fUI/Basic.img/Cursor/16/0#"; var cubeIcon = "#fUI/Basic.img/Cursor/16/0#"; var numArr ...
import React from 'react'; class Mttw extends React.Component{ componentDidMount(){ //set styles var allLines = document.getElementById('svg-container').getElementsByTagName('line'); for(var t of allLines){ t.setAttribute('stroke',"#2975d9"); t.setAttribute('str...
import logger from 'winston' import makeDebug from 'debug' import _ from 'lodash' import dot from 'dot-object' import moment from 'moment' import errors from '@feathersjs/errors' import { Grid } from 'weacast-core' const debug = makeDebug('weacast:weacast-probe:service') const debugResults = makeDebug('weacas...
import PropTypes from 'prop-types'; import React from 'react'; import { Animated, Platform, View, Dimensions } from 'react-native'; import ActionSheet from '@expo/react-native-action-sheet'; import moment from 'moment'; import uuid from 'uuid'; import * as utils from './utils'; import Actions from './Actions'; import A...
/** * Things related to the time vs height plots */ import { eq_to_geo, deg_to_hms, fractional_hours, calculate_rise_set } from "./tools.js"; export function draw_visibility_plot( canvas, back_canvas, dso, lat_lon, threshold_alt, year, min_hs, max_hs ) { let ctx =...
import React, {PureComponent} from 'react'; import {Table, Card, Popconfirm, Layout, message, Modal, Button, Tooltip} from 'antd'; import PageHeaderLayout from '../../../layouts/PageHeaderLayout'; import Search from './Search' import Pagination from './../../../components/Pagination/Index' import Sider from './../Sider...
'use strict'; function makePrice(points, price) { const len = points.length; price.push(points[0][1]); if (len === 2) { price.push(points[1][1]); } else { let i = 1; for (; i < len - 2; i += 1) { price.push(points[i][1]); } price.push(points[i][1], points[i + 1][1]); } } // modify ...
import { Attachment, Attribute, Axes, BindGroup, BindGroupLayout, Buffer, Clock, Command, Context, GPUShaderStage, Pass, Pipeline, Shaders, State, Struct, Uniform, Variable, WGSLBuiltIn, } from "../lib/index.js"; import { mat4 } from "gl-matrix"; import interleaveTypedArray from "in...
"use strict"; var remote = require('remote') const electron = remote.require('electron'); // Module to control application life. const app = electron.app; const clipboard = electron.clipboard; var fs = require('fs') var url = require('url'); var http = require('http'); const https = require('https'); var Menu = remote...
import React, {useState, useEffect, useMemo} from 'react'; import { Button, Card, Checkbox, Form, Input, message, Select, Space, Table, Tabs } from 'antd'; import Column from 'antd/lib/table/Column'; import {productAttrCateServices} from 'services/productAttrCate' import {productAttrServices} from 'services/productAttr...
// ******************************************************** // Provides a JQuery wrapper to initialize Drop zones // JQuery dropzone object is linked to a UIControler object // that manages dialog // some helper functcions function log(msg) { if (window.console) { //console.log(msg); } } function logError(ms...
/* eslint-disable */ import React, { PureComponent } from 'react'; import { Segment, Button, Modal, Loader } from 'semantic-ui-react'; import { graphql } from 'react-apollo'; import { compose } from 'recompose'; import PropTypes from 'prop-types'; import { fromJS } from 'immutable'; import gql from 'graphql-tag'; impor...
// Curveship-js version 0.2.0 // Copyright 2019 <NAME> // // Copying and distribution of this file, with or without modification, // are permitted in any medium without royalty provided the copyright // notice and this notice are preserved. This file is offered as-is, // without any warranty. // // Curveship-js is a p...
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////// HELPERS function handleReponse(response, cbOnSuccess, cbOnFailure){ if([200, 201].includes(response.status)) { return cbOnSuccess(response) }else { retu...
// Copyright (c) 2017 <NAME>, ZL/KF6VO var nt = { ext_name: 'navtex', // NB: must match navtex.c:navtex_ext.name first_time: true, lhs: 150, tw: 1024, th: 200, x: 0, last_y: [], n_menu: 5, menu0: -1, menu1: -1, menu2: -1, menu3: -1, menu4: -1,...
import React from 'react'; import _get from 'lodash/get'; import _isNil from 'lodash/isNil'; import _flowRight from 'lodash/flowRight'; import _includes from 'lodash/includes'; import Grid from '@material-ui/core/Grid'; import * as Yup from 'yup'; import PropTypes from 'prop-types'; import { Formik, Form, FieldArray } ...
import * as React from 'react' import Link from 'next/link' import { Layout, Breadcrumb, Button, Table, Tabs, Card, Form, Input, Upload, Modal, Select, Icon, Tag, message, notification } from 'antd'; import styled from 'styled-components'; import FirebaseProvider from '../lib/FirebaseProvider'; import createCompany fro...
$(document).ready(function() { var activity_id = getParameterByName('id'); // get activity record as json file and load data into input form $.getJSON(urlActivitySelect + "?id=" + activity_id,function(data){ $.each(data, function(i,data){ addHiddenFields(data); addPri...
const scanIP = require('evilscan'); const CronJob = require('cron').CronJob; const udp = require('dgram'); const path = require('path'); const join = path.join; const io = require('socket.io-client'); const {exec} = require('child_process'); const FFplay = require('ffplay'); const fs = require('fs-extra'); const _ = re...
const checkAside = document.querySelector("input.none"); const openAsideBtn = document.querySelector("#openSideBar"); const asideButton = document.querySelector(".nav-top-expand"); const searchReposInput = document.getElementById("searchInputId"); function gerarID() { // Math.random should be unique because of its ...
'use strict'; var path = require('path'); var fs = require('fs-extra'); var http = require('http'); var https = require('https'); var logger = require('@cantinc/logger'); var chalk = require('chalk'); var util = require('util'); var rollup = require('rollup'); var commonjs = require('@rollup/plugin-commonjs'); var plu...
import loadable from '@loadable/component'; import { Button, Grid, Paper, TextField, Typography } from '@material-ui/core'; import { DrawerProvider } from 'common/contexts/DrawerContext'; import { saasModernTheme } from 'common/theme/saasModern'; import { BannerWrapper } from 'containers/SaasModern/Icarus/banner.style'...
const tensorUtils = require('./tensorUtils'); const generalUtils = require('./generalUtils'); const arithmeticFnBuilder = require('./arithmeticFnBuilder'); const { ShapeError } = require('./errors'); //here `i` refers to index into the `data`, whereas //`j` refers to canonical index of the element, as if //this had de...
import Vue from 'vue' import Router from 'vue-router' // Containers const TheContainer = () => import('@/containers/TheContainer') // Views const Dashboard = () => import('@/views/Dashboard') const Colors = () => import('@/views/theme/Colors') const Typography = () => import('@/views/theme/Typography') const Charts...
const C3PO = require('./C3PO'); const R2D2 = require('./R2-D2'); const USA = require('./USA'); const ackbar = require('./ackbar'); const apertureblank = require('./aperture-blank'); const aperture = require('./aperture'); const armadillo = require('./armadillo'); const atat = require('./atat'); const atom = require('./...
// Sources: // https://stackoverflow.com/questions/39479090/read-n-lines-of-a-big-text-file // https://flask.palletsprojects.com/en/1.1.x/patterns/jquery/ // https://stackoverflow.com/questions/6831918/node-js-read-a-text-file-into-an-array-each-line-an-item-in-the-array/12299566 // https://stackoverflow.com/questions/...
//hIJTUbDjDsYAHwRbJen81_1KEs Honolulu place id var map; var service; //places search service var geocoder; var departing = [ //holds info of the departing city {city: ""}, {marker: ""} ]; var flightArray = []; var flightDest = [ //temp hardcoded destinations, change to //include multiple object, indexed and...
/* jshint esversion: 6 */ // Solve the following prompts using recursion. // 1. Calculate the factorial of a number. The factorial of a non-negative integer n, // denoted by n!, is the product of all positive integers less than or equal to n. // Example: 5! = 5 x 4 x 3 x 2 x 1 = 120 // factorial(5); // 120 var factor...
//============================================================================= // // File: /node_modules/rwt-nested-menu/rwt-nested-menu.js // Language: ECMAScript 2015 // Copyright: Read Write Tools © 2020 // License: MIT // Initial date: Aug 22, 2020 // Purpose: Nested navigation menu with t...
"use strict"; var canvas; var gl; var numVertices = 36; var numChecks = 8; var program; var c; var flag = true; var phoFlag = true; var pointsArray = []; var normalsArray = []; var texCoordsArray = []; // modelView parameters var modelViewMatrix, modelViewMatrixLoc; const at = vec3(0.0, 0.0, 0.0); const up = v...
var mHomeLoop = setInterval(mainHomeLoop, 2); var targetBibOffset = -10.00000; var targetBibOpac = 1; var bibOffsetChaseSpeed = 8.00000; var bibOpacChaseSpeed = 15.00000; var bibHoverColor = "rgb(75,75,75)"; var Alson = document.getElementById("Alson"); var Autumn = document.getElementById("Autumn"); var Cassandra =...
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.hasOwnProperty(p)) d[p] =...
var textContain = require('../../contain/text'); var util = require('../../core/util'); var roundRectHelper = require('./roundRect'); var imageHelper = require('./image'); var retrieve3 = util.retrieve3; var retrieve2 = util.retrieve2; // TODO: Have not support 'start', 'end' yet. va...
import * as React from "react"; import RunTaskModal from "./RunTaskModal"; import EditActionModal from "./EditActionModal"; import SaveModal from "./SaveModal"; import OpenTaskModal from "./OpenTaskModal"; import TaskSettings from "./TaskSettings"; import ImportTaskModal from "./ImportTaskModal"; class MainApp extends...
/** * Scalar * Copyright 2013 The Alliance for Networking Visual Culture. * http://scalar.usc.edu/scalar * <EMAIL> * * Licensed under the Educational Community 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 ...
var EightShapes = EightShapes || {}; EightShapes.ContrastGrid = function() { 'use strict'; var $updateButton, $grid, $gridContent, $foregroundKey, $foregroundKeyCellTemplate, $contentRowTemplate, $contentCellTemplate, $backgroundKey, showLabelsOnC...
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import withStyles from 'isomorphic-style-loader/withStyles'; import { defineMessages, FormattedMessage } from 'react-intl'; import { updateUser, fetchUser, fetchProfileData, loadMessages, deleteUser, } from '...
/* xbCollapsibleLists.js 2001-02-26 Contributor(s): <NAME>, Netscape Communications, Copyright 1997 <NAME>, Netscape Communications, Copyright 2001 <NAME>, Macrobyte Resources, Copyright 2001 <NAME>, Amdahl IT Services, Copyright 2002 Netscape grants you...
const fs = require("fs"); const finder = require("./finder.js"); const csvParse = require("csv-load-sync"); const API_LIMIT_EXCEPTION = { apiLimitException: 1, }; const noResolvePath = { rel: function (dirname, rel) { return "./" + rel; }, abs: function (rel) { return rel; }, }; function poorsolutio...
var rowNum = 1; var rowRemovedNum; var rowRemovedContents; var apiprefix = "./mm"; $('tr.editRow').addClass('even'); $.ajaxSetup({ contentType: "application/json; charset=utf-8", dataType: "json" }); $(document).ready(function () { $('#match').click(function () { ...
function replaceSectionsWithDivs () { const sections = document.querySelector('article').querySelectorAll('section') let div for (var i = sections.length - 1; i >= 0; i--) { div = document.createElement('div') div.innerHTML = sections[i].innerHTML sections[i].parentNode.replaceChild(div, sections[i]) ...
/* * monitor.js: Core functionality for the Monitor object. * * (C) 2010 <NAME> & the Contributors * MIT LICENCE * */ const fs = require('fs'); const path = require('path'); const child_process = require('child_process'); const events = require('eventemitter2'); const spawn = child_process.spawn; const common = ...
$.ajaxSetup({cache: false, dataType: "text"}); $(document).on('click', 'a', function (e) { e.preventDefault(); if (!window.open($(this).attr('href'), '_blank')) { alert('Please allow popups for this site'); } }); $('.btn input').click(function (e) { e.stopPropagation(); }); var tm = new Trace...
/* CSCN - Created with jsPsychMaker: https://github.com/gorkang/jsPsychMaker */ questions = ( typeof questions != 'undefined' && questions instanceof Array ) ? questions : []; questions.push( check_fullscreen('PBS') ); PBS = []; //temporal timeline var instruction_screen_experiment = { type: 'instructions', ...
/** * DevExtreme (ui/popover.js) * Version: 18.2.5 * Build date: Wed Jan 23 2019 * * Copyright (c) 2012 - 2019 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ */ "use strict"; var _typeof = "function" === typeof Symbol && "symbol" =...
/* -*- Mode: js; js-indent-level: 2; indent-tabs-mode: nil; tab-width: 2 -*- */ /* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */ /* * Copyright 2013 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the Lic...
var createTextGeometry = require('three-bmfont-text'); var loadBMFont = require('load-bmfont'); var registerComponent = require('../core/component').registerComponent; var coreShader = require('../core/shader'); var THREE = require('../lib/three'); var utils = require('../utils/'); var error = utils.debug('components...
import React,{useState,useEffect,useRef} from 'react' import {createStackNavigator} from '@react-navigation/stack'; import {AuthContext} from '../contexts/AuthContext'; import HomeScreen from '../screens/HomeScreen'; import EditProfile from '../screens/EditProfile'; import Profile from '../screens/Profile'; import Noti...
"use strict"; const { app, BrowserWindow, screen, Menu, Tray, ipcMain, dialog, powerSaveBlocker } = require("electron"), pewsm = require("./utils/pews"), pews = new pewsm(), timeformat = require("./utils/timeformat"), path = { local: require('os').homedir() + "\\AppData\\Local\\swavecountdown" }, calc =...
/* Keyboard Map*/ var keyboardMap = [ "", // [0] "", // [1] "", // [2] "CANCEL", // [3] "", // [4] "", // [5] "HELP", // [6] "", // [7] "BACK_SPACE", // [8] "TAB", // [9] "", // [10] "", // [11] "CLEAR", // [12] "ENTER", // [13] "ENTER_SPECIAL", // [14] ...
/** * Main worker entry point. Looks for font requests that are being proxied and * requests for HTML content. All major browsers explicitly send an accept: text/html * for navigational requests and the fallback is to just pass the request through * unmodified (safe). */ addEventListener("fetch", event => { // F...
/** * * *** Deprecated- do not use. Use ./index.js instead. *** * * Lambda function for OpenAg Personal Food Computer control and status triggred by Alexa. * * For details see https://github.com/goruck. * * Copyright (c) 2017 <NAME> */ // Route the incoming request based on type (LaunchRequest, IntentReques...
// Set both the field and cookie. Generally this should only be // called once per new user site useage. This is because our init on // site page load checks for the user cookie and sets the field // function setUser (u) { $('user').setValue(u); setCookie("user", u, 365); } // Setup a basic GreyBox window....
var c = document.getElementById("myCanvas"); var ctx = c.getContext("2d"); var tapped = false; var canvas = $("#myCanvas"); var canvasOffset = canvas.offset(); var offsetX = canvasOffset.left; var offsetY = canvasOffset.top; var scrollX = canvas.scrollLeft(); var scrollY ...
import _ from 'lodash'; import { Container } from 'aurelia-dependency-injection'; import { json } from 'aurelia-fetch-client'; import { Config } from './config'; /** * Collection class. A collection of models that are * related to a backend data store and accessible through REST API. */ export class Collection { ...
'use strict'; const fs = require('fs'); const dree = require('dree'); const mime = require('mime'); const { join } = require('path'); const chokidar = require('chokidar'); const { debounce, merge } = require('barrkeep/utils'); const defaults = { stat: false, normalize: false, followLinks: true, size: false, ...
// OpenVidu variables var OV; var session; var publisher; // Application variables var role = 'MODERATOR'; // ['SUBSCRIBER', 'PUBLISHER', 'MODERATOR'] var selectedStreamManager; // Our Publisher or any Subscriber (see https://openvidu.io/api/openvidu-browser/classes/streammanager.html) /* OPENVIDU METHODS */ fun...
'use strict'; const fs = require('fs'); const fse = require('fs-extra'); const path = require('path'); const root = require('window-or-global'); const stringSimilarity = require('string-similarity'); const { createCanvas, loadImage } = require('canvas'); const sizeOf = require('image-size'); const Jimp = require('jimp...
var sitexml = require('../sitexml') var test = require('mztest'); sitexml.setPath('tests') console.log(sitexml.path, sitexml.filename) //initial test(function(t){ t.is(typeof sitexml, "object", 'Is Object'); t.is(typeof sitexml.processor, "object", 'processor Is Object'); }) //init test(function(t){ var sitexm...
//const notify = require('bootstrap-notify'); const strings= { s1: '이용 가능한 시간은 한국시간 9PM이나 미국 동부시간 11PM부터 10분간 입니다', s2: '새로 저장하실 이메일을 입력해주세요', s3: '새로 입력하신 이메일이 이미 저장되어 있는 이메일과 같습니다', s4: '이메일이 변경되었습니다!', s5: 'Please allow access to the Camera and Microphone and try publishing again.', s6: 'Err...
var inicio2; var fin2; var mapita2; var mapita3; var mapa2; var arr_markers2 = []; var array_datos = []; var contador = 1; var nodos_enlaces = []; var nodos = []; var array_all_nodos = []; var arreglo_rutas; var position_A = 0; var bandera = 0; var inicializar = 0; var puntos_optimos; var route_optimal = []; var direct...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.__RewireAPI__ = exports.__ResetDependency__ = exports.__set__ = exports.__Rewire__ = exports.__GetDependency__ = exports.__get__ = undefined; var _isExtensible = require('babel-runtime/core-js/object/is-extensible'); var _isExte...
/*global describe, it*/ var should; if (typeof require !== "undefined") { should = require("should"); var serialijse = require("../"); } var serialize = serialijse.serialize; var deserialize = serialijse.deserialize; var declarePersistable = serialijse.declarePersistable; var serializeZ = serialijse.serializeZ...
let MapManager; let EditorMode = Object.freeze({ 'READING': 0, 'ADD_POI': 1, 'TRACK_EDIT': 2, 'POI_EDIT': 3, properties: { 0: {name: 'READING', value: 0}, 1: {name: 'ADD_POI', value: 1}, 2: {name: 'TRACK_EDIT', value: 2}, 3: {name: 'POI_EDIT', value: 3} } }); if (typeof(document.getElement...
var listGeocode; var objGeoCode; var TeamId; function GetTeamId() { $.ajax({ type: 'POST', data: '', contentType: 'application/json', url: "/cms/getTeamId", data: TeamId, success: function (data) { TeamId = data; setMenu(TeamId, 'unitboard'); } }); } GetTeamId(); var makeChart = function (selecto...
// Returns a random integer between min (included) and max (excluded) // Using Math.round() will give you a non-uniform distribution! function getRandomInt(min, max) { return Math.floor(Math.random() * (max - min)) + min; } function fillArray(value, len) { var arr = []; for (var i = 0; i < len; i++) { arr.pu...
'use strict'; process.env.NODE_ENV = 'test'; //before every other instruction console.log("Starting with NODE_ENV=" + process.env.NODE_ENV); console.log("process.env.CI is " + process.env.CI); if(!process.env.CI) { console.log("Initializing dotenv (requires .env file)") //to be able to use generateJwt I must impor...
/** * @name codsen-parser * @fileoverview Parser aiming at broken or mixed code, especially HTML & CSS * @version 0.10.13 * @author <NAME>, Codsen Ltd * @license MIT * {@link https://codsen.com/os/codsen-parser/} */ 'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var _objectSpread...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; import AddSignals from './AddSignals'; import CanGraphList from './CanGraphList'; import RouteVideoSync from './RouteVideoSync'; import CanLog from './CanLog'; import Entries from '../models/can/entries'; import...
/*var $checkableTree = $('#treeview-checkable').treeview({ data: defaultData, showIcon: false, showCheckbox: true, onNodeSelected:function(event,node){ updatePrivilege(node); }, onNodeChecked: function(event, node) { parentCheckedWithChil...
import choc, {set_content, DOM, on} from "https://rosuav.github.io/shed/chocfactory.js"; const {A, BR, BUTTON, CODE, DIV, FIELDSET, LEGEND, LABEL, INPUT, TEXTAREA, OPTION, OPTGROUP, SELECT, TABLE, TR, TH, TD} = choc; import update_display from "$$static||monitor.js$$"; import {waitlate} from "$$static||utils.js$$"; co...
import * as wasm from "wasm-engine"; import * as THREE from 'three'; import * as uplot from 'uplot'; import 'uplot/dist/uPlot.min.css'; import THREE_default_font_json from 'three/examples/fonts/helvetiker_bold.typeface.json'; export const width = 600; export const height = 400; const color_map = { "susceptible": 0x...
'use strict'; import React from 'react'; import styles from './ImportPage.module.css'; import nav from "../nav"; import _ from "../underscore_ext"; import { Input, Button, Dropdown, ProgressBar, RadioGroup, RadioButton } from 'react-toolbox/lib'; import DefaultServers from "../defaultServers"; const { servers: { loca...
/* * Copyright 2014, <NAME>. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditions a...
var interval; const client = new ApiClient(); const UICtrl = (function(client){ // ========================================================= Internal Variables const domSelectors = { messageTd: "td#message", pollStatImg: "img#poll_img_pic", serverStatImg: "img#server_img_pic", bannerHeading: "di...
/* eslint no-underscore-dangle: "off" */ import PropTypes from 'prop-types' import React from 'react' import classNames from 'classnames' import { loopAllChildren, isInclude, getOffset, filterParentPosition, handleCheckState, getCheck, getStrictlyValue, arraysEqual, } from './util' const DRAG_EXPAND_D...
// Setup ================================================= // ======================================================= const setup = require('./bot-setup.js'); const responses = require('./responses.js'); const Botkit = require('botkit'); const SpotifyWebApi = require...
const BOARD_WIDTH = 8; const BOARD_HEIGHT = 8; const TILE_SIZE = 50; const WHITE_TILE_COLOR = "rgb(255, 228, 196)"; const BLACK_TILE_COLOR = "rgb(206, 162, 128)"; const HIGHLIGHT_COLOR = "rgb(75, 175, 75)"; const WHITE = 0; const BLACK = 1; const EMPTY = -1; const PAWN = 0; const KNIGHT = 1; const BISHOP = 2; const R...
// Init // init renderer var renderer = new THREE.WebGLRenderer( { antialias: true } ); renderer.setClearColor( new THREE.Color( 'white' ), 1 ) renderer.setSize( window.innerWidth, window.innerHeight ); document.body.appendChild( renderer.domElement ); // gamepad vars var hasPressedA = false; var timePressedA = ...
const ethers = require("ethers"); const { CHAIN_ID, PUNK_ADDRESS, MAX_PUNKS, MAX_PRESALE_PUNKS, BASE_GAS_FEE, } = require("../constants"); const { providerHelper } = require("../helper"); const {getReferral} = require("../../referralLink"); let punk, totalSupply, punkPrice, punkPriceDiscounted, maxPu...
import { html, css, LitElement } from 'lit-element'; import { repeat } from 'lit-html/directives/repeat'; // prettier-ignore const getLocalTime = (time) => time.toLocaleString('en-US', { hour: 'numeric', minute: 'numeric', hour12: true }); // prettier-ignore const getWeekDay = index => ['Sunday', 'Monday', 'Tuesday', ...
// This file is required by the index.html file and will // be executed in the renderer process for that window. // No Node.js APIs are available in this process because // `nodeIntegration` is turned off. Use `preload.js` to // selectively enable features needed in the rendering // process. const minimatch = require(...
/* * Copyright 2009, Google Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditio...
/** * This background page handles the sending requests and dealing with responses. * Passes are exchanged with the server containing blinded tokens for bypassing CAPTCHAs. * Control flow is handled in the listeners. Cryptography uses SJCL. * * @author: <NAME> * @author: <NAME> */ /* exported handleCompletion *...