text
stringlengths
5.97k
41.2k
"use strict"; const gameWindow = document.getElementById("gameWindow"); const scoreWindow = document.getElementById("scoreWindow"); const gameWindowContext = gameWindow.getContext("2d"); const scoreWindowContext = scoreWindow.getContext("2d"); const windowHeight = window.innerHeight, windowWidth = window.innerWidth; ...
"use strict" let React = require('react'), fetch = require('../helpers/fetch'), _ = require('lodash'), TaskEditor = require('./task-editor'), TaskLogic = require('../task-logic'), Comments = require('./comments') import { Button, Glyphicon, Modal, Col, Row, Form, FormGroup, FormControl, OverlayTri...
import './index.css' //主体控制类,设置相机,场景,光效,飞机模型,循坏渲染 import { Scene, PerspectiveCamera, CubeCamera, Vector2, Vector3, WebGLRenderer, PCFSoftShadowMap, Uncharted2ToneMapping, FogExp2, Mesh, SphereBufferGeometry, MeshBasicMaterial, WebGLRenderTarget, DepthTexture, Matrix4, MeshDepthMaterial,...
var data_folder = ["data/"] var files = { info: "info.json", meta: "meta.csv.zip", dt: "dt.json.zip", tw: "tw.json", topic_scaled: "topic_scaled.csv" }; var data = { }; var gui_elements ={ 'absolute range': false, 'scaled': false }; function load_data(e, t) { ...
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const common_1 = require("../../../specification/common"); const v4_1 = require("../../../v4"); const co...
// // var ip = 'http://localhost:3000/' // var ip ='http://192.168.7.82:3001/' var type = 'update_user' $(function(){ $('#myTab a').click(function(){// type = $(this).attr('id') }) var table=$('#example').DataTable({ "bDestroy":true, "paging": true, "lengthChange": false, "searching": true, ...
'use strict'; const common = require('x2node-common'); const rsparser = require('x2node-rsparser'); const AbstractDBO = require('./abstract-dbo.js'); const DBOExecutionContext = require('./dbo-execution-context.js'); const ValueExpressionContext = require('./value-expression-context.js'); const propsTreeBuilder = req...
const axios = require('axios'); const path = require('path'); const fs = require('fs'); const fm = require('front-matter'); const yaml = require('js-yaml'); require('dotenv').config(); PLATFORM_API_URL = "https://platform.segmentapis.com" const slugify = (displayName) => { let slug = displayName .toLowerCase()...
// ********** Part I. Class Defination ********** // /* ------------ Calendar Object ------------------*/ function Calendar(width, height){ // Properties and attributes definations this.YEAR = 0; this.MONTH = 1; this.DATE = 2; this.WEEK = 3; this.monthes = new Array(13); this.days = new Array(7); // Monthes ...
import React, { Component } from 'react'; import styled from 'styled-components'; import Helmet from 'react-helmet'; import { Form, Button, OverlayTrigger, Popover } from 'react-bootstrap'; import ListGroup from 'react-bootstrap/ListGroup'; import { Formik } from 'formik'; import * as Yup from 'yup'; import { CSVReade...
/* eslint-disable no-undef */ import 'leaflet' import 'leaflet.control.layers.tree' import 'leaflet.markercluster' import 'leaflet-easybutton' import './node_modules/leaflet.markercluster/dist/MarkerCluster.css' import './node_modules/leaflet.markercluster/dist/MarkerCluster.Default.css' import gemeenten from './data/...
import header from './components/header.vue'; import footer from './components/footer.vue'; import login from './views/login.vue'; import dashboard from './views/dashboard.vue'; import notification from './views/sistem/notification.vue'; import changelog from './views/sistem/changelog.vue'; import saran from './views/s...
import dataset from './dataset.js'; import matrix from './matrix.js'; import * as g from './general.js'; export function first(rowFunc) { return data => { for (let row of data) if (rowFunc(row) !== undefined && rowFunc(row) !== null) return rowFunc(row); return null; ...
var filter = document.getElementsByClassName("filter")[0] var d = document.createElement("div"); d.className = "rect-d" filter.style.display = "flex" document.getElementById("covid").appendChild(d).appendChild(filter) d.style.background = "transparent" function createMap(error, mapCriteria) { var d = document.ge...
/* eslint-disable no-console */ const fs = require('fs'); const path = require('path'); const assert = require('assert'); const deepDiff = require('deep-diff'); const { camelCase, get, isEqual, omit } = require('lodash'); const commandLineArgs = require('command-line-args'); const commandLineUsage = require('command-l...
/**-----------------**-----------------**-----------------** Copyright (c) 2007-2019, <NAME>, Sysphonic. [http://sysphonic.com/] This module is released under MIT License. **-----------------**-----------------**-----------------**/ function layoutBaseElem(mainWidth, mainHeight, init) { var main_div = _z("main_di...
/** * Copyright © 2014-2016 The Board of Trustees of The Leland Stanford Junior University. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICEN...
/** * @fileoverview Implementation of the binary-tree method for * efficient paired comparisons "Efficient method * for paired comparison", Silverstein & Farrell * Journal of Electronic Imaging (2001) 10(2), 394–398 * * This algorithm was used for aesthethics comparisons * "Evaluating the Effectiveness of Color ...
/*! plotframes | (c) 2015 <EMAIL> | MIT License | https://github.com/rodrigopolo/plotframes/blob/master/LICENSE */ const fs = require('fs'), stream = require('stream'), child = require('child_process'), extend = require('extend'), path = require('path'), split = require('split'), isWin = /^win/.test(proc...
// Copyright © 2019–2020, <NAME>. See LICENSE for details. const { warn, error, help } = require('./Logging'); const mathf = require('./Math-Functions'); const misc = require('./Misc'); const EPSILON = misc.constants.EPSILON; ComplexNumber = function (real, imaginary) { ` The set of “real numbers” (ℝ) contains any...
/* Replicate boss callouts from IHAU discord channel Listener Bot joins IHAU and relies messages to the bot on your Discord Server Setup: * Bot must have manage message permission on #boss_timer and #boss_callouts channel on your server * Token for a listener user stored in the env variable BDO_BOSS_TRACKER...
$(document).ready(function() { var options = {}; var manifest = {}; var playerListTable = {}; var mapListTable = false; var timer = []; var $container = null; // avoid possible code injection e.g. player and server names ...
/* GENERATE RETINA IMAGES ACTION */ var current; var maxPhpSize = wr2x_admin_server.maxFileSize; var ids = []; var errors = 0; var ajax_action = "generate"; // generate | delete function wr2x_display_please_refresh() { wr2x_refresh_progress_status(); jQuery('#wr2x_progression').html(jQuery('#wr2x_progression').html...
/// ==UserScript== // @name NAPT - NQA2 AutoPaste & Send Tool // @namespace https://github.com/pgDora56 // @version 1.6.0 // @description Auto paste for NQA2's chat-area & send, and more // @author <NAME>. // @match https://powami.herokuapp.com/nqa2/* // @license MIT License // @grant GM_...
/* eslint-disable react/no-danger */ /** * * AdminOrder * */ import React, { memo, useCallback, useEffect, useState } from "react"; import { withRouter } from "react-router-dom"; import { compose } from "redux"; import { createStructuredSelector } from "reselect"; import { connect } from "react-redux"; import mome...
/* global browser, MediaRecorder */ var CANCORDER_VIDEO_ID = 'cancorder-video'; var GAMEPAD_CONTROLS_ENABLED = false; var NUMERIC_KEY_CHAR_CODES = { 161: 1, 8482: 2, 163: 3, 162: 4, 8734: 5, 167: 6, 182: 7, 8226: 8, 170: 9 }; var filenamesGenerated = {}; var framerate; var isFinished = true; var isRe...
import 'normalize.css'; import './style.css'; import data from './data.json'; import * as topojson from 'topojson'; import * as selection from 'd3-selection'; import { geoEquirectangular, geoPath, geoGraticule } from 'd3-geo'; import { min, max, median } from 'd3-array'; import { json } from 'd3-fetch'; import { saveRe...
// function to pretty print the config data so that arrays show on one line, so it's easier to visually parse the config file when hand opening it. Purely cosmetic. function prettyPrintConfig(cfg) { const output = JSON.stringify(cfg, function(k, v) { if (v instanceof Array) { return JSON.stringify(v); }...
"use strict"; var __spreadArrays = (this && this.__spreadArrays) || function () { for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; for (var r = Array(s), k = 0, i = 0; i < il; i++) for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) r[k] = a...
var QueryString = function() { // This function is anonymous, is executed immediately and // the return value is assigned to QueryString! var query_string = {}; var query = window.location.search.substring(1); var vars = query.split("&"); for (var i = 0; i < vars.length; i++) { var pa...
'use strict'; require("babel-polyfill") let Mustache = require('mustache') let jsonp = require('jsonp') let firstBy = require('thenby') let meta = require('../package.json') let lang = require('./lang') let search = require('./search') class NavService { constructor(selector) { this.anchors = document.querySele...
/** * Bitwig Controller Script for the Behringer X-Touch Mini. * * Author: <NAME> - https://github.com/justlep/bitwig * License: MIT (http://www.opensource.org/licenses/mit-license.php) */ loadAPI(6); load('lep-framework/complete.js'); host.defineController('Behringer', 'X-Touch Mini', '1.1', '78370722-cd92-11e8...
function createVisualization(modelFactory,options= { nodesize: 10,width:100,height:100}) { var d3 = require('d3'); var combo = require('combinations-generator'); var constraintEngineFactory = require("constraints-engine"); const nodesize=options.nodesize; var margin=30, width = options.width, height = o...
// S5 v1.1 slides.js -- released into the Public Domain // Modified for Docutils (http://docutils.sf.net) by <NAME> // // Please see http://www.meyerweb.com/eric/tools/s5/credits.html for // information about all the wonderful and talented contributors to this code! var undef; var slideCSS = ''; var snum = 0; var smax...
'use strict'; // For mgmt, it's ok to connect to localhost. const config = { redis:{ host: 'localhost', // For mgmt, we always use localhost, rather than docker container name. port: process.env.REDIS_PORT || 6379, password: process.env.REDIS_PASSWORD || '', }, }; const fs = require('fs'); const os = ...
/** * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components * @version v23.0.0 * @link http://www.ag-grid.com/ * @license MIT */ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = ...
import React, {Component} from 'react'; import PropTypes from 'prop-types'; import WebView from 'react-native-webview'; import {InjectedMessageHandler} from './WebviewMessageHandler'; import {actions, messages} from './const'; import {Modal, View, Text, StyleSheet, TextInput, TouchableOpacity, Platform, PixelRatio, Key...
/* * Responsee JS - v7 - 2020-09-30 * https://www.myresponsee.com * Copyright 2020, Vision Design - graphic zoo * Free to use under the MIT license. */ jQuery(document).ready(function($) { //Responsee tabs $('.tabs').each(function(intex, element) { current_tabs = $(this); $('.tab-label').each(fun...
// Change to enable console logging var debug = true; if (!debug) { console.log = function() {} } // CONST time in seconds const DAY_MILISEC = 24*3600*1000; // number of miliseconds in a day const WEEK_MILISEC = 7*24*3600*1000; // number of miliseconds in a week // parameters for logging events const INDEX = 'maint...
/*===========================================================================*/ // Geocoding // Sample map by ThinkGeo // // 1. ThinkGeo Cloud API Key // 2. Map Control Setup // 3. Popup Setup // 4. Geocoder Setup // 5. Event Listeners // 6. Tile Loading Event Handlers /*===================================...
/* * Copyright (C) 2016 Bilibili. All Rights Reserved. * * @author <NAME> <<EMAIL>> * * 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...
const { maths, primitives } = require('@jscad/modeling') const { BinaryReader } = require('@jscad/io-utils') const packageVersion = require('./package.json').version // STL function from http://jsfiddle.net/Riham/yzvGD/35/ // CC BY-SA by Riham // changes by <NAME> <<EMAIL>> // changes by Mark 'kaosat-dev' Moissette ...
//////////////////////////////////////////////////////////////////////////////// // Orbit Camera Script // //////////////////////////////////////////////////////////////////////////////// var OrbitCamera = pc.createScript('orbitCamera'); OrbitCamera.attributes.add...
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. /** @typedef {{eventName: string, uid: number}} */ // eslint-disable-next-line no-var var WebUIListener; /** Platform, package, object property, and ...
import Delta from 'quill-delta'; import { Attributor, ClassAttributor, EmbedBlot, Scope, StyleAttributor, BlockBlot, } from 'parchment'; import { BlockEmbed } from '../blots/block'; import Quill from '../core/quill'; import logger from '../core/logger'; import Module from '../core/module'; import { AlignAt...
/* * 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 writing, software * distributed u...
import Ember from 'ember'; import {goToDefinition} from '../utils/go-to-definition'; import {initializeLineSelection} from '../utils/line-selection'; import {addLinksToLanguageExtensionsDocs} from '../utils/language-extensions'; function compareLocations (p1,p2) { if(p1.line === p2.line) { if(p1.column === p2.co...
am4core.options.autoSetClassName = true; //Creates the amChart mapchart from purely JSON config files function loadConfigFileForAmMapChart() { $.getJSON("../js/jsonFilesForAmcharts/amMapJSONConfig.json", function(jsonData) { am4core.createFromConfig( jsonData.mapchartdata, "am-mapchart", am4map...
/** * Created by Shyam on 1/23/2018. */ const builder = require('mongo-qbuilder'), utils = require('utils-data'), express = require('express'), ObjectId = require('mongodb').ObjectId, // for parsing multipart/form-data, along with files, stored in memory multer = require('multer'), formD...
/* Highcharts Export Server Copyright (c) 2016, Highsoft 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,...
import PropTypes from 'prop-types'; import React from 'react'; import ColorSwatchComponent from '../ColorSwatchComponent'; import TooltipComponent from '../TooltipComponent'; import CSS_COLORS from '../../utils/cssColors'; import { TOOLTIP_VISIBLE_TIME } from '../../globalConstants'; import './styles.scss'; const ...
const { Buffer } = require('buffer') const querystring = require('querystring') const { Readable } = require('stream') const { URL } = require('url') const bodyParser = require('body-parser') const chalk = require('chalk') const chokidar = require('chokidar') const { parse: parseContentType } = require('content-type')...
import Vector2d from "./../math/vector2.js"; import {warning} from "./../lang/deprecated.js"; import WebGLRenderer from "./webgl/webgl_renderer.js"; import CanvasRenderer from "./canvas/canvas_renderer.js"; import utils from "./../utils/utils.js"; import event from "./../system/event.js"; import game from "./../game.js...
/** * The copyright in this software is being made available under the BSD License, * included below. This software may be subject to other third party and contributor * rights, including patent rights, and no such rights are granted under this license. * * Copyright (c) 2013, Dash Industry Forum. * All rights re...
// ml5.js: Pose Estimation with PoseNet // The Coding Train / <NAME> // https://thecodingtrain.com/Courses/ml5-beginners-guide/7.1-posenet.html // https://youtu.be/OIo-DIOkNVg // https://editor.p5js.org/codingtrain/sketches/ULA97pJXR let video; let poseNet; let pose; let skeleton; let isFirstTime = true; let song; let...
// globals! var endorseeInfo; // dictionary - name, office, caucus var name; var job; var quotation; var volunteer; var doorknocking; var calling; var texting; var berning; var othervolunteering; var bgcolor; var background; var avatarImageSrc; var plural; var imgs=[]; var imagesOK=0; var statePath = ''; var candidat...
/* * 首页 最新话题、精华、 * 发现 全部 精华推荐 本周热议 点击标签父分类 点击标签分类 * 显示话题列表 * type 1 导航 2 父标签 3 标签 * id 当type= 1时 1首页最新话题显示 2首页精华3发现本周热议4获取全部话题列表 * 当type=2或type=3时 id为标签父分类的id 或 标签分类的id * obj 当前节点 * url 获取数据的地址 */ function show(type,id,obj,wd,url) { if (url==undefined) { url = ""+need...
'use strict'; function toMojoCentralState(state) { switch (state) { case 'absent': return bluetooth.mojom.CentralState.ABSENT; case 'powered-off': return bluetooth.mojom.CentralState.POWERED_OFF; case 'powered-on': return bluetooth.mojom.CentralState.POWERED_ON; default: throw...
/* An abstract class for all agenda-related views. Displays one more columns with time slots running vertically. ----------------------------------------------------------------------------------------------------------------------*/ // Is a manager for the TimeGrid subcomponent and possibly the DayGrid subcomponent (...
// Bakeoff #3 - Escrita em Smartwatches // IPM 2020-21, Semestre 2 // Entrega: até dia 4 de Junho às 23h59 através do Fenix // Bake-off: durante os laboratórios da semana de 31 de Maio // p5.js reference: https://p5js.org/reference/ // Database (CHANGE THESE!) const GROUP_NUMBER = 47; // add your group number ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _propTypes = _interopRequireDefault(require("prop-types")); var _react = _interopRequireDefault(require("react")); var _uncontrollable = require("uncontrollable"); var _classnames = _interopRequireDefaul...
const { CleanWebpackPlugin } = require("clean-webpack-plugin"); const CopyWebpackPlugin = require("copy-webpack-plugin"); const fs = require("fs"); const HtmlWebpackPlugin = require("html-webpack-plugin"); const MiniCssExtractPlugin = require("mini-css-extract-plugin"); const OptimizeCSSAssetsPlugin = require(...
import l from '../../common/logger' import base64url from 'base64url' import canonicalize from 'canonicalize' import util from 'util' import didJwt from 'did-jwt' import R from 'ramda' import db from './endorser.db.service' import { allDidsInside, calcBbox, hashChain, hashedClaimWithHashedDids, HIDDEN_TEXT } from './ut...
function check_award_form( awardform ) { var error_msg = "The following errors were found: \n"; var error_code = 1; if (awardform.cname.value == "null") { error_msg = error_msg + "\t* No player name selected\n"; error_code = 0; } if (awardform.lootname.value == "null") { error_msg = error_msg + "\t* Select...
/** * * Copyright (c) 2020 <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 applica...
import Base from '../../Base.js'; import ObjectHelper from '../../helper/ObjectHelper.js'; import StringHelper from '../../helper/StringHelper.js'; /** * @module Core/data/mixin/StoreGroup */ const resortActions = { add : 1, replace : 1 }; /** * Mixin for Store that handles grouping. * * ```javascri...
// MIT License // Copyright 2017-2020 (c) <NAME> <<EMAIL>> const CONCAT = []; const DBNAME = 'visitors'; const REG_ROBOT = /search|agent|bot|crawler/i; const TIMEOUT_VISITORS = 1200; // 20 MINUTES const Fs = require('fs'); const REGIP = /\d+\.\d+\.\d+|localhost/i; var FILE_CACHE = 'visitors.cache'; var W = {}; var VI...
// ======================================================================================== // VARIABLES // ======================================================================================== const apiKey = "<KEY>"; const videoConstraints = { audio: false, video: true, }; const guifosContainer = document.q...
const NEWLINE = require('os').EOL; const fs = require('fs-extra') const path = require('path') const txtfile = require('./../lufile/read-text-file') const luisFile = require('./../luisfile/parseLuisFile') const helperClasses = require('./../lufile/classes/hclasses') const exception = require('./../lufile/classes/except...
let lastError = null; let activeAbortController = new AbortController(); let activeSessionId; let activeRanges = [[0,20]]; let activeRoomId = ""; // the room currently being viewed const requiredStateEventsInList = [ ["m.room.avatar", ""], ["m.room.tombstone", ""] ]; const requiredStateEventsInRoom = [ ["m.room...
/* * Copyright (c) 2016, Two Sigma Open Source * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, * this list of...
/* set up global variables */ // viewport var _width = window.innerWidth; // unless < video_width ( 1280 ) var _height = window.innerHeight; // unless < video_height ( 720 ) // quality and video need to match! var video_quality = "480p_h264" //"320p_h264_mobile"; var video_width = 1024; // as texture v...
"use strict"; import T from '../js/lib/tool.js'; import Log from '../js/lib/log.js'; import I18N from '../js/lib/translation.js'; import ExtApi from '../js/lib/ext-api.js'; import ExtMsg from '../js/lib/ext-msg.js'; import MxWcStorage from '../js/lib/storage.js'; im...
function ProcessTemplateAsmSelect() { /** * Identify asmSelect <li> items with classes that indicate how they contribute to Inputfield width rows * * - "rowItem" class is added all items that contribute to a row * - "rowStart" class is added to items that begin a row * - "rowStop" class is added to items t...
const projectType = ' .'; const tagType = '#'; const userType = ' @'; function _MainContent() { let HTML = { mainContent: $("#mainContent")[0], mainContentHolder: $("#mainContentHolder")[0], pages: $("#mainContent .mainContentPage"), } this.curProjectId = ""; this.curProject; this.header = new _M...
var heatmap = null; var giggleUrl = "http://localhost:8080/"; var giggleUCSCBrowserUrl = "http://localhost:8081/"; var ucscBrowserUrl = "https://genome.ucsc.edu/cgi-bin/hgTracks?db=hg19"; var sourceFileMap = {}; var coordMap = {}; var def = null; var dataForChart = null; var valueField = "overlaps";...
import m from 'mithril'; import prop from 'mithril/stream'; import moment from 'moment'; import _ from 'underscore'; import h from '../h'; import shippingFeeInput from '../c/shipping-fee-input'; import rewardVM from '../vms/reward-vm'; import projectVM from '../vms/project-vm'; import rewardCardEditDescription from './...
/* * @Author: <NAME> * @Date: 2021-08-02 09:02:29 * @LastEditTime: 2022-01-07 16:21:19 * @LastEditors: <NAME> * @Description: * @FilePath: \miniprogram-to-uniapp\src\utils\ggcUtils.js * */ const $ = require('gogocode') const path = require('path') const fs = require('fs-extra') const t = require("@babel/types"...
/* p4wn, AKA 5k chess - by <NAME> <<EMAIL>> * * This code is in the public domain, or as close to it as various * laws allow. No warranty; no restrictions. * * lives at http://p4wn.sf.net/ */ /* The routines here draw the screen and handle user interaction */ var P4WN_SQUARE_WIDTH = 30; var P4WN_SQUARE_HEIGHT = ...
'use strict'; /*********************************************************************** * * A lot of common utility functions called from several other programs * **********************************************************************/ const Wreck = require('@hapi/wreck'); const config = require('config'); const...
/* * SFTab(Simple Floating Tabs) * Visit http://www.uuware.com/ for details. */ var FTab_MSIE = (navigator.userAgent.indexOf('MSIE') >= 0 ? true : false); //used to judge as IE. var FTab_M_Lst = []; //for save top win var FTab_ActWin = null; //oMain for move window var SFTab_PATH = ''; //path of style and a...
/* Copyright 2019 Adobe. All rights reserved. This file is licensed to you 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 agre...
/*! * Keystroke Dynamics * * This file is licensed under the MIT license * * <NAME> - vikasdesai.github.io * */ var kevents = []; var keyevents = []; var keyupevents = []; var keydownevents = []; var UD = []; var DU = []; var DD = []; var lastdown = -1; var lastup = -1; var UDseq = []; var DUseq = []; var DDs...
"use strict"; /* Some auxiliary functions */ // Quick way to return a random alphanumeric string of length ~10 function globular_freshName(n) { return n.toString() + '-' + Math.random().toString(36).slice(2); } // Check whether a number is an integer function isInteger(n) { return n % 1 === 0; } // Pref...
const EventEmitter = require('events').EventEmitter; const download = require('../common/download'); const fs = require('fs'); const electron = require('electron'); const process = require('process'); const os = require('os'); const si = require('systeminformation'); const appData = require('./helpers/getAppDataFolderS...
import {ReflexContainer, ReflexElement, ReflexSplitter} from 'react-reflex'//使用弹性布局 import ViewingApplication from 'Viewer.ViewingApplication' import { ReactLoader, Loader } from 'Loader' import BaseComponent from 'BaseComponent' import autobind from 'autobind-decorator' import ServiceManager from 'SvcManager' import '...
// -------------------------------------- // Constants // -------------------------------------- const SOLVED = "SolveCryptex"; // -------------------------------------- // Stage variables // -------------------------------------- var stg; var sw; var sh; var vw; var vh; // --------------------------------------...
import React, { Component } from "react"; import "./App.css"; import InputsForm from "./InputsForm"; import ExpectedMutations from "./ExpectedMutations"; import debounce from "./debounce"; import ReasonExpressionInput from "./ReasonExpressionInput"; import suggest from "resuggest"; import * as lzString from "lz-string"...
"use strict"; /////////////////////////////////////////////////////////// // Constants /////////////////////////////////////////////////////////// var CARD_SLIDE_DURATION_MS = 450; var DONATION_LINK_VARIETIES = 6; var DONATION_PAGE_VARIETIES = 5; var BUG_REPORT_MAX_SIZE = 0.74 * 1024 * 1024; var OPTIONS_INIT_RETRY_DE...
class majsoulpaipuanalyze{ constructor(steppause = false, selfpause = -1, oneroundpause = false){ this.initialoya = 0; this.nowround = 0; this.steppause = steppause; this.selfpause = selfpause; this.oneroundpause = oneroundpause; this.onlydownload = false; } ...
var app = require('../fixtures/bootstrap'), vows = require('vows'), assert = require('assert'), util = require('util'), Multi = require('multi'), EventEmitter = require('events').EventEmitter; var multi = new Multi(app); multi.on('pre_exec', app.backupFilters); multi.on('post_exec', app.resto...
/** * * <pre> * Title: 【报送管理】-【报文生成】 * Description: 报文生成:主页面 * </pre> * @author wangxy31 * @version 1.00.00 @date 2020年5月26日 */ var tab_name = ""; var tab_name_en = ""; var str_subfix = ""; var str_className = ""; function AfterInit() { // 获取路径参数 if (jso_OpenPars != '') { if(jso_OpenPars.type != null...
import React from 'react'; import PropTypes from 'prop-types'; import { Field, reduxForm } from 'redux-form/immutable'; import { Row, Col } from 'react-flexbox-grid'; import MenuItem from 'material-ui/MenuItem'; import Layout from '../../../Layout'; import BreadCrumb from '../../../../../components/AdminLayout/compone...
import axios from 'axios'; import { observable, action, computed, toJS, } from 'mobx'; import { store, stores } from 'choerodon-front-boot'; const { AppState } = stores; @store('FeatureStore') class FeatureStore { // issue @observable issue = {}; // fields @observable fields = []; @action setIssueFields...
"use strict"; exports.__esModule = true; exports.default = void 0; var _classnames = _interopRequireDefault(require("classnames")); var _omit = _interopRequireDefault(require("lodash/omit")); var _react = _interopRequireDefault(require("react")); var _propTypes = _interopRequireDefault(require("prop-types")); var...
/** * Checks if there is a difference between two objects 'BelongsTo'. * * @param {Object} belongsTo1 * @param {Object} belongsTo2 */ function isDiff(belongsTo1, belongsTo2) { // Compare if the attributes have exactly the same value and // if the result is false, we know that there is a difference return !(...
/** * Copyright (c) 2012-2021 <NAME>., MIT-licensed. * @fileOverview PhotoShow popup page script. * @author Vincent | <EMAIL> * @version 1.0.0.0 | 2012-12-07 | Vincent // Initial version. * @version 2.0.0.0 | 2013-01-03 | Vincent // Updates: Support turnning on/off PhotoShow for individual website. * @versi...
const tmp = require('tmp-promise'); const fs = require('fs-extra'); const path = require('path') const async = require('async'); const all = require('it-all') const toString = require('uint8arrays/to-string') const pipe = require('it-pipe') const toIterable = require('stream-to-it') const { create } = require('ipfs-htt...
const fs = require('fs'); const { gzip } = require('node-gzip'); const distance = require('@turf/distance').default; const area = require('@turf/area').default; const simplify = require('@turf/simplify').default; const VPTreeFactory = require('vptree'); const csvParse = require('csv-parse/lib/sync'); const fetch = requ...
let assert = require('assert') export const S = 19 export const S2 = S*S const go_xcoords = 'ABCDEFGHJKLMNOPQRST' export class coord { constructor(x,y) { assert(x >= 0 && x < S) assert(y >= 0 && y < S) this.xc = x this.yc = y} isCoord() { return true} x() { return this.xc } y() { return this....