text
stringlengths
5.97k
41.2k
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const WABinary_1 = require("../WABinary"); const Types_1 = require("../Types"); const generics_1 = requi...
// The player class. AI players have a number of parameters related to their // preferred actions. The take_turn() function is the actual AI script and is // shared between all players class AIPlayer { // Take the AI configuration and create a player constructor(key, name, text_color, map_color, aiconfig) { ...
import React from "react" import Layout from "../components/layout" import SEO from "../components/seo" import { Bar, defaults } from 'react-chartjs-2'; defaults.global.defaultFontFamily = "'Lato', sans-serif" // defaults.global.defaultFontColor = 'backgroundColor: "rgba(7,144,230,0.4)"'; class IndexPage extends Reac...
import assertRevert from './helpers/assertRevert' import assertBalance from './helpers/assertBalance' import increaseTime, { duration } from './helpers/increaseTime' const Registry = artifacts.require("Registry") const TrueUSD = artifacts.require("TrueUSD") const BalanceSheet = artifacts.require("BalanceSheet") const A...
/* * This file is part of the Symfony Webpack Encore package. * * (c) <NAME> <<EMAIL>> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ 'use strict'; const WebpackConfig = require('./WebpackConfig'); //eslint-disable-line no-unuse...
import { Component } from 'react'; import withWidth from '@material-ui/core/withWidth'; import { withStyles } from '@material-ui/core/styles'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import { Avatar, Drawer as MaterialDrawer } from '@material-ui/core'; import IconButton from '@material-ui/core/Ic...
/** * Created by knut on 14-11-23. */ var sq = require('./parser/sequenceDiagram').parser; sq.yy = require('./sequenceDb'); var svgDraw = require('./svgDraw'); var d3 = require('../../d3'); var Logger = require('../../logger'); var log = new Logger.Log(); var conf = { diagramMarginX:50, diagramMarginY:30, ...
import { isToday } from 'date-fns' import { isAfter } from 'date-fns/fp' import _ from 'lodash/fp' import PropTypes from 'prop-types' import { Fragment, PureComponent, useState } from 'react' import { div, h, img, p, span } from 'react-hyperscript-helpers' import { ButtonPrimary, Clickable, IdContainer, Link, spinnerOv...
/* * requirejs, assert, mocha, sinon and jquery installed via node */ const requirejs = require('requirejs'); const chai = require('chai'); const sinon = require('sinon'); const sinonChai = require('chai-sinon'); const { expect, } = chai; chai.use(sinonChai); requirejs.config({ baseUrl: ".", paths: { ...
"use strict"; var debug = {}; var DISTANCE = 1 angular.module('modelvizControllers', []).controller('entityCtrl', function($scope, entityAPIservice, $element) { var id = 'EAID_67E9811F_AD9D_412c_BD94_43A741DCE7ED' var id2 = 'EAID_DB27CB55_ADE6_4fb5_B29E_A08E2486D620' var enumcase = 'EAID_E76CBAE3_28FE_4b23_8DF9...
/** * knx.js - a KNX protocol stack in pure Javascript * (C) 2016-2017 <NAME> */ const os = require('os'); const dgram = require('dgram'); const util = require('util'); const ipaddr = require('ipaddr.js'); const machina = require('machina'); const KnxConstants = require('./KnxConstants.js'); const IpRoutingConnectio...
import { prefix, Prefix, b58cencode } from '@taquito/utils'; import sodium from 'libsodium-wrappers'; /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or with...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.NestedSetSubjectExecutor = void 0; var tslib_1 = require("tslib"); var OrmUtils_1 = require("../../util/OrmUtils"); var NestedSetMultipleRootError_1 = require("../../error/NestedSetMultipleRootError"); var NestedSetIds = /** @class */ ...
/** * Network Graph JS * This File is a part of the GitList Project at https://github.com/patrikx3/gitlist * * @license https://github.com/patrikx3/gitlist/blob/master/LICENSE * @author <NAME> <<EMAIL>> http://github.com/lukx * @author <NAME> <<EMAIL>> https://github.com/patrikx3/gitlist */ // global config cons...
// if browser doesn"t support WebSocket, just show some notification and exit if(!window.WebSocket) { console.log("Sorry, but your browser doesn\'t support WebSockets.") } // open connection let HOST = location.origin.replace(/^http/, "ws"); console.log(HOST); let ws = new WebSocket(HOST); function ws_send(event, ...
window.PJAX_ENABLED = true; window.DEBUG = true; //colors //same as in _variables.scss //keep it synchronized var $lime = "#8CBF26", $red = "#e5603b", $redDark = "#d04f4f", $blue = "#6a8da7", $green = "#56bc76", $orange = "#eac85e", $pink = "#E671B8", $purple = "#A700AE"...
'use strict'; var cuthillMckee = require('cuthill-mckee'); function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } var cuthillMckee__default = /*#__PURE__*/_interopDefaultLegacy(cuthillMckee); // Based on https://github.com/scijs/cholesky-solve /* The MIT ...
'use strict'; var url = require('url'); var sni = require('sni'); var Packer = require('proxy-packer'); var PromiseA; try { PromiseA = require('bluebird'); } catch(e) { PromiseA = global.Promise; } function timeoutPromise(duration) { return new PromiseA(function (resolve) { setTimeout(resolve, duration); ...
"use strict"; function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } function _asyncToGenerator(fn) { retur...
/** * Copyright 2016 The AMP HTML Authors. 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 * * Unless require...
/* global env: true */ 'use strict'; const powerConfiguratorHelper = require('../../helpers/power-configurator.helper').loadFromEnv(); const powerTemplateHelper = require('../../helpers/power-template.helper'); const jsdocDoop = require('jsdoc/util/doop'); const jsdocFS = require('jsdoc/fs'); const jsdocTemplateHelpe...
const { Composer } = require('telegraf'); const Markup = require('telegraf/markup'); const Extra = require('telegraf/extra'); const { Languages, LoadReplies } = require('../replies/replies'); const rp = require('../replies/replies'); const { dbManagement, Schedule, User } = require('../../backend/dataBase/db'); const {...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.IntelligentTreeSelect = void 0; var _react = _interopRequireWildcard(require("react")); var _settings = _interopRequireDefault(require("./settings")); var _VirtualizedTreeSelect = require("./VirtualizedTreeSelect"); var _resultI...
"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })...
/*! * blake2b.js - BLAKE2b implementation for bcrypto * Copyright (c) 2017-2019, <NAME> (MIT License). * https://github.com/bcoin-org/bcrypto * * Parts of this software are based on dcposch/blakejs: * <NAME> (CC0) * https://github.com/dcposch/blakejs/blob/master/blake2b.js * * Resources: * https://en.wi...
import React, { PureComponent } from 'react'; import PropTypes from 'prop-types'; import { StyleSheet, View, Text, Dimensions, InteractionManager } from 'react-native'; import { hideTransactionNotification } from '../../../actions/notification'; import { connect } from 'react-redux'; import { colors, fontStyles } from ...
// eslint-disable-next-line one-var const path = require('path'); const webpack = require('webpack'); const WebpackIndexHTMLPlugin = require('@open-wc/webpack-index-html-plugin'); const { CleanWebpackPlugin } = require('clean-webpack-plugin'); const TerserPlugin = require('terser-webpack-plugin'); const CompressionPlug...
const inquirer = require("inquirer") const fp = require("lodash/fp"); const Rx = require("rxjs"); const configLoader = require("./loader"); let initialConfig = configLoader.load(); const answers = { config: fp.cloneDeep(initialConfig) }; function buildMenuQuestion(menuName, q) { const aPath = `menu.${menuName}`; ...
var dataset = new Vue({ el: '#vuediv', data: { //存储记录 content: [], //显示模式(无搜索/搜索) mode: 0, //搜索字符串 value: "", //搜索类型 searchType: 46, //21,41,43,46 //文字编辑框行数 row: 0, //设置 settings: { Speech: [true, ...
/********************************************************************* * * mj-single-svg.js * * Implements an API to MathJax in node.js so that MathJax can be * used server-side to generate SVG, MathML, or images (the latter * requires an external library, batik, to do the svg to png * conversion). This ...
"use strict"; const Generator = require("yeoman-generator"); const chalk = require("chalk"); const yosay = require("yosay"); const spawn = require("cross-spawn"); const { hasYarn } = require("yarn-or-npm"); const path = require("path"); const fs = require("fs"); const { rm } = require("fs").promises; const { Octokit ...
/* * == BSD2 LICENSE == * Copyright (c) 2014, Tidepool Project * * This program is free software; you can redistribute it and/or modify it under * the terms of the associated License, which is identical to the BSD 2-Clause * License as published by the Open Source Initiative at opensource.org. * * This program ...
#!/usr/bin/env node global.__version='1.2.0'; function __swcpack_require__(mod) { function interop(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for(var key in obj){ if (Object.pro...
'use strict'; var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; var CancelablePromise = require('....
/******************************************************************************* * Copyright 2013 The MITRE Corporation * and the MIT Kerberos and Internet Trust Consortium * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * ...
import React from 'react'; import PropTypes from 'prop-types'; import ModalEditor from '../../components/Editor/ModalEditor'; import { required } from '../../components/Editor/utils'; import { TextInput, Select, Checkbox, Header } from '../../ui-components'; import { TwoColumnRow } from '../components'; import { ...
import dynamics from 'dynamics.js'; import lazySizes from 'lazysizes'; import Hammer from 'hammerjs'; const bodyEl = document.body; const onEndTransition = function onEndTransition(el, callback) { const onEndCallbackFn = function onEndCallbackFn(ev) { if (ev.target !== this) return; this.removeEventListener(...
// TODO implement me! // Add any "require" statements to import modules here, e.g.: 'use strict'; require('./lens.css'); const u = require('./TreeUtils'); const conf = require('./Config'); const d3 = require('./d3.v3.min'); const handlebars = require('handlebars-template-loader/runtime'); const subjectTemplate = requir...
//assembler for TX processor //recieve assembly code as input //generate machine code for simulator in var enableDebug = false; var sInput, sOutput; var lines, tokens; var EoF = false; var state = 'S'; var lineno = 0, loc = 0, tp = 0, mark = 0, t = 0; var symnum = 0; var mem = []; // array of [string mode, string ty...
const uuidv4 = require('uuid/v4') const mime = require('mime-types') const _ = require('lodash') const { DirectLine, ConnectionStatus } = require('botframework-directlinejs') const debug = require('debug')('botium-connector-directline3') const FormData = require('form-data') const fetch = require('node-fetch') const Qu...
import Sequelize from 'sequelize'; import db from '../models/index.js'; import { formatAddressPhoneNumbers } from '../utils/mutator.js'; import { isoToPacificDate } from '../utils/utilities.js'; const { Op } = Sequelize; const { Address, BookCharge, ElectiveClass, Family, Grade, InstructorAssignment, RegistrationPay...
"use strict" import * as Pmgr from './pmgrapi.js' /** * Librería de cliente para interaccionar con el servidor de PeliManager (pmgr). * Prácticas de IU 2021-22 * * Para las prácticas de IU, pon aquí (o en otros js externos incluidos desde tus .htmls) el código * necesario para añadir comportamientos a t...
var ALIVE = 4, DEAD = 0, SPEED_CONSTANT = 32, DEFAULT_GRID_WIDTH = 100, DEFAULT_GRID_HEIGHT = 50, DEFAULT_CELL_SIZE = 10, canvas, context, GRID_COLOR = { 1: "#e5e5e5", 2: "#b2b2b2", 3: "#000000" }, CELL_COLOR = { 1: "#666666", 2: "yellow", 3: "orange", 4: "red" }, PAT...
const mapObj = L.map("map", { zoom: 3, minZoom: 2, boxZoom: true, maxBounds: L.latLngBounds(L.latLng(-100, -225), L.latLng(100, 225)), center: [20, 0] }) let REACHID let CURRENTDATE let mapMarker = null let controlsObj let SelectedSegment = L.geoJSON(false, { weight: 5, color: "#00008b" }).addTo(map...
/** * @license Copyright (c) 2003-2021, CKSource - <NAME>. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ /** * @module widget/widgetresize/resizer */ import View from '@ckeditor/ckeditor5-ui/src/view'; import Template from '@ckeditor/ckeditor5-ui/src/t...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } }...
var Alice = { Application : PIXI.Application, Object : PIXI.Sprite, Container : PIXI.Container, Texture: PIXI.Texture, Scene: PIXI.Container, Ticker: PIXI.ticker.Ticker, Text: PIXI.Text, AnimatedObject: PIXI.extras.AnimatedSprite, Sound: PIXI.sound } function InteractionSystem(obje...
function shouldMatchTokens(result, tokens) { for (var index = 0; index < result.length; index++) { equals(result[index].name, tokens[index]); } } function shouldBeToken(result, name, text) { equals(result.name, name); equals(result.text, text); } describe('Tokenizer', function() { if (!Handlebars.Parser)...
// @ts-check const path = require('path') const fs = require('fs') function verbose() { return cli.opts().verbose } exports.build = build async function build({skipClean = false} = {}) { if (verbose()) console.log(`===> Running the "build" command.\n`) await Promise.all([ showName(), copyAssets(), (async fu...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.updateNodeHighlightedValue = exports.initializeGraphState = exports.buildNodeProps = exports.buildLinkProps = undefined; var _d3Force = require('d3-force'); var _graph2 = require('./graph.const'); var _graph3 = _interopRequireD...
import _ from 'lodash'; import B from 'bluebird'; import yauzl from 'yauzl'; import archiver from 'archiver'; import { createWriteStream } from 'fs'; import path from 'path'; import { mkdirp } from '../lib/mkdirp'; import stream from 'stream'; import fs from './fs'; import { Base64Encode } from 'base64-stream'; import ...
#! /usr/bin/env node console.log('Started data loading script !!'); var async = require('async') var Actor = require('./models/Actor.js'); var Script = require('./models/Script.js'); var Notification = require('./models/Notification.js'); const _ = require('lodash'); const dotenv = require('dotenv'); var mongoose = ...
angular .module('material.components.eventCalendar') .factory('$$mdEventCalendarBuilder', mdEventCalendarBuilderService); var nextId = 0; /** * @ngdoc service * @name $$mdEventCalendarBuilder * @module material.components.eventCalendar **/ /*@ngInject*/ function mdEventCalendarBuilderService($$mdEventCalend...
const fs = require('fs'); const os = require('os'); const path = require('path'); const ejs = require('ejs'); const mime = require('mime-types'); const yaml = require('js-yaml'); const omit = require('lodash.omit'); const flatten = require('lodash.flatten'); const defaults = require('lodash.defaults'); const pdfjsLib =...
import TopicFactory from './topicFactory' import { Credentials, ContractFactory } from 'uport' import MobileDetect from 'mobile-detect' import UportSubprovider from './uportSubprovider' // Can use http provider from ethjs in the future. import HttpProvider from 'web3/lib/web3/httpprovider' import { isMNID, encode, deco...
import m from 'mithril'; import _ from 'underscore'; import h from '../h'; import moment from 'moment'; import models from '../models'; import { catarse } from '../api'; import contributionVM from '../vms/contribution-vm'; import subscriptionVM from '../vms/subscription-vm'; import commonPaymentVM from '../vms/comm...
'use strict'; // eslint-disable-line const async = require('async'); const Logger = require('werelogs').Logger; const errors = require('arsenal').errors; const { replicationBackends, emptyFileMd5 } = require('arsenal').constants; const MongoClient = require('arsenal').storage .metadata.mongoclient.MongoClientInte...
// Detects webgl if (!Detector.webgl) { Detector.addGetWebGLMessage(); document.getElementById('container').innerHTML = ""; } // - Global variables - // Heightfield parameters var terrainWidthExtents = 500; var terrainDepthExtents = 500; var terrainWidth = 500; var terrainDepth = 500; var terrainmultiplier ...
/* Copyright © 2017 American Red Cross * * 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, p...
// Represents an install of the tool. Creating this creates a private // sandbox with its own state, separate from the state of the current // meteor install or checkout, from the user's homedir, and from the // state of any other sandbox. It also creates an empty directory // which will be, by default, the cwd for run...
/** * Word Service Class */ const log = require('../util/log'); const db = require('../../common').db; const history = require('./helper/history'); const Forbidden = require('../error/fe/ForbiddenError'); class WordService extends require('./ResourceService') { constructor(uid, context) { super(uid, context, '...
'use strict'; require('../utils/date'); const Configurator = require('../configurator'); const DB = require('../dbs'); const Storage = require('./storage'); const Cache = require('./cache'); const hash = require('object-hash'); const assert = require('assert'); const ZabbixPreprocessor = require('../zabbixPreprocessor'...
import ownCss from '../../css/ButterflyMap.css'; // NOT unused. import css from 'maplibre-gl/dist/maplibre-gl.css'; // NOT unused either. import PropTypes from 'prop-types'; import React from 'react'; import Button from './Button'; import ControlBar from './ControlBar'; import PointBar from './PointBar'; import styled...
//GOAL // Render two tables, one containing all the different timezones of // all countries (allTimeZones). The other one only contains user selected timezones // of interest aka their favorite timezones (favoriteTimeZones). These Favorite timezones // are saved to localstorage, thus ensuring that at a next page reloa...
'use strict'; function edgeAnnotationDisplayName(annotation) { var s = annotation['name'] if (s === undefined || s == '') { s = annotation['type']; } if (annotation['feature_base_first'] != 1 || annotation['feature_base_last'] != annotation['feature_full_length']) { s += '['; if (an...
// Assignment Code var generateBtn = document.querySelector("#generate"); // Global possible arrays for lowercase, uppercase, numeric, and special characters var lowercase = ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"]; var uppercase...
import clone from "clone"; import NodeMapAdapter from "./node-map-adapter"; import createNodeWebComponent from "../node/create-node-web-component"; import Events from "../events"; import ChainPool from "../util/chain-pool"; import ElementRegistry from "../util/element-registry"; let b = require("js-beautify").js; co...
/* globals beaker locationbar DatArchive confirm beakerBrowser alert */ import * as yo from 'yo-yo' import prettyBytes from 'pretty-bytes' import {ProgressMonitor, FileTree} from 'builtin-pages-lib' import parseDatURL from 'parse-dat-url' import renderTabs from '../com/tabs' import renderFiles from '../com/files-list'...
/** * Copyright 2017 OpenStack Foundation * 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 in ...
var scene, camera, renderer, clock, deltaTime, totalTime, recording, rec, controls, background; var renderScene, bloomPass, composer; let modelLoaded = false; let isAR = false; let currentModel; let language = 'en'; if (window.LanguageSwitcher != null) language = LanguageSwitcher.currentLanguage; let isPlaying = false...
/** * Created by shudingbo on 2/25/16. * This module using encode/decode c/c++ Binary data structure data struct as json; * support message nested. * support data type: int8 uint8 int16 uint16 int32 uint32 int64 float double bool string object * Modified by darnold79 on 2/14/17 * Added support for ar...
// ==UserScript== // @name Melhora Portal do Servidor // @namespace https://github.com/luizluca/melhora-sgrh // @version 1.8 // @description Adiciona mais informações ao Portal do Servidor // @grant none // @updateURL https://raw.githubusercontent.com/luizluca/melhora-sgrh/master/melhora-sgrh.user.js //...
var geometry, material, mesh, map = {}; var cameras = [], camera_active = 0, scene, renderer, clock, deltaTime, t; var cannons = [], balls = [], bboxes = [], ball_radius = 4, ball_mass = 0.2, a_cof = -15, at = true, cannon_active = 0, aux_v_x = new THREE.Vector3(1, 0, 0); /* ve...
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (Object.protot...
'use strict'; const superagent = require('superagent'); const server = require('./server'); const roles = require('../model/roles'); const game = module.exports; // making things pretty const chalk = require('chalk'); const cowsay = require('cowsay'); // colors const roomMsg = chalk.bold.italic.white.bgBlack; const ...
'use strict'; const dns = require('dns'); const crypto = require('crypto'); const AWS = require('aws-sdk'); var route53 = new AWS.Route53(); var dynamodb = new AWS.DynamoDB(); // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!...
import React from 'react'; import {withRouter} from 'react-router-dom'; import queryString from 'query-string'; import {iniciarSocket, disconnectSocket, actualizarMensajes, enviarMensaje, pasarTurno, actualizarEventos, sendFinPartida, refreshPage} from './Socket'; import '../css/MultijugadorUnirse.css' import {LeftOutl...
"use strict"; let addAssetFiles = null; function showAddAssetDialog() { document.getElementById('addAssetDialog').classList.remove('hidden'); document.getElementById('addAssetAddButton').disabled = true; document.getElementById('addAssetFilter').value = ''; const text = document.getElementById('addAsse...
canvas = document.getElementById("asteroid"); context = canvas.getContext('2d'); function Sky() { } class SkySystem extends System { constructor() { var signature = BitUtils.getBitEquivalentForComponent(["PositionComponent", "RenderComponent", "Sky"]); super(signature); } update() { } } fu...
$(document).ready(function(){ //btn_spec // #ID 에 .클래스명_assist // 대상 class명.toggleClass $('#OS_HW_Spec_Assist .btn_spec_assist').click(function(){ $(".spec_select_box").toggleClass("active"); }); $('#OS_HW_Spec .btn_image_assist').click(function(){ $(".spec_select_box").toggleClass("active"); }); }); ...
const v = require('../v'); function distance(a,b) { // distance between bodies return Math.abs(Math.sqrt(((a.x-b.x)*(a.x-b.x))+((a.y-b.y)*(a.y-b.y)))); } function angle(a,b) { // angle between bodies return Math.atan2(b.y - a.y, b.x - a.x) * 180 / Math.PI; } function normalize(vec) { //normalize components o...
import React, { Component } from 'react'; // import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import { is } from 'immutable'; import { View, Text, StyleSheet, LayoutAnimation, FlatList, Platform, TouchableOpacity, Modal, Alert, } from 'react-native'; import Loading from '.....
const m = require('mithril') const vent = require('./vent') const rafLoop = require('raf-loop') const twgl = require('twgl.js/dist/twgl') const app = require('./app') const settings = require('./settings') const mod = require('./util/helpers').mod const events = require('./events') const Tile = require('./Tile') cons...
var HANDLEBAR_TEMPLATES; function init(connName, qName, encodedQName) { console.log('init: entered with connName = '+connName+', qName = '+qName+', encodedQName = '+encodedQName); initProgressBar("tabSpecificProgressBar-"+encodedQName); GLOBAL_Q_DETAILS[encodedQName] = qName; con...
const WebSocket = require('ws'); const querystring = require('querystring'); const crypto = require('crypto'); const ccxt = require('ccxt'); const moment = require('moment'); const Ticker = require('./../dict/ticker'); const Order = require('./../dict/order'); const TickerEvent = require('./../event/ticker_event'); con...
//////////////////////////////////// // MultiselectJS demo application // // // // Author: <NAME> // //////////////////////////////////// ////////////////////////// // HTMLElementsGeometry // ////////////////////////// // The selectable elements in are HTML elements, and all ...
'use strict'; const leo = require("leo-sdk"); const ls = leo.streams; const async = require("async"); const logger = require('leo-logger'); module.exports = class Dol { constructor(client) { this.client = client; } translateIds(translations, opts) { opts = Object.assign({ count: 1000, time: { millis...
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 Vent = Vent || {}; var MAX_SAMPLES = 100; Vent.settings = {'VT': 0, 'FiO2': 0, 'PEEP': 0, 'RR': 0, 'PINSP': 0, 'IE': 0} Vent._inFocus = false Vent.sensorReadings = {'Ppeak': 0, 'PEEP': 0, 'VT': 0, 'RR': 0, 'FiO2': 0, 'IE': 0} Vent.MODES = ['VCV', 'PCV', 'PSV']; Vent.MODE_TO_INPUTS = { 'VCV': ['PEEP', 'FiO2', ...
// Import Modules import { PTUActor } from "./actor/actor.js"; import { GetSpeciesData } from "./actor/actor.js"; import { PTUGen4CharacterSheet } from "./actor/character-sheet-gen4.js"; import { PTUGen8CharacterSheet } from "./actor/character-sheet-gen8.js"; import { PTUGen4PokemonSheet } from "./actor/pokemon-sheet-g...
import $ from './core'; /* |------------------------------------------------------------------------------- | 事件模块 |------------------------------------------------------------------------------- | */ /** * ========================================================================= * 发布订阅模式,又叫观察者模式,它定义了对象间的一种一对多的依赖关系...
function fundwork(costLocation,costURL,repolink,reportLink,message,neededBuffer){ /* 1. Method searches for elements with classes "freport","fpatch" or "fbadge" 2. then gets financial data from costURL 3. and inserts its reports into these elements */ if($(".freport").length || $(".fpatch").length || $(".fb...
const { h, Component } = require('preact'); const styled = require('styled-components').default; const { css, keyframes } = require('styled-components'); const hint = require('./hint.svg'); const DEMO_GROUP = 4; const GROUP_SHAPE_SIZES = { 1: 1, 2: 0.9375, 3: 1.0624, 4: 1 }; class Chart extends Component { ...
/* * This script was created by <NAME> (<EMAIL>) * for WebFX (http://webfx.eae.net) * Copyright 2001 * * For usage see license at http://webfx.eae.net/license.html * * Created: 2001-01-12 * Updates: 2001-11-20 Added hover mode support and removed Opera focus hacks * 2001-12-20 Added auto positioning and...
import { ChannelResource, LearnerGroupResource, ContentNodeResource, ExamResource, ExamAssignmentResource, ExamLogResource, FacilityUserResource, ExamAttemptLogResource, } from 'kolibri.resources'; import concat from 'lodash/concat'; import ConditionalPromise from 'kolibri.lib.conditionalPromise'; impor...
var canvas = document.createElement("canvas"); context = canvas.getContext("2d"); canvas.width = 1000; canvas.height = 500; //ajout de la balise au body document.body.appendChild(canvas); var images={}; function loadImage(name){ images[name] = new Image(); images[name].src = "image/" + name + ".png"; } loadImage(...
const DAPP_ADDRESS = "0x594839A20e84dD2E470600C45518Ec490133f3E8"; //insert the address I deployed to const USDC_ADDRESS = "0x8ac76a51cc950d9822d68b83fe1ad97b32cd580d" const BTCB_ADDRESS = "0x7130d2a12b9bcbfae4f2634d864a1ee1ce3ead9c"; const WETH_ADDRESS = "0x2170ed0880ac9a755fd29b2688956bd959f933f8"; const BNB_ADDRES...
var customermasterlist = function () { var handleCustomerMasterList = function () { var quotation_item_table = $("#quotation_item_table").DataTable({searching: false, paging: false}); var contacts_table = $("#quotation_item_table"); var payment_table = $("#tbl-payments").DataTable({searching: fals...
const DestinationEnum = Object.freeze({ "HARDWARE_AND_SOFTWARE": 0, "HARDWARE_ONLY": 1, "SOFTWARE_ONLY": 2 }); const tProxyBase = "https://tproxy.opendle.com"; // const tProxyBase = "https://localhost:44330"; const loggingEnabled = false; let websocket = null; let canvas; let canvasContext; l...
'use strict' require('dotenv').config() const path = require('path') const createPaginatedPages = require('gatsby-paginate') const { pipe, pluck, intersection } = require('ramda') const { _cleanNodes, _checkQueryIntegrity, _mergeQueries, _partitionFeatured, _groupByAuthor, } = require('./quer...