text
stringlengths
5.97k
41.2k
/* ---------------------------------------------------------------------------------------------------------------------------- | ROQR - fhiR On Qewd and dockeR | | Developed as part of the Yorkshire and Humber Care Record (...
// Copyright 2019 British Broadcasting Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable...
import React, { Component, Fragment } from "react"; import { observer, inject } from "mobx-react"; import { withRouter } from "react-router-dom"; import { injectIntl, FormattedMessage } from "react-intl"; import { Table, Select, Tooltip, Pagination, Button, Icon, Modal, } from "choerodon-ui"; import { Act...
var serverOffsetSec = 0; // This should be computed just once $(document).on('ready', function () { ppLib.fixLayout(); ppLib.resizeText('#font_resize_bar a'); ppLib.navFilesTree('.file_tree', '.has_items a'); ppLib.helpBubbles('#session_counter .help_icon', 'data-hint', 'white'); ppLib.helpBubbles...
/* * Copyright <EMAIL> * LGPL license * You are free to use this software, sell it, trade it, burn it, or even use it to change the world...but we're not responsible for any badness. * You must include this disclaimer in your usages along with the email of the original creator of this software: <EMAIL> * * Enjoy!...
import React, { Component } from 'react'; import _ from 'lodash'; import inputTypes from './inputTypes'; import errorMessages from './lib/errors'; import validation from './lib/validation'; import QuestionPanel from './questionPanel'; import { getPrefillData } from './lib/questionAnswers'; import { QUESTION_INPUT_TYPE...
import StrideType from '/client/lib/StrideType'; import StepType from '/client/lib/StepType'; import StepDelta from '/client/lib/StepDelta'; import Direction from '/client/lib/Direction'; import { StepPoint } from '/client/lib/Point'; import TurnMarker from '../field/TurnMarker'; import CounterMarch from '../field/Coun...
const cars = require("../models/car"); const confirmedbookings = require("../models/confirmedBooking"); const requestbookings = require("../models/requestBooking"); const date = require("date-and-time"); const user = require("../models/user"); const dayjs = require("dayjs"); const asyncForEach = async (array, callback...
'use strict'; 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 _createClass = function () { function defi...
/* * ChutyChart * A stock data graphing and analysis library. * By: <NAME> */ const black = '#222222'; const green = '#108a93'; const red = '#ad1d28'; const gray = '#464545'; (function (window, document, Object, console, Math, animate, CanvasRenderingContext2D, round, clone, THRESHOLD_RATIO) { const MONTHS ...
const fs = require('fs'); const Discord = require('discord.js'); const trixybot = new Discord.Client(); const { prefix, token, ownerid } = require('./config.json'); const faces_archive = require("./faces_archive.json"); const userid_ignore = require("./userid_ignore.json"); const ytdl = require("ytdl-core"); con...
var random = require("./utils").random function pluralityAlg(votes, candidates, maxWinners) { var results = [] for(var n=0; n<candidates.length;n++) { results[n] = 0 } votes.forEach(function(vote) { results[vote[0]]++ }) var sortedTransformedResults = results.map(function(val...
const WEAK_DEBUFF = .75; const FRAIL_DEBUFF = .75; class Game { constructor({quit, message, getUserInput, render}){ this.quit = quit.bind(this); this.message = message.bind(this); this.getUserInput = getUserInput.bind(this); this.render = render.bind(this); this.activeIndex = 0; this.room = {...
import React from 'react' import PageSpin from 'PageSpin/PageSpin.js' import ScrollingSpin from 'ScrollingSpin/ScrollingSpin.js' import { FETCH_STATUS_NO_MORE_PRODUCT, FETCH_SUCCESS, BASE_STATIC_DIR, BASE_PAGE_DIR, FETCH_NICE_SHOW, FETCH_NICE_SHOWS, FETCH_GOOD } from 'macros.js' import {fetchable, fetchAu...
class Robot{ constructor(x, y, id, color){ this.x = x; this.y = y; this.id = id; this.color = color; } } class Ricochet{ constructor(rows, cols, colors){ this.rows = rows; this.cols = cols; this.robots = [new Robot(2,3,0, colors[0]), new Robot(12,4,1,colors[1]), new Robot(3,11,2,colors[2]), new ...
import React from "react"; import {runInAction, toJS} from "mobx"; import {inject, observer} from "mobx-react"; import { Confirm, IconButton, Input, TextArea, Selection, MultiSelect, Checkbox, JsonInput, LabelledField, DateSelection, Maybe, ToolTip, ImageIcon, FormatName, Action } from "el...
import React, { useState, useEffect } from "react"; import { useRouter } from 'next/router'; import { Player, Controls } from '@lottiefiles/react-lottie-player'; import Upload from '../../components/Upload/Upload'; import ViewLottie from "../../components/Layout/ViewLottie"; import uuid from 'react-uuid'; import { XCir...
/** * jQuery Slot Machine by <NAME>. * http://www.eyecon.ro/slotmachine/ * * Modified. */ NAMES = ["TERRAFORMER", "MAYOR", "GARDENER", "BUILDER", "PLANNER", "GENERALIST", "SPECIALIST", "ECOLOGIST", "TYCOON", "LEGEND", "DIVERSIFIER", "TACTICIAN", "POLAR EXPLORER", "ENERGIZER", "RIM SETTLER", ...
var __extends = (this && this.__extends) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; var __decorate = (this && this.__decorate) || function (decora...
import fs from 'fs' import os from 'os' import path from 'path' import BLAKE2s from 'blake2s-js' import Base58 from 'bs58' import nacl from 'tweetnacl' import nacl_ from 'nacl-stream' import scrypt from 'scrypt-async' import { async, hex, isBrowser } from '../common/util' import debug from '../co...
"use strict"; // SETTINGS of this demo : const SETTINGS = { rotationOffsetX: 0, // negative -> look upper. in radians cameraFOV: 40, // in degrees, 3D camera FOV pivotOffsetYZ: [-0.2, -0.4], // XYZ of the distance between the center of the cube and the pivot detectionThreshold: 0.75, // sensibilit...
var _dUser; $(document).ready(function(){ /*$.validator.addMethod("fechaESP", function( value, element) { var validator = this; var datePat = /^(\d{1,2})(\/|-)(\d{1,2})(\/|-)(\d{4})$/; var fechaCompleta = value.match(datePat); var miFechaActual = new Date();...
import styled from "@emotion/styled"; import debounce from "lodash.debounce"; import React from "react"; import { connect } from "react-redux"; import { Flex } from "rebass"; import * as actions from "../../../src/actions"; import Comment from "../../../src/components/Comment"; import LegalReferences from "../../../sr...
const displayChat = ([name, color, message], private=false) => { const listEl = document.querySelector('#messages'); const newEl = document.createElement('li'); const nameSp = document.createElement('span'); let privately = ""; if (private) {privately = " (privately)";} nameSp.style.color = color; nameSp....
var scene, camera, renderer; var eye_background_color = new THREE.Color(0xFFFFFF); var pup_color = new THREE.Color(0x523D89); var nose_color = new THREE.Color(0x694032); var mouth_color = new THREE.Color(0x764237); var eye_l_width = 200; var eye_l_height = 100; var eye_l_x = -400 + (eye_l_width / 2) + 100 - 2; var ey...
var qs = querystring.parse(); var steptime = +qs.interval || 1000, // ms per step pause = +qs.pause || 2500, // pause at end of loop showSteps = !(qs.showsteps === 'false'), transition = qs.transition || 0, stage = qs.stage || 'insmod', tickSize = qs.ticksize || 1, file = qs.file || null, p...
$(function () { drawGraphs(); }); function drawGraphs() { var url = window.location.pathname; var comps = url.split('/'); var type = comps[comps.length - 2]; var operation = comps[comps.length - 3]; var action = 'getSubscriberCountByAPIs'; var dateRange = $('#date-range').val(); var ...
const readline = require('readline'); const fs = require('fs'); const { Client } = require('discord.js'); module.exports = async () => { console.log('\x1b[36m%s\x1b[0m', 'Willkommen beim Setup Assistenten!'); const client = new Client({ intents: ['DIRECT_MESSAGES'] }) console.log('\x1b[2m%s\x1b[0m', '[ ]',...
export const optimizers = [ { name: 'keras.optimizers.SGD(0.01)', value: 'keras.optimizers.SGD(0.01)' }, { name: 'keras.optimizers.RMSprop(0.01)', value: 'keras.optimizers.RMSprop(0.01)' }, { name: 'keras.optimizers.Adam(0.01)', value: 'keras.optimizers.Adam(0.01)' }, { name: 'keras.optimizers.Adadelta(...
import * as PopularPasswords from './PopularPasswords.js'; const PatternID = { LowerAlpha: 'L', UpperAlpha: 'U', Digit: 'D', Special: 'S', High: 'H', Other: 'X', Dictionary: 'W', Repetition: 'R', Number: 'N', DiffSeq: 'C', All: "LUDSHXWRNC" }; const PrintableAsciiSpecial = "!\"#$%&'()*+,-./:;<=...
var os = []; for (y = 0; y < 101; y++) { os[y] = 100 - y; }; var o = [100, 6, 1, 0]; //price tags >100,<100,6>,<6,1>,<1,0> var o2 = [0, 0, 0, 0]; //ppvSum var o1 = o2.slice(); //post cnt var o3 = o2.slice(); //ppwSum function dataToTable(zy, _ppv, _ppw) { o1[zy]++; o2[zy] += _ppv; o3[zy] ...
/* ** Copyright (C) 2018 by <NAME>, ** Charlestown, MA, USA ** <EMAIL> ** ** This program is free software; you can redistribute it and/or ** modify it under the terms of the GNU General Public License ** as published by the Free Software Foundation; either version 2 ** of the License, or (at your option) any later ver...
/** *** Qlik Sense Extension - Chord Diagram v1.00 *** *** Developped : by <NAME> *** *** Version : 1.02 *** *** Follow me on Tweeter : @VizMatt **/ define(["jquery", "./ChordDiagram-Properties", "./Library/d3.min", "./Library/chroma.min"], function($, properties, d3, chroma) { return { ini...
var elo = require('elo-rank')(); function ratingToName(rating) { if (rating > 1500) return "Gold"; else if (rating > 1200) return "Silver"; else return "Bronze"; } var getClan, War; var ClanRoom = exports.ClanRoom = (function () { function ClanRoom(name, data) { data = data || {}; data.isClanRoom = true...
/*********************************************************** * 使用iframe模拟ajax的窗体,本JS需要引用jquery框架 * 修改自 thickbox 源码 * by:tianya<<EMAIL>> ************************************************************/ var tb_pathToImage="static/images/loading.gif"; var ftop1=0,ftop2=0,ftop=0,fleft=0,fftop=0; var ref_parent = false; /...
var copTimeBegan = null, copTimeStopped = null, copStoppedDuration = 0, copStarted = null, copBehavior = [], obj_one_TimeBegan = null, obj_one_TimeStopped = null, obj_one_StoppedDuration = 0, obj_one_TimeStarted = null, obj_two_TimeBegan = null, obj_two_TimeStopped = n...
/* eslint-disable object-curly-newline */ /* eslint-disable quote-props */ /* eslint-disable import/prefer-default-export */ const arraySizes = ['Small', 'Default', 'Medium', 'Large']; const arrayColors = [ { key: 'default', label: 'Default', color: 'default', group: 'Major' }, { key: 'primary', label: 'Primary', c...
var m_flag = 0; var userData; var current_test_state; var question_array = []; var totalMark = 0; var answers = []; var flag = 1; var test_duration = 0; var test_index = 0; var check_flag = 0; var test = ""; var onProgress = 0; var marks = ""; var taken_time = ""; var applied_tests = ""; $(document).ready(function(){ ...
/* Express Router for version 0 of rest API. 03.29.2018 tps Created to prototype AJAX call for student's submissions. 04.24.2018 tps Refined endpoint parmaeters. 05.28.2018 tps Try speeding up postAssignmentHandler by querying for assignments by user. 06.12.2018 tps Add endpoint for CAM user search. 07.03.2018 tps Add ...
'use strict'; const fs = require('fs'); const request = require('request'); const cheerio = require('cheerio'); const assert = require('assert'); const SEASON_NAMES = ["fall", "winter", "summer"]; const outputDir = "../scrapedJson/"; const courseCodeRegex = /\w{4}\s{0,2}\d{3}/; const minTotalCreditsRegex = /\S*\d+\S...
"use strict"; // for added security function heardAddOns(heard) { // this should overwrite the function in brain.js if (heardNumberGuessGame(heard)) return true; if (heardTranslator(heard)) return true; if (heardProgram(heard)) return true; if (heardGetSnippet(heard)) return true; return false; } let numb...
var requireUncached = require('./_utils/requireUncached'); // Dependencies var vows = require('vows'), assert = require('assert'), FileSystem = require('fs'); /** * <p>Unit tests for the node-config library. To run type:</p> * <pre>npm test</pre> * <p>Or, in a project that uses node-config:</p> * <pre>np...
/* eslint no-param-reassign: 0, no-use-before-define: ["error", { "variables": false }], no-return-assign: 0, no-mixed-operators: 0, react/sort-comp: 0 */ import PropTypes from 'prop-types'; import React from 'react'; import { Animated, Platform, StyleSheet, View } from 'react-native'; import Acti...
/* * PEG <-> PEGJS CONVERTER * * USAGE: $ nodejs pegjs_conv FILEPATH * Example: $ nodejs pegjs_conv camxes.js.peg * * • If the input file name ends with ".js.peg" or ".pegjs", it is considered to * be of the PEGJS format (i.e. "=" instead of the standard PEG "<-" operator, * JS-style comments, and inline Java...
function readData(file){ var hourlyData = new XMLHttpRequest(); hourlyData.open("GET", file, false); hourlyData.onreadystatechange = function(){ if(hourlyData.readyState === 4){ if(hourlyData.status === 200 || hourlyData.status == 0){ var hourlyDataString = hourlyData.responseText; //console.log(hourly...
//browser-update.org notification script, <browser-update.org> //Copyright (c) 2007-2009, MIT Style License <browser-update.org/LICENSE.txt> var $buo = function(op,test) { var jsv=11; var n = window.navigator,b; this.op=op||{}; //options this.op.l = op.l||n["language"]||n["userLanguage"]||document.documentElement.getA...
// 字符串格式化 String.prototype.format = function () { const args = arguments; if (args.length <= 0) { return this; } return this.replace(/\{(\d+)\}/g, (m, i) => args[i]); }; String.format = function () { if (arguments.length === 0) return null; if (arguments.length === 1) { ...
/******************************************** * Title: MD5 * Date: 2022-2-8 22:01:30 * Version: v1.0.0 * Author: Bencky1017 * Describe: MD5 Encode without UTF-8 unicode * * https://github.com/bencky1017/crypto ********************************************/ function mdbk(string) {//algorithm=undefined ...
/** * @license * Visual Blocks Editor * * Copyright 2012 Google Inc. * https://github.com/google/blockly * * 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...
var mapModule = require('ti.map'); var oCore = require('core'); var numeral = require('numeral'); var anotaciones = []; var habitaciones = 1; var banos = 0; var maxHabitaciones = 6; var precioRecamaras = 0.0; var precioBanios = 0.0; var precioAddons = 0.0; var subtotal = 0.0; var cCityChannel = ''; var idSolicitar = 0;...
"use strict"; const apiService = require("./apiService.js") , dataService = require("./DataService.js").rebbl; class Rampup { constructor(){ this.ownerId = 111960; this.gmanLeagueId = 54659; this.relLeagueId = 54657; this.races = [ {id:13,name:"Amazon"} ,{id:24,name:"Bretonnian"} ...
/** * Javascript Libraly for Ajax Front-end and Back-end * * @filesource js/common.js * @link http://www.kotchasan.com/ * @copyright 2016 Goragod.com * @license http://www.kotchasan.com/license/ */ var loader, modal = null; function send(target, query, callback, wait, c) { var req = new GAjax(); req.initLoad...
/* * Cloth Simulation using a relaxed constrains solver */ // Suggested Readings // Advanced Character Physics by <NAME>en Character // http://freespace.virgin.net/hugo.elias/models/m_cloth.htm // http://en.wikipedia.org/wiki/Cloth_modeling // http://cg.alexandra.dk/tag/spring-mass-system/ // Real-time Cloth Animat...
/** * 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 appl...
var modelPlanOps = { createDomObject: function (shellFrame, parentDomObj) { //取消新建 返回 undefined var dashboardData = { "ParentTitle": parentDomObj.DisplayName, "Title": "", "BtnTitle": "新建子项" }; shellFrame.ShowPopupDashboard('bimTreeDom', true, dashboardData); if (dashboardData.Title...
'use strict' var constants = require('./constants') var crypto = require('crypto') var _ = require('lodash') var request = require('async-request') var queue = {} function Parser () { this.registeredHelpers = [] this.registeredCmds = {} this.permissionsCmds = {} this.selfCmds = {} this.registeredParsers = ...
// // Bridge.js // FolioReaderKit // // Created by <NAME> on 06/05/15. // Copyright (c) 2015 Folio Reader. All rights reserved. // var thisHighlight; var audioMarkClass; var wordsPerMinute = 180; document.addEventListener("DOMContentLoaded", function(event) { // var lnk = document.getElementsByClassName("lnk")...
import Canvas from "./core/canvas.js"; import { createFileName, downloadJSON } from "./data/datautils.js"; import Rectangle from "./geometry/rectangle.js"; import Vector from "./math/vector.js"; import Color from "./color/color.js"; export const CONTEXT_2D = "2d"; export const CONTEXT_WEBGL = "webgl"; const DEFAULT_C...
//(c)2019, MIT Style License <browser-update.org/LICENSE.txt> //it is recommended to directly link to this file because we update the detection code "use strict"; var $bu_= new function() { var s=this; this.version="3.3.9"; this.vsakt = {c:79,f:72,s:"13.0.4",e:18,i:12,ios:"13.3",samsung:10.2,o:65,o_a:55.2,...
"use strict"; enchant(); var Board = Class.create(Group, { initialize: function() { var core = Core.instance; Group.call(this); this.x = 380; this.y = 260; this.colors = [ [7, 7, 7, 7, 7, 7, 7, 7], [7, 7, 7, 7, 7, 7, 7, 7], [7, 7, 7, 7, 7, 7, 7, 7], [7, 7, 7, 7, 7, 7, ...
import { metadataKeys } from '@vuu-ui/utils'; import { assignKeysToColumns, columnKeysToIndices, ColumnGroup, getColumnGroup, getColumnGroupColumnIdx, getHorizontalScrollbarHeight, extractGroupColumn, GridModel, splitKeys } from './grid-model-utils'; import * as Action from './grid-model-actions'; c...
const moment = require('moment'); const Apify = require('apify'); const Puppeteer = require('puppeteer'); // eslint-disable-line const vm = require('vm'); const { log, sleep } = Apify.utils; const CONSTS = require('./consts'); exports.handleErrorAndScreenshot = async (page, e, errorName) => { await Apify.utils.p...
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ma...
var g_autoLegendGroupId = 1; function generatePlot(id, plotSpec) { var plotDiv = document.getElementById(id); // common to all plot types /*if (plotSpec.layout == undefined) { plotSpec.margin = {}; } else if (plotSpec.layout.margin == undefined) { plotSpec.margin = {l: 50}; //plotSpec.margin.l = 50; } e...
// // SmoothScroll (<NAME>) // Licensed under the terms of the MIT license. // The only restriction would be not to publish any // extension for browsers or native application // without getting a written permission first. // // Scroll Variables (tweakable) var defaultOptions = { // Scrolling Core frameRat...
import { debug, error, log, PrepareMoveData } from '../ptu.js' /** * Extend the basic ActorSheet with some very simple modifications * @extends {ActorSheet} */ export class PTUGen8CharacterSheet extends ActorSheet { /** @override */ static get defaultOptions() { return mergeObject(super.defaultOptions, { cla...
//so if i understand the handler structure, //what we are doing is: export functions that are decision points //so that we can redirect to them //or maybe it's that we export functions that end with the need to send POST request //back to the router //so how should we handle the client.calls.create() request? seems li...
/////////////////////////////////// // Render Hangout function timeSlicer(date) { //Cut seconds off var timeWhole = date.toLocaleTimeString(); var time; if (timeWhole[1] === ':'){ time = timeWhole.slice(0, 4) + timeWhole.slice(7, 10); } else { time = timeWhole.slice(0, 5) + timeWhole.slice(8, 11); }...
var NB_COUNTRY_NAMES={}; NB_COUNTRY_NAMES["Bangladesh"] = new country (21,"孟加拉国"); NB_COUNTRY_NAMES["Belgium"] = new country (22,"比利时"); NB_COUNTRY_NAMES["BurkinaFaso"] = new country (23,"布基纳法索"); NB_COUNTRY_NAMES["Bulgaria"] = new country (24,"保加利亚"); NB_COUNTRY_NAMES["BosniaandHerzegovina"] = new country (19,"波...
const logUtils = require('./log.js'); let hasProxy = typeof Proxy !== 'undefined'; let _Proxy = function () {}; if (hasProxy) _Proxy = Proxy; module.exports = { ...logUtils, /** * defineGetter */ defineGetter (obj = {}, descObj = {}, cb = () => {}) { if (!hasProxy) { ...
/** * Copyright (c) Baidu Inc. All rights reserved. * * This source code is licensed under the MIT license. * See LICENSE file in the project root for license information. * * @file Service Class * inspired by https://github.com/vuejs/vue-cli/blob/dev/packages/%40vue/cli-service/lib/Service.js */ const {resolv...
var numerals = ['','I','II','III','IV','V','VI'] var armorNameLight1 = [ "AbadarCorp", "Ace-tech", "Apollo", "Aritificial", "Armored", "Beast Hide", "Carbon", "Complex", "Elven", "Environmental", "Estex", "Explorer", "Free Booter", "Hazmat", "Hunters", "Icon", "Kasatha", "Lashunta",...
/** * bootstrap扩展功能、公用方法、全局变量 */ //全局变量 var G_V = { tabid : 0, //动态添加tab时,生成ID modal_head : gettext("提示信息"), //提示框头部信息 modal_ico: "", //根据type值定义提示框图标样式 alert_type: "" //定义提示框显示类型 }; /* 回调的调用 * @param call_back: 回调函数(可以是函数名,也可以是函数对象) */ function invoke_...
const { BLOCK_SIZE, uint32, mkBlock, xorBytes1x16, xorBytes4x16, extractKey, multBlock, doubleBlock, oneZeroPad, xorBytes } = require('./functions'); const AESRound = require('./aes_round'); const floor = Math.floor; const ZERO = mkBlock(); const AEZState = function () { this.I = [mkBlock(), mkBlock()]; this...
/* Language: C++ Category: common, system Website: https://isocpp.org */ /** @type LanguageFn */ function cPlusPlus(hljs) { const regex = hljs.regex; // added for historic reasons because `hljs.C_LINE_COMMENT_MODE` does // not include such support nor can we be sure all the grammars depending // on it would de...
const App = require('actions-on-google').DialogflowApp; const functions = require('firebase-functions'); // Dialogflow actions const UNRECOGNIZED_DEEP_LINK = 'deeplink.unknown'; const TELL_FACT = 'tell.fact'; // Dialogflow parameter names const CATEGORY_ARGUMENT = 'fact-category'; // Dialogflow Contexts/lifespans co...
/* The MIT License (MIT) Copyright (c) 2014 <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publis...
import { isTouchDevice } from "base/utils"; const css = { INVISIBLE: "vzb-invisible", COLOR_POINTER: "vzb-colorpicker-pointer", COLOR_BUTTON: "vzb-colorpicker-cell", COLOR_DEFAULT: "vzb-colorpicker-default", COLOR_SAMPLE: "vzb-colorpicker-sample", COLOR_PICKER: "vzb-colorpicker-svg", COLOR_CIRCLE: "vzb-c...
"use strict"; const { inherits } = require("util"); const Pc = require("postcode"); const { series } = require("async"); const { Base, populateLocation, csvExtractor } = require("./base"); const extractOnspdVal = csvExtractor(require("../../data/onspd_schema.json")); const QueryStream = require("pg-query-stream"); con...
// temp before light class implemented var light = new THREE.AmbientLight( 0xffffff, 0.2 ); // soft white light scene.add( light ); var directionalLight = new THREE.DirectionalLight( 0xffffff, 0.4 ); directionalLight.position.set(1,1,1); scene.add( directionalLight ); var spotLight = new THREE.SpotLight( 0xffffff...
function loadAgain() { var xhttp1 = new XMLHttpRequest(); xhttp1.onreadystatechange = function() { if (xhttp1.readyState == 4 && xhttp1.status == 200) { alert("m back in"); //document.getElementById("results1").innerHTML = ""; //document.getElementById("results1").innerHTML = ""; //d...
var width = document.getElementById('vis') .clientWidth; var height = document.getElementById('vis') .clientHeight; var margin = { top: 5, bottom: 100, left: 70, right: 20 }; var svg = d3.select('#vis') .append('svg') .attr('width', width) .attr('height', height) .append('g') .attr('transform',...
var fs = require('fs'); var url = require('url'); var http = require('http'); // var semver = require('semver'); var util = require('util'); var events = require('events').EventEmitter; var EventEmitter = new events.EventEmitter(); var ExportsEmitter = new events.EventEmitter(); var minVersionRequired = '2.1.4'; expo...
var _randChar = function() { "use strict"; return Math.floor((1 + Math.random()) * 0x10000).toString(16).substring(1); }; var _addListener = function(listeners, key, cb) { "use strict"; if (_.isObject(key) && _.isUndefined(cb)) { for (var k in key) { _addListener(listeners, k, key[k]); } } else if (_.isStr...
const { JavaType, CEIType, ArrayType, PrimitiveType } = require('java-mti'); const { getTypeInheritanceList } = require('./java/expression-resolver'); const { CompletionItem, CompletionItemKind } = require('vscode-languageserver'); const { SourceType } = require('./java/source-types'); const { indexAt } = require('./do...
var stompClient = null; var myJid = null; // only set after successful login var jidToTimeout = {}; function setConnected(connected) { } function setLoggedIn(loggedOn) { if (loggedOn) { myJid = document.getElementById("inputEmail").value.trim().toLowerCase(); document.getElementById("sidebar").classL...
// ================================================================================= // File: plugin-loki.js // // Authors: <NAME> // <NAME> (visualjeff) // // Purpose: SCIM endpoint locally at the ScimGateway // - Demonstrate userprovisioning towards a document-oriented database // - Usin...
'use strict'; const fs = require('fs-extra'); const path = require('path'); const time = require('../time'); const uuid = require('uuid'); const client = require('../client'); const debug = require('debug'); const trigger = require('../../lib/trigger'); const promiseRetry = require('../retry'); const { getProfile } =...
function scrollTo(self, tagName, text) { var iframe = $("#content"); var target = iframe.find(tagName + ":contains(" + text + ")"); // 找到是第几个 // 在nav是第几个 var navs = $('#blogNavContent [data-a="' + tagName + '-' + encodeURI(text) + '"]'); var len = navs.size(); for(var i = 0; i < len; ++i) { if(navs[i] == sel...
/* Syntax highlighting with language autodetection. http://softwaremaniacs.org/soft/highlight/ */ var hljs = new function() { var DEFAULT_LANGUAGES = ['python', 'ruby', 'perl', 'php', 'css', 'xml', 'html', 'django', 'javascript', 'java', 'cpp', 'cs', 'sql', 'ini', 'diff']; var ALL_LANGUAGES = (DEFAULT_LANGUAGE...
/* * clean.js: Titanium Mobile CLI clean command * * Copyright TiDev, Inc. 04/07/2022-Present All Rights Reserved. * See the LICENSE file for more information. */ 'use strict'; const appc = require('node-appc'), i18n = appc.i18n(__dirname), __ = i18n.__, __n = i18n.__n, ti = require('node-titanium-sdk'), f...
/* Sound.js =============== A complete micro library of useful, modular functions that help you load, play, control and generate sound effects and music for games and interactive applications. All the code targets the WebAudio API. */ /* Fixing the WebAudio API -------------------------- The WebAudio API is so new...
// registering plugins for gsap gsap.registerPlugin(Draggable); gsap.config({ nullTargetWarn: false, }); // Global Variables const _body = document.querySelector('body'); const _firstScreen = document.querySelector('.firstScreen'); const _secondScreen = document.querySelector('.secondScreen'); const _mapContainer...
function isDec(dec) { return !isNaN(dec) && dec.indexOf(".") === -1 } function covert_to_valid_hex_string(target) { if (target === "-1") { return "FFFF" } else if (target.includes("0X")) { return [true, target.replace("0X", "")]; } else if (target.includes("0x")) { return [true,...
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import isNegativeZero from 'is-negative-zero'; import InputHandler from './InputHandler'; function noop() { } function preventDefault(e) { e.preventDefault(); } function defaultParser(input) { return input.replace...
// @flow import React, { Component } from 'react' import { connect } from 'react-redux' import styled from 'styled-components' import Nav from '../../../../components/Nav' import Bubble from '../../../../components/Bubble' import Swatches from '../../../../components/Swatches' import Toggler from '../../../../componen...
/* eslint-disable no-param-reassign */ /* eslint-disable sonarjs/no-duplicate-string */ import Lock from 'browser-tabs-lock'; import {oauthToken} from './api'; import { CacheKey, CacheManager, InMemoryCache, LocalStorageCache } from './cache'; import {CacheKeyManifest} from './cache/key-manifest'; impo...
'use strict'; // test result indicator var Status = { NOT_FINISHED: 1, FINISHED: 2, ABORT: 3 }; // UTILS var util = { // Use this function to get correct click position on canvas relMouseCoords: function(canvas, evt) { var rect = canvas.getBoundingClientRect(); var eventX = evt.clientX - rect.left; ...
import React, { Component } from "react"; import PinchZoomPan from "react-responsive-pinch-zoom-pan"; import cx from "clsx"; import Popup from "reactjs-popup"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { faBookOpen, faChevronLeft, faChevronRight, faEllipsisV, faKeyboard, faSpinner, faTime...
const _ = require('lodash'); const moment = require('moment'); const Promise = require('bluebird'); const { BU } = require('base-util-jh'); const { dcmConfigModel: { nodeDataType }, } = require('../../module').di; const AbstBlockManager = require('./AbstBlockManager'); require('./block.jsdoc'); class BlockManage...