text
stringlengths
8.5k
48.7k
/* * ::718604! * * Copyright(C) November 20, 2014 U.S. Food and Drug Administration * Authors: Dr. <NAME> (1), Dr. <NAME> (2), et al * Affiliation: Food and Drug Administration (1), George Washington University (2) * * All rights Reserved. * * The MIT License (MIT) * * Permission is hereby granted, free...
/* -*- indent-tabs-mode: nil; js-indent-level: 2 -*- */ /* vim: set ft=javascript ts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ // TODO: ...
var animationId; var tickId; var audios = {}; var obstacles = []; var obstaclesPool = []; var helpers; var helpersPool = []; var obstaclesMaterials = []; var blackHole; var scene; var camera; var renderer; var fovy = 60; var near = 0.1; var far = 1000; const black = 0x000000; const white = 0xfff...
/** * Welcome Message */ const MODNAME = 'fudge-player-rolls'; Hooks.on('ready', async() => { game.settings.register(MODNAME, "version", { name: `${MODNAME} version.`, scope: "client", config: false, default: '0.0.0', type: String }); game.settings.register(MODNAME, "show-welcome-message",...
let model; let imagenetResult; let predictDataKey = "persian"; let selectedDiv = undefined; let dataLookup = { persian: { relativeDiv: "data1", dataUrl: "../../assets/data/persian.json", imageUrl: "../../assets/img/playground/persian.jpg" }, hamster: { relativeDiv: "data2", dataUrl: "../../assets/dat...
// ==UserScript== // @name Udemy - Improved Course Library // @namespace https://github.com/tadwohlrapp // @description Adds current ratings, and other detailed data to all courses in your Udemy library // @icon https://raw.githubusercontent.com/tadwohlrapp/udemy-improved-course-library/main/src/ico...
"use strict"; var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; ...
// server3.js // ------------------------------------------------------------------ // // Job control server implemented using restify. // // GET /jobs // POST /jobs // GET /jobs/{job-id}/includes // GET /jobs/{job-id}/includes/{sequence-id} // GET /jobs/{job-id}/includes/{sequence-id}/references // POST /j...
"use strict"; var CASEW = 1050; var LAST_BET = 0; var MAX_BET = 0; var HIDEG = false; var USER = ""; var RANK = 0; var ROUND = 0; var HOST = "172.16.58.3:3008"; // Edit this to your own IP or domain and port. Check the readme.txt for CloudFlare ports. var SOCKET = null; var showbets = true; jQuery.fn.extend({ countT...
import React from 'react'; import PropTypes from 'prop-types'; import {connect} from 'react-redux'; import Loading from "../../components/common/Loading"; import {observer} from "mobx-react"; import Search from "../../components/common/Search"; import Select from "../registerStudents/SelectGen"; import CreateRegisterOv...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.renderScriptError = renderScriptError; exports.default = void 0; var _middleware = require("next/dist/compiled/@next/react-dev-overlay/dist/middleware"); var _hotMiddleware = require("./hot-middleware"); var _path = require("path")...
/*! * zenhance * Copyright(c) 2016 <NAME> * MIT Licensed */ 'use strict'; var express = require('express'); var fs = require('fs'); var path = require('path'); var pathToRegexp = require('path-to-regexp'); var readline = require('readline'); var app = express(); var server = null; var configuration = { path: {...
/* Begin sloppy globals */ // http://stackoverflow.com/a/956878 function countProperties(obj) { var count = 0; for(var prop in obj) { if(obj.hasOwnProperty(prop)) ++count; } return count; } // http://stackoverflow.com/a/646643/1991086 if (typeof String.prototype.startsWith != 'fun...
var server = require('../../test'); var chai = require('chai'); var chaiHttp = require('chai-http'); var User = require('../../models/user').User; var Conference = require('../../models/conference').Conference; var Q = require('q'); var expect = require('chai').expect; chai.should(); chai.use(chaiHttp); var url = 'ht...
'use strict'; /** * Generates a compiled version of an Application for each Locale supported. * * @module i18nCompiler.js * @main i18nCompiler.js */ //******************************************* //Dependencies //******************************************* var _ = require('lodash'); var fs = require('fs-extra'); va...
// Phil // ------------------------------------------------------------------------ // Copyright 2017 <NAME> // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // (https://www.apache.org/licenses/LICENSE-2.0) // Unless required by app...
/* Copyright 2017, <NAME> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing...
/* FeedListAssistant - NEWS Copyright 2009 Palm, Inc. All rights reserved. Main scene for News app. Includes AddDialog-assistant for handling feed entry and then feedlist-assistant and supporting functions. Major components: - UpdateDialogAssistant; scene assistant for i...
/** * ag-grid - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components * @version v3.3.3 * @link http://www.ag-grid.com/ * @license MIT */ var utils_1 = require('../utils'); var borderLayout_1 = require("../layout/borderLayout"); // in the html below, it is important that there ...
'use strict'; require('source-map-support').install(); const Database = require('../../build/database/Database.js').default; const DbSession = require('../../build/database/DbSession.js').default; const Class = require('../../build/jel/types/Class.js').default; const JEL = require('../../build/jel/JEL.js').default; co...
/*jshint node:true*/ /*globals window: true */ "use strict"; /** Provides virtual dom functionality for other modules. @module Parcela @submodule virtual-DOM */ /** Contains the virtual DOM handling methods and properties @class vDOM */ var _ = require('lodash'), document = window.document, vNodesCache = {}, vNod...
//////////////////////////////////////////////// // MultiQC Report Toolbox Code //////////////////////////////////////////////// var mqc_colours_idx = 0; var mqc_colours = ['#e41a1c', '#377eb8', '#4daf4a', '#984ea3', '#ff7f00', '#ffff33', '#a65628', '#f781bf', '#999999']; /////////////////////////////////////////////...
var componentTable = builtinComponents.concat(dllComponents); function convertPreset (presetFile, file) { var preset = { 'name': file.name.substr(0,file.name.length-4), 'date': file.lastModifiedDate.toISOString(), // 'author': '', }; var blob8 = new Uint8Array(presetFile); try { var clearFrame = decodePre...
const state = require("./state.js"); const map = require("./Map/MapManager.js"); const MA = require("./Math/mathmatic.js"); let crimeattrname = ["DISTURBANCES", "DRUNKNESS", "BURGLARY", "THEFT", "domestic_disturbances", "NOISE", "ROBBERY", "BATTERY"] let Ccrimeattrname = ["ARSON", "ASSAULT", "BATTERY", "BURGLARY"...
const express = require("express"); const fs = require('fs'); const sharp = require('sharp'); const ejs = require('ejs'); const { Client } = require("pg"); const path = require('path'); const sass = require('sass'); const formidable = require('formidable'); const crypto = require('crypto'); const nodemailer = ...
import React, {Component} from 'react'; import PropTypes from 'prop-types'; import {Form, Alerts} from '.'; import _ from 'lodash'; import {createTooltip} from './tooltips'; import {SweetModal} from './SweetModal'; import * as Events from '../services/events'; import {Tree} from './Tree'; import * as TreeHelper from '....
// -*- mode: js; indent-tabs-mode: nil; js-basic-offset: 4 -*- // // This file is part of Genie // // Copyright 2019-2020 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 Licens...
// Compilation of RegExps is now delayed until they are first used... function Rule(from, to) { this.to = to; this.from_c = from; // This will become a RegExp after compilation } function Exclusion(pattern) { this.pattern_c = pattern; // Will become a RegExp after compilation } function CookieRule(host, cookie...
import PropTypes from 'prop-types'; import { blue80, cyan50, green60, magenta50, magenta70, purple70, red50, red90, teal50, teal70, cyan90, purple50, } from '@carbon/colors'; import deprecate from '../internal/deprecate'; import { bundledIconNames } from '../utils/bundledIcons'; import { CAR...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.properties = properties; exports.getDocumentOrmPrototype = getDocumentOrmPrototype; exports.create = create; exports.isInstanceOf = isInstanceOf;...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var React = _interopRequireWildcard(require("react")); var _message = _interopRequireDefault(require("./message")); var _const = require("./const"); function _interopRequireDefault(obj) { return obj && obj.__es...
var Future = require('fibers/future'); var _ = require('underscore'); var child_process = require("child_process"); var config = require('./config.js'); var httpHelpers = require('./http-helpers.js'); var release = require('./release.js'); var files = require('./files.js'); var utils = require('./utils.js'); var build...
var AV = require('leanengine'); var util = require('util'); var mlog = require('./mlog.js'); var moment = require('moment'); var crypto = require('crypto'); var _ = require('underscore'); var _s = require('underscore.string'); var fs = require('fs'); var https = require("https"); const MillSecondsOfOneDay = 1000 * 60...
/* * debouncedresize: special jQuery event that happens once after a window resize * * latest version and complete README available on Github: * https://github.com/louisremi/jquery-smartresize/blob/master/jquery.debouncedresize.js * * Copyright 2011 @louis_remi * Licensed under the MIT license. */ var $event = $.event,...
// The base part of the codec system. const {Evented_Class, tm, def, tf, clone, each} = require('lang-mini'); const {obs} = require('fnl'); //const {tm} = require('lang-mini'); const {fn_parse_from_oo_type_def, parse_binary_by_type, read_ui16, identify_format, extract_input_sections, parse_sequence, attempt_read_sequ...
'use strict'; // Compute the view frustum in world space from the provided // column major projection * view matrix var Frustum = function(projView) { var rows = [vec4.create(), vec4.create(), vec4.create(), vec4.create()]; for (var i = 0; i < rows.length; ++i) { rows[i] = vec4.set(rows[i], projView[i],...
function cloneQuizInput( clone, key, before, replacement ) { var html = typeof clone === 'string' ? clone : clone[0].outerHTML; var regexp = new RegExp( key + '_([0-9]+?)' ) match = html.match(regexp); if( match !== null ) { var replace = ( typeof replacement === 'undefined' ? ( parseInt( match[1] ) + 1 ...
/** * * All encoders and decoders copied from earthdata search source code. * They can all be found in this directory: https://github.com/nasa/earthdata-search/tree/master/static/src/js/util/url * * June 30, 2020 - https://github.com/nasa/earthdata-search/releases/tag/v1.123.14 * * */ /** * Decodes a string p...
/* eslint-disable jsx-a11y/media-has-caption */ import React, { useEffect, useRef, useState } from 'react'; import { useNavigate, useParams } from 'react-router-dom'; import io from 'socket.io-client'; import { Icon } from '@iconify/react'; import Peer from 'simple-peer'; import { Box, Button, Card, Grid, IconButton, s...
var settings = require('./settings'); var freezer = require('./state'); const isDev = !require('electron').remote.require('electron').app.isPackaged; const { groupBy } = require('lodash'); if(settings.get("darktheme") == null){ const { nativeTheme } = require('electron').remote.require('electron') settings.set("dark...
const net = require('net'); const tls = require('tls'); module.exports = main => { const exports = main.exports; class Device { constructor(options) { this.creationTime = new Date(); this.destroyed = false; this.config = { eol: "\n", bufferTTL: 0, maxReadHistoryLength: 50, maxWriteHistory...
/** * Copyright 2009 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
import { ContextMenu } from "./chunk-G5RUBNT3.js"; import "./chunk-3XUR5GO6.js"; import "./chunk-BDIP7LEN.js"; import "./chunk-SWEWJURK.js"; import "./chunk-TFCM3FYM.js"; import "./chunk-AP72M3JK.js"; import "./chunk-MQKFIGHD.js"; import "./chunk-P367RANY.js"; import "./chunk-2ELV5DK6.js"; import "./chunk-OE4BTSWX.js...
import React from "react"; import * as d3 from "d3"; import {nest as d3_nest} from 'd3-collection'; import "../../assets/css/charts.css"; import _ from "lodash"; import $ from "jquery"; import axios from "axios"; import DateFnsUtils from '@date-io/date-fns'; // @material-ui/core import { makeStyles } from "@material-ui...
/** ## # Copyright 2015 Telefónica Investigación y Desarrollo, S.A.U. # This file is part of openmano # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http:/...
// This code is based heavily off of the wonderful WebXR locomotion tutorial at // https://medium.com/samsung-internet-dev/vr-locomotion-740dafa85914 // Thank you, Ada! // My primary contribution was making the rendering fit the app's style better // and doing a bit of additional encapsulation and abstraction work. im...
'use strict'; const lodash = require('lodash'); const util = require('util'); const path = require('path'); const chores = require('../utils/chores'); const constx = require('../utils/constx'); const loader = require('../utils/loader'); const envbox = require('../utils/envbox'); const envcfg = require('../utils/envcfg...
// Modules var http=require('http'), fs=require('fs'), url = require('url'), ws = require('websocket').server, crypto = require('crypto'), zlib = require('zlib'); // Constants const MIME_TYPES = { 'txt':'text/plain', 'html':'text/html', 'js':'text/javascript', 'manifest':'text/cache-manifest', 'css': 'text/c...
/* * File: jetpack.Package.js */ /* * Javascript Package/PackageRevision representation */ var Package = new Class({ // this Class should be always extended Implements: [Options], options: { // data // package specific // id_number: '', // full_name: '', // name: '', // description: '', ...
import extend from '../tools/extend'; import ys from '../tools/ys'; import each from '../tools/each'; import { qsa, matchSelector, contains } from '../lib/qsa'; import Data from '../lib/data'; import { getExpando } from '../config/var'; import { rtypenamespace, rspace, doc } from '../config/const'; import { makeArray }...
/* * Warped Demo Code * @copyright 2017 Ansimuz * Get more free assets and code like these at: www.pixelgameart.org * Visit my store for premium content at https://ansimuz.itch.io/ * */ var game; var player; var background; var middleground; var gameWidth = 240; var gameHeight = 176; var globalMap; var shootin...
/* * Copyright 2016 ETH Zurich * * 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 ...
/* ***** BEGIN LICENSE BLOCK ***** * Version: GPL 3 * * This program is Copyright (C) 2007-2008 Aptana, Inc. All Rights Reserved * This program is licensed under the GNU General Public license, version 3 (GPL). * * This program is distributed in the hope that it will be useful, but * AS-IS and WITHOUT ANY...
function rotPointAroundCentre(point, center, axis, theta){ point.sub(center); point.applyAxisAngle(axis, theta); point.add(center); let obj = new THREE.Mesh( new THREE.SphereGeometry( 12, 8, 8 ), new THREE.MeshBasicMaterial( {color: 0xff0000, transparent: true, opacity: 0.5} ) ); obj.position.set(poin...
import React, { Component } from 'react'; import {Icon as Blueicon, HTMLTable} from '@blueprintjs/core'; import {api_list} from "../ajax-utils/api-manager"; import {ajax_post} from "../ajax-utils/ajax-method"; import {withRouter, Link} from "react-router-dom"; import { Layout, Breadcrumb, Menu, List, Row, Col, Icon, ...
/* global $ */ // Warn about using the kit in production if (window.console && window.console.info) { window.console.info('GOV.UK Prototype Kit - do not use for production') } // if (window.location.search && $('.results').length) { // window.history.replaceState({}, document.title, window.location.pathname) // }...
var tableSeguimiento = ""; var dataSeguimiento = ""; var simpleBarAcciones; var simpleBarFile; var archivoDropZone; $(function(){ $("#btn_buscar_cliente").click(function(event){ if (event.handled !== true) { event.preventDefault(); misClientes(); //sh...
'use strict'; $(function () { window.sidebarSplitter && sidebarSplitter.initMobile(); }); $(window).on("resize", function () { $(document.body).find('table.dataTable').DataTable().columns.adjust(); }); function getInputValue(input) { return input.is(':checkbox') ? input.prop('checked') : input.val(); } // COM...
/* Copyright (c) 2018 [Glacies UG, Berlin, Germany] (http://glacies.de) Developer: <NAME> (http://lk.linkedin.com/in/thilinah | https://github.com/thilinah) */ /* eslint-disable camelcase,no-underscore-dangle */ /* global d3 */ import QRCode from 'qrcode'; import AdapterBase from '../../../api/AdapterBase'; cla...
/** * Created by pengl on 5/11/2017. * * Function: Config catalog/categories/catalog Items for one org. * */ const WebDriverFactory = require('../../util/src/WebdriverFactory'); const WebDriverCommands = require('../../util/src/WebdriverCommands'); const PropelCommands = require('../../util/src/PropelCommands'); ...
GV.Filter = GV.Filter || {}; GV.Filter.listFilterInstances = []; // aktive filter GV.Filter.filtertypes = ["id", "vp", "creator", "type", "subject", "predicate", "object", "sparql", "selection"]; // TODO alles ergänzen, wonach gefiltert werden kann var filtervalues = []; // possible values for a filtertype // TODO wer...
/* updated on 20160308 14:15 */ //********块操作方法******** //set zIndex function setzindex(id,num){ getID(id).style.position = "absolute"; getID(id).style.zIndex = num; } //get element function getID(id){ return document.getElementById(id); } //hide element function Hide(id){ getID(id).style.display =...
// ENHANCED PENSION CALCULATOR var canLog = false; var useZeroes = true; document.config = { gender: "male", ageArr: [18, 60], lumpSum: useZeroes ? 0 : 20000000, desiredAmt: useZeroes ? 0 : 300000, curPenValue: useZeroes ? 0 : 1000000, monthlyContrib: useZeroes ? 0 : 36000, voluntarilyContrib: useZeroes...
/** * Module dependencies. */ var crypto = require('crypto'), express = require('express'), expressSession = require('express-session'), http = require('http'), path = require('path'), querystring = require('querystring'), rs = require('connect-redis')(expressSession), extend = require('e...
// This test.js file is temporary. Ultimately the code will be // included in the clientside javascript file, but for now // this file will be used for testing purposes for server side API // requests. const censusKey = "&key=<KEY>"; var stateMap = { "Alabama": "01", "Alaska": "02", "Arizona": "04", ...
localStorage.setItem('companyMainColor', "#fcab55"); localStorage.setItem('companyBtnColor', "#3f907e"); //去掉左右空格 function trimStr(str) { return str.replace(/(^\s+)|(\s+$)/g, ""); } //保存cookie function setCookie(name, value) { // name为cookie的名称,value为name值 var days = 10; // 保存天数,可作为参数传进来 var expires = new ...
const Visuals = {} Visuals.showHideConditionals = function(condition) { // 'basic' --> noAI condition // should be hidden by default Visuals.hide('.lvl-one') Visuals.hide('.lvl-two') Visuals.hide('.lvl-three') Visuals.hide('.lvl-four') if(condition == "ai") { // AI condition: ai Visuals.s...
const { functionsIn } = require("lodash"); console.log('%cAre you looking for bugs? Join us on https://discord.gg/BTt5fUp ', 'color: red; font-size: x-large'); // Hide all elements on master view function hidecontrol() { var txt = $("#hidetext").text(); if (txt === "Hide controls") $("#hidetext").text("Show c...
import React, { useContext } from 'react'; import SearchIcon from '@material-ui/icons/Search'; import ClearIcon from '@material-ui/icons/Clear'; import DoneIcon from '@material-ui/icons/Done'; import CloseIcon from '@material-ui/icons/Close'; import MaterialTable, { MTableToolbar } from 'material-table'; import { G...
var args = arguments[0] || {}; ///////////////////////////// //creating model ///////////////////////////// var client = require('http_client'); var moment = require('moment-with-locales.min'); /////// if (OS_ANDROID) { var Dialogs = require("yy.tidialogs"); } var Ridedata = Alloy.Models.instance('carpool'); var geo =...
var DeckdeckgoHighlightCodeTerminal; (function (DeckdeckgoHighlightCodeTerminal) { DeckdeckgoHighlightCodeTerminal["CARBON"] = "carbon"; DeckdeckgoHighlightCodeTerminal["UBUNTU"] = "ubuntu"; DeckdeckgoHighlightCodeTerminal["PAPYRS"] = "papyrs"; DeckdeckgoHighlightCodeTerminal["NONE"] = "none"; })(DeckdeckgoHigh...
var fs = require('fs'); var util = require('util'); var path = require('path'); var eyes = require('eyes'); var async = require('async'); var Test = require('../models/test.js'); var resolve = path.resolve; var mocha = require('mocha'); var Suite = mocha.Suite; var Context = mocha.Context var Base = req...
/* jslint node: true */ 'use strict'; // ENiGMA½ const msgDb = require('./database.js').dbs.message; const Config = require('./config.js').config; const Message = require('./message.js'); const Log = require('./logger.js').log; const msgNetRecord = require('./msg_network.js').recordMessage; const ...
import {DOMAIN} from '../config' import axios from 'axios' import store from '../store' // import { exists } from 'i18next' import ls from "local-storage" import i18n from '../i18n' import { TRANSLATE, ERRORCODE } from '../const' import { popupErrorMsg, setupErrorMsg } from '../actions/errMsgAction'; import { logout } ...
// movement-utils.js -- helper classes for managing related Controller.*Event and input API bindings /* eslint-disable comma-dangle, no-empty */ /* global require: true, DriveKeys, console, __filename, __dirname */ /* eslint-env commonjs */ "use strict"; module.exports = { version: '0.0.2c', CameraControls: ...
import Cookies from "js-cookie"; import clipHelper from "./contract/clip/clipHelper"; //var clipHelper = new ClipHelper; function htmlDecode(html) { var a = document.createElement('a'); a.innerHTML = html; return a.textContent; } jQuery.extend({ handleError: function (s, xhr, status, e) { // ...
/* Copyright (c) Business Objects 2006. All rights reserved. */ var L_bobj_crv_MainReport = "Relat\u00F3rio Principal"; // Viewer Toolbar tooltips var L_bobj_crv_FirstPage = "Ir para a Primeira P\u00E1gina"; var L_bobj_crv_PrevPage = "Ir para a P\u00E1gina Anterior"; var L_bobj_crv_NextPage = "Ir para a Pr\u00F3xima P...
// ==UserScript== // @author uniQ // @name Steam Item Information Viewer // @icon https://store.steampowered.com/favicon.ico // @updateURL https://github.com/uniQIndividual/SteamUserscripts/raw/master/Item-Information-Viewer.user.js // @description Displays additional information pro...
/* global atob, Buffer, TextDecoder, BUILD_VERSION, TextEncoder */ import 'bootstrap'; import $ from "jquery"; import NodeRSA from "node-rsa"; import SignatureParser from "./SignatureParser.js"; import LocalStorage from './LocalStorage.js'; const html5AppId = '04ed4dea-499a-4de6-9e24-0e156b1d6c4d'; const storage = Lo...
/** * Copyright 2012-2018, Plotly, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ 'use strict'; var lineLayerMaker = require('./lines'); var c = require('./constants'); var Lib = require('../../lib'); var d3 ...
// Copyright (c) 2015 - 2017 Uber Technologies, Inc. // // 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...
var hideCalendarTimer = new Array(); function calendarTimer(objname){ this.objname = objname; this.timers = new Array(); } function toggleCalendar(objname, auto_hide, hide_timer){ var div_obj = document.getElementById('div_'+objname); if(div_obj != null){ if (div_obj.style.visibility=="hidden") { div_obj.st...
var readChunk = require('read-chunk'); var imageType = require('image-type'); var xlsx = require('node-xlsx'); var hash = require('object-hash'); var request = require('request'); var async = require('async'); var validator = require('validator'); var fs = require('fs'); var qt = require('quickthumb'); var EventEmit...
// Import the required math functions import { divide, add, subtract, norm, cross, dot, toMeters, epsilon, pi, acos, multiply, unit, tan, angleBetween, isZeroes } from '@oneisland/math'; // Import the range function // import { range } from 'utils/range_array.js'; // Import the required geometry modules import { Plan...
/** * unzip.js * * Copyright(c) 2011 Google Inc. * Copyright(c) 2011 antimatter15 * * Reference Documentation: * * ZIP format: http://www.pkware.com/documents/casestudies/APPNOTE.TXT * DEFLATE format: http://tools.ietf.org/html/rfc1951 */ // This file expects to be invoked as a Worker (see onmessage below). ...
'use strict'; goog.provide('Tasks.Level'); goog.require('Blockly.FieldDropdown'); goog.require('BlocklyDialogs'); goog.require('BlocklyGames'); goog.require('BlocklyInterface'); goog.require('Tasks.Blocks'); goog.require('Tasks.soy'); goog.require('Tasks.Avatar'); goog.require('Tasks.Activity'); var start_; var fini...
'use strict'; const electron = require('electron'); const app = electron.app; // Module to control application life. const BrowserWindow = electron.BrowserWindow; const nativeImage = electron.nativeImage; const notifier = require('node-notifier'); const util = require('util'); const dialog = electron.dialog; const M...
// visualization: unit_selection.js var get_graphics_form = document.getElementById('get_graphics_form'); var get_graphics_btn = document.getElementById('get_graphics_btn') || null; //custom_selection = 'html' //custom_selection = 'fancytree' custom_selection = 'dhtmlx' var simple_loaded, custom_loaded, rdp_loaded; mod...
/** * Contest class. */ // Depedencies const _ = require('lodash'); const moment = require('moment'); const Candidate = require('./candidate.js'); const Base = require('./base.js'); const utility = require('./utility.js'); // Main class class Contest extends Base { // Constructor, takes in either an object to set...
var session_in_url = (navigator.userAgent.toLowerCase().indexOf('windows') > 0 ? '' : '(S(' + comm100livechat_session + '))/'); String.prototype.trim = function() { return this.replace(/(^[\s]*)|([\s]*$)/g, ""); } function html_encode(html) { var div=document.createElement("div"); var txt=document.createTextNode...
/** * <NAME> <github.com/ogallagher> * * Temporary JS backend+frontend logger that patches console.log. * Written in common js, so no import/export keywords. */ // class class TempLogger { /** * Create new TempLogger instance. Note almost all args are specified as keys in an options object. * * By defaul...
// copyright <NAME>. MIT license. /* global THREE, MMS, GCOdivToggles, GCOchkLabels, drawPlacard, GCOdivMessage, GCOchkPoints, GCOrngContoursCount, GCOoutContourCount, GCOrngContourPosition, GCOoutContourPosition, GCOdivStatsNew, scene, mesh, meshPlane */ // jshint esversion: 6 // jshint loopfunc: true const GCO = {};...
var sJS = { DHTML: { Autofill: { Make: function( InputObject, // ID or object reference of the input element to make autofill for MinimumLength, // Minimum length of characters to trigger the autofill OnSuggestion, // URL to fetch autofill suggestion data in JSON format. Alternatively, a callback func...
//**************************************************************************************** //Nombre: mainRP.css //Objetivos: Código JS para registrar a un paciente, valida los campos del formulario // y da funcionalidad a los botones. También prepara datos para el cambio de // ...
import { test } from '../../tools/prepare-test-env-ava.js'; // eslint-disable-next-line import/order import { Far } from '@endo/marshal'; import { makeFakeVirtualStuff } from '../../tools/fakeVirtualSupport.js'; const { vom, cm } = makeFakeVirtualStuff({ cacheSize: 3 }); const { makeScalarBigMapStore, makeScalar...
var debug = true; // var is_chief = (navigator.userAgent.indexOf("Chrome") == -1) && (navigator.userAgent.indexOf("Firefox") == -1); var is_chief = window.location.search.substring(1).indexOf("chief") >= 0; // the_gs is mainly for chief, it is where it keeps the game state. // Non-chiefs use it only for two reasons: //...
;'use strict'; var PDFFormLayer = function PDFFormLayer(viewer, pageView) { if (!(viewer instanceof PDFViewer )) return console.error('Invalid instance of PDFViewer', viewer); if (!(pageView instanceof PDFViewerPageView)) return console.error('Invalid instance of PDFViewerPageView', pageView); this._vi...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.makeResolveFn = exports.connectionPlugin = exports.BackwardOnlyStrictArgs = exports.BackwardPaginateArgs = exports.ForwardOnlyStrictArgs = exports.ForwardPaginateArgs = void 0; const tslib_1 = require("tslib"); const graphql_1 = requir...
import * as BABYLON from 'babylonjs'; import { CustomMaterial } from "babylonjs-materials"; /** * Simulates the oacean with moving waves * @param {BABYLON.Scene} scene * @param num size */ /* export default function scene(scene, camera, size = 1024, ground) { // Water // Our built-in 'grou...
// $Id: cterm_lib.js,v 1.23 2019/08/02 07:32:43 rswindell Exp $ // Library for dealing with CTerm/SyncTERM enhanced features (e.g. fonts) load('sbbsdefs.js'); var xbin = load({}, 'xbin_defs.js'); var ansiterm = load({}, 'ansiterm_lib.js'); const cterm_version_supports_b64_fonts = 1213; const cterm_version_supports_f...