text
stringlengths
5.97k
41.2k
var stockHelper = require("./stockhelper.js"); const multipleCaller = require("./multipleCaller.js"); const helper = require("./helper.js"); const niftyDao = require("./dao/niftyDao.js"); const uuidv1 = require("uuid/v1"); const moment = require("moment"); const intradayDao = require("./dao/intradayDao.js"); var shuffl...
/*jshint strict: false */ /*global chrome */ var merge = require('./merge'); exports.extend = require('pouchdb-extend'); exports.ajax = require('./deps/ajax'); exports.createBlob = require('./deps/binary/blob'); exports.uuid = require('./deps/uuid'); exports.getArguments = require('argsarray'); var errors = require('./...
const w = 16 const l = 16 const h = 256 const CHUNK_VOLUME = w * l * h const CHUNK_CROSS_SECTION = w * l const X3_CHUNK_VOLUME = 3 * CHUNK_VOLUME const BUFFER_SIZE = (CHUNK_VOLUME * 3) + CHUNK_CROSS_SECTION const ProtoDef = require('protodef').ProtoDef const { readUInt4LE, writeUInt4LE } = require('uint4') const { ...
/***** * index.js * This is the main Javascript file for the * interactions between the user and the underlying * blocks and data structures. * Holds globals for the LightWriter logic, inits and * controls the data structures, and executes the * block algorithm every MS_PER_TICK milliseconds when * the user starts th...
import React, { Component } from 'react'; import { Form, Icon, Input, Button, Row, Col, Table, Select, Pagination, Popconfirm, message, Divider, } from 'antd'; import classNames from 'classnames'; import styles from './Order.less'; import { connect } from 'dva'; import { routerRedux, Link } from...
const VERSION = "0.0.2"; const $ = selector => document.querySelector(selector), $$ = selector => document.querySelectorAll(selector); $("#version").textContent = "v" + VERSION; /** * Adds an event listener that triggers only if it was called on a specific child element, or its grandchildren. * Suitable chil...
"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]; ...
/** * @class Eye * It presents as agent's eye detector. */ class Eye{ /** * * @param {THREE.Vector3} agent_pos_vec Vector that would use as src * vector for raycastring * @param {Number} alpha angle * @param {Number} r radius */ constructor(params){ this.agent = params.agent; let...
const _ = require('lodash') const $ = require('jquery') const blobUtil = require('blob-util') const minimatch = require('minimatch') const moment = require('moment') const Promise = require('bluebird') const sinon = require('sinon') const lolex = require('lolex') const $dom = require('./dom') const $errorMessages = re...
import {min, sum} from 'd3-array'; import {arc, pie} from 'd3-shape'; import {select} from 'd3-selection'; import {interpolate} from 'd3-interpolate'; import {CapMixin} from '../base/cap-mixin'; import {ColorMixin} from '../base/color-mixin'; import {BaseMixin} from '../base/base-mixin'; import {transition} from '../c...
'use strict' const util = require('util') const os = require('os') const { URL } = require('url') const zlib = require('zlib') const querystring = require('querystring') const Writable = require('readable-stream').Writable const getContainerInfo = require('container-info') const pump = require('pump') const eos = requ...
'use strict'; const _ = require('lodash'), path = require('path'), moment = require('moment'), cheerio = require('cheerio'), config = require('../config'), ArticleAPI = require('./api/article-api'), // JdPin = require('../external-interface/jdpin'), categoryModel = require('.....
/*Create a function sum() that returns the sum of the two numbers passed as its arguments. For example, sum(2,5) should return 7; sum(3,10) should return 13.*/ function sum(num1, num2){ return num1 + num2; } //Log positive numbers starting at 2019, counting down by 8. function CountDownBy8(){ for (let i = 20...
"use strict"; /** * ## Vocabulary ## * * Paths: * - path: path in path-to-regexp syntax * - file path: path in the Next.js file system syntax * - base path: file path in path-to-regexp syntax * - translated path: file path translated in path-to-regexp syntax * - translated file path: translated file path * - d...
import React, { useState, useEffect, useRef } from 'react' import Toast from 'react-native-simple-toast'; import { StyleSheet, Text, TextInput, View, Image, ScrollView, SafeAreaView, ActivityIndicator, TouchableWithoutFeedback, Platform, Dimensions } from 'react-native'; import { MaterialCommunityIcons } from '@expo/ve...
const PROGRESS_LOAD = 1; const PROGRESS_SETS = 2; const PROGRESS_SETS_TOTAL = 4; const PROGRESS_CARDS = 6; const POTION_FACTOR = [0, 2, 1, 0, -1]; function closeWithError(msg) { postMessage({ result: 'error', message: msg }); } self.addEventListener('message', function (event) { postMessage({ result: "progre...
/* * Copyright 2012 Research In Motion Limited. * * 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 ...
import { unwrap } from './utils' import { computed, isRef, nextTick, reactive, ref, watch } from 'vue-demi' import { createValidatorResult } from './utils/createResults' import { sortValidations } from './utils/sortValidations' const ROOT_PATH = '__root' /** @typedef {import('vue-demi').ComponentPublicInstance} VueIn...
import React, { useEffect, useCallback, useRef, useMemo } from "react"; import { Link, useLocation, Redirect } from "react-router-dom"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { faShoppingCart, faChevronLeft, faChevronRight, faChevronCircleDown, } from "@fortawesome/free-solid-s...
const path = require("path") const fs = require("fs") const graphql = require("graphql") const exampleAction = ` .actions(self => ({ // This is an auto-generated example action. log() { console.log(JSON.stringify(self)) } }))` const buildInExcludes = [ "Mutation", "CacheControlScope", "Quer...
//////////////////////////////////////////////////////////////////////////r // DEBUGGER SUPPORT /////////////////////////////////////////////////////////////////////////// var $ = require('jquery'), view = require('view'), advisor = require('advisor'), see = require('see'), sourcem...
// Copyright 2006 The Closure Library Authors. 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://www.apache.org/licenses/LICENSE-2.0 // // Unless requ...
var _watch; function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.appl...
'use babel'; import { BufferedProcess, File } from 'atom'; import tempy from 'tempy'; import {toolEnv} from './external-tools'; import {relativizePaths} from './persisted'; const sharedCasefilesRef = 'refs/collaboration/shared-casefiles'; /* General gist: use refs/shared-casefiles (locally and remotely) to store a t...
$(document).on('click','.btn_ver_horario_tutor',function(){ // editar horario let id=$(this).data('id'); let id_asignacion=$(this).data('id_asignacion'); buscarHorarioAsignado(id,id_asignacion); $('.btn_btn_restablecer_horario').hide(); $('#modal_horario_tutor').m...
const util = require('util'); util.inspect.defaultOptions = {compact:false,breakLength:Infinity}; global.isDebug = ( process.argv[2] === 'debug' ); global.shardId = null; process.on( 'message', message => { if ( !message.shard ) return; shardId = message.shard.id; } ); global.got = require('got').extend( { throwHt...
/* Originally based on https://github.com/omgmog/beatmaker although there is little remaining resemblance. */ 'use strict'; /* var SOUNDS = [ 'bass_drum.wav', 'snare_drum.wav', 'low_tom.wav', 'mid_tom.wav', 'hi_tom.wav', 'rim_shot.wav', 'hand_clap.wav', 'cowbell.wav', 'cymbal.wav',...
const express = require('express') const path = require('path') const bodyParser = require('body-parser') const cookieParser = require('cookie-parser') const expressValidator = require('express-validator') const RateLimit = require('express-rate-limit') const csurf = require('csurf') const vhost = require('vhost') cons...
/* Copyright 2016 Google Inc. 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://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed t...
const express = require('express'); const fs = require('fs-extra'); const dayjs = require('dayjs'); const fetch = require('node-fetch'); const util = require('util'); const cp = require('child_process'); const lockfile = require('lockfile'); const quote = require('shell-quote').quote; const qs = require('qs'); const sl...
/* * User */ import getConfig from './../utils/getConfig'; import * as cookie from './../utils/cookie'; import request from './../utils/request'; import Module from './../utils/module'; import Cache from './../utils/cache'; import { isPrime, isPrimeFromAPI } from './../services/prime'; import * as Skin from './../ser...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const child_process_1 = require("child_process"); const timers_1 = require("timers"); const path_1 = require("path"); const fs_1 = require("./util/fs"); const fs_2 = require("fs"); const emoji_1 = require("./util/emoji"); const term_1 = requir...
/* * The AnVIL * https://www.anvilproject.org * * The AnVIL dashboard filter provider component. */ // Core dependencies import lunr from "lunr"; import React from "react"; // App dependencies import ContextDashboard from "../context-dashboard/context-dashboard"; import * as AnvilGTMService from "../../../utils/...
/* How _should_ this work? Interactive rendering: - set a latency limit X ms - measure kernel overhead & avg pipelined throughput for each node - calculate a tile distribution that achieves minimum runtime - update current state - send out tile pipelines for current frame - receive the tiles and write th...
var urlencode = require('urlencode'); var base64 = require('base-64'); function GenerateSignature(key ,data){ var data = urlencode(data); var hash = hmacsha1(key,data); return base64.encode(hash); } module.exports = { generateSignature : GenerateSignature } ////////////////////////////////////////////...
import React, { Component } from "react"; import { connect } from "react-redux"; import 'bootstrap/dist/css/bootstrap.min.css'; import axios from 'axios'; import validate from 'jquery-validation'; import $ from "jquery"; import swal from 'sweetalert'; // import ReactTable from "react-table"; // import "react-table/reac...
const CURRENCY_TABLE = { "Default": "DEFAULT", // Platforms "Caffeine Credits": "CAFFEINE_CREDITS", "Caffeine Gold": "CAFFEINE_GOLD", "Twitch Bits": "TWITCH_BITS", "Trovo Elixir": "TROVO_ELIXIR", // Popular (?) "US Dollar (USD)": "USD", "Canadian Dollar (CAD)": "CAD", "British ...
var mat4 = glMatrix.mat4; var vec4 = glMatrix.vec4; var vec3 = glMatrix.vec3; const CANT_NIVELES_GEO = 5; const CANT_VERTICES_GEO = 15; function crearGeometria(controlF, controlR, conTapas = false, cantNiveles = CANT_NIVELES_GEO, cantVertices = CANT_VERTICES_GEO, escalado = null) { var supp = new Supe...
/** * @author <NAME> * I confirm that this coursework submission is entirely my own work, except where explicitly stated otherwise. */ const testingAgain = () => { document.response.formData().then(function(formdata) { // do something with your formdata console.log(formdata); }); }; /* Hide...
// All GTAS code is Copyright 2016, The Department of Homeland Security (DHS), U.S. Customs and Border Protection (CBP). // // Please see license.txt for details. import React, { useState, useEffect, useMemo, useContext } from "react"; import RAQB from "../../../components/raqb/RAQB"; import { Button, Row } from "reac...
var params = {R0: 2, gamma: 1/3, S: 10000, I: 1, R: 0, dt: 0.01}; var sparams = {R0: 1.43, gamma: 1/5, S: 10000, I: 1, R: 0, dt: 1.0}; var maxT = 150; //100 days var nreps = 20; //number of replicates. var data = {}; //data to fit against. data.I = [1,1,2,2,2,3,4,3,4,6,6,6,8,9,13,11,9,11,12,14,20,19,17,24,19,18,23,24,2...
export function loadShader(gl, shaderScript, shaderType) { // If the function is called without passing in a shader script we do an // early exit if (!shaderScript) { return null; } // Create a WebGL shader object according to type of shader, i.e., // vertex or fragment shader. var...
/** *试驾待确认 */ import React from 'react'; import moment from 'moment'; import Layout from '../../components/Layout'; import Resources from './components/drive.resources'; import Http from '../../utils/http' import PropTypes from 'prop-types'; import { Flex, Toast, Picker, DatePicker, InputItem, WhiteSpace, WingBlank,...
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (Object.protot...
"use strict"; /** * @license * Copyright 2019 Google LLC. 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://www.apache.org/licenses/LICENSE-2.0 * * Unless...
import React, { useEffect } from 'react'; import { Group, Image, Layer, Stage } from 'react-konva'; import Rectangle from './Rectangle'; import { configure, GlobalHotKeys } from 'react-hotkeys'; import cuid from 'cuid'; import classNames from 'classnames'; import './cropping.scss'; export const scaleBy = 1.2; export ...
/** * Copyright (c) 2016, salesforce.com, inc. * All rights reserved. * Licensed under the BSD 3-Clause license. * For full license text, see LICENSE.txt file in the repo root or * https://opensource.org/licenses/BSD-3-Clause */ /** * api/v1/controllers/samples.js */ 'use strict'; // eslint-disable-line strict...
/** * JSaw - JavaScript Audio Workstation * Copyright (c) 2011 <NAME>, Aaron '<NAME>' Danks * JSaw may be freely distributed under the MIT license. Everything in JSaw is split up into its component parts, and then connected together. Each pattern has a collection of tracks, each track is basically a synth which ...
var win = Titanium.UI.currentWindow; var storedId = Titanium.App.Properties.getString("id"); var disp = Ti.UI.createLabel ({ top:155, height: 50, width:300, text: Ti.Platform.availableMemory }); win.add(disp); // We check up on the memory status every second setInterval ( function() { ...
// // Messenger (inputs) // // Queue and send messages via TCP to Kurunt workers. // Version: 0.2 // Author: <NAME> (mark [at] kurunt [dot] com) // License: MIT or Apache 2.0. // // Copyright (c) 2013-2014 <NAME>. // Copyright (c) 2013-2014 Kurunt. // var lconfig = require("./config.json"); // your local l...
/** * @fileOverview Dihedral Representation * @private */ import { Color } from '../../lib/three.es6.js' import { RepresentationRegistry } from '../globals.js' import MeasurementRepresentation, { calcArcPoint, parseNestedAtoms } from './measurement-representation.js' import { defaults } from '../utils.js' import ...
// ---------------------------- // UA code editor / viewer // by CMDR Eoran, for 'The Canonn' R&D. // Version: 1.2 // ---------------------------- // Credits: // code: CMDR Eoran // presets: CMDR rizal72 // inspired by UA_Draw by: CMDR Anjin, and CMDR Red Wizard // ---------------------------- // Paste in your...
import define, {extend} from "./define.js"; export function Color() {} export var darker = 0.7; export var brighter = 1 / darker; var reI = "\\s*([+-]?\\d+)\\s*", reN = "\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*", reP = "\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*", reHex = /^#([0-9a-f]{3,8})$/, ...
//Game states var app = {}; app.question = ''; app.choices = []; app.answer = ''; app.difficulty = ''; app.rights = 0; app.timer = 0; app.intervalF = function(){}; app.timeoutF = function(){}; app.questionNumber = 0; app.questionsForThisGame = []; app.pausedTime = 0; //game settings app.introWaitTime = 8; app...
/** * BtleJuice fake device * * This module provides the FakeDevice class that simulates an existing * device based on its profile (as detected by the proxy), and allows * interaction with real-world applications and other devices. **/ var bleno = require('bleno'); var async = require('async'); var events = requ...
'use strict'; const async = require('async'); let _; const { setDependencies, dependencies } = require('./appDependencies'); const { CosmosClient } = require('@azure/cosmos'); const axios = require('axios'); const qs = require('qs'); const gremlinHelper = require('./gremlinHelper'); let client; module.exports = { co...
/** * 오디세이 화면별 스크립트 */ /** * 페이지 하단 롤링 */ var pageList = { list : function() { var mode = ""; var item_w; var settings; var listSwipe; var showItemQty; $(window).resize(function() { setTimeout(function(){ var winW = $(window).width(); ...
"use strict"; // Executa o comando do usuário Console.oninput = function (input) { var cmd, retornos try { cmd = interpretar(inflar(input)) cmd.expressoes.forEach(function (x) { var r, inicio, fim inicio = Date.now() try { executar.logId = "" r = executar(x) if (r !== null) { Variavel.v...
'use strict'; var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; function _classCallCheck(instance,...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.__RewireAPI__ = exports.__ResetDependency__ = exports.__set__ = exports.__Rewire__ = exports.__GetDependency__ = exports.__get__ = undefined; var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? funct...
import React, { Component, Fragment } from "react" import {withRouter} from 'react-router-dom' import { Modal, NavBar, Icon, Button, WhiteSpace, WingBlank, Toast} from 'antd-mobile'; import 'antd-mobile/dist/antd-mobile.css'; import TRTC from 'trtc-js-sdk'; import sockjs from 'socket.io-client' import {genTestU...
/* * Copyright 2017 IBM 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 law or agreed to ...
'use strict'; var db = require('../db/db'); var rp = require('request-promise'); var path = require('path'); var conversion_utils = require('./conversion_utils'); var youtube_google_api_key = process.env.YOUTUBE_API_KEY; const _dirname = '/data/'; const _tempdir = '/data/temp'; var utils = require('../utils/utils'); co...
/*globals requireJS*/ /*eslint-env node*/ /** * @author lattmann / https://github.com/lattmann * @author ksmyth / https://github.com/ksmyth * @author pmeijer / https://github.com/pmeijer * curl http://localhost:8855/rest/executor/info/77704f10a36aa4214f5b0095ba8099e729a10f46 curl -X POST -H "Content-Type: applic...
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (...
/* Copyright 2013 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 agreed to in ...
/* globals io,window,document */ const socket = io(); const Vue = require("vue"); const {webFrame} = require("electron"); const {DateTime} = require("luxon"); const validAhkKeys = /(^\S$)|(^F\d$)|(^F\d\d$)|(^CapsLock$)|(^Space$)|(^Tab$)|(^Enter$)|(^Escape$)|(^Esc$)|(^Backspace$)|(^ScrollLock$)|(^Delete$)|(^Del$)|(^In...
import React, {Component} from 'react'; import {withRouter} from 'react-router'; import config from 'react-global-configuration'; import Loading from './Loading.js'; function tiploc(d, tpl) { return d.tiploc[tpl] ? d.tiploc[tpl].locname : tpl } function getDestination(data, tpl, rid) { let via; if (data....
import fetch from "cross-fetch"; import AwesomeDebouncePromise from "awesome-debounce-promise"; import { batch } from "react-redux"; import getCsrf from "../components/csrf"; import { MIN_FETCH_INTERVAL } from "../constants/sync_constants"; export const UPDATE_SEARCH = "UPDATE_SEARCH"; export const UPDATE_SEARCH_REQUE...
import { QueryTypes } from 'sequelize' import should from 'should' import moment from 'moment-timezone' import db from '../fixtures/db' const timezone = 'America/Los_Angeles' const select = async (q, returnSet = false, replacements) => { const res = await db.query(`select ${q}`, { type: QueryTypes.SELECT, p...
var modal = $("#modal-psicologos") var AllRegister = [] var permisos = [] $(document).ready(function () { Reload(); $("#psicologos-table").on('click', '[id^=Btn_Edit_]', function () { var id = $(this).attr('data-id'); const filtro = AllRegister.filter(f => f.id == id); if (filtro.l...
$(function() { //http://stackoverflow.com/a/14645827/5064641 (function(old) { $.fn.attr = function() { if(arguments.length === 0) { if(this.length === 0) { return null; } var obj = {}; $.each(this[0].attributes, function() { if(this.specified) { ...
const { assert } = require("chai"); const CryptoPlace = artifacts.require("./CryptoPlace.sol"); // Import Chai require("chai").use(require("chai-as-promised")).should(); // Testing contract("CryptoPlace", ([deployer, user, buyer]) => { let contract; before(async () => { contract = await ...
function loadCubeMap(gl, envMap, type, state) { var texture = gl.createTexture(); var textureNumber = -1; var activeTextureEnum = gl.TEXTURE0; var mipLevels = 0; var uniformName = 'u_EnvSampler'; if (type === "diffuse") { uniformName = 'u_DiffuseEnvSampler'; activeTextureEnum = g...
import React, { useCallback, useState, useEffect, useRef } from "react"; import { useHistory } from 'react-router-dom'; import PaginationComponent from "react-reactstrap-pagination"; import ConfirmDialog from '../../components/Modals/ConfirmDialog'; import PayModal from '../../components/Modals/PayModal'; // reactstra...
import React, { useState, useEffect } from "react"; import { makeStyles, withStyles } from "@material-ui/core/styles"; import Card from "@material-ui/core/Card"; import CardContent from "@material-ui/core/CardContent"; import CardMedia from "@material-ui/core/CardMedia"; import Typography from "@material-ui/core/Typogr...
"use strict"; var _interopRequireWildcard = require("@babel/runtime-corejs2/helpers/interopRequireWildcard"); var _interopRequireDefault = require("@babel/runtime-corejs2/helpers/interopRequireDefault"); var _Object$defineProperty = require("@babel/runtime-corejs2/core-js/object/define-property"); _Object$definePro...
/////////////////////////////////////////////////////////////////////////// // Depends /////////////////////////////////////////////////////////////////////////// var express = require('express'); var router = express.Router(); var bodyParser = require('body-parser'); router.use(bodyParser.urlencoded({ extended: true }...
/* Copyright 2017 Streampunk Media Ltd. 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 wri...
var MY_TAG_NAME = "llscript.devicedl"; var devicedl = {}; var self = devicedl; bindClass("java.util.regex.Matcher"); bindClass("java.util.regex.Pattern"); bindClass("java.io.FileOutputStream"); bindClass("android.graphics.BitmapFactory"); bindClass("android.graphics.Bitmap"); bindClass("android.graphics.Canvas"); bindC...
var masterContainer = document.getElementById('visualization'); var mapOutlineImage; // where in html to hold all our things var glContainer = document.getElementById( 'glContainer' ); var dpr = window.devicePixelRatio ? window.devicePixelRatio : 1; var lang = getLang(); var dict; // contains a list of facility cod...
/* globals React: false */ var Reflux = require('reflux-core'); /** * Reflux.defineReact function where you can manually supply * the React object in order to create in case Reflux needs to load before * React or there is a modular environment where there won't be a global * React variable. * @note The ...
import React from 'react' import CustomBreadcrumb from '../../../components/CustomBreadcrumb/index' import TypingCard from '../../../components/TypingCard' import { Card, Row, Col,BackTop } from 'antd' import { Chart, Axis, Geom, Tooltip, Coord, Label, Legend, G2 } from 'bizcharts' import { View } from '@antv/data-set'...
'use strict'; var vg = require('./vg/vg'); var img = require('./img/img'); var math = require('./math'); var g = {}; g.HORIZONTAL = 'horizontal'; g.VERTICAL = 'vertical'; g.BOTH = 'both'; g.LEFT = 'left'; g.RIGHT = 'right'; g.CENTER = 'center'; g.TOP = 'top'; g.BOTTOM = 'bottom'; g.MIDDLE = 'middle'; function clam...
// Javascript for the NGI Stockholm Internal Dashboard var plot_height = 415; var num_months = 6; var start_date = moment().subtract(num_months, 'months').format('YYYY-MM'); $(function () { try { Highcharts.setOptions({ colors: ['#377eb8','#4daf4a','#984ea3','#ff7f00','#a65628','#f781bf','#99...
var express = require('express'); var minify = require('express-minify'); var app = express(); var http = require('http').Server(app); var io = require('socket.io')(http); var crypto = require('crypto'); var utils = require('./public/js/inheritance_lib.js'); var entity = require('./protected/entity.js')...
import Utils from './Utils.js' //import Database from './Database.js' //import Queries from './Queries.js' import * as Helpers from './MapHelpers.js' import * as maptalks from '../../vendor/maptalks/maptalks.es.js' const Maps = { point: (nid, center, symbol, zoom = 14, title = 'untitled', text = '', mapbase = 'cart...
import _ from 'lodash'; const log = { update: false, evaluate: false, changes: false, notify: false, object: false, net: false, persist: false, } function stringify(o){ try{ return JSON.stringify(o,null,4); } catch(e){ return +'\n'+(Object.assign({ 'Stringify-Error': e.messag...
// Maximum number of immediate calls that can be made per tick. // Done to prevent bad code from hanging the browser. const MAX_IMMEDIATE_CALLS = 10000000; const runtime = (function (P) { 'use strict'; // The stage. Not sure why it's named this way. let self; // The sprite for which scripts are currently being e...
/* * Network Element * https://github.com/alrighttheresham/psmc * * Copyright (c) 2013 <NAME> * Licensed under the MIT license. */ 'use strict'; var columnizer = require('columnizer'); var sets = require('simplesets'); var helper = require('./helper'); var HashMap = require('hashmap').HashMap; function handle...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); var _typeof = require("@babel/runtime/helpers/typeof"); Object.defineProperty(exports, "__esModule", { value: true }); exports.APIKeyModal = void 0; var _regenerator = _interopRequireDefault(require("@babel/runtime...
import _regeneratorRuntime from "babel-runtime/regenerator"; 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; }; ...
// Represents the character code for the lowest difficulty const BASE_DIFFICULTY_ORD = 97 // Represents the rate at which harder blocks will be more likely selected const DIFFICULTY_MULTIPLIER = 0.75; //Master array of all blocks to be used in the project const blockData = [ { level: "1", rhythmSet: ["a"], noteS...
const Constants = { /* * This is the list of possible WEBM file sections by their IDs. * Possible types: Container, Binary, Uint, Int, String, Float, Date */ SECTIONS: { 0xa45dfa3: { name: 'EBML', type: 'Container' }, 0x286: { name: 'EBMLVersion', type: 'Uint' }, 0x2f7: { na...
import Autocomplete from 'react-native-autocomplete-input'; import React, { Component } from "react"; import PropTypes from 'prop-types'; import { Image, AsyncStorage, View, StatusBar, Dimensions, Alert, TouchableOpacity, TextInput, Text } from "react-native"; import { Container, Header, Button, Content, Item, Input, B...
function FormValidationComponent(formDOMObject, validationCallback, thisisspecial) { if (undefined === thisisspecial) thisisspecial = false; this.site_wide_turn_off = false; this.verify_connection_to_form = function (formDOMObject, requestedSpecialTreatment) { let canConnect = false; if (!this.site_wide_...
#!/usr/bin/env node const fs = require('fs'); const path = require('path'); const yaml = require('js-yaml'); const _ = require('lodash'); const BASE_PATH = './src/data'; const ROUTE_BASE_PATH = `/${process.env.API_VERSION || 'v4'}/reference`; const API_ROOT = process.env.API_ROOT || 'https://api.linode.com'; const AP...
$(document).ready(function(){ // $('#bodega1').change(function() { // var bodega1 = $('#bodega1').val(); var bodega1 = 2; $.ajax({ type: 'GET', url: '/getBodega/' + bodega1, success: function(response){ if (response.tc01 == null){ response...
Dropzone.autoDiscover = false; let subNavItems = []; let parentModRef = null; let editSubNavItem = null; $(document).ready(function() { navItemsScript(); actionListeners(); $(".datepicker").datepicker({ format: "yyyy-mm-dd" }); $('#productlist01').click(function() { if ($('#prod...
/* Timeline.js * --------------------------------------------- * Code that manages the workflow timeline in Foundry. */ var SVG_WIDTH = 4850, SVG_HEIGHT = 550; var HEADER_HEIGHT = 28; var STEP_WIDTH = 22, HOUR_WIDTH = 4 * STEP_WIDTH; // declared in events.js var RECTANGLE_WIDTH = HOUR_WIDTH; var STEP_I...