text stringlengths 8.5k 48.7k |
|---|
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.themeDefaults = void 0;
var transition_1 = require("../transition");
var border_1 = require("../border");
var radius_1 = require("../radius");
var noop_1 = require("../utils/noop");
var transitionThemeDefaults = {
0: transition_1.X... |
///<reference types="../../../UserInterface/Build/FudgeUI"/>
// /<reference types="../../../Core/Build/FudgeCore"/>
// /<reference types="../../Build/Fudge"/>
var Fudge;
///<reference types="../../../UserInterface/Build/FudgeUI"/>
// /<reference types="../../../Core/Build/FudgeCore"/>
// /<reference types="../../Build/... |
import {
BufferGeometryLoader,
FileLoader,
Loader,
Object3D,
MeshStandardMaterial,
Mesh,
Color,
Points,
PointsMaterial,
Line,
LineBasicMaterial,
Matrix4,
DirectionalLight,
PointLight,
SpotLight,
RectAreaLight,
Vector3,
Sprite,
SpriteMaterial,
CanvasTexture,
LinearFilter,
Clam... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends2 = require('babel-runtime/helpers/extends');
var _extends3 = _interopRequireDefault(_extends2);
var _defineProperty2 = require('babel-runtime/helpers/defineProperty');
var _defineProperty3 = _interopRequireDefault(_definePr... |
'use strict';
var showing = {};
$(document).ready(() => {
$('button.view-structure').click(toggleEditOptions);
$('button.view-area').click(toggleEditOptions);
$('a#do_update_popcount').click(triggerRecount);
$('a#update_all_popcounts').click(triggerAllRecounts);
$('div.delete-link').click(deleteTh... |
let DEBUG_MODE;
let WINDOW_ID;
let CURRENT_ACTIVE_NODE;
let CONFIG
let USE_API = false;
let QUEUE;
let SESSIONS_VALUES;
let TABS = {};
let DISPLAYED = {};
let FOLDED_SIZE = {};
const INDENT_SIZE = 15
let CACHE
function wait(dur) {
return new Promise(function (res) {
setTimeout(res, dur);
});
}
function getValue... |
"use strict"
var palsetAddress = [
0x2E152, 0x2E152, 0x2E152,
// 0x2E67E, 0x2E67E, 0x2E67E,
// 0x2E85C, 0x2E85C,
// 0xF7126, 0xF7126, // level 2
// 0x2E94C, 0x2E94C,
// 0x2EB38,
// 0x287EE, 0x287EE, // level 3
// 0x2ED16, 0x2ED16,
// 0x2F09C, 0x2F09C, 0x2F09C,
// 0x337D6,
// 0x2F41C, 0x2F41C, 0x2F41C,... |
// Copyright Joyent, Inc. and other Node contributors.
//
// 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, modi... |
/**
* Setting up channels is a lot of work. Same goes for configuration.
* Also, it's always healthy to be releasing versions frequently and have people
* test them frequently. But if losing data after upgrades is a common ocurrence
* then users will just not want to give new versions a try. That's why
* starting ... |
/***********************************************************************
* Matter.js Extra Functions
***********************************************************************/
// Override Matter.Body.create to correct texture offsets and body inertia
Matter.Body.createOriginal = Matter.Body... |
/*! resol-vbus | Copyright (c) 2016-2018, <NAME> | MIT license */
'use strict';
const fs = require('fs');
const path = require('path');
const {
SpecificationFile,
} = require('./resol-vbus');
const expect = require('./expect');
const _ = require('./lodash');
const {
itShouldBeAClass,
itShouldWorkCorr... |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*
* @format
*/
// flowlint ambiguous-object-type:error
'use strict';
var _interopRequireDefault = require("@babel/runtime/helpe... |
// Funções particulares desse projeto
function montarListaPedsito(filial){
var carregando = "<div class='text-center'>";
carregando += "<br><br><br><h4>Carregando <i class='fa fa-spinner fa-spin fa-3x fa-fw'></i></h4>";
carregando += "</div>";
$("#listaPagina").html(carregando);
subirPagina();
... |
function browserSupportsWebp() {
var elem = document.createElement('canvas');
if (!!(elem.getContext && elem.getContext('2d'))) {
// was able or not to get WebP representation
return elem.toDataURL('image/webp').indexOf('data:image/webp') == 0;
} else {
// very old browser like IE 8, canvas not suppo... |
// <div>
// <input type="text" name="time1" id="time1" onclick="MyCalendar.SetDate(this)" value="2006-8-1" />
// <input type="text" name="time2" id="time2" value="2006-8-1" /><input name="" type="button"
// onclick="MyCalendar.SetDate(this,document.getElementById('time2')... |
function len$(a){
return a && (a.len instanceof Function ? a.len() : a.length) || 0;
};
function iter$(a){ return a ? (a.toArray ? a.toArray() : a) : []; };
var self = {}, Imba = require('imba');
var Component = require('./component').Component;
var simpleGit = require('simple-git/promise');
var parseGitConfig = requ... |
function CGame(oData){
var _bUpdate = false;
var _bFirstSpin;
var _bBonus;
var _bFirstPlay = true;
var _iCurState;
var _iCurReelLoops;
var _iNextColToStop;
var _iNumReelsStopped;
var _iLastLineActive;
var _iTimeElaps;
var _iCurWinShown;
var _iCurBet;
var _iTotBet;
... |
import { __spreadArrays } from "tslib";
import { Matrix, Vector3 } from "../Maths/math.vector";
// This implementation was based on the original MIT-licensed TRACE repository
// from https://github.com/septagon/TRACE.
/**
* Generic implementation of Levenshtein distance.
*/
var Levenshtein;
(function (Levensh... |
$('#btn-tab-cp-upload').click(function(){
$('#btn-clear-cp').click();
});
$('#btn-tab-cp-approve').click(function(){
$('#btn-clear-appr-cp').click();
});
getRoleCp();
getDate();
var nik_login = $('#nik-login').text();
var name_login = $('#name-login').text();
//Datatable tab upload
var table_tab_upload_cp = $('... |
// *****************************************************************************
// Matrix Multiplication
// -----------------------------------------------------------------------------
// Background: When I was learning about matrices in high school, our textbook
// would describe how to perform matrix multiplicat... |
//idapp = "jfaoecnmdknjhbjadnpifengnndehddh"
myid="ufvj1hc6m9qg5txkz9ryvz0hk961cx";
row = document.getElementById("afficher");
//var extensionID="obpmmenioddcpffdelecfoogjomfhekm";//online
var extensionID="jfaoecnmdknjhbjadnpifengnndehddh";//local
//Initialisation des valeurs
if (localStorage["showOffline"]==undefine... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _bluebird = require('bluebird');
var _bluebird2 = _interopRequireDefault(_bluebird);
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; desc... |
var nLotes;
$(document).ready(function(){
var options = {
beforeSubmit: showRequest,
success: showResponse,
url: '_subirArchivo.action',
type: 'post',
dataType: 'json'
};
$('#frmDoc').submit(function(){
$('#CVE_VALE').val($('#cve_val').val()... |
const jq = require('../lib/jsonquery.js')
const si = require('../lib/svgIcon.js')
// Add Diagram layer SVG section to Json (not raw)
function addDiagramSVG (jsonDataSet) {
// Update Json representation: add diagram layer svg to interface class
const interfaceClass = jsonDataSet.filter(dat => dat.within !== undefin... |
// ==UserScript==
// @name HV Equipment Highlight
// @author carry0987; ggxxsol(ggxxhy); hc br
// @namespace https://github.com/carry0987
// @support https://github.com/carry0987/UserJS/issues
// @version 1.3.0
// @description People always discern the color first, then to see word
/... |
import $ from 'jquery';
import 'moment';
import 'snackbarjs';
import 'eonasdan-bootstrap-datetimepicker';
import 'bootstrap';
import * as Util from "./util";
import { getAllSubClasses, getDesc } from "./schemaOrg";
import { parseButtons } from "./buttons";
import { semantifyUrl } from "./globals";
import {getSdoHandle... |
/**
* Scripts for data upload in the UI
* @author <NAME>
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
*/
'use strict';
/**
* @class DataUpload
* @author <NAME>
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
* @constructor
*/
var DataUplo... |
import * as d3 from 'd3'
import $ from 'jquery'
import './sankeyExtend.js'
import emitter from './events'
import { mergeArray, textSpillover, isIdExistence } from './util'
import { prominPathTpl, tooltipLineTpl, tooltipNodeTpl } from './template'
/* eslint-disable */
let _config = {} // CONST
let _sankeyObj = {} // D3... |
// LICENSE_CODE ZON ISC
'use strict'; /*zlint node*/
require('./config.js');
const _mongodb = require('mongodb');
const _ = require('lodash');
const cookie = require('cookie');
const zcounter = require('./zcounter.js');
const etask = require('./etask.js');
const sprintf = require('./sprintf.js');
const zerr = require('... |
"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 (b.hasOwnPrope... |
function render_JumbleTemplate(i,obj){
var html = "";
html += '<section id="slide'+(i+2)+'" class="SlideType_Jumble_Slide" slideType="SlideType_Jumble_Slide" slideNumber="'+(i + 2)+'" data-background="#fff">'
+'<div class="timerDiv" style="z-index:-1; position: absolute; width: 100%; height: 100%; left: 0px; b... |
var bs = require('binary-search')
var EventEmitter = require('events').EventEmitter
var inherits = require('inherits')
var mp4 = require('mp4-stream')
var Box = require('mp4-box-encoding')
var RangeSliceStream = require('range-slice-stream')
var Buffer = require('buffer').Buffer
// if we want to ignore more than this ... |
//LOAD CUSTOM FUNCTIONS----------------------------------
function loadScript(url, callback)
{
var head = document.getElementsByTagName('head')[0];
var script = document.createElement('script');
script.type = 'text/javascript';
script.src = url;
script.onreadystatechange = callback;
script.onloa... |
/*
* This JS Object stores all the tables names and its columns names.
* This object can be used for visualizations and places where the name of the columns are needed.
*/
import { DefaultColumnFilter, SelectColumnFilter } from '../components/Filters/filters';
export const tableSchema = {
patients: {
id: { F... |
// JavaScript Document
var Util = {
event:function(event){
var e = event || window.event;
return e;
},
hasClass:function(el,name){
return $(el).attr('class').split(/\s+/).indexOf(name)!=-1;
},
getTarget:function(e){
var target = e.target||e.srcElement;
if(target != null){
return target;
}
},
getSc... |
#!/usr/bin/env node
/***
* Copyright 2018 IBM Corp. 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
*
* Unle... |
/**
* Singleton Class
* @type {*}
*/
var Backbone = require('backbone')
, _ = require('underscore')
, Cluster = require('cluster')
, Base = require('./Base')
, assert = require('assert')
, async = require('async');
var Garam = {};
var applicationDir = 'application';
/**
* Runs over the ca... |
var async = require('async');
var child_process = require('child_process');
var ON_DEATH = require('death');
var ffmpeg = require('fluent-ffmpeg');
var fs = require('fs-extra');
var glob = require('glob');
var path = require('path');
var randomatic = require('randomatic');
var request = require('request');
var sha1 = r... |
var geo_coordinates = {
"AD": [42.546245, 1.601554],
"AE": [23.424076, 53.847818],
"AF": [33.93911, 67.709953],
"AG": [17.060816, -61.796428],
"AI": [18.220554, -63.068615],
"AL": [41.153332, 20.168331],
"AM": [40.069099, 45.038189],
"AN": [12.226079, -69.060087],
"AO": [-11.202692, 17.873887],
"AQ"... |
console.log('you are hearing me talk');
//credits: got cool idea from liz re: 1s and 2s
// const fxn1 = function() {
// console.log('clicked button 1');
// }
// $('#button1').on('click', fxn1);
//everything below here could be the "Game Object"
//would just have to add a lot of "this" keywords...
//global vars
/... |
// edit.js
const {dialog, shell, getCurrentWindow} = require('electron').remote;
window.$ = window.jQuery = require('jquery');
const path = require('path');
const fs = require('fs');
const PSD = require('psd');
const Vue = require('../../node_modules/vue/dist/vue.common.js');
const html2canvas = require('html2canvas');... |
var innerWidth = window.innerWidth;
var innerHeight = window.innerHeight;
var gameRatio = innerWidth/innerHeight;
var w = Math.floor(910*gameRatio);
var h = 910;
var game = new Phaser.Game(w, h, Phaser.AUTO, 'ShiWave', { preload: startPreload, create: startCreate, update: startUpdate, render: render });
function prelo... |
/*
Controller for clock/time webapp
<NAME>, <NAME>, based off <NAME> original design
Last updated 20 March 2020
*/
// Gets the current date and time
var d = new Date();
//var d = new Date(2019,8,26,14,30,1,0);
// console.log(" *** d.getDate() " + d.getDate());
// console.log(" *** d.getMonth() " + d.getMonth());
// co... |
var Ti;
Titanium.UI.orientation = Titanium.UI.PORTRAIT;
var screenwidth = Ti.Platform.displayCaps.platformWidth;
var screenheight = Ti.Platform.displayCaps.platformHeight;
// var blur = require('bencoding.blur');
var styedlabel = require('ti.styledlabel');
var dbFile = Ti.Filesystem.getFile(Ti.Filesystem.applicationDat... |
// '/api/project'
const express = require("express");
const multer = require('multer');
const multerS3 = require('multer-s3');
const jwt = require("jsonwebtoken");
const router = express.Router();
const models = require("../models/models");
const Project = models.project;
const Floorplan = models.floorplan;
const Key... |
import $ from 'jquery';
import Raphael from 'raphael';
import TreantUtils from './treant_utils';
import NodeDB from './node_db';
class Tree {
static doNothing() {}
constructor(jsonConfig, treeId) {
this.initJsonConfig = jsonConfig;
this.initTreeId = treeId;
this.id = treeId;
this.cfg = TreantUti... |
var ldc = {}
function load_pcb_data () {
let filename = $('#pcb-file-select').val()
let fullname = '../pcb/' + filename + '.pcb'
ldc = { holder: {}, Components: [], Pads: [], Outlines: [], Wires: [], Vias: [], Overlay: [] }
jQuery.get(fullname, function (data) {
let lines = data.split('\n')
let count... |
/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ Sudoku JS v1.05 by <NAME> +
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ Copyright (C) 2006-11 by <NAME>, http//derletztekick.com +
+ ... |
/**
* Common JS Functions
*/
$(document).ready(function() {
//$(".slimScrollDiv, .menu").css("height", "auto");
$('[data-toggle="tooltip"]').tooltip({placement: "bottom", html: true});
$('.tooltipstered').tooltipster(
{ contentCloning: true,
contentAsHTML: true,
delay: 500,
maxWidt... |
/**
* This namespace provides functions for DOM manipulations - traversal,
* node creation, moving and testing nodes. Most of these functions are compatible with
* native and simulated (an object that generally has properties like firstChild,
* lastChild, parentNode, etc.) DOM structures.
*
* Functions ov... |
"use strict";
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.definePrope... |
var _ = require('@sailshq/lodash');
var async = require('async');
var deep = require('deep-get-set');
module.exports = function(self, options) {
// These properties have special meaning in Geoportal docs and are not
// acceptable for use as top-level area names
self.forbiddenAreas = [ '_id', 'title', 'slug', '... |
require('dotenv').config();
const { assert } = require('chai');
const path = require('path');
const portfinder = require('portfinder');
const fs = require('fs');
const { ApiPromise, WsProvider, Keyring } = require('@polkadot/api');
const { cryptoWaitReady, mnemonicGenerate } = require('@polkadot/util-crypto');
const {... |
import React from 'react';
import { mount } from '@cypress/react';
import { MemoryRouter } from 'react-router-dom';
import { Provider } from 'react-redux';
import _ from 'lodash';
import { RecsListTable } from './RecsListTable';
import getStore from '../../Store';
import ruleResponse from '../../../cypress/fixtures/ap... |
import React, { useEffect, useRef, useState, useMemo } from 'react'
import PropTypes from 'prop-types';
import { Remarkable } from 'remarkable';
import rkatex from 'remarkable-katex';
import Prism from 'prismjs';
import {zoom} from 'd3-zoom';
import { select } from 'd3-selection'
import transition from 'd3-transition';... |
/**
* @license Copyright 2016 The Lighthouse 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 required by applica... |
/*!
* SVG.js Connectable Plugin
* =========================
*
* A JavaScript library for connecting SVG things.
* Created with <3 and JavaScript by the jillix developers.
*
* svg.connectable.js 1.0.1
* Licensed under the MIT license.
* */
import {Element, extend} from '@svgdotjs/svg.js'
var container = null;... |
/**
* formvuelate v3.8.1
*/
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var vue = require('vue');
function ownKeys(object, enumerableOnly) {
var keys = Object.keys(object);
if (Object.getOwnPropertySymbols) {
var symbols = Object.getOwnPropertySymbols(object);
enumer... |
var Constants = {
onPingTime: 10*1000, // 10 seconds
messageTimeoutTime: 1, // in mins
debug_mode: false,
behind_the_scenes: false,
is_async: false,
defaultSettings: {
'winxp': {'browser': 'IE', 'version': '7.0', 'os': 'winxp', 'speed': '1', 'resw': '1024', 'resh': '768'},
'win7': {'browser':... |
var building_div = "";
var shield_div = "";
var temp_div = "";
var buildings = ['base','shipyard','researchcenter','coalmine','oremine','coppermine','uraniummine','coaldepot','oredepot','copperdepot','uraniumdepot', 'bunker', 'shieldgenerator'];
var buildings_arr = [];
var reloadBuildings = false;
var isUpg... |
// List of known modes, and the corresponding button labels
MODES = {
"prove": {
"button_text": "Prove",
"tooltip": "Run gnatprove to prove SPARK code"
},
"prove_flow": {
"button_text": "Examine",
"tooltip": "Run gnatprove to examine SPARK data and control flow"
},
"p... |
import { aseSocket } from "../aseSockets.js";
import * as utilFunctions from "../utilityFunctions.js";
export class MissileDialog extends FormApplication {
constructor(options) {
super(options);
foundry.utils.mergeObject(this.options, options);
//console.log(this);
this.data = {};
... |
var registerHoverResiData = function (e, tooltipObj){
if (vm.type_tree == 'upload'){
//Figure out how to do the hover in this case;
return;
}
const strainQuery = '&res__poldata__strain__strain=';
var url = `/desire-api/residue-alignment/?format=json&aln_pos=${String(Number(e.position) + 1)}&al... |
/* *
* @Project NUKEVIET 4.x
* @Author VINADES.,JSC (<EMAIL>)
* @Copyright (C) 2014 VINADES.,JSC. All rights reserved
* @License GNU/GPL version 2 or any later version
* @Createdate 31/05/2010, 00:36
*/
// NukeViet Default Custom JS
var myTimerPage = "",
myTimersecField = "",
tip_active = !1,
ftip_act... |
/*
*
* ytComponent - version 1
* Copyright (c) 2015, Ninjoe
* Dual licensed under the MIT or GPL Version 2 licenses.
* https://en.wikipedia.org/wiki/MIT_License
* https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html
*
*/
var ytComponent = function (options) {
this.player;
this.replay = false;
this.c... |
/**
* Main entry point for the Ponyshow. Responsible for loading the command line
* configuration, initializing the i18n system, defining global options and
* flags, and running the main logic.
*
* @module ponyshow
*
* @copyright
* Copyright (c) 2015 by Semantic Press, Inc. All Rights Reserved.
*
* @license
... |
//onsave jtree build produce SweeperCraft.browser.js
class SweeperCraftGame {
constructor(board, renderFn) {
this._setBoard(board)
this._resetBoard()
this._clicks = []
this._renderFn = renderFn
}
retry() {
this._startTime = null
this._resetBoard()
this._clicks = []
this._render()
... |
//--------------------------------------------------------
// Vendor Requirements
//--------------------------------------------------------
require('velocity-animate');
require('parsleyjs');
require('core-js/modules/es6.array.is-array');
const rangeslider = require('nouislider');
const wNumb = require('wnumb');
requi... |
var g_mapAdmins = new Map();
var estudiantesXLS = [];
function loaded(event) {
events(event);
}
function events(event) {
traerTablas();
bringDB();
modals();
llenarDatos();
verificar_correo();
verificar_clave();
}
$(function () {
$('[data-toggle="popover"]').popover();
});
function modals() {
$("#mo... |
'use strict';
var _ = require('lodash');
var moment = require('moment');
var Hamster = require('hamsterjs');
Schedule.$inject = ['$rootScope', '$document', '$compile', 'CONSTANTS'];
function Schedule($rootScope, $document, $compile, CONSTANTS) {
var ESC_KEY = 27;
var options = {
margin: 0,
responsive: [{brea... |
const SCALE_TYPES = {
linear: d3.scale.linear(),
log: d3.scale.log()
};
const DEFAULT_VALUES = {
marginTop: 70,
marginRight: 20,
marginBottom: 20,
marginLeft: 70,
showLegend: true,
showGrid: true,
legendSteps: 12,
cellSize: 5,
colorMinimum: "#0f0",
colorMaximum: "#f00",
... |
/****************************************************************************
** @license
** This demo file is part of yFiles for HTML 2.2.
** Copyright (c) 2000-2019 by yWorks GmbH, Vor dem Kreuzberg 28,
** 72070 Tuebingen, Germany. All rights reserved.
**
** yFiles demo files exhibit yFiles for HTML functionali... |
/**
* The Gulp buildsystem takes care of executing all tasks like bundling
* JavaScript, automated deployment to stores, transpiling SCSS, minifying,
* concatting, copying assets, etc...
*/
const {_extend, promisify} = require('util')
const archiver = require('archiver')
const fs = require('fs')
const path = require('p... |
import * as Tags from "../tags";
import * as MathUtil from "../util/math";
import * as THREE from "three";
import * as Helpers from "../util/helpers";
import { setEntityTweenFromTo, tweenFromTo, tweenTo } from "./AnimationSystem";
import Line3D from "./writing/Line3D";
import createTimeline from "../util/tween-ticker";... |
import _ from 'lodash';
import assert from 'assert';
export class Direction {
static move_in_direction(point, direction) {
/*Takes a step in the given direction and returns the new point.
point: Tuple (x, y) representing a point in the x-y plane.
direction: One of the Directions, exc... |
const latlong = {};
latlong.AD = { latitude: 42.5, longitude: 1.5, color: 'europe' };
latlong.AE = { latitude: 24, longitude: 54, color: 'asia' };
latlong.AF = { latitude: 33, longitude: 65, color: 'asia' };
latlong.AG = { latitude: 17.05, longitude: -61.8, color: 'southAmerica' };
latlong.AI = { latitude: 18.25, longi... |
'use strict';
const MAX_ITERATION_NAME_LENGTH = 40;
const MAX_CARETX_VALUE = 200;
const MAX_DURATION = 480;
const MAX_TOTAL_STEPS = 11520;
const DEFAULT_BUILD_VALUE = "";
const HTTP_METHODS = {
GET: "GET",
HEAD: "HEAD",
POST: "POST",
PUT: "PUT",
DELETE: "DELETE",
TRACE: "TRACE",
OPTIONS: "OPTIONS",
CO... |
/* 后台响应数据节点名称 */
XML_SOURCE_TREE = "SourceTree";
XML_RECORD_DATA = "RecordData";
XML_SOURCE_INFO = "SourceInfo";
PAGESIZE = 100;
/* XMLHTTP请求地址汇总 */
URL_SOURCE_TREE = AUTH_PATH + "rc/all";
URL_GROUPS_TREE = AUTH_PATH + "rc/groups";
URL_SOURCE_DETAIL = AUTH_PATH + "rc/detail";
URL_SAVE_SOURCE = AUTH_PATH + "... |
// Game dependent constants
////////////////////////////////////////////////////////////////
// Random number generation
////////////////////////////////////////////////////////////////
var random_seed = 1;
function random() {
random_seed = (125 * random_seed + 1) % 4096;
return random_seed;
}
// Viewer st... |
try {const check = require('syntax-error');} catch (ex){}
const binance = require('node-binance-api');
const minimums = require('./files/minimums.json');
const package = require('./package.json');
var fs = require("fs");
var configfile="./config/exchange.json";
var keyfile="./config/config.json";
module.exports = {
... |
var assert = require('assert');
var tree = require('../lib/carto/tree.js');
require('../lib/carto/tree/filterset');
describe('Filtersets', function() {
it('should add filters correctly', function() {
var f = new tree.Filterset;
assert.ok(true === f.addable({ key: 'TOTAL', op: '=', val: '11' }), '=11');
as... |
var ignoreImgLoad = true;
var dIgnoreImgLoad = true;
var globalScrollSpeed, globalTransparency;
var globalDialogId;
var MAX_SPEED = 2700;
var MIN_SPEED = 100;
var MED_SPEED = (MAX_SPEED - MIN_SPEED) / 2;
var lastSelectedIconChooserInput;// holds the input element of the last selected icon chooser
var hasToolbarIconUpda... |
const RoomPlayer = require("../models/room_player");
const Room = require("../models/room");
const Results = require("../models/results")
const io = require('../../ioserver');
const users = require("./users");
const RoomsDB = require('../../db/models/Room');
const User = require("../../db/models/User");
// This wi... |
// --------------------- Section: User Permissions -----------------------------
//Get current login user data
function GetUserLogin(successFunction, errorFunction) {
var userid = _spPageContextInfo.userId;
var requestUri = _spPageContextInfo.webAbsoluteUrl + "/_api/web/getuserbyid(" + userid + ")";
var... |
// create global scope to avoid .bind(this)
var self = null;
var med = null;
var damSocket = null;
export default class Mesh {
constructor(mediator) {
med = mediator;
this.inited = false;
self = this;
return this;
}
establish() {
if (self.inited) return;
sel... |
var isIE = (document.all) ? true : false;
var dobj = function (id) {
return "string" == typeof id ? document.getElementById(id) : id;
};
var Class = {
create: function() {
return function() { this.initialize.apply(this, arguments); }
}
}
var Extend = function(destination, source) {
for (var proper... |
// Welcome! This is where you'll write your game code.
// Anything with two // slashes in front is a comment.
// The computer ignores comments. They're for humans
// to explain things to other humans.
let mia = null;
let rocket = null;
let rocket_door = null;
let bricks = [];
let shakos = [];
let stacks = {};
let col... |
var fileinputcontainer = null;
var tempAttachments = {};
var attachmentlist = [];
jQuery.fn.placeholdercontent = function(){
// This is the element
return this.each( function(a,b){
let o = $(b);
o.on('focus',() =>{
if( o.text().trim() == o.attr('placeholder')){
o.text( '' );
}
});
o.on('blur'... |
'use strict';
exports.__esModule = true;
exports.WorldMap = void 0;
var _react = _interopRequireWildcard(require('react'));
var _styledComponents = require('styled-components');
var _defaultProps = require('../../default-props');
var _utils = require('../../utils');
var _StyledWorldMap = require('./StyledWorldMap... |
/**
* function get data depend on client or opportunities option
*
*
* ***/
function get_related_moduleName(val, invoice) {
var url = '/admin/finance/invoices/getmodule';
// Ajax Reuqest
$.ajaxSetup({
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
... |
/* -*- Mode: js2; js2-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40; -*- */
/*
* Copyright (c) 2010 Mozilla Corporation
* Copyright (c) 2010 <NAME>
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to ... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _get2 = _interopRequireDefault(require("lodash/get"));
var _isFunction2 = _interopRequireDefault(require("lodash/isFunction"));
var _sumBy2 = _interopRequireDefault(require("lodash/sumBy"));
var _min2 = ... |
var margin = {top: 15, right: 20, bottom: 30, left: 40};
var metricCWidth = 860 - margin.left - margin.right;
var metricCWideWidth = 1160 - margin.left - margin.right;
var useWideWidth = false;
var svgCounterPadding = 40;
var metricCHeight = 380 - margin.top - margin.bottom - svgCounterPadding;
var runLineChart = null;... |
import React, { useEffect, useState, useRef, useImperativeHandle } from 'react'
import { yupResolver } from '@hookform/resolvers/yup';
import classNames from 'classnames';
import { HelpCircle, Loader, Upload, ChevronDown, ChevronUp, Trash2 } from 'react-feather';
import { useForm, useFormContext, Controller, useFieldAr... |
import React, {
forwardRef,
useCallback,
useContext,
useMemo,
useRef,
useState,
useEffect,
} from 'react';
import { ThemeContext } from 'styled-components';
import { defaultProps } from '../../default-props';
import { AnnounceContext } from '../../contexts/AnnounceContext';
import { MessageContext } from ... |
const Field = require("@saltcorn/data/models/field");
const Table = require("@saltcorn/data/models/table");
const Form = require("@saltcorn/data/models/form");
const View = require("@saltcorn/data/models/view");
const Workflow = require("@saltcorn/data/models/workflow");
const {
text,
div,
h5,
style,
a,
sc... |
import React, { useEffect, useState } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { useHistory } from 'react-router-dom';
import { updateUserProfile } from '../../actions/profile';
import defaultProfilePic from './profile-pic.png';
import Spinner from '../landingPage... |
const capitalize = (s) => {
if (typeof s !== 'string') return ''
return s.charAt(0).toUpperCase() + s.slice(1)
}
const getCurrentCategories = (categoryArea) => {
let categories = [];
$(categoryArea).find('span .category-name').each(function() {
if($(this).is(":visible")) categories.push($(this)... |
/**
* mapper.js 2.4 (10-Aug-2010) (c) by <NAME>
* All Rights Reserved. Source: mapper.netzgesta.de
* Distributed under Netzgestade Software License Agreement.
* This license permits free of charge use on non-commercial
* and private web sites only under special conditions.
* Read more at... http://www.netzgest... |
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
import _extends from "@babel/runtime/helpers/esm/extends";
import { createVNode as _createVNode } from "vue";
// based on rc-input-number 4.5.5
import PropTypes from '../../_uti... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.