text
stringlengths
3.22k
29.5k
import geometryUtils from '../../utils/geometry'; export class Polygon { constructor() { this.flat = []; this.holes = []; this.clipped = []; this.clippedType = []; // Store a bitmask of the clipped half-planes } } export function decodeLines(geometries, mvt_extent) { let dec...
"use strict"; /** * @file manager.ts * @author <NAME> */ Object.defineProperty(exports, "__esModule", { value: true }); const es6_promise_1 = require("es6-promise"); const dfdb_1 = require("dfdb"); const auth_token_1 = require("./auth-token"); const delete_1 = require("./delete"); const get_1 = require("./get"); con...
import React, { Component,Fragment} from 'react'; import { Icon } from 'antd'; import xxdStyle from './ProductScreen.less'; class ProductScreen extends Component { constructor(props) { super(props); this.seriesRef=React.createRef(); this.trendIndexSelectDelete=React.createRef(); this.seriesListRef=Re...
import React, {useState, useEffect, useMemo, forwardRef, useRef, useCallback} from 'react'; import {getParams, stringifyParams, url, isObj, isFunc, isString, propsChanged} from '@iosio/util'; export {getParams, stringifyParams, url} export const usePrevious = (value) => { const ref = useRef(value); useEffect(...
import React from 'react'; import { StyleSheet,AsyncStorage,Text, View,} from 'react-native'; import * as firebase from 'firebase'; import {Container, Form, Item, Label,Input,Button } from 'native-base'; import { Permissions, Notifications } from 'expo'; // Initialize Firebase var config = { apiKey: "<KEY>", authDo...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _debug = require('debug'); var _debug2 = _interopRequireDefault(_debug); var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _reactDom = require('react-dom'); var _reactDom2 = _interopRequireDefault(_r...
/*! @file kn_chatlet.js PubSub Chatlet Component * <pre> * &lt;script src="../../js/kn_config.js" type="text/javascript"&gt;&lt;/script&gt; * &lt;script src="../../js/kn_browser.js" type="text/javascript"&gt;&lt;/script&gt; * <b>&lt;script type="text/javascript"&gt; * kn_include("kn_chatlet"); * &lt;/script&gt;</...
'use strict'; const SerializationContext = require('./serialization-context.js'); const reprs = require('./reprs.js'); const Hash = require('./hash.js'); const STable = require('./sixmodel.js').STable; const repr = new reprs.KnowHOWREPR(); const CodeRef = require('./code-ref.js'); const constants = require('./const...
var compare_obj = function (o1, o2) { if (typeof(o2) != "object") return compare(o1, o2) var comp_key = function(key) { //log('compareing keys', key, o1[key], o2[key]) if (typeof(o1[key]) == "undefined" || typeof(o2[key]) == "undefined") return 2 return compare...
$('#agregarMateria').click(function () { if (validarAux()) { cantidad = parseFloat($('#aux_cantidad').val()) costo = parseFloat($('#aux_costo').val()).toFixed(2) material_id = $('#aux_material').find('option:selected').val() text_material = $('#aux_material').find('option:selected')....
var token = require('./tokenHandler'); var gcal = require('./gcal'); var path = require('path'); var util = require('util'); var Room = require('../models/room'); var Event = require('../models/event'); var that; function wrapGRoom(gcalendar) { return new Room(gcalendar.id, gcalendar.summary); } funct...
// import { login, logout, getInfo } from '@/api/user' import { loginJyc, loginInfo } from '@/api/login' import { getcompanyInfoIdList } from '@/api/member' import { componentsMap } from '@/router/componentsMap' import { getToken, setToken, removeToken } from '@/utils/auth' import { resetRouter, constantRoutes } from...
var fs = require('fs'); var path = require('path'); var utils = require('./build/utils'); var mkjs = require('./build/mkjs'); var mkswf = require('./build/mkswf'); var mkxap = require('./build/mkxap'); var wiki = require('./build/wiki'); var tools = require('./build/tools'); var copyright = [ "/**", " * mOxie - mul...
/************************************************************************************************************************************ Copyright 2017 Autodesk, Inc. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You ...
'use strict' module.exports = HTMLToMarkdown function HTMLToMarkdown (html) { return new Parser().parse(html) } function nothing () {} class Parser { constructor () { this.output = [] this.lineBuffer = '' this.tagBuffer = {} this.accumulatingContent = true this.tags = { a: { st...
function numberWithCommas(x) { var parts = x.toString().split("."); parts[0] = parts[0].replace(/\B(?=(\d{3})+(?!\d))/g, ","); return parts.join(".")+".00"; } function update_currency(id,val){ $.post("update_currency_rate.php", { id: id, val : val }, function(result){ $('#lib_'+id).hide().html(resul...
// Initialize a line chart. Modeled after <NAME>'s // Reusable Chart framework https://bost.ocks.org/mike/chart/ // Based on <NAME>'s margin convention // https://bl.ocks.org/mbostock/3019563 let lineWidth = 500 // when adjusting this number also look at: // style.css .linecharts-holder {width} function linechart()...
import MovePoint from "../surfaces/MovePoint"; import { getRandomizedColor } from '../helpers/helpers'; ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ////////////////////...
const iter = require('itercol'); const compileFilter = require('monjo'); const Index = require('./gindex'); const { ID, TYPE } = require('./common'); class Graph { constructor() { this._vertices = new Map(); this._from = new WeakMap(); this._to = new WeakMap(); this._indices = { [TYPE]: new Index(TYP...
'use strict' const Node = require('node-html-light').Node const Nodes = require('node-html-light').Nodes const Reader = require('../reading/pre-compiling-reader') const Writer = require('../writing/writer') const Parser = require('../parsing/parser2') const Interpolator = require('./interpolator') const createError =...
import React from 'react'; import Dropdown from './MyDropdown'; import CommentPad from './CommentPad'; class GistPaperCard extends React.Component{ constructor(props){ super(props); this.showComment = this.showComment.bind(this); this.checkIfUserLiked = this.checkIfUserLiked.bind(this); this.state ={...
/* ------------------------------------------------------------------ * node-enocean-ble - enocean-ble-telegram-parser.js * * Copyright (c) 2020, <NAME>, All rights reserved. * Released under the MIT license * Date: 2020-09-28 * ---------------------------------------------------------------- */ 'use strict'; const mEn...
"use strict"; var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; ...
/* global riffConfig */ import base64js from 'base64-js'; import { parseStandardURIString, parseURLParams } from '../base/util'; import googleApi from '../google-api/googleApi.web'; import { GOOGLE_EDIT_LINK, MS_API_CONFIGURATION } from './constants/calendarSync'; export const isGoogleCalendarEnabled = () =...
/* eslint-disable no-await-in-loop */ const color = require('ansi-styles'), fs = require('fs'), table3 = require('cli-table3'); // ansi colors const // table color tblclr = (border) => {return cyan(border);}, // normal ansi colors white = (txt) => {return color.whit...
import { Keys, useControllableState, useDocumentListener, useEventCallback } from "../../shared"; import { isFunction, isNil } from "lodash"; import { useCallback, useEffect, useRef } from "react"; function throwWhenMutuallyExclusivePropsAreProvided({ focusTriggerOnShow, focusFirstElementOnKeyboardShow }) { if (fo...
import app from "./app"; import rely from "./oauth2/oauth2rely"; /** * 获取API请求头 * @param apiPath * @param method * @param opts * @param apiRoot * @returns {url: string, method: string, headers: any} */ function getApiFetchOptions( apiPath, method = "GET", opts = {}, apiRoot = null ) { let headers = op...
var Buffer = require('safe-buffer').Buffer const listaNomes = ['<NAME>', '<NAME>', '<NAME>'] const listaTelemoveis = ['+3519138', '+3519139', '+3519139'] var listaNomesCache = [] var listaTelemoveisCache = [] var smsTextTemplate = null function cleanUpSpecialChars (str) { str = str.replace(/[ÀÁÂÃÄÅ]/g, 'A') str = ...
const assert = require('assert'); const mcmc = require('../lib/index.js'); const jsnx = require('jsnetworkx'); describe('mcmc', () => { it('set default correct', () => { var inputValue = mcmc.setDefault({}); assert.equal(inputValue.r, 1); assert.equal(inputValue.T, 0.1); assert.equal(inputValue.numbe...
/*这里是进入界面时初始化的部分*/ { var secs=0;/*时间记录,保留到小数点后两位*/ var floornow=1;/*当前楼层*/ var displayfloornow=1;/*当前楼层*/ var target=1;/*目标楼层*/ var busy=[0,0];/*是否在工作*/ var persons=0;/*人数*/ var froms=[];/*来自楼层*/ var tos=[];/*目的楼层*/ var appears=[];/*出现时间*/ timedCount(); /* elevatormove(1,6); ...
// The latest search results, an array of service endpoints var ses = null; // Used to alternate the coloured rows in a table var selectedColour = ""; /** * Searches for the entered term. Sends an AJAX request. The result of the * request will call resultsTable.displayResults */ function startSearch() { // get sear...
const throws = Object.freeze({ROCK: 0, PAPER: 1, SCISSORS: 2}); const outcomes = Object.freeze({WIN: 0, LOSE: 1, TIE: 2}); const difficulty = Object.freeze({EASY: 0, NORMAL: 1, HARD: 2, IMPOSSIBLE: 3}); let current_diffiiculty = difficulty.NORMAL; let wins = 0; let loses = 0; let ties = 0; // They are only used in har...
"use strict"; var Spec = require('./Spec'); /** An array of op ids in a compressed form. * Using an array of base64 strings is a bit too wasteful sometimes. * This one employs heuristics to compress base64 ids into variable-length * Unicode "x-plets". Is supposed to compress Text state especially well * as lo...
//*****GL INITIALIZATION CODE*****// function initGL(canvas) { try { gl = canvas.getContext("experimental-webgl"); gl.viewportWidth = canvas.width; gl.viewportHeight = canvas.height; } catch (e) { } if (!gl) { alert("Could not initialise WebGL, sorry :-(. Try a new vers...
const Board = require('./board') const helper = require('./helper') const setting = require('./setting') const sgf = require('./sgf') exports.new = function() { return { id: helper.getId(), nodes: [], subtrees: [], current: null, parent: null, collapsed: false }...
import values from 'object.values'; const FETCH_ALL_ITEMS = 'FETCH_ALL_ITEMS'; const FETCH_ITEM_HISTORY = 'FETCH_ITEM_HISTORY'; const ITEM_HISTORY_FETCHED = 'ITEM_HISTORY_FETCHED'; const ALL_ITEMS_FETCHED = 'ALL_ITEMS_FETCHED'; const NEW_ITEM = 'NEW_ITEM'; const UPDATE_ITEM = 'UPDATE_ITEM'; const REMOVE_ITEMS = 'REM...
displayAllBirthdays(); //console.log("Das Ende"); /** * Output for all Birthdays as HTML DIV List in Order of next upcoming */ async function displayAllBirthdays() { /* may be later more options var maxDaysUntilNextBirthday = BirthdayReminderGlobal.getPref("extensions.birtdayreminder.maxDaysTi...
/*! geo-handler | https://github.com/Andrew67/geo-handler */ /* Copyright (c) 2018-2020 <NAME> 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, either version 3 of the License, or ...
// -*- mode: js; indent-tabs-mode: nil; js-basic-offset: 4 -*- // // This file is part of Genie // // Copyright 2020 The Board of Trustees of the Leland Stanford Junior University // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. //...
$(function(){ // $(document).on('click','th',function(){ // var table = $(this).parents('table').eq(0); // var rows = table.find('tr:gt(0)').toArray().sort(comparer($(this).index())); // this.asc = !this.asc; // if (!this.asc){rows = rows.reverse();} // table.children('tbody').empty().html(rows...
/** * Created by gvammer on 19.05.2016. */ (function ($) { $.fn.isWindowScrolledToElement = function (offset) { offset = parseInt(offset) || 0; return $(document).scrollTop() + $(window).height() > $(this).offset().top + offset; }; $.fn.onScrollToElement = function (callbackOnScroll, ...
import React, { Component } from 'react'; import FormMessage from './FormMessage'; import RerollButton from './RerollButton'; import '../App.css'; const descriptions = { sizeControl: "Whether to use specified proportions of map sizes.", catControl: "Whether to use specified proportions of map categories.", sprea...
'use strict'; var _createClass = function () { 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.definePrope...
/** * @license * Copyright 2018 Google Inc. All Rights Reserved. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ...
const Thing = require('./thing'); const Pixi = require('pixi.js'); const Matter = require('matter-js'); const Missile = require('./missile'); const Bargraph = require('./bargraph'); const Beam = require('./beam'); const Particle = require('./particle'); const Body = Matter.Body; const Vector = Matter.Vector; const PI2...
/* globals Circuit, CustomGate, LOOP_OBJ, CLONE, Gate, Wire, Port */ window._customGates = []; function getAllIONamesFromGates(gates) { let failed = false; let ionames = {}; LOOP_OBJ(gates).forEach((uuid, gate) => { if (failed) return; if (gate.type == 'IN' || gate.type == 'OUT') { ...
import proj4 from 'proj4' import { formatThousand, round } from './numberUtils' import { forward as LLtoMGRS, LLtoUTM, toPoint as mgrsToWGS84 } from './militaryGridProjection' import log from './logging' import { toStringHDMS, toStringXY } from 'ol/coordinate' // 47.5 7.5 const REGEX_WEB_MERCATOR = /^\s*([\d]{1,3}[.\...
import React, { useState, useEffect } from "react"; import styled from "styled-components"; import SocialIcons from "../../components/SocialIcons"; import { toastr } from "react-redux-toastr"; import { Link } from "react-router-dom"; import { useHistory } from "react-router-dom"; import api from "../../services/api"; ...
/** * Turf is a modular geospatial analysis engine written in JavaScript. It performs geospatial * processing tasks with GeoJSON data and can be run on a server or in a browser. * * @module turf * @summary Geospatial analysis for JavaScript */ export {default as isolines} from '@turf/isolines'; export {default as...
import "./Styles/CovidForm.css"; import React, { Component, useEffect, useRef, useState } from "react"; import { Link, useNavigate, useLocation } from "react-router-dom"; import ReactDOM from "react-dom"; import axios from "./api/axios"; const PatientForm_URL = "/patientDailyFormEndpoint/"; const PatientHistory_URL = ...
import React, { Component } from "react"; import { makeStyles } from "@material-ui/core/styles"; import Grid from "@material-ui/core/Grid"; import Button from "@material-ui/core/Button"; import { faBuilding } from "@fortawesome/free-solid-svg-icons"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; imp...
const DISCORD = require('discord.js'); const FS = require('fs'); const HTTP = require('http'); const HTTPS = require('https'); var Main = require('./server'); const Logger = require('./logging'); const Util = require('./utility'); const Markdown = require('./markdown'); const Processor = require('./processing'); fun...
// Set map size for this.options const map_size = 50; // Custom map const map = "99999999999999999999999999999999999999999999999999\n"+ "9 9\n"+ "9 999999 5 999999 9\n"+ "9 9 5 9 9\n"+ "9 9 ...
import React, { memo, useEffect, useState } from "react"; import { TouchableOpacity, SafeAreaView, View, Image, Dimensions, } from "react-native"; import { Text, Card, Button } from "@ui-kitten/components"; import { styles } from "../style/styles"; import Modal, { ModalTitle, ModalFooter, ModalContent, ...
$("document").ready(function () { $("#GenxyzUI").contextmenu(function (e) { //prevent the default context menu. e.preventDefault(); }); $(".genxyz-menu").contextmenu(function (e) { e.preventDefault(); }); $(".genxyz-menu li").click(function (e) { if ($(this).a...
'use strict'; const matchers = { number: v => typeof v === 'number' && isFinite(v), string: v => typeof v === 'string', boolean: v => typeof v === 'boolean', null: v => v === null, undefined: v => v === undefined, defined: v => v !== undefined, bigint: v => typeof v === 'bigint', symbol...
/********* * Main.js * keep this change * ************/ json = window.JSON; function obj(){} function addKeyVal(key, val, obj){ //requires that an object is passed in. obj[key] = val; } /*logout = function(){ console.log('logout'); document.querySelector('firebase-auth').logout(); }; login = function(){...
const firstDayOfWeek = 1; function displayAssignments() { const courseLinksDiv = document.getElementById("course-links"); courseLinksDiv.innerHTML = ""; for (let i = 0; i < courses.length; i++) { const courseLink = document.createElement("a"); courseLink.classList.add("course-link"); courseLink.href = courses...
/** * Copyright 2018 British Broadcasting Corporation * * 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 ...
var harus_cek_gds = false; $('#G').keyup(function(e) { riwObsG(); }); uk('umur_kehamilan', 'hpht'); $('#hamil').change(function(e) { if ($(this).val() == '1') { $('.divAnc').removeClass('hide').hide().fadeIn(500); } else if( $(this).val() == '0'){ empty(); $('.divAnc').fadeOut(500); } }); $('#perujuk_submit')...
import Vue from 'vue'; const mutations = { addGrid(state, value) { let currentGrid = state.currentGrid; let parentGrids = []; let selectedIndex = state.selectedIndex; let selectedItem = state[currentGrid].selectedItem; //Add sub-grid container item as parrent to parentsGrid property parentGrids.push({n...
import React from 'react'; import PropTypes from 'prop-types'; import { Checkbox, Divider, FormControl, FormControlLabel, FormGroup, FormHelperText, FormLabel, List, ListItem, ListItemIcon, ListItemText, ListSubheader, withStyles, } from '@material-ui/core'; import BarChartIcon from '@material...
// import React useEffect and useState (useState currently not used) import React, {useEffect, useState, useRef} from 'react'; import Header from "components/Header/Header.js"; import HeaderLinks from "components/Header/HeaderLinks.js"; import { Link } from "react-router-dom"; import Button from "components/CustomButt...
function initEditor() { gb.editor = ace.edit("code-panel"), gb.editor.getSession().setMode("ace/mode/javascript"), gb.editor.setOptions({ enableBasicAutocompletion: !0, enableSnippets: !0, enableLiveAutocompletion: !0 }) } function initEcharts() { gb.chart = echarts.init($("#chart-panel")[0]), gb.editor.setVal...
/* global bp, ctx_proxy, Packages, EventSets */ // <-- Turn off warnings // importPackage(Packages.il.ac.bgu.cs.bp.bpjs.model.eventsets); function deepFreeze(object) { // Retrieve the property names defined on object const propNames = Object.getOwnPropertyNames(object); // Freeze properties before freezing self...
var formEl = document.querySelector("#task-form"); var tasksToDoEl = document.querySelector("#tasks-to-do"); var tasksInProgressEl = document.querySelector("#tasks-in-progress"); var tasksCompleteEl = document.querySelector("#tasks-completed"); var taskIdCounter = 0; var pageContentEl = document.querySelector("#page-co...
import Component from '../component/component'; import ObjectResize from '../util/object-resize'; import limit from '../util/limit'; import bezierEasing from 'bezier-easing'; const SELECTOR_COMPONENT = '.aui-js-spinner'; const CLASS_CONTINUOUS = 'aui-spinner--continuous'; const CLASS_SHAPE = 'aui-spinner__svg'; const ...
// Copyright (c) Facebook, Inc. and its affiliates. // // This source code is licensed under the MIT license found in the LICENSE // file in the root directory of this source tree. // // RUN: %hermes -enable-cla -dump-ir %s -O | %FileCheck %s --match-full-lines //CHECK-LABEL:function g() : number //CHECK-NEXT:frame = ...
export const info = () => { const response = { apiversion: "1", author: "Chris/Tommaso", color: "#eac302", head: "fang", tail: "curled", }; return response; }; export const start = () => { console.info("Battle start"); }; export const end = () => { console.info("Battle end"); }; // Weig...
/** * Application JavaScript initialization file * * Contains the initialization functions and vars that makes the CMS work. * * @category * @package Page Studio CMS * @author <NAME> <<EMAIL>> * @copyright Cosmo Interactive (c) 2014 http://www.cosmointeractive.co/ * @license MIT * @version ...
import React from 'react' import { VictoryChart, VictoryLine, VictoryAxis, VictoryLegend, VictoryTooltip, VictoryVoronoiContainer, VictoryLabel, } from 'victory' import {camelCase} from './utilities' export class LineChart extends React.Component { constructor() { super() this.state = { l...
import React, { PureComponent } from 'react'; import PropTypes from 'prop-types'; import isEqual from 'lodash/isEqual'; import Button from 'react-bootstrap/lib/Button'; import Modal from 'react-bootstrap/lib/Modal'; import Table from 'react-bootstrap/lib/Table'; import Glyphicon from 'react-bootstrap/lib/Glyphicon'; im...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const schematics_1 = require("@angular-devkit/schematics"); const project_1 = require("@schematics/angular/utility/project"); const dependencies_1 = require("../../utility/dependencies"); const chalk_1 = require("chalk"); const validation_1 = ...
const MOE_VERSION = "20141222"; var Config = window.C; var Storage = (function (Config) { var localStorage = (window.localStorage && window.JSON ? window.localStorage : null); var prefix = "moe_" + MOE_VERSION + "_" + Config.event_slug + "_"; return { get: function (key) { var data = (l...
'use strict'; var __awaiter = (this && this.__awaiter) || function(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function(resolve) { resolve(value); }); } return new (P || (P = Promise))(function(resolve, reject) { function fulfi...
var Node = require('./node'); var Datastore = require('nedb'); var _ = require('lodash'); var f = require('../functions'); var isDevelopment = process.argv.find(function(el) { return el == '--development'; }) var Nodemanager = function(p){ if(!p) p = {}; var self = this; var inited = false; self....
const Discord = require('discord.js'); const osudroid = require('osu-droid'); const { Db } = require('mongodb'); const config = require('../../config.json'); const cd = new Set(); /** * @param {string} hash * @param {number} page */ function fetchScores(hash, page) { return new Promise(async resolv...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const id3frame_1 = require("./id3frame"); const fs = require("fs"); /** * A model representing an ID3 container. */ class ID3Container { constructor(container) { this.isHeaderRead = false; this.framesById = new Map(); ...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _merge2 = require('lodash/fp/merge'); var _merge3 = _interopRequireDefault(_merge2); var _isEqual2 = require('lodash/isEqual'); var _isEqual3 = _interopRequireDefault(_isEqual2); var _keyBy2 = require('lodash/keyBy'); var _keyBy3 ...
import React from 'react'; import { FormattedMessage, } from 'react-intl'; import PropTypes from 'prop-types'; import { Field } from 'redux-form'; import { cloneDeep, find, sortBy, noop, } from 'lodash'; import { Accordion, AccordionSet, Button, Checkbox, Col, ConfirmationModal, IconButton, P...
/* The MIT License (MIT) Copyright (c) 2017 Microsoft Corporation Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify...
"use strict"; class Viewer { constructor(canvasId) { let canvas = this.canvas = document.getElementById(canvasId); if(!canvas) throw "canvas not found"; let engine = this.engine = new BABYLON.Engine(canvas, true); let scene = this.scene = new BABYLON.Scene(engine); let cam...
var particlesPool = []; var particlesInUse = []; class Unit { constructor() { this.mesh = new THREE.Object3D(); this.mesh.castShadow = true; } // get tubeControl() { // return this.mesh.getObjectByName('tubeControl'); // } get horizontalControl() { return this.mesh....
/** * Created by <NAME> on 05.11.2014. */ // load libraries ======================================================================== var mongoose = require('mongoose'), config = require('./config'), debug = require('debug')('trackersrv'), mubsub = require('mubsub'), S = require('string'); // setup se...
import { withKnobs, select, text } from '@storybook/addon-knobs' import { action } from '@storybook/addon-actions' import { GiBrutalHelm, GiFlame, GiPunchBlast, GiRosaShield, GiSpellBook } from 'react-icons/gi' import { FiVolumeX, FiVolume1, FiVolume2 } from 'react-icons/fi' import { addBase } from '../storybook/...
let data = {} let color = { "ATL": "Red", "BOS": "Green", "BRK": "Gray", "CHI": "Maroon", "CHO": "Blue", "CLE": "Black", "DAL": "Turquoise", "DEN": "Yellow", "DET": "Silver", "GSW": "Gold", "HOU": "Crimson", "IND": "Goldenrod", "LAC": "Pink", "LAL": "Purple", ...
// Copyright 2017 <NAME> // // Licensed under the modified BSD (3-clause BSD) License. // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the Lic...
import router from '../router' import store from '../store' import {socket, closeSocket} from './socket-config' import { Presence } from 'phoenix-elixir' import _ from 'lodash' /* To make it clean, I have three separate channels [User, Pingal, Room] to talk to Phoenix I am also adding a fourth "World" channel to s...
/* * Based on these initial values (found in 2_deploy_contracts.js): * var difficulty = String("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"); * deployer.deploy(Exchange, new web3.BigNumber("5e17"), * new web3.BigNumber("5e17"), new web3.BigNumber("5e16"), * new web3...
// The Vue build version to load with the `import` command // (runtime-only or standalone) has been set in webpack.base.conf with an alias. import Vue from 'vue' import Vuex from 'vuex' import axios from 'axios' import App from './App' import router from './router' import _ from 'lodash' import Viser from 'viser-vue' ...
/* Copyright (c) 2019 AT&T Intellectual Property. # # # # Licensed under the Apache License, Version 2.0 (the "License"); # # you may not use this file except in compliance with the License. ...
import PropTypes from 'prop-types'; import React from 'react'; import _ from 'lodash'; import { saveAs } from 'file-saver'; import { ZapisnyListSelector } from './ZapisnyListSelector'; import { CacheRequester, Loading, RequestCache, sendRpc } from './ajax'; import { PageLayout, PageTitle } from './layout'; import { Li...
import React, { useState, useCallback } from 'react' import { fbt } from 'fbt-runtime' import Geocode from 'react-geocode' import withIsMobile from 'hoc/withIsMobile' import Redirect from 'components/Redirect' import { DEFAULT_GOOGLE_MAPS_API_KEY } from 'constants/config' import Link from 'components/Link' import Loc...
/* Thpace = Three + Space; */ class Thpace { constructor(canvas, settings) { if (!canvas) { console.log('Need a valid canvas element.') return } this.canvas = canvas this.ctx = canvas.getContext('2d') this.triangles = [] this.particles = [] this.coordinateTable = {} thi...
'use strict'; var url = require('url'); var util = require('util'); var events = require('events'); // See initializeConnection() for an explanation var preambleData = new Array(2057).join('-') + '\n'; /** * Server-Sent Events "Channel" * * The "channel"-concept is simply a collection of clients which should rece...
const timeOfTest = 10; const originalText = document.getElementById("textInstructionContents").innerHTML; var timerGoing = false; var startTime = 0; var timeLeft = 30; var timerInterval; var log=""; const htmlContent = "<h1 class=\"page-title\">Analysis</h1><table id=\"mainTable\"><tr><td class=\"left\">Words Typed</t...
import "./style.css"; import * as commands from "./commands"; const LOCAL_STORAGE_KEY = "taabSettings"; const MESSAGE_ID = "#message"; const CLOCK_ID = "#clock"; const INPUT_ID = "#input"; const DEFAULT_CONFIG = { // key: value defaultCommand: "ddg", bgColor: "#1b1d1e", textColor: "#ebdbb2", fontSize: "1.7...
'use strict' const options = require('./options.js'), mqtt = require('mqtt'), client = mqtt.connect(options.mqtt_broker, {username:options.mqtt_username, password:options.mqtt_password}), platserial = require('./platserial.js'), SerialPort = require('serialport'), _ = require("underscore"), serialB...
import React, { useState, useEffect } from 'react' import { formInput, formFeedback } from 'utils/formHelpers' import useConfig from 'utils/useConfig' import useShopConfig from 'utils/useShopConfig' import PasswordField from 'components/admin/PasswordField' function validate(state) { const newState = {} if (!st...
/* Copyright (c) 2013 <NAME> Forked and updated. MIT Licensed. */ /* Copyright (c) 2012 Sven "FuzzYspo0N" Bergström written by : http://underscorediscovery.com written for : http://buildnewgames.com/real-time-multiplayer/ MIT Licensed. */ //The main update loop runs on requestAni...