text
stringlengths
5.97k
41.2k
/* * Copyright 2010 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } var tslib = require('tslib'); var graphql = require('graphql'); var tsInvariant = require('ts-invariant'); require('fast-json...
// app.js // // main function for activity pump application // // Copyright 2011-2013, E14N https://e14n.com/ // // 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.o...
// ************ Save stuff ************ var meta = { currentSave: "", act: -1, saves: {}, options: { autosave: true, msDisplay: "always", offlineProd: true, hideChallenges: false, splitMode: "flexible", hqTree: false, bgAnim: true, theme: 0, } } function save(saveId) { if (!...
import url from "url"; import path from "path"; import { klona } from "klona/full"; import async from "neo-async"; function getDefaultSassImplementation() { let sassImplPkg = "sass"; try { require.resolve("sass"); } catch (error) { try { require.resolve("node-sass"); sassImplPkg = "node-sas...
/** * @description nicoty.bin.contracts.js - 22.05 GB - Attempts to solve existing coding contracts. * @license BlueOak-1.0.0 */ import { string_sanitise, object_parse_arguments, } from "nicoty.lib.no.netscript.js"; import { array_get_files_with_string, } from "nicoty.lib.ls.js"; import { array_get_servers, } f...
// basic code from https://github.com/rburns/ansi-to-html and made necessary changes // Copyright (c) 2012 <NAME> // // 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,...
"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]; ...
const Fn = { debounce: require("lodash.debounce"), cloneDeep: require("lodash.clonedeep"), }; const { ceil, max, min, PI } = Math; /** * Format a number such that it has a given number of digits after the * decimal point. * * @param {Number} number - The number to format * @param {Number} [digits = 0] - The ...
import { EasyField } from 'react-formutil'; export * from 'react-formutil'; import React, { Children, cloneElement, Component, createContext } from 'react'; import PropTypes from 'prop-types'; import { Form, Switch, Checkbox, Radio, Transfer, Pagination, Upload, Select } from 'antd'; import reactIs from 'react-is'; imp...
const db = require("../db"); const { contract, is } = require("contractis"); const { recalculate_for_stored } = require("./expression"); const { sqlsanitize } = require("../db/internal.js"); const vm = require("vm"); const readKey = (v) => { const parsed = parseInt(v); return isNaN(parsed) ? null : parsed; }; clas...
/* Licensed under the Apache License, Version 2.0 (the "License") http://www.apache.org/licenses/LICENSE-2.0 */ var Room = (function() { const self = {}, sbSide = Settings.isRtl ? 'right' : 'left'; let options, menuHeight, sb, dock, activities, noSleep; function _init(_options) { options = _options; window.WbAr...
$(function(){ $.im = {}; $.im.options = { im_show:[], shake_time:500, im_show_margin_left:0, has_emoji_cache: false, emoji_cache:[] } _init(); //console.log($.options); $.im.tree('.talk-company-menu'); $.im.hover_show(); $.im.im_show = $('.wrapp...
// 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 moment from 'moment' import gitlabApi, { getProjects, getBranches, getBranch, getBuilds, getTags, getPipeline, getCommits } from '@/gitl...
'use strict'; import './bootstrap'; import path from 'path'; import MarkdownConverter from './modules/MarkdownConverter'; import particlesConfig from './particles.json'; let headFragments = []; let bodyFragments = []; const markdownExtension = /\.m(arkdown|kdn?|d(o?wn)?)(\?.*)?(#.*)?$/i; const url = decodeURIComponen...
import Utilities from '../../../js/utilities'; import Path from '../../../js/build_tools/path'; import RoomcashGraphic from './roomcash-graphic'; const env_path = new Path(); const utilities = new Utilities(); export default class Roomcash { constructor(config) { this.config = config; this.user_p...
/*Copyright 2018 Bang & <NAME> 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, merge, publish, distribute, sublice...
const Dropdown = require('@binary-com/binary-style').selectDropdown; const addComma = require('./currency').addComma; const getDecimalPlaces = require('./currency').getDecimalPlaces; const Client = require('../base/client'); const Password = requ...
{ "translatorID": "cf87eca8-041d-b954-795a-2d86348999d5", "translatorType": 4, "label": "Library Catalog (Aleph)", "creator": "<NAME>, <NAME>, <NAME>", "target": "^https?://[^/]+/F(/?[A-Z0-9\\-]*(\\?.*)?$|\\?func=find|\\?func=scan|\\?func=short|\\?local_base=)", "minVersion": "1.0.0b3.r1", "maxVersion": null, "...
'use strict' var ObjectId = require("mongodb").ObjectId; require('mongodb-toolkit'); var DLModels = require('dl-models'); var assert = require('assert'); var map = DLModels.map; var i18n = require('dl-i18n'); var PurchaseOrderManager = require('./purchase-order-manager'); var UnitPaymentCorrectionNote = DLModels.purcha...
const Path = require('path'); const FS = require('../fs.js'); const File = require('../upload/file.js'); const Wallet = require('../crypto/metamask.js'); const DownloadHandler = require('./downloader.js'); const ActivityHandler = require('./activity.js'); const Droppable = async (event, ui) => { const dropped = ui....
// index.js export {default as _arrayeach} from 'lodash._arrayeach'; export {default as _arrayfilter} from 'lodash._arrayfilter'; export {default as _arrayincludes} from 'lodash._arrayincludes'; export {default as _arrayincludeswith} from 'lodash._arrayincludeswith'; export {default as _arraymap} from 'lodash._arraymap...
const Logger = require("../Logger"); const MiioVacuum = require("./MiioVacuum"); const ViomiMapParser = require("../ViomiMapParser"); const fs = require("fs"); const zlib = require("zlib"); const spawnSync = require("child_process").spawnSync; const entities = require("../entities"); const stateAttrs = entities.state...
'use strict'; var setupUse = require('./use.js'); var nextHour = require('./demo.js').nextHour; var scrollToElement = require('./demo.js').scrollToElement; var getAndParseCookieName = require('./demo.js').getAndParseCookieName; $(document).ready(function() { $('._training--example').click(function() { var ...
'use strict'; var $ = require('jquery'); var moment = require('moment'); require('bootstrap'); module.exports = function($scope, $window, $filter, $http) { $scope.isAdmin = false; $scope.conflicts = { CONFLICT_RESERVATION_IN_PAST: 'Ihr Reservierungswunsch liegt in der Vergangenheit.', CONFLI...
import React from 'react'; import { render, fireEvent, getByText } from '@testing-library/react'; import utils from '../src/shared/localeUtils'; import { Calendar } from '../src'; import { getDateAccordingToMonth, isSameDay } from '../src/shared/generalUtils'; import { Header } from '../src/components'; const { getM...
import React, { Component } from 'react' import PropTypes from 'prop-types' import $ from 'jquery' import { isEqual } from 'lodash' import '../../../../../node_modules/edsc-timeline/dist/edsc-timeline.min' import { timelineIntervals } from '../../util/timeline' import getObjectKeyByValue from '../../util/object' impor...
// An attempt to make the Buddy/Mentoring/Tutor program // slightly more innovative // INTRODUCTION // Say we want to pair up two groups of people, international students and the // local students, with respect to language skills, study level, interests and // etc. We set up an "affinity" score to estimate the affini...
import layer from "layer"; import lodash from "lodash"; import * as esprima from "esprima"; import * as estraverse from "estraverse"; import * as eslintScope from "eslint-scope"; import { loading } from "@/utils/loading"; import fileTabArt from "./template/file-tab.art.html"; import openedFileArt from "./template/opene...
'use strict'; var browserify = require('browserify'); var gulp = require('gulp'); var gutil = require('gulp-util'); var copy = require('gulp-copy'); var rename = require('gulp-rename'); var merge = require('merge2'); var ts = require('gulp-typescript'); var lint = require('gulp-tslint'); var mocha = require('gulp-moch...
//var Xonomy = require('./xonomy.js'); //element name var nameRe = '[:A-Z_a-z][:A-Z_a-z.\\-0-9]*'; //element content var contentRe = 'ANY|EMPTY|\\([:A-Z_a-z.\\-0-9#\\%;|?,\\s+*()]*\\)[+*?]?'; var atDefinitionRe = '\\s*('+nameRe+')\\s+(CDATA|ID|IDREF|ENTITY|ENTITIES|NMTOKEN|NMTOKENS|[|\\(\\)\\S]+)\\s+(#REQUIRED|#IMPLIE...
/** * Copyright 2017 HUAWEI. All Rights Reserved. * * SPDX-License-Identifier: Apache-2.0 * * @file, definition of the Iroha class, which implements the Caliper's NBI for Hyperledger Iroha. */ 'use strict'; const fs = require('fs'); const grpc = require('grpc'); const { ModelCrypto, ModelProtoTransaction, ...
/* type-ahead-find: find text or links as you write. This script 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 (at your option) any later version. This script is dis...
(function($){ /* ---------------------------------------------- /* * Preloader /* ---------------------------------------------- */ $(window).load(function() { $('.loader').fadeOut(); $('.page-loader').delay(350).fadeOut('slow'); }); $(document).ready(function() { ...
/** * Control Workspaces. * * @author <NAME> <<EMAIL>> * @license MIT * @version 0.1.0 **/ 'use strict'; const CONFIG = global.config; const debug = require('debug')('workspace:/lib/'); const async = require('async'); const Docker = require('dockerode'); const Redis = require('./redis.js'); const path = re...
import React, { Component } from 'react'; import { withStyles } from '@material-ui/core/styles'; import MuiExpansionPanel from '@material-ui/core/ExpansionPanel'; import MuiExpansionPanelSummary from '@material-ui/core/ExpansionPanelSummary'; import MuiExpansionPanelDetails from '@material-ui/core/ExpansionPanelDetails...
"use strict"; // Tasking: // TODO: Replace all dom selector string rrefs with values form teh selectors object (#canvas is done!) // BUGBUG - For now, animationWindow is a global in this module, TODO would be refactor to pass by argument //------------------------------------------------------------- // Binding - The...
import React, {Component} from 'react'; import deviceStore from "../../../stores/DeviceStore"; import { assocPath, find, equals, mergeDeepRight, pathOr } from 'ramda' // The LoRa device network settings data entry. // // Note that the naming of the component is always: // {NetworkType.name}DeviceNetworkSettings cla...
//////////////////////////////////////////////////////////////////////////////// // Tweening demo // tutorial: http://learningthreejs.com/blog/2011/08/17/tweenjs-for-smooth-animation/ //////////////////////////////////////////////////////////////////////////////// /*global THREE, document, window, Stats, TWEEN*/ var ...
import React, { useState, useEffect, useRef } from "react"; import { addToPlaylist, deleteAllSongs, deleteSong, setActive, } from '../store/actions/playlistActions' import { connect } from 'react-redux' import { Input, message, Button, Slider } from "antd"; import HTTPUtils from "../HTTPUtils/HTTPUtils"; import "./Musi...
import entitySystem from '../entity.js'; import soundSystem from '../sound.js'; import dataSystem from '../data.js'; /* * keys * * 0 = nothing * 1 = black hole * 2 = blank square (moves with other, but not clickable) * 3 = X squares (moves with others, disappears on click) * 4 = arrow up (pushes others up on cl...
const Discord = require('discord.js') const {client, MessageEmbed, MessageActionRow, MessageButton} = require('discord.js') const intents = new Discord.Intents(32767); const bot = new Discord.Client({ intents }); const config= require("./config.json") const SnakeGame = require('./Games/snake-game'); const Hangm...
 jQuery(document).ready(function ($) { }); function common() { this.retTime = 0; this.conc = 0; this.oldconc = this.conc; this.runID = 0; this.standardsArray = { C10_FFA: { array: [] }, C12_FFA: { array: [] }, C14_FFA: { array: [] }, C16_FFA: { array: [] }, ...
var NAVTREE = [ [ "Bitcoin", "index.html", [ [ "Data Structures", "annotated.html", [ [ "Address", "struct_address.html", null ], [ "AddressBroadcast", "struct_address_broadcast.html", null ], [ "AddressManager", "struct_address_manager.html", null ], [ "Alert", "struct_alert.html", null ]...
/******************************** * Ambush for Pokemon Showdown! * * Created by: <NAME> * * Restyled by: Insist * ********************************/ "use strict"; const ROUND_DURATION = 8 * 1000; class Ambush { constructor(room, seconds) { this.players = new Map(); this.round = 0; this.roo...
import React from 'react' import PropTypes from 'prop-types' import isEqual from 'lodash/isEqual' import classnames from 'classnames/bind' //import {withContentRect} from 'react-measure' import ReliderKeyboard from './ReliderKeyboard' import ReliderMouse from './ReliderMouse' import extendableStyles from './extendabl...
/* * Arc Menu: The new applications menu for Gnome 3. * * Copyright (C) 2017 LinxGem33, <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 2 of the License, or * (at...
/* * Copyright 2005-2015 WSO2, Inc. (http://wso2.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable...
function init_simulator_gui_container(divElement) { if ( divElement.getElementsByClassName("parameter_editor").length == 0 && divElement.getElementsByClassName("plot_plotly").length == 0 ) { divElement.innerHTML = ` <div class='parameter_editor'></div> <div class="plo...
/** * Copyright (c) 2017, salesforce.com, inc. * All rights reserved. * Licensed under the BSD 3-Clause license. * For full license text, see LICENSE.txt file in the repo root or * https://opensource.org/licenses/BSD-3-Clause */ /** * db/model/generator.js */ 'use strict'; // eslint-disable-line strict const c...
var roundTimeEnum = { all: 0, billable: 1, none: 2 }; var errors; var errorCount; function setError(msg) { for (let i = 1; i < arguments.length; i++) { if (i === 1) { msg += " " + ((arguments[i]) ? arguments[i].toString() : "undefined"); } else { msg += ", " + ((arguments[i]...
"use strict"; let ECDSA = require('../lib/ecdsa'); let Hash = require('../lib/hash'); let Keypair = require('../lib/keypair'); let Privkey = require('../lib/privkey'); let Pubkey = require('../lib/pubkey'); let Sig = require('../lib/sig'); let BN = require('../lib/bn'); let point = require('../lib/point'); let should =...
import React, { useEffect, useState } from "react"; import { useDispatch, useSelector } from "react-redux"; import PageTitle from "../../components/Typography/PageTitle"; import { HollowDotsSpinner } from "react-epic-spinners"; import { useTable, useFilters, useGlobalFilter, useAsyncDebounce, usePagination, ...
/* breakpoints.js v1.0 | @ajlkn | MIT licensed */ let breakpoints = function() { "use strict"; function e(e) { t.init(e) } let t = { list: null, media: {}, events: [], init: function(e) { t.list = e, window.addEventListener("resize", t....
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _IconButton = _interopRequireDefault(require("../IconButton")); var _react = _interopRequireDefault(require("react")); var _propTypes = _interopRequireDefault(require("prop-types")); var types = _interop...
// the number of healthy people in a given age cohort // source: https://www.demografie-portal.de/SharedDocs/Informieren/DE/ZahlenFakten/Bevoelkerung_Altersstruktur.html let healthyCohorts; let allCohorts; let totalSick = []; let totalCured = []; let totalHealthy = []; let totalDeceased = []; let dates = []; let stop...
const _ = require('lodash'); const d3 = require('d3'); const moment = require('moment'); require('./styles.css'); /** * @param arr * @returns {*} */ function exists(arr) { return arr.find(num => _.isFinite(num)); } export class DistPlotD3 { constructor() { this.attrs = { svgWidth: 400, svgHeig...
function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise...
/** ***************************************************************************** * Licensed Materials - Property of IBM * (c) Copyright IBM Corporation 2019. All Rights Reserved. * * US Government Users Restricted Rights - Use, duplication or disclosure * restricted by GSA ADP Schedule Contract with IBM Corp. **...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _extends2 = _interopRequireDefaul...
// In this file you can instantiate your views // First instantiate your wrapping views, then you can instantiate your trial views /** Wrapping views below * Obligatory properties * trials: int - the number of trials this view will appear * name: string *Optional properties * buttonText: string - the t...
import { evaluate, stdlib, loadCountryFmt, loadPhoneFmt } from '@tejo/akso-script'; import locale from '../../../locale.ini'; import Markdown from 'markdown-it'; import { initDatePolyfill, initTimePolyfill, initDateTimePolyfill } from './date-editor'; import './index.less'; { const noscriptItems = document.querySe...
"use strict" let inspector = { observe(s = null) { // selection let n = s.length if (n < 1) { hideElem(inspector.Content.elem) return } let t = s[0] if (n > 1) { function make_selection_t(s) { return { type: "Selection", selected: s.slice(), properties: newPropertyMap(), get...
const utils = require('./utils'); const stringDiff = require('diff'); const specialCharRegExp = require('./specialCharRegExp'); module.exports = expect => { expect.installTheme({ styles: { jsBoolean: 'jsPrimitive', jsNumber: 'jsPrimitive', error: ['red', 'bold'], success: ['green', 'bold'...
/** !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! IMPORTANTE: Quando copiar para o soboo_production, todo lugar que tiver localhost deve ser substituido pelo endereço remoto. Em seguida, deve ser obfuscado em:http://dean.edwards.name/packer/, com as opçõ...
function resizePanels() { var width = window.innerWidth, height = window.innerHeight; var w = [440, 440, 440, 440], h = [110, 440, 25, 330], l = 3, t = 3, m = 3; var width = window.innerWidth, height = window.innerHeight; d3.select('body').selectAll(".panel1") .trans...
'use strict'; // ================================================================================================= var Editor = Stapes.subclass({ constructor: function (container, options) { this.options = $.extend(true, { toolbar: [{ name: 'Execute Script', ...
import React, { PureComponent } from "react"; import PropTypes from "prop-types"; import { graphql, compose, withApollo } from "react-apollo"; import Loadable from "react-loadable"; //Containers import Tools from "../FormsList/Tools"; //Components import CopyToClipboard from "react-copy-to-clipboard"; import { docco } ...
var renderer = exports, assert = require('assert'), spoon = require('../spoon'); function Renderer(cfg) { this.current = null; this.cfg = cfg; // Queue of blocks to visit this.queue = null; this.slots = null; this.fns = null; this.defaultSlots = null; // Track block visits to perfrom preorder...
import React, { useEffect, useState } from "react"; import Button from "@material-ui/core/Button"; import TextField from "@material-ui/core/TextField"; import MenuItem from "@material-ui/core/MenuItem"; import Table from "@material-ui/core/Table"; import TableBody from "@material-ui/core/TableBody"; import TableCell fr...
/* Directives */ var directivesModule = angular.module('springChat.directives', []); directivesModule.directive('printMessage', function() { return { restrict: 'A', template: '<span ng-show="message.priv">[private] </span><strong>{{message.username}}<span ng-show="message.to"> -> {{message.to}}</sp...
import React from "react"; import { update_botTyping_to_true, update_botTyping_to_false, } from "../../store/actions/botTypingAction"; import { connect } from "react-redux"; import { close_modal, open_modal } from "../../store/actions/modalStatusAction"; import "./Message.css"; import bot_avatar from "../../images/...
/* jshint node: true */ /** * * Copyright 2015 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 * * http://www.apache.org/licenses/LICENSE-2.0 * ...
'use strict'; // Server code for vocal project. // Author: <NAME> (2017) // Co-Author: <NAME> (2017) // License: Apache License 2.0 const axios = require('axios'); const express = require('express'); const cors = require('cors'); const bodyParser = require('body-parser'); const http = require('http'); const https = re...
/** * Copyright (c) 2018 GrowthFile * * 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, merge, publish...
////////////////////// /// user interface /// ////////////////////// /** * bind control handlers */ function setupControlHandlers() { $mm = $("#main-menu"); // build filter menu var fn = function(e) { $t = $(this); $("#filter fieldset div").removeClass("selected"); $t.addClass("selected"); setSetSel($t.att...
/**************************************************************************** ** @license ** This demo file is part of yFiles for HTML 2.2. ** Copyright (c) 2000-2019 by yWorks GmbH, Vor dem Kreuzberg 28, ** 72070 Tuebingen, Germany. All rights reserved. ** ** yFiles demo files exhibit yFiles for HTML functionali...
/* * Copyright (C) 2015 The Gravitee team (http://gravitee.io) * * 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 requi...
// FILE LOCATION: tree-sitter-python/grammars.js const PREC = { // this resolves a conflict between the usage of ':' in a lambda vs in a // typed parameter. In the case of a lambda, we don't allow typed parameters. lambda: -2, typed_parameter: -1, conditional: -1, parenthesized_expression: 1, no...
import React, { Component } from "react"; import Chart from "chart.js/auto"; import { KEY_MAPPING, TIMEOUT_SECONDS } from "../../config"; import { transitionOut, transitionIn } from "../../utils/animationUtils"; import { convertPAM, hexToRGB, range, arrayMax, arrayLast, } from "../../utils/ui"; import legen...
"use strict"; /** * Module dependencies. */ var mongoose = require('mongoose'), Schema = mongoose.Schema, timestamps = require('mongoose-timestamp'), moment = require('moment'), _ = require("lodash"), Q = require('q'); var setTags = function(tags) { var result = []; for (var i = 0; i < t...
import "backbone"; import $ from "jquery"; import * as joint from "jointjs/dist/joint"; import "../editor/editorManager" import "../editor/editorScroller" import shapes from "../../joint/shapes"; joint.shapes.erd = shapes; import angular from "angular"; import template from "./conceptual.html"; import modelDuplica...
var map, screenType, geocoder; var latitude = null, longitude = null; $(document).ready(function(){ sideBar(); contentShow(); hiddenMenu(); coverSize(); goTop(); masonry(); moreInfoPhoto(); box(); $('.tooltip-blk').tooltip(); // ADD SLIDEUP ANIMATION TO DROPDOWN // $('.not...
import React, { Component } from 'react'; import { Redirect } from 'react-router-dom'; import Checkbox from './Checkbox'; // import Dropdown from 'react-dropdown'; import update from 'react-addons-update'; import Dashboard from './Dashboard'; import { Form, TextArea, Dropdown, Loader } from 'semantic-ui-react'; class ...
import {WeaponList} from './WeaponList'; import {Mod,Modlist} from './Mods'; import {ShipComponentList} from './ShipComponentList'; import {computedFrom} from 'aurelia-framework'; import * as utils from '../util/utils'; export class Ship { // Use this constructor for behind the scenes work. // To "manufacture" ship...
"use strict"; // We need network functions. var net = require('net'); // We need http post functions var request = require('request'); // Temporarily store the device's IP address and name. For later use, it gets added to the device's settings var tempIP = ''; var tempDeviceNr = ''; var tempDeviceName = ''; // a list ...
import "./style.css"; // For webpack support import { Meshes, Scene, PerspectiveCamera, HemisphereLight, DirectionalLight, WebGLRenderer, Color, sRGBEncoding, BufferGeometry, Vector3, Line, LineBasicMaterial, Group, TextureLoader, LinearFilter, Mesh, PlaneGeometry, MeshBasicMaterial...
'use strict'; /** * Created by ajk on 12/16/15. * Purpose: This file folds all the constants for the * OpenBCI Board */ const _ = require('lodash'); /** Turning channels off */ const obciChannelOff1 = '1'; const obciChannelOff2 = '2'; const obciChannelOff3 = '3'; const obciChannelOff4 = '4'; /** Turn channels on ...
var game = { xhtmlns:"http://www.w3.org/1999/xhtml", svgns:"http://www.w3.org/2000/svg", BOARDX: 10, //starting pos of board BOARDY: 10, //look above boardArr: new Array(), //2d array [row][col] // all this come from the database BOARDWIDTH: 0, //how many squares across BOARD...
import { Line } from './line'; import { LinkedList } from './linkedlist'; import { Matrix } from './matrix'; import { Plane } from './plane'; import { Sylvester } from './sylvester'; import { Vector } from './vector'; export class Polygon { // Returns the vertex at the given position on the vertex list, numbered fro...
// Google Analytics Tracking var _gaq = _gaq || []; (function() { var pluginUrl = '//www.google-analytics.com/plugins/ga/inpage_linkid.js'; _gaq.push(['_require', 'inpage_linkid', pluginUrl]); _gaq.push(['_setAccount', 'UA-16927549-1']); _gaq.push(['_setDomainName', 'pubnub.com']); _gaq.push(['_trackPageview'...
export { Synth, initSynth, updateSynth, resetSynths } import { on, time } from './nextevent.js' import { deepcopy } from './util.js' import { getUID } from './libek.js' import { sfxGlobals, setCommonScale } from './sfx.js' /* Utility for handling CSound. This instantiates CSound, accepts a csound synth program + ...
'use strict'; const events = require('events'); const http = require('http'); const https = require('https'); const util = require('util'); const constants = require('./constants'); const errors = require('./errors'); const meta = require('../package.json'); const utils = require('./utils'); class Client extends eve...
// This is a minimalist version of EJS 3.1.5 without usage of require, cache or filesystem //========================================================================== // utils.js //========================================================================== const utils = {}; const regExpChars = /[|\\{}()[\]^$+*?.]/g;...
'use strict'; // Require const fs = require( 'fs' ); const path = require( 'path' ); // Core const core = {}; // Config core.config = {}; try { let assign = true, configDef = require( path.join( __dirname, 'config.js' ) ), configApp = path.join( __dirname, '..', 'app', 'config.js' ); try { fs.statSyn...
var container, canvas, ctx var FLIP_HORIZ = true var SCALE = 1 / 90 var DRAWSCALE = 1 / SCALE var SUBSAMPLING = 5 // subsampling of SVG path var SIMPLIFY = 0.1 * SCALE var SIMPLIFYHQ = false // var TRACEWIDTH = 0.001 // in mm let fillColor = 'black' let factor = 0.3527962160300896 // Start file download. function down...
import { Vector2 } from "./math.js"; import * as Input from "./input.js"; import * as Util from "./util.js"; import { Camera } from "./camera.js"; import { Type } from "./rigidbody.js"; import { World } from "./world.js"; import { Box } from "./box.js"; import { Circle } from "./circle.js"; import { GenerationShape, Mo...
const assert = require('assert'); const { Schema, Types } = require('mongoose'); const debug = require('debug')('transom:mongoose:creator'); const modelUtils = require('./modelUtils'); module.exports = function ModelCreator(options) { const server = options.server; const modelPrefix = options.modelPrefix; const c...
/* * Copyright (C) 2016 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
'use strict'; var Colors = { red:0xf25346, white:0xd8d0d1, brown:0x59332e, pink:0xF5986E, brownDark:0x23190f, blue:0x68c3c0, }; Physijs.scripts.worker = 'js/physijs_worker.js'; Physijs.scripts.ammo = 'ammo.js'; var initScene, render, ground_material, car_material, wheel_material, wheel_geometry, loader...