text
stringlengths
8.5k
48.7k
"use strict"; function Polygon(vertices){ this.vertices = vertices; this.path_cached = null; }; Polygon.prototype.clone = function(){ var p = new Polygon(); p.vertices = this.vertices.slice(); p.path_cached = null; return p; }; Polygon.prototype.in_polygon = function(x,y){ var path = this.path(); var new_array ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.deactivate = exports.activate = void 0; const vscode = require("vscode"); function activate(context) { // Use the console to output diagnostic information (console.log) and errors (console.error) // This line of code will only ...
import { getCurrentInstance, ref, computed, reactive, watch, nextTick, onMounted, } from 'vue'; // 세로 스크롤 너비 const getVScrollWidth = () => window.innerWidth - document.documentElement.clientWidth; // 가로 스크롤 너비 const getHScrollWidth = () => window.innerHeight - document.documentElement.clientHeight; // 전체 문서 너비 const...
/** * user dialogs library * * @author ViliusL * * Usage: * * import Dialog_class from './libs/popup.js'; * var POP = new popup(); * * var settings = { * title: 'Differences', * comment: '', * preview: true, * className: '', * params: [ * {name: "param1", title: "Parameter #1:", value: "111"}...
/** * ds.dialog.js (弹窗JavaScript) * DAVID 2015-04-08 */ //DAVID 2015-04-08 //信息提示框 提示Info function davidInfo(tips) { ds.dialog({ title:"系统提示", content:tips, timeout:2, icon : "info.png", onyes:true, }); } //信息提示框 报错Error function davidError(tips) { ds.dialog({ t...
(function () { $("#doc_no_val").val("RO-"+makeid(5)); $("#no_dokumen").val("RO-"+makeid(5)); $(".estimasi_diterima_week").select2({ placeholder:'Estimasi Diterima', width:'100%' }); $(".estimasi_diterima_week").change(function() { var id_estimasi = $(this).val(); var year = $(".tahun").val(); var month =...
const PATH = require("path"); const FS = require("fs-extra"); const LINTER = require("jslint/lib/linter"); const BABEL = require("babel-core"); const ESPRIMA = require("esprima"); const VM = require("vm"); exports.parseFile = function(filePath, options, callback) { options = options || {}; options.API = { FS: ...
'use strict'; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); /* * Nexmo Client SDK * Main wrapper * * Copyright (c) Nexmo Inc. */ const WildEmitter = require('w...
/* Copyright (c) Lightstreamer Srl 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 w...
// IP cust --- INSERT // --- expand state management function minimize(updh) { if (retrieveSi(srcdoc, "StatAppWznmQryDetail", "srefIxWznmVExpstate") == "mind") return; setSi(srcdoc, "StatAppWznmQryDetail", "srefIxWznmVExpstate", "mind"); // change container heights getRecwnd().changeHeight("Detail", 30, updh); ...
/* ************************************ */ /* Define helper functions */ /* ************************************ */ function addID() { jsPsych.data.addDataToLastTrial({exp_id: 'go_nogo_with_flanker'}) } function evalAttentionChecks() { var check_percent = 1 if (run_attention_checks) { var attention_check_tri...
var labels = true; // show the text labels beside individual boxplots? const TICKING_NAME = 'Convention', INTERPRETATION_NAME = 'Interpretation', REWRITING_NAME = 'Compilation'; // show labels checkbox var showLabelsId = 'showLabels'; (() => { let container = document.createElement('div'); container.innerHTML = `...
import React from 'react' import styled from 'styled-components' import { pxToRem } from '../../../../helpers/utils/typography' const FlagContainer = styled.div` width: ${pxToRem(25)}; height: ${pxToRem(25)}; background-repeat: no-repeat; box-sizing: border-box; background-position: -384px -360px; &.ad {...
require('@ministryofjustice/module-alias/register') // TODO: Move Based on _isa to top section // TODO: Macroize top section // TODO: create additional error strings for errors that don't correspond to validation rules (and allow for them to be created in first place) // TODO: Make schema titles and descriptions for s...
function openHelp(aQuestionId) { var helpLink = document.getElementById("helpLink"); var help = window.open(helpLink.href+"?questionID="+aQuestionId, "helpText", "height=400,width=500,scrollbars=yes,resizable=yes", false); help.focus(); }//----------------------------------------------...
'use strict' var loader = new PxLoader(); loader.addImage('images/front.png'); loader.addImage('images/back.png'); loader.addImage('images/left.png'); loader.addImage('images/right.png'); loader.addImage('images/Grass_Block.png'); loader.addImage('images/Plain_Block.png'); loader.addImage('images/RedSelector.png'); lo...
// This file is required by the index.html file and will // be executed in the renderer process for that window. // All of the Node.js APIs are available in this process. Promise = require("bluebird"); let {ipcRenderer} = require("electron"); let fs = Promise.promisifyAll(require("fs")); let util = require("./util"); ...
import React, { useState, useEffect } from "react"; // @material-ui/core components import { makeStyles } from "@material-ui/core/styles"; // core components import GridItem from "components/Grid/GridItem.js"; import GridContainer from "components/Grid/GridContainer.js"; import Table from "components/Table/Table.js"; i...
"use strict"; //Requires process.setMaxListeners(0); var startTime = new Date(); const Discord = require("discord.js"); const Timer = require("timer.js"); const EventEmitter = require("events").EventEmitter; const http = require('http'); const request = require("request"); const fs = require('fs-extra'); cons...
/* eslint-disable no-plusplus,array-callback-return,no-loop-func,prefer-const,no-unused-vars */ /** *冰激凌专题页面 * by:wangjian * 2019/3/22 */ import React, { PureComponent, Fragment } from 'react'; import {connect} from 'dva'; import { Card, Row, Col, Button, Table, Checkbox,DatePicker,Select,Tooltip } from 'antd'; im...
/** * Created by ggoma on 12/21/16. */ import React, {Component} from 'react'; import { View, Image, Dimensions, Keyboard, Text, TextInput, TouchableOpacity, TouchableHighlight, StatusBar, StyleSheet, Switch, ListView, Platform, Modal, ScrollView, Keyboa...
/* ################################################################## # original script found at https://github.com/vbousquet/flexdmd # ################################################################## # images by: fr33styler # # https://www.dietle.de/projekt-vpin-virtuell...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var XpbBuilderParams; (function (XpbBuilderParams) { XpbBuilderParams[XpbBuilderParams["VERSION"] = 3] = "VERSION"; XpbBuilderParams[XpbBuilderParams["DPB"] = 1] = "DPB"; XpbBuilderParams[XpbBuilderParams["SPB_ATTACH"] = 2] = "SPB_...
import * as THREE from "../lib/three.module.min.js"; import {Puzzle} from "./picross.js"; const cell_broken = 1; const cell_colored = 2; const cell_unsure = 3; window.Puzzle = Puzzle; window.THREE = THREE; window.puzzle = null; window.fullPuzzle = null; window.solvedPuzzle = null; window.scene = { camera: null, ...
import bowser from 'bowser'; import { NotificationPermission } from "../models/NotificationPermission"; import OneSignalEvent from '../Event'; import MainHelper from '../helpers/MainHelper'; import { addCssClass, addDomElement, contains, decodeHtmlEntities, delay, nothing, once, removeDomElement, isUsingSubscriptionWor...
var scrollFunc = function(e) { e = e || window.event; if(e.wheelDelta && event.ctrlKey) { event.returnValue = false; } else if(e.detail) { event.returnValue = false; } } if(document.addEventListener) { document.addEventListener('DOMMouseScroll', scrollFunc, false); } window.onmousewheel = document.onmousewheel...
// Copyright 2018 Google LLC // // 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 applicable law or agreed to in ...
// dependency var fs = require("fs"); var inquirer = require("inquirer"); var spawn = require("cross-spawn"); var file = require("html-wiring"); var colors = require("colors/safe"); var util = require("./util"); var path = require("path"); var global = require("./global"); var browserSync = require("browser-sync"); va...
'use strict'; import { EDIT_FRAME_DEFAULT_MARGIN, addTraitEventDispatcher, isTouchDevice, degreesToRadians } from './MarkupsCoreUtils' import * as MarkupEvents from './MarkupEvents' import { CloneMarkup } from './edit-actions/CloneMarkup' import { SetPosition } from './edit-actions/SetPosition' import { SetS...
import I18n from "I18n"; import { PIE_CHART_TYPE } from "discourse/plugins/poll/controllers/poll-ui-builder"; import RawHtml from "discourse/widgets/raw-html"; import { ajax } from "discourse/lib/ajax"; import { avatarFor } from "discourse/widgets/post"; import { createWidget } from "discourse/widgets/widget"; import e...
import { h, defineComponent, ref, computed, watch, nextTick, getCurrentInstance } from 'vue' import TouchPan from '../../directives/TouchPan.js' import QSlider from '../slider/QSlider.js' import QIcon from '../icon/QIcon.js' import QTabs from '../tabs/QTabs.js' import QTab from '../tabs/QTab.js' import QTabPanels fr...
// Sprite classes function pause_anim(time) { return function(frame) { return frame >= time; } } function parallel_anim(funcs) { return function(frame) { this.animate(funcs); return true; } } function format_number(x) { if (x < 0) return '\u2013' + (-x); if (x > 0) return '+' + x; return ...
/* * Copyright (c) 2016-2018 <NAME> http://shakiba.me/planck.js * Copyright (c) 2006-2011 <NAME> http://www.box2d.org * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * Permissi...
load("201224b0d1c296b45befd2285e95dd42.js"); load("19089b69c4b129eba432c322114d8fa0.js"); function testConversion(resultType, opcode, paramType, op, expect) { if (paramType === 'i64') { // i64 cannot be imported, so we use a wrapper function. wasmFullPass(`(module (func (param i64) (resul...
import "./CartDetail.Style.scss"; import { faMinus, faPlus, faTimes } from "@fortawesome/free-solid-svg-icons"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { useHistory } from "react-router-dom"; import { useState, useEffect, useContext, useCallback } from "react"; import ReactDOM from "r...
var debug = document.querySelector("#debug"); //Get the position of my mallet hitpoints var leftHit1 = document.querySelector("#leftmallethit1"); var rightHit1 = document.querySelector("#rightmallethit1"); var leftHit2 = document.querySelector("#leftmallethit2"); var rightHit2 = document.querySelector("#rightmallethi...
import { spring, tween, action, pointer, transform, decay, keyframes, physics, value, chain, easing, delay, listen, styler } from 'popmotion'; import { linear } from '@popmotion/easing'; import { percent, number, degrees, px, vw, vh } from 'style-value-types'; import poseFactory from 'pose-core'; import { invariant } f...
/*jslint node: true */ "use strict"; var async = require('async'); var _ = require('lodash'); var conf = require('ocore/conf.js'); var storage = require('ocore/storage.js'); var objectHash = require("ocore/object_hash.js"); var db = require('ocore/db.js'); var constants = require("ocore/constants.js"); var ValidationU...
/*! * https://github.com/guyfawcus/beer-fest.js * * (c) 2021 - <NAME> * Released under the MIT License. */ /* eslint-env browser */ /* global globalThis */ 'use strict' /** `true` is a user is logged in */ export let AUTHORISED = false /** `true` if the confirmation window should pop up before an update */ expo...
/*Create Title*/ function makeTitle(title, div){ h3 = document.createElement("h3"); h3.innerHTML = title; div.appendChild(h3); } /*Create table for video metadata*/ function makeTableMetadata(json, indexJson, names, lst_desc){ var table = document.createElement("table"); for (var index in indexJson...
var utils = { getQuery: function(a) { var b = arguments[1] || window.location.search, c = new RegExp("(^|&)" + a + "=([^&]*)(&|$)"), d = b.substr(b.indexOf("?") + 1).match(c); return null != d ? d[2] : "" }, namespace: function(str) { for (var arr = str.split(","), i = 0, len = arr.length; len > i; i++)...
/* * This file is part of Dependency-Track. * * 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 ...
var signatureList = []; function autoSave() { var cm = document.querySelector('.CodeMirror').CodeMirror; if ($('[name="responder"]').attr('value') == 'saveData' && !cm.doc.isClean()) { $('#pageContent').val(cm.doc.getValue()); savePage($('[name="f"]').attr('action')); var warning = 'Aut...
// set up the canvas and graphics var canvasElement = require("./setupcanvas.js"); var width = canvasElement.width; var height = canvasElement.height; var gc = canvasElement.getContext("2d"); var n = 50; var robotRadius = 10; var font = "12px Arial"; var dt = 30; var distancePerTimeStep = 1000/5*dt/1000 * 0.5; var pat...
"use strict"; /** * Spaceify Package Manager, 30.4.2014 Spaceify Oy * * @file spm-js * * #/usr/bin/spm */ var fs = require("fs"); var read = require("read"); var http = require("http"); var crypto = require("crypto"); var qs = require("querystring"); var fibrous = require("fibrous"); var Logger = require("./log...
/*jslint indent: 2, node: true */ "use strict"; var util = require('util'); var vg = require('openvg'); var m = require('./matrix'); var textFns = require('./text/text'); var textRendering = require('./text/rendering'); // TODO destroy path as a result of garbage collection var Path = module.exports = function (pat...
var subtotal =0; var total =0; var indices = []; $(document).ready(function() { $('.selectpicker').selectpicker(); $('#txtfecha').datetimepicker({ format: 'DD/MM/YYYY', defaultDate: new Date() }); $('#checkall').on('click', function(){setCheckAll('chkconcepto');}); $('#checkall').prop('checked',true); ...
/** * Download secondary headers and grid data. * @param {String} baseName Basename of downloaded file. * @param {Object} hot Handonstable grid instance. * @param {Object} data See `data.js`. * @param {Object} xlsx SheetJS variable. */ var exportVirusSeq_Portal = (baseName, hot, data, xlsx, fileType) => { // C...
// ------------------------------------------------- // ----------------- FILESYSTEM--------------------- // ------------------------------------------------- // Implementation of a unix filesystem in memory. "use strict"; var S_IRWXUGO = 0x1FF; var S_IFMT = 0xF000; var S_IFSOCK = 0xC000; var S_IFLNK = 0xA000; var S_...
//<!-- // // Copyright 2016 British Broadcasting Corporation and Contributors(1) // // (1) Contributors are listed in the AUTHORS file (please extend AUTHORS, // not this header) // // 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 { connect } from "react-redux"; import { AnchorButton, Tooltip, Icon } from "@blueprintjs/core"; import LabelInput from "../labelInput"; import { FaRegFolder, FaRegFolderOpen } from "react-icons/fa"; import { BiChevronRightCircle, BiChevronDownCircle } from "react-icons/bi"; import act...
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */ /* Copyright 2012 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the Licen...
'use strict'; /*global require*/ /************************************************************************ ## Modules in Scriptcraft ScriptCraft has a simple module loading system. In ScriptCraft, files and modules are in one-to-one correspondence. As an example, foo.js loads the module circle.js in the same ...
var _config = require("./config"); var devicePixelRatio = _config.devicePixelRatio; var util = require("./core/util"); var logError = require("./core/log"); var BoundingRect = require("./core/BoundingRect"); var timsort = require("./core/timsort"); var Layer = require("./Layer"); var requestAnimationFrame = requ...
////// settings const TIMEOUT = 10000; // ms, timeout to get response from to master container const RECONNECT_TIME = 5000; // ms, delay between retries to connect to the server. ////// global if (typeof window.fjage === 'undefined') { window.fjage = {}; window.fjage.gateways = []; window.fja...
/** * Ybigh demo stage 2 * * * * * * * * */ sbVertexShader = [ "varying vec3 vWorldPosition;", "void main() {", " vec4 worldPosition = modelMatrix * vec4( position, 1.0 );", " vWorldPosition = worldPosition.xyz;", " gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );", "}", ]....
/* * JSNLog 2.22.1 * Open source under the MIT License. * Copyright 2016 <NAME> All rights reserved. */ /// <reference path="Definitions/jsnlog_interfaces.d.ts"/> var __extends = (this && this.__extends) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; function __() { this.constr...
/* Copyright 2015, 2016 OpenMarket Ltd Copyright 2019 The Matrix.org Foundation C.I.C. 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...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } function _interopNamespace(e) { if (e && e.__esModule) { return e; } else { var n = {}; if (e) { ...
'use strict'; var MaterialVertexShader = ` precision mediump float; attribute vec2 uvOffset; attribute float alpha; attribute vec3 scale; attribute vec3 translate; attribute vec3 actualSize; attribute vec3 color; varying vec2 vUv; varying vec3 vColor; varying vec3 vUidColor; varying float vAlph...
/* * Copyright © 2016-2017 The Thingsboard Authors * * 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 applicabl...
var express = require('express'); var Web3 = require('web3'); var fs = require('fs'); var path = require('path') var openssl = require('openssl-nodejs'); var crypto = require("crypto"); var jwt = require('jsonwebtoken'); // session var passport = require('passport'); var LocalStrategy = require('passport-local'); // ...
function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }...
// TODO translate svg files // TODO refactor src/pages/*.html to use <lang.de> instead of <de> etc. -> make tags unambiguous // e.g. <tr> can be turkish or table row // TODO avoid double inserts // TODO verify: all text-fragments are inserted // TODO auto-detect sourceLangList from files in src/pages/*.html // TOD...
// This file is required by the index.html file and will // be executed in the renderer process for that window. // All of the Node.js APIs are not available in this process. var otaConfig = {}; var wifiConfig = {}; var elDetached = null; var ssidSelected = null; var ssidLists = []; var serialPortLists = []; var clicke...
import React from 'react' import { Carousel, Affix, Badge } from 'antd'; import { Radio, Segment, Icon, Modal, Button, Grid, Step, Image, Reveal } from 'semantic-ui-react' import Cell from './cell.js' import CRUD from '../../unit/ajax.js' import fanucImage from '../../img/fanuclogoTransparent.png' import fanucLog...
const EventEmitter = require('events'); const moment = require('moment'); module.exports = class GameTickService extends EventEmitter { constructor(distanceService, starService, carrierService, researchService, playerService, historyService, waypointService, combatService, leaderboardService, userSer...
function post(onOff,msg) { document.body.style.cursor = ""; var m = document.getElementById('ajaxMsg'); if (onOff==1) { if (typeof msg == 'undefined') { var msg="Working..."; document.body.style.cursor = "wait"; } else { // got a message passed in, make it ugly... var sev="ajaxError"; if...
/* eslint-disable */ import {Schema} from "prosemirror-model" import {findWrapping, liftTarget, canSplit, ReplaceAroundStep} from "prosemirror-transform" import {Slice, Fragment, NodeRange} from "prosemirror-model" import {dt} from "./constants" // Helpers for creating a schema that supports tables. function getCellA...
// $(document).ready(function() { "use strict"; // Ajukan Tawaran function setLid(id){ var lid = $('#'+id).data('lid'); // var anggaran = $('#'+id).data('hpsku').toLocaleString(); var anggaran = formatNumber($('#'+id).data('hpsku')); $("input[name='lid']").val(lid); ...
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.prototype.hasOwnProp...
/** * @class AssetGraph * @extends EventEmitter */ require('setimmediate'); var util = require('util'), fs = require('fs'), os = require('os'), childProcess = require('child_process'), _ = require('lodash'), EventEmitter = require('events').EventEmitter, seq = require('seq'), Path = requi...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _GetValue = require('./../utils/object/GetValue'); var _GetValue2 = _interopRequireDefault(_GetValue); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance,...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); 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 ("val...
var suma=0; var media=0; var nota=0; var nm1,nm2,nm3,nm4; var FuerzaAt=0; var Energia=0; var HipotenusaR=0; var AreaT=0; function sumar(){ var n1 = document.getElementById('n1').value; var n2 = document.getElementById('n2').value; var n3 = document.getElementById('n3').value; var n4 = document.getElementById...
/** #bindinator Copyright ©2016-2017 <NAME> Bindinator (b8r) binds data and methods to the DOM and lets you quickly turn chunks of markup, style, and code into reusable components so you can concentrate on your project. b8r leverages your understanding of the DOM and the browser rather than trying to implement some k...
const vm = require('vm'); const path = require('path'); const ansis = require('ansis'); const { merge } = require('webpack-merge'); const JavascriptGenerator = require('webpack/lib/javascript/JavascriptGenerator'); const { plugin } = require('./config'); const { isFunction, parseRequest, outToConsole } = require('./ut...
const XMLHttpRequest = require('xhr2'); global.XMLHttpRequest = XMLHttpRequest; const encoding = require('encoding-japanese'); const path = require('path'); const fs = require('fs'); const express = require('express'); const THREE = require('three'); global.THREE = THREE; const fflate = require('three/examples/js/libs/...
import React, { Component } from "react"; import { connect } from "dva"; import PageHeaderLayout from "../../../layouts/PageHeaderLayout"; import { dataManagerColumns, dataManagerColumnsSearch, dataManagerColumnsCopy, dataManagerColumnsCopySearch } from "./columns"; import "antd/dist/antd.css"; import styles fr...
/* eslint-disable object-curly-newline, object-property-newline */ /* globals Fig */ // Get useful methods from FigureOne const { range, Figure, Point, round } = Fig; // Global config const maxIterations = 30; const width = 6; const aspectRatio = 1; const height = width / aspectRatio; const zero = new Point(0, 0); con...
// WORK ON WHAT HAPPENS WHEN PLAYER LOSES A LIFE! // ********** Set Global Variables *********** //use for testing the size of windows on phones. Remove before release! //alert(window.innerWidth +' X ' + window.innerHeight); //James' Image File loads //Drawing Canvas Variables let canvas = document....
// As JQuery will be used for majority of our JS code, you can attach it to the global scope // Along with helpers such as mathJS and underscoreJS global.$ = global.jQuery = require("jquery"); //global.math = require('mathjs'); global.d3 = require("d3"); //global._ = require("underscore"); // Any special library you w...
const $ = jQuery = require('jquery'); const fsp = require('fs').promises; const electron = require('electron'); // to communicate with main.js (where Electron window is initialised) const { ipcRenderer } = electron; // to display native system dialogs for opening and saving files, alerting, etc. const dialog = electron...
import { b as _classCallCheck, l as ConfigConsumer, e as classnames, f as _defineProperty, g as _extends, _ as _inherits, a as _createSuper, m as _assertThisInitialized, n as cloneElement, c as _createClass, C as ConfigContext, d as _slicedToArray, h as _typeof, } from './reactNode-2dfb2fa1.js...
//import meteorito from './meteorito.js'; //const { default: Machine } = require("./Machine"); //Variables //Directorio imágenes var directory = "./Resources/Game/"; var toDestroy; //Interfaz var movTxt = 2; //Píxeles que se mueve el texto al hacer hovering var counter; //Inputs var key_skipTutorial; var start...
var oneEye_issue=oneEye_eye=""; function oneEye_isSet(flagPu){ var arrRet = null; if(flagPu == 2){ //consider Poor View Also var oprph = $("#phth_pros"); var oeye = $("#is_od_os"); if(oprph.length > 0 && oprph.val() != "" && oeye.length > 0 && oeye.val() != ""){ issue = ""+oprph.val(); eye = ""+oeye.v...
/** * Copyright (c) 2016-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ import THR...
var baseURL = $('#base-url').val(); //console.log(baseURL); var TableDatatablesEditable = function () { var handleTable = function () { function markSelected(str, id){ var strData = str.replace('value="' + id + '"', 'value="' + id + '" selected'); return strData; } function restoreRow(oTable,...
import * as d3 from 'd3'; import {point, lineString} from '@turf/helpers'; import constants from './constants'; const HYDRANT_BUFFER = 9.2; // hydrant buffer in meters function uuid4() { return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) { var r = Math.random() * 16 | 0, v = c == 'x' ? ...
var gm = require('gm') var request = require("request"); var fs = require("fs"); var imageMagick = gm.subClass({ imageMagick : true }); var {sendGmImage} = require('../../../cq/sendImage'); const {banUserInGroup} = require('../../../cq/cache'); var running = false; var runninggroup = 0; var players = {}; var order = [...
// // // import * as THREE from 'three'; import * as TWEEN from '@tweenjs/tween.js'; export default class RouteEntity extends THREE.Group { constructor () { super(); this.currentPersentage = -1; } updateRoute(curve) { while (this.children.length) this.remove(this.children[0]); var...
const GroupHelper = require('./group-helper') const WiseFaceDetectionHelper = require('./wise-facedetection-helper') const LineHelper = require('./line-helper') const CircleHelper = require('./circle-helper') const TextTagHelper = require('./text-helper') const PolygonHelper = require('./polygon-helper') const ArrowIma...
'use strict'; exports.__esModule = 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]; } } } return target; }; var _class, _desc,...
import * as dashService from '../services/dashboard' import { parse } from 'qs' // zuimei 摘自 http://www.zuimeitianqi.com/res/js/index.js let zuimei = { parseActualData (actual) { let weather = { icon: `http://www.zuimeitianqi.com/res/icon/${zuimei.getIconName(actual.wea, 'big')}`, name: zuimei.getWea...
import React, { Component } from 'react' //import ReactDOM from 'react-dom' import './App.css' import MinionButton from './components/Minion/MinionButton' import UpgradeButton from './components/Upgrade/UpgradeButton' import PlayerResource from './components/Player/PlayerResource' import jsxicon from './scripts/jsxicon...
// going to break the game into periods:1, 2, 3, 4, 5 etc. and that way all posts and all data will be the same for all players no matter when they start to play. This also solves <NAME>'s problem. There has to be a global clock that is gotten by an ajax call. The global clock gives periods: 1, 2, 3, plus how many seco...
'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)) { ...
import * as d3 from "d3"; import React from "react"; import lodash from "lodash"; import { v4 as uuidv4 } from "uuid"; import styles from "../ForceGraph.module.css"; import positionGroups from "../../position_groups.json"; function _null_function() {} function constrain(x, w, r = 20) { return Math.max(r, Math.m...
#!/usr/bin/env node // Copyright 2020 (c) <NAME> // Part of Onglide.com competition tracking service // BSD licence but please if you find bugs send pull request to github const crypto = require('crypto'); const tabletojson = require('tabletojson').Tabletojson; const htmlparser = require('htmlparser2'); const { fin...
/* common function using namespaces */ var CommonHelper = { ConvertJsonDate: function (jsonDate) { return new Date(parseInt(jsonDate.substr(6))); }, AjaxLoading: function (obj, idDiv, idDivLoading) { if (idDivLoading == null || idDivLoading == "") { idDivLoading = "loadingImag...