text
stringlengths
5.97k
41.2k
import { initializeBlock, useBase, useRecords, useGlobalConfig, useLoadable, useWatchable, useSettingsButton, useRecordById, Box, colors, colorUtils, Heading, Icon, Input, ColorPaletteSynced, TablePickerSynced, ViewPickerSynced, FieldPickerSynced, ...
import React, { useState } from 'react'; import {Image, StyleSheet, Text, View, ActivityIndicator,Dimensions, TouchableOpacity, Input,Picker } from 'react-native' import * as tf from '@tensorflow/tfjs' import { cameraWithTensors } from '@tensorflow/tfjs-react-native' import Constants from 'expo-constants' impor...
'use strict'; var defaults = require('./defaults.js'); var TMat = require('./tmat.js'); var _debug = null; var DomHelpers = { /** * wrap all children of element into a wrapper element * * @param {HTMLElement} element - the element who's children should be wrapped * @param {object} options - options.tag - ...
"use strict"; var _ = require('lodash'), coreUnits = require('../core/units'); // These variable names include 'Name' to indicate // that they reference the name of the variable, and not the value. var n23Name = 'n23', n23bName = 'n23b', n24Name = 'n24', n24bName = 'n24b', n25Name = 'n25', n26...
import Zoomer from './zoomer'; import { CLASS_NAMES, ERRORS, EVENTS } from './constants'; import { loadDefaults } from './options'; import { exists, round } from './utils'; class Ezcrop { constructor(element, options) { this.el = element; const defaults = loadDefaults(this.el); this.options = extend({},...
import ErrorRangeCalculator from './error-bars/error-range-calculator'; import CategoricalErrorBar from './error-bars/categorical-error-bar'; import SeriesBinder from './series-binder'; import { ERROR_LOW_FIELD, ERROR_HIGH_FIELD } from './constants'; import evalOptions from './utils/eval-options'; import categoriesCo...
const tags = [ { label: '100', value: 'Heading - Personal Name (NR)' }, { label: '101', value: 'unassigned' }, { label: '109', value: 'unassigned' }, { label: '110', value: 'Heading - Corporate Name (NR)' }, { label: '111', value: 'Heading - Meeting Name (NR)' }, { label: '112', value: 'unassigned' }, { ...
// GLOBAL VARIABLES ---------------------------------------------------- // // TIMING & ANIMATION ENGINE ///////////////////////////// var FRAMERATE = 60.0; var MSPERFRAME = 1000.0 / FRAMERATE; var SECPERFRAME = 1.0 / FRAMERATE; var PXPERSEC = 360.0; var PXPERMS = PXPERSEC / 1000.0; var PXPERFRAME = PXPERSEC / FRAMERAT...
google.charts.load('current', {'packages': ['corechart', 'gauge', 'bar']}); var skipLT = ["ST_02_001", "ER_01_001", "ER_01_002", "ER_01_003", "ER_01_004"]; var gaugeOptions = { redFrom: 0, redTo: 40, yellowFrom: 40, yellowTo: 80, greenFrom: 80, greenTo: 100, minorTicks: 5, width: 130, ...
/* game.js for Perlenspiel 3.3.x Last revision: 2020-03-24 (BM) Perlenspiel is a scheme by <NAME> (<EMAIL>). This version of Perlenspiel (3.3.x) is hosted at <https://ps3.perlenspiel.net> Perlenspiel is Copyright © 2009-20 <NAME>. This file is part of the standard Perlenspiel 3.3.x devkit distribution. Perle...
import { c as commonjsGlobal, l as lib$1, j as jsonParse, s as status, b as set, e as delay, f as fetch } from './fetch-deps.js'; /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software f...
"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { t...
import * as React from "react"; function SvgOverlap4(props) { return ( <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 219.3 379.14" {...props} > <radialGradient id="overlap4_svg__a" cx={-604.114} cy={3260.251} r={19.614} fx={-604.14} ...
const { accounts, defaultSender, contract } = require('@openzeppelin/test-environment'); const { expectRevert, expectEvent, BN, constants, balance } = require('@openzeppelin/test-helpers'); const { expect } = require('../../chai-local'); const { NATIVE_TOKEN_ADDRESS, registry: { NETWORK_SETTINGS, ...
const { JPixi, App } = require("./lib/jpixi"); const { appConf } = require("./lib/jpixi_config"); const { Player, Friend } = require("./dynamicobject"); const { ResizeTypes } = require("./config"); const { World } = require("./world"); const { StaticObject, StaticTiledObject } = require("./staticobject"); const { Psy, ...
let numberOfCards; let countries = []; let codes = []; const boardSize = parseFloat(getComputedStyle(document.documentElement).getPropertyValue('--board-size')); if ('serviceWorker' in navigator) { window.addEventListener('load', () => { navigator.serviceWorker.register('service-worker.js') .then(reg...
var socket = $.atmosphere; var secondsSinceLoad = 0; function Start() { BuildWidgets(); CheckStates(); GetWeather(); CheckTrashDay(); StartTime(); next(); } var urls = ['http://192.168.1.102:8080/', 'http://192.168.1.84:8080/', 'http://admin:SG9uZGExMjU=@192.168.1.119:8080/stream/video/mjpeg']; var po...
//================================================================== // tree // - https://blockbuilder.org/d3noob/3baa7023d4d1661536a491b51460cfe9 //================================================================== function viz_tree(sel, cb) { var f = '['+(fc++)+'] '+arguments.callee.toString().replace(/function\s...
// Returns a random integer between min (included) and max (excluded) // Using Math.round() will give you a non-uniform distribution! function getRandomInt(min, max) { return Math.floor(Math.random() * (max - min)) + min; } function fillArray(value, len) { var arr = []; for (var i = 0; i < len; i++) { arr.pu...
'use strict'; const assert = require('assert'); const lodash = require('lodash'); const semver = require('semver'); const crypto = require('crypto'); const fs = require('fs'); const os = require('os'); const path = require('path'); const util = require('util'); const uuidv4 = require('logolite/uuidv4'); const format =...
import React from "react"; import ReactDOM from "react-dom"; import $ from "jquery"; window.$ = $; import jTimeline from "../lib/jTimelineCss"; import jMove from "../lib/jMove"; import audio from '../lib/music'; import i18n from '../i18n/i18n'; import audioInfo from '../lib/audioInfo'; export default class PageMain ex...
import React from 'react'; import PropTypes from 'prop-types'; import Fuse from 'fuse.js'; import { FormattedMessage } from 'react-intl'; import last from 'lodash/last'; import { css, keyframes, ClassNames } from '@emotion/core'; import { SearchIcon, LoadingSpinner, customProperties, } from '@commercetools-fronte...
var common = require('../../utils/utils.js'); var WxParse = require('../../wxParse/wxParse.js'); // var bsurl = require('../../../utils/bsurl.js'); var app = getApp(); var intervalId; var commentIntervalId; var startTime = 0; var watchTime = 0; Page({ data: { live:false, lastStatus:0, con...
// The big object that contains all the metrics let metrics = {}; // Object containes a specific client history let histories = {}; // Client profile (client query) let clientProfile = ""; // We used nodeSelector to determine where are we inside the big object let nodeSelector = "metrics"; // To save breadcrumb rel...
'use strict'; var Transport = require('azure-iot-device-mqtt').Mqtt; var Client = require('azure-iot-device').ModuleClient; var Message = require('azure-iot-device').Message; const { Pool } = require('pg'); const connectionString = 'postgresql://postgres:docker@postgres/aaas_db'; const poolConfig = { connectionStrin...
import moment from "moment"; import * as $ from "jquery"; import Calendar from "tui-calendar"; /* ES6 */ import { initCalendar, CalendarList, findCalendar, } from "./data/calendars.js"; /* ES6 */ import { ScheduleInfo } from "./data/schedules.js"; /* ES6 */ import { updatePopupWindowIsAllDayChecked } from "./data...
// Billing var active = "payments"; function setactive(paymentType){ if (active == paymentType){ return true; } else if(paymentType == 'sms'){ $('.payments').hide(); $('.sms').show(); } else{ $('.sms').hide(); $('.payments').show(); } active = paymentType; return true; } function clickTab(e) { var ...
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { if (ar || !(i in from)) { if (!ar) ar = Array.prototype.slice.call(from, 0, i); ar[i] = from[i]; } } ...
import { call, put, takeEvery, select } from 'redux-saga/effects'; import axios from 'axios'; import csvtojson from 'csvtojson'; import iconv from 'iconv-lite'; import { settings, Actions as baseActions } from 'harmoware-vis'; import * as types from '../constants/action-types'; import { p02d, p04d, delaycolor, getCont...
// <NAME> <<EMAIL>> "use strict"; // modules const assert = require('../assert.js'); const geom = require('../geom.js'); const Bezier = require('bezier-js'); /** * Linear version of bezier * to allow generic access to bezier properties */ class LinearSegment{ constructor(ps, pe){ this.ps = ps; this.pe = ...
'use strict'; // --------------------------------------------------------------------------- const Exchange = require ('./base/Exchange'); const { AuthenticationError, ExchangeError, NotSupported, PermissionDenied } = require ('./base/errors'); // -------------------------------------------------------------------...
/** * @module ol/reproj/Triangulation */ import { boundingExtent, createEmpty, extendCoordinate, getArea, getBottomLeft, getBottomRight, getTopLeft, getTopRight, getWidth, intersects, } from '../extent.js'; import {getTransform} from '../proj.js'; import {log2, modulo} from '../math.js'; /** * S...
// Copyright 2008 the V8 project authors. 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 ...
/* Copyright 2021 SANGFOR TECHNOLOGIES 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, ...
#!/bin/node "use strict" // Output to test-world.js to get test-world sql generation // Variables generated from Integration Test Consts. // cat ./src/test/java/org/ddouglascarr/utils/IntegrationTestConsts.java | \ // sed 's/public static UUID/var/g' | \ // sed 's/UUID.fromString(//g' | \ // sed 's/)//g...
/* search-box-active */ $(document).ready(function () { var submitIcon = $('.searchbox-icon'); var inputBox = $('.searchbox-input'); var searchBox = $('.searchbox'); var isOpen = false; submitIcon.click(function () { if (isOpen == false) { searchBox.addClass('searchbox-open');...
import $ from 'jquery'; import _ from 'underscore'; import Backbone from 'backbone'; import events from '@girder/core/events'; import { wrap } from '@girder/core/utilities/PluginUtils'; import convertAnnotation from '../../annotations/geojs/convert'; /** * Generate a new "random" element id (24 random 16 digits). ...
module.exports = exports = configure module.exports.test = { PythonFinder: PythonFinder, findAccessibleSync: findAccessibleSync, findPython: findPython, } /** * Module dependencies. */ var fs = require('graceful-fs') , path = require('path') , log = require('npmlog') , osenv = require('osenv') , which...
'use strict'; module.exports = earcut; function earcut(data, holeIndices, dim) { dim = dim || 2; var hasHoles = holeIndices && holeIndices.length, outerLen = hasHoles ? holeIndices[0] * dim : data.length, outerNode = filterPoints(data, linkedList(data, 0, outerLen, dim, true)), trian...
/* # ----------------------------------------------------------------------------- # ~/packages/910_template_utils/100_util_server/server.js # # Provides services for e.g. an external OAuth Client used by # NetlifyCMS for GH authentication # # Product/Info: # https://jekyll.one # http://www.vxk.cz/tips/2017/05...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } }...
/* * Nexmo Client SDK * Conversation Object Model * * Copyright (c) Nexmo Inc. */ const WildEmitter = require('wildemitter'); const getLogger = require('loglevel').getLogger; const Member = require('./member'); const NXMEvent = require('./events/nxmEvent'); const TextEvent = require('./events/text_event'); const...
// -------------- Classes ----------------- //#region /** * Represents the settings of a sprite */ class SpriteSettings { /** * @param {HTMLCanvasElement} spriteCanvas * @param {number} patternWidth * @param {number} patternHeight * @param {number} nbPatterns * @param {number} resizeF...
const tf = require('@tensorflow/tfjs-node'); const data = readData(); // All unique characters / entities in the data set. const data_size = data.length; const chars = [...new Set(data)]; const V = vocab_size = chars.length; console.log('data has %d characters, %d unique.', data_size, vocab_size); // Each character ...
var SCORE = 0; var hSCORE = 0; function makeLevel() { console.log("Loading FLAPPy"); InitStuff(); InitGlobals(); var title = new GameObject("title", ShaderType.TEXTURE, 12); title.transform = new Transform(TransformInput.POS_SCALE, 0, 3.5, 6, 2); title.mesh = new Mesh(); title.sprite = new Sprite("flappy/flapp...
/*! @license Firebase v4.5.0 Build: rev-f49c8b5 Terms: https://firebase.google.com/terms/ */ 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.MemoryMutationQueue = undefined; var _document_key = require('../model/document_key'); var _mutation_batch = require('../model/mutatio...
// @ts-nocheck describe('expectTwo API Coverage', () => { let e; beforeEach(() => { const IosExpect = require('./expectTwo'); e = new IosExpect({ invocationManager: new MockExecutor(), }); }); describe('Matchers', () => { it(`by.accessibilityLabel`, async () => { await e.expect(e.e...
const fs = require('fs') const es = require('event-stream') const validateVIN = require('../src/validators/validate-vin') var vinStream = fs.createWriteStream('./fixtures/vin.json') var makeStream = fs.createWriteStream('./fixtures/vin-to-make.json') // var modelStream = fs.createWriteStream('./fixtures/vin-to-model.j...
$(function(){ var base_url = $("body").data('base_url'); //base_url come from php functions base_url(); $("#btnShipping").prop('disabled',true); $("#isActive").val(1); $("#notes").prop('disabled',true); var sono_id = $("#sono_id").val(); drItems = []; grandtotal = 0; // get all items of the sales order // g...
/** * MIT License * * Copyright (c) 2022 International Business Machines * * 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 ...
'use strict'; const jptr = require('jgexml/jpath.js'); const sampler = require('openapi-sampler'); const safejson = require('safe-json-stringify'); const recurse = require('reftools/lib/recurse.js').recurse; const visit = require('reftools/lib/visit.js').visit; const clone = require('reftools/lib/clone.js').clone; con...
let supplyUrl = "includes/handlers/supply_controller"; let request = ""; let d = new Date(); var mo = new Array(); var year = d.getFullYear(); mo[0] = "January"; mo[1] = "February"; mo[2] = "March"; mo[3] = "April"; mo[4] = "May"; mo[5] = "June"; mo[6] = "July"; mo[7] = "August"; mo[8] = "September"; mo[9] = "October";...
/* * Copyright (c) 2011 Yahoo! Inc. All rights reserved. Copyrights licensed under the New BSD License. * See LICENSE file included with this code project for license terms. */ // Load modules var Os = require('os'); var Express = require('express'); var MAC = require('mac'); var Session = require('./session...
/** * Module dependencies */ var _ = require('@sailshq/lodash'); var async = require('async'); var defaultsDeep = require('merge-defaults'); var __hooks = require('../../hooks'); /** * @param {SailsApp} sails * @returns {Function} */ module.exports = function(sails) { var Hook = __hooks(sails); // Keep...
/* Copyright 2019-2020 Google LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writ...
import { defaultOptions } from './defaultOptions'; /** * When any parameterizedSelector is run, we'll add it to this stack so that *other* parameterizedSelectors * can register themselves as dependencies for it. This let us know which dependencies to dirty-check * the next time it runs. * * This single instance ...
var viewer = null; window.addEventListener('message', function(e) { if (e.origin == 'https://stereopix.net') { if (e.data.type == 'viewerReady') { viewer = e.source; document.getElementById("stereopix_viewer").classList.add("hidden"); } } }); function set_sols_limits() { // Based on http://marsclock.com/ ...
var currentKey; var vault = window.localStorage; vault.cash = 500000; vault.cashUsed = 0; var cart = []; var account = { "name" : "", "nameshort" : "", "sex" : "", "age" : "", "prodi" : "", "fakultas" : "", "universitas" : "", addName : function(name_){ vault.name = String(name_); return this.name = Strin...
import "core-js/modules/es.symbol"; import "core-js/modules/es.symbol.description"; import "core-js/modules/es.symbol.iterator"; import "core-js/modules/es.array.index-of"; import "core-js/modules/es.array.iterator"; import "core-js/modules/es.array.slice"; import "core-js/modules/es.object.to-string"; import "core-js/...
var DefaultRedirectTimeoutMs = 1000; Number.prototype.padLeft = function (base, chr) { var len = (String(base || 10).length - String(this).length) + 1; return len > 0 ? new Array(len).join(chr || "0") + this : this; } var FormatDate = function (date, withTime) { return [date.getDate().padLeft(), (date.ge...
/** * Copyright 2012-2016, 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 isNumeric = require('fast-isnumeric'); var Plotly = require('../../plotly'); var Lib = require('../../lib'...
/* * * Copyright (c) 2012-2014 Adobe Systems Incorporated. All rights reserved. * 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 ri...
/* * WPaudio v3.1 (http://wpaudio.com) * by <NAME> (<EMAIL>) * * Converts an mp3 link to a simple player styled by HTML & CSS, powered by HTML5 with SoundManager2 Flash fallback * * Copyright 2010 <NAME> (email: <EMAIL>) * * This program is free software; you can redistribute it and/or modify * it un...
'use strict'; const fs = require('fs'); // This should be the default amount of money users have. // Ideally, this should be zero. const DEFAULT_AMOUNT = 0; global.currencyName = 'Stardust'; global.currencyPlural = 'Stardust'; let Economy = global.Economy = { /** * Reads the specified user's money. * If they h...
/** Frame view */ import _ from "underscore"; import $ from "jquery"; import Backbone from "backbone"; import _l from "utils/localization"; import { getGalaxyInstance } from "app"; var FrameView = Backbone.View.extend({ initialize: function(options) { this.model = (options && options.model) || new Backbone...
import { Field, TextInput, PasswordInput, ToggleSwitch, MultiSelect, Accordion, Callout, NumberInput, FieldGroup, Button, ButtonGroup, Box, Icon, TextAreaInput, } from '@rocket.chat/fuselage'; import { useMutableCallback } from '@rocket.chat/fuselage-hooks'; import React, { useCallback, useMemo, useRef } ...
// @ts-check const { getOptionalDep, filterObject } = require('../utils') const check = require('../utils/type-checking') const { stripe: stripeModel } = require('../utils/types') const URL = require('url').URL const https = require('https') const createRequestHandler = require('../requestHandler') const log = require...
/* global CodeMirror, MathJax */ import $ from 'jquery' import Showdown from 'showdown' import _ from 'underscore' import eventScope from '../libs/eventscope' import Common from '../modules/common' import Content from '../modules/content' import '../modules/spoiler' import SystemNotification from '../modules/system_no...
"use strict"; /******************************************************************************** * Copyright (C) 2018 TypeFox and others. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v. 2.0 which is available at * http://www.eclipse.org/legal/epl...
import Chunk from './Chunk.js'; import SourceMap from './SourceMap.js'; import guessIndent from './utils/guessIndent.js'; import getRelativePath from './utils/getRelativePath.js'; import isObject from './utils/isObject.js'; import getLocator from './utils/getLocator.js'; import Mappings from './utils/Mappings.js'; impo...
//Función que crea objetos de tipo Medicamento, los cuáles se guardan en un arreglo para guardarse //después en la base de datos. function Medicamento(elemento){ this.nombre_medicamento=ko.observable(elemento.nombre_medicamento); this.fecha_admin=ko.observable(elemento.fecha_admin); this.cantidad=ko.observable(elem...
$(document).ready(function() { // are we using preceptor sign off report? if ($("#preceptor_signoff_report_options_form").length > 0) { return; } initializeEurekaReportOptionsForm(); }); /*------------------------------------------------------------------------------------------------------------------------...
'use strict'; function _classPrivateFieldGet(receiver, privateMap) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "get"); return _classApplyDescriptorGet(receiver, descriptor); } function _classApplyDescriptorGet(receiver, descriptor) { if (descriptor.get) { return descriptor.get.call(receiver)...
"use strict"; const RPC = require('./JSONRPC'); const RPCConnection = require('./RPCConnection'); const Wallet = require('./Wallet'); const axios = require('axios'); const _ = require('lodash'); const StorageBlock = require('./StorageBlock'); const DownloadedFile = require("./DownloadedFile"); const EVENT_MESSAGE = '...
"use strict"; var datetime = null, time = null, date = null; var update = function () { date = moment(new Date()); datetime.html(date.format('DD MMMM YYYY <br> dddd')); time.html(date.format('H:mm:ss')); }; //Preloader $('#preloader').height($(window).height() + "px"); $(window).on('load',...
"use strict"; /** * @license * Copyright 2018 Google LLC * * Use of this source code is governed by an MIT-style * license that can be found in the LICENSE file or at * https://opensource.org/licenses/MIT. * ============================================================================= */ var __awaiter = (this &...
'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...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *------------------------------------------------------------...
/** * R-Tree 可以以长方形或者点的形式存储信息,加速搜索速度 * @Author DongYi */ import {quickselect} from "../QuickSelect/quickselect.js"; class RBush { constructor(maxEntries = 9, format) { if (!(this instanceof RBush)) return new RBush(maxEntries, format); // max entries in a node is 9 by default; min node fill is ...
import React, { useEffect, useMemo, useState, useCallback } from 'react'; import { associateBy } from 'queryz'; import { Button, Container, Divider, Grid, Header, Icon, Modal, Loader, Search } from 'semantic-ui-react'; import { Chart, Scatter, Legend, Annotation } from 'jubilant-carnival'; import HumanHeader from '../H...
var Class = { create: function() { return function() { if(this.destroy) Class.registerForDestruction(this); if(this.initialize) this.initialize.apply(this, arguments); } }, extend: function(baseClassName) { var constructor = function() { var i; /* var tmp = this.initialize;...
/** * PHPProject * Helper.php Created by usher.yue. * User: usher.yue * Date: 17/1/8 * Time: 下午5:27 * 心怀教育梦-烟台网格软件技术有限公司 */ 'use strict'; //加载系统模块 var fs = require('fs'); var path = require('path'); var express = require('express'); var bodyParser = require('body-parser'); var session = require('express-sessi...
import React from 'react'; import { Layout, message, Button, Table, Modal, Form, Input, Avatar, Divider } from 'antd'; import { AreaChart, Area, Tooltip, XAxis, YAxis, CartesianGrid, Label, ResponsiveContainer } from "recharts"; import { Ellipsis } from 'react-spinners-css'; import orderBy from 'lodash.orderby' import ...
//TODO minify SVG //TODO eliminate d3.json and store data-bound SVG //TODO remove console calls in production d3.xml('img/us-map.svg', 'image/svg+xml', function(error, doc){ console.assert(!error); document.getElementById('content') .appendChild(doc.getElementsByTagName('svg')[0]); d3.json('build/us.json', i...
var _gaq = _gaq || []; // DO NOT REMOVE THIS LINE var manifestData = browser.runtime.getManifest(); var katalonEndpoint = manifestData.homepage_url; var testOpsEndpoint = 'https://analytics.katalon.com'; // var testOpsEndpoint = 'http://localhost:8444'; var testOpsUrls = { getFirstProject: `${testOpsEndpoint}/api...
'use strict' var clamp = function (x, min, max) { return Math.max(min, Math.min(max, x)); }; var smoothstep = function (low, high, x) { x = clamp((x - low) / (high - low), 0.0, 1.0); return x * x * (3 - 2 * x); }; var addVectors = function (out, a, b) { out[0] = a[0] + b[0]; out[1] = a[1] + b[1];...
const moment = require('moment'); const states = require('us-state-codes'); const getDistance = require('geolib').getDistance; const CountyList = require("./data/county_gps.json"); const fips = require('fips-county-codes'); const AllData = require("./data/AllData.json"); const state_fips_to_name = { "10": "Delawar...
const utf8 = require('utf8') var ChannelsController = require('./ChannelsController.js') var GenresController = require('./GenresController.js') var ArtistsController = require('./ArtistsController.js') var SparqlController = require('./SparqlController.js') var YoutubeApi = require('../libraries/YoutubeApi.js') var...
import React from 'react'; import autoBind from 'react-autobind'; import Reflux from 'reflux'; import alertify from 'alertifyjs'; import reactMixin from 'react-mixin'; import Select from 'react-select'; import enketoHandler from 'js/enketoHandler'; import {dataInterface} from 'js/dataInterface'; import {actions} from '...
import * as Mdx from "../common/Mdx.bs.js"; import * as Icon from "./Icon.bs.js"; import * as Util from "../common/Util.bs.js"; import * as Curry from "bs-platform/lib/es6/curry.js"; import * as React from "react"; import * as Belt_List from "bs-platform/lib/es6/belt_List.js"; import * as Link from "next/link"; impor...
const SETUP_FILE = '../config/setup.json'; const CONFIG_FILE = 'config/data.json'; let setup = null; function Singleton() { if (typeof Singleton.instance === 'object') { return Singleton.instance; } this.theses = null; this.lists = null; this.answers = null; this.statistics = null; this.activeThesis = 0; t...
/* * Copyright 2005-2019 The Kuali Foundation * * Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php * * Unless required by ap...
var $container; var $titlecard; var $titlecard_wrapper; var $w = $(window); var $ambient_audio; var $ambient_player; var $story_audio; var $story_player; var $waypoints; var $nav; var $begin; var $toggle_ambient; var $button_download_audio; var $button_toggle_caption; var $lightbox; var $lightbox_image; var $story_play...
// Copyright (c) 2011 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. /** * @fileoverview This file is the controller for generating extension * doc pages. * * It expects to have available via XHR (relative path): *...
import React, { Component } from 'react' import PropTypes from 'prop-types' import _ from 'lodash' const minZoom = 0.1 // Smallest zoom allowed const maxZoom = 15 // Largest zoom allowed const scrollSpeed = 1.1 // Multiplying factor of wheel speed const minBBoxWidth = 5 // Minimal width of bbox const minBBoxHeight = ...
import { Mesh, RepeatWrapping, Raycaster, Color, Vector3 } from 'three'; import Between from 'between.js'; // import Line from './base/Line'; import Entity from "../entities/Entity"; import { ENTITY_TYPES, ENTITY_EVENTS } from '../entities/constants'; import { ELEMENT_NOT_SET, ANIMATION_HA...
var isMouseOver = false, selectedXMLFile = null, xPath = null, mediaID = null, periodID = null, meetingID = null; $(document).ready( function() { $.getJSON('_server/input/xml/_index.json') .done(function(data) { for (var i=0; i<data.length; i++) { var listItem = $('<li data-filename="'+ data[i].path +...
function KeyboardInputManager() { this.events = {}; if (window.navigator.msPointerEnabled) { this.eventTouchstart = "MSPointerDown"; this.eventTouchmove = "MSPointerMove"; this.eventTouchend = "MSPointerUp" } else { this.eventTouchstart = "touchstart"; this.eventTouch...
const name = '189CloudAPI' const version = '1.0' const protocols = ['ctc'] const defaultProtocol = 'ctc' const max_age_dir = 30 * 60 * 1000 const max_age_file = 3 * 60 * 1000 const { URL } = require('url') const urlFormat = require('url').format const crypto = require('crypto') const parseXML = require('xml2js...
const Discord = require("discord.js"); const request = require("superagent"); const logger = require('winston'); const validUrl = require('valid-url'); const ytdl = require('ytdl-core'); const auth = require('./auth.json'); const ttsCtrl = require('./ttsCtrl.js'); //var Dequeue = require('dequeue') const logFiles = n...