text stringlengths 8.5k 48.7k |
|---|
const puppeteer = require('puppeteer');
const url = require('url');
//const RecordConfig = require('./RecordConfig');
//const PlaybackConfig = require('./PlaybackConfig');
const chalk = require('chalk');
const Table = require('cli-table');
const pti = require('puppeteer-to-istanbul');
class Util {
/**
* 异... |
/* eslint-disable no-unused-vars */
import React from "react"
/* eslint-enable no-unused-vars */
import { PrismCode } from "react-prism"
import TypesUI from "./Types"
import Chip from "material-ui/Chip"
import Avatar from "material-ui/Avatar"
import { Tooltip, Emmys } from "./Examples"
import {
Annotation,
Subject... |
/**
* @platform All
* @category Secure SMS & Messaging Gateway API
* @package Gateway
* @how-to-install
* dependencies
* @author <NAME> <<EMAIL>>
* @copyright Creative Commons
* @license M.I.T.
* @major-version 1.0
* @link http://github.com/terrawire
* @since File ... |
import {WebXRButton} from './js/util/webxr-button.js';
import {Scene} from './js/render/scenes/scene.js';
import {Renderer, createWebGLContext} from './js/render/core/renderer.js';
import {UrlTexture} from './js/render/core/texture.js';
import {ButtonNode} from './js/render/nodes/button.js';
import {Gltf2Node} from './... |
"use strict";
var getInterval = null;
var streamSelected = false;
document.addEventListener('DOMContentLoaded', function() {
checkForFullscreen();
getInterval = setInterval(function(){ getTestData(); }, 1000);
initialiseUserInfoModal();
addResizeEventListener();
wind... |
/*
This is a translation of Java code from earlier versions of
Thinking Machine.
(c) 2002-2016 <NAME>
Trivia: about 3,200 lines of Java == 1,800 lines of Javascript.
See demo/ directory for individual files.
*/
// Stylized pieces.
function drawPiece(g, type, x, y, side, opt_color) {
if (type === undefined || ... |
import React, { Component } from 'react';
import { Redirect } from 'react-router'
import axios from 'axios';
import defines from '../../defines'
import CustomField from '../CustomField/CustomField';
import RUG, { DragArea, DropArea } from 'react-upload-gallery'
import CustomModal from '../Notifications/Modals/CustomMod... |
var DragAndDrop = function(configObject){
// set defaults
this.config = {
draggableAttribute: 'draggable',
dropzoneAttribute: 'dropzone',
eventPrefix: '',
pointerEventsHack: false,
cancelAnimation: true,
cancelAnimationDuration: 0.4 // seconds
};
if(typeof configObject !== 'undefined'){
... |
"use strict";
/*
* Created with @iobroker/create-adapter v1.23.0
*/
// The adapter-core module gives you access to the core ioBroker functions
// you need to create an adapter
const utils = require("@iobroker/adapter-core");
// Load your modules here, e.g.:
const { Curl, CurlFeature } = require("node-libcurl");
co... |
// <NAME> <<EMAIL>>
"use strict";
// modules
// const Action = require('../algo/compiler/action.js');
const assert = require('../assert.js');
const env = require('../env.js');
const { open: openPanel } = require('./panel.js');
const geom = require('../geom.js');
const sk = require('../sketch.js');
const { triggerUpdat... |
/**
*
* Main JS application file for agency page.
* This file is control the options and display data.
*
* @author CIM Systems (Thailand) <<EMAIL>>
* @license HAII
*
*/
var srvData = {
srvUpload: "thaiwater30/backoffice/metadata/upload_img"
}; //initial data
var jid = "#dlgEditAgency"; // prefix id el... |
/* ShowOff JS Logic */
var ShowOff = {};
var preso_started = false
var slidenum = 0
var slideTotal = 0
var slides
var currentSlide
var totalslides = 0
var slidesLoaded = false
var incrSteps = 0
var incrElem
var incrCurr = 0
var incrCode = false
var debugMode = false
var gotoSlidenum = 0
var shiftKeyActive = false
var... |
var robohornet = {};
robohornet.Status = {
LOADING: 0,
READY: 1,
RUNNING: 2
};
// Captions for the run button based on the robohornet.Status enum.
robohornet.RunButtonCaption = {
0: 'Loading...',
1: 'Run',
2: 'Running...'
};
robohornet.enabledBenchmarks = {
SUCCESS: 0,
LOADING: 1,
RUNNING: 2,
PEN... |
'use strict';
/**
source cdn --
simulate a CDN driven by a latent demand function.
The unit of work generation in this CDN is a host+service. A host's
service behavior (request rates, response_ms, error event rates) is
determined by the total "demand" on that host+service. Per-host
behavior (cpu loads, disk c... |
export { default as AddBoxFill } from './add-box-fill.js';
export { default as AddBox } from './add-box.js';
export { default as AddCircleFill } from './add-circle-fill.js';
export { default as AddCircle } from './add-circle.js';
export { default as Add } from './add.js';
export { default as AirplayFill } from './airpl... |
//enable tooltips
$(document).ready(function(){
$('[data-toggle="tooltip"]').tooltip();
});
//display human-related data questions
function humandata() {
var privacy = document.dataclass.privacy.value;
if (privacy == 1) {
document.getElementById("followuphumans1").style.display = "block";
document.... |
import Container from './element-container';
import TableRow from './element-table-row';
import TableCell from './element-table-cell';
import Label from './element-label';
import Element from './element';
/* global Observer */
const CLASS_TABLE = 'pcui-table';
const CLASS_CELL = 'pcui-table-cell';
const CLASS_CELL_A... |
var createError = require('http-errors');
var express = require('express');
var path = require('path');
var cookieParser = require('cookie-parser');
var logger = require('morgan');
// require the socket.io module
// Models!
const Course = require('./models/Course' );
const ProblemSet = require('./models/ProblemSet' );... |
/**
* Created by Administrator on 2018/16/4 0010.
*/
//初始化数据
var day1 =new Date(new Date()-24*60*60*1000).format("yyyy-MM-dd");
var day2 =new Date(new Date()).format("yyyy-MM-dd");
var search = {
time:day1,
day:7,
gas:['aqi'],
provinces:[24,25,26,27,28]
};
/*西南五省数据*/
var inputcheckData = [
{
"valNa... |
const BitReader = require('./BitReader');
const {logPacket} = require('./Util');
class GameServer extends require('events') {
constructor(game) {
super();
this.game = game;
this.lastBuff = false;
this.game.diabloProxy.hooks.server.push(buffer => {
if (this.lastBuff) {
if (this.lastBuff.length > 1260) {... |
/*AppMoney712 APP Creation System || 01 - AUG -2015 || Copyright <NAME>(<NAME>) || license - Revised MIT.*/
//$(document).on("pagebeforecreate",function(event){$.mobile.loading( "show", { text: "loading...", textVisible: true,theme: "a",html: ""});});
//$(document).on("pagecreate",function(event){$.mobile.loading( ... |
import { LiElement, html, css } from '../../li.js';
customElements.define('li-webgl-box', class LiWebGLBox extends LiElement {
static get styles() {
return css`
:host {
display: flex;
width: 100%;
height: 100%;
}
`;
}
... |
/*********************************************
* @ <NAME>, <NAME>, <NAME>
* Carnegie Mellon University 2022
*********************************************/
import React from "react";
import {Button, Form, Input, Radio, Tooltip, Divider, InputNumber} from 'antd';
import {MinusCircleOutlined, ExclamationCircleOutlined, ... |
import * as Utils from './utils.js'
import * as SkillRacePassiveModule from './skillRacePassives.js'
export class Character extends Utils.GameObject {
constructor(race='DefaultRace') {
super('Character')
this.race = race
this.nickname = 'Noname'
this.statTotalExp = 0
this.statLevel = 1
this.statExp ... |
//Parse forum URLs to open in-app if possible
//TODO: Handle user profile links.
function handleUrl(urlItem){
try {
var isValidLink = false;
this.controller = Mojo.Controller.stageController.activeScene();
Mojo.Log.info("URL: ", urlItem);
var link = parseUri(urlItem);
Mojo.Log.info("Link: " + Object.... |
/* ------------- globals ------------- */
// html object and opengl object
let canvas;
let gl;
// matrices
let M_model_transform;
let M_world_to_ndc;
let M_projection;
let M_camera;
let M_world_rotation;
// buffers
let vBuffer;
let uColor;
let iBufferCube, iBufferWireframeCube, iBufferTetrahedron;
// other webGL thi... |
var voxel = require('voxel')
var voxelMesh = require('voxel-mesh')
var ray = require('voxel-raycast')
var texture = require('voxel-texture')
var control = require('voxel-control')
var voxelView = require('voxel-view')
var THREE = require('three')
var Stats = require('./lib/stats')
var Detector = require('./lib/detector... |
var janus = null;
var mcu = null;
var myDisplayName = null;
var myRoomNumber = null;
var myID = null;
var feeds = [];
var bitrateTimer = [];
var isSpeakingId = null;
var membercount = 0;
var shortcut = null;
$(document).ready(function() {
// fixme anton - first thing first, set window title
window.document.tit... |
const _genders = [// Name, Symbol
/*1*/["Male", "♂"],
/*2*/["Female", "♀"]];
const _races = [// Name, Symbol (human, elf, beast)
/*1*/["Altmer", "E"],
/*2*/["Argonian", "B"],
/*3*/["Bosmer", "E"],
/*4*/["Breton", "H"],
/*5*/["Dunmer", "E"],
/*6*/["Imperial", "H"],
/*7*/["Khajiit", "B"],
/*8*/["Nord", "H"],
/*9*/["Orc... |
/*
Sequence Matrix Filling Game
*/
//global
var seq_matrix;
var match_score = parseInt($("#match_score").val());
var mismatch_score = parseInt($("#mismatch_score").val());
var gap_penalty = parseInt($("#gap_score").val());
var match_color = "#90EE90";
var mismatch_color = "#809fff";
var gap_color = "#ff6666";
va... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = exports.Ilog = exports.Plog = exports.Elog = void 0;
var _jsTracker = _interopRequireDefault(require("./js-tracker"));
var _rule = _interopRequireDefault(require("./rule"));
var _config = _interopRequireDefault(require(... |
/*
* A collection of additional viewer functionality independent
* of datasets
*/
"use strict";
/*global require,console,ga*/
var L = require('leaflet');
var URI = require('URIjs');
var BingMapsApi = require('terriajs-cesium/Source/Core/BingMapsApi');
var Cartographic = require('terriajs-cesium/Source/Core/Ca... |
if (typeof Object.assign !== 'function') {
// Must be writable: true, enumerable: false, configurable: true
Object.defineProperty(Object, 'assign', {
configurable: true,
value: function assign(target, varArgs) {
if (target == null) {
// TypeError if undefined or null
throw new TypeErro... |
var local_grammastr=[
{ "id":"$" , "value":" " },
{ "id":"$" , "value":" " },
{ "id":"$" , "value":" " },
{ "id":".nt." , "value":"න." },
{ "id":".m." , "value":"පු." },
{ "id":".f." , "value":"ඉ." },
{ "id":".sg." , "value":"එක." },
{ "id":".pl." , "value":"බහු." },
{ "id":".nom." , "value":"පඨමා." },
{ "id":".voc." ... |
/*
Emotifier 1.1 by <NAME>
Loosely based on the ASCII text generator at
http://www.javascriptkit.com/script/script2/asciitext.shtml
Converts text into emoticons that can be used in MSN Messenger.
Due to the message limits in Messenger, it's recommended that only four
characters be converted at a time. But... if you... |
/*
* Copyright (c) 2015 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree.
*/
'use strict';
var myUsername = "PILOT";
var targetUsername = "ROBOT";
var myHostname = "";
... |
// Copyright 2010-2020 <NAME> Multimedia GmbH
//
// 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 applicabl... |
var express = require('express');
var bodyParser = require('body-parser');
var app = express();
var push = require('./push-notifications');
var ExternalSensorManager = require("./external-sensors/external-sensor-manager").ExternalSensorManager;
var ZamgOgdSensor = require("./external-sensors/zamg-ogd").ZamgOgdSensor;
v... |
/*
* Copyright (C) 2012 Google Inc.
* Licensed to The Android Open Source Project.
*
* 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
... |
/**
* Collection of valid attribute type characteristic's values
* @enum
* @inner
* @constant
* @type {String[]}
* @alias ValidAttributeTypes
* @memberOf SCIMMY.Types.Attribute
* @default
*/
const types = ["string", "complex", "boolean", "binary", "decimal", "integer", "dateTime", "reference"];
/**
* Collect... |
//const docusign = require('docusign-esign');
const xmlParser = require('xml2js');
const fs = require('fs');
const path = require('path');
const dsRecipeLib = require('./dsRecipeLib');
var docusign
function WebhookLib() {
// Settings
//
this.dsUserEmail = "***";
this.dsUserPw = "***";
this.dsIntegrationId = "***... |
'use strict';
// var tabs = '.nav-tabs li';
var tabs = '#qurative_media_modal .nav-tabs li';
var mediaLibraryTab = '#qurative_media_library_tab';
var uploadFilesTab = '#qurative_upload_files_tab';
var containers = '.qurative-container';
var mediaLibrary = '#qurative_media_library';
var uploadFiles = '#qurative_upload... |
var Toolbar = {};
import { htmlEncodeReg } from 'src/util';
Toolbar.settings = {
oldCategoryList: [],
pageIndex: 1,
pageSize: 10,
dataCount: null,
isComplete: true,
};
import './toolbar.less';
Toolbar.Comm = require('../comm/comm');
Toolbar.Calendar = require('../calendar/calendar');
import 'jqueryUI';
impo... |
import React,{ useState, useEffect } from "react";
// @material-ui/core components
import { makeStyles, useTheme } from "@material-ui/core/styles";
import PropTypes from 'prop-types';
// core components
import Card from "components/Card/Card.js";
import CardBody from "components/Card/CardBody.js";
import GridItem from... |
// *****************************************************************
// =================================================================
// ------------- Instructions for SMOKE-FIRECAM Tool ------------ ||
// =================================================================
// *****************************************... |
var viz, sheet, table, api_options;
var danceability_delta = 0.02; //if the dancebility difference between two tracks is less than delta, then form a link
var previouslyCheckedExplicit;
var previousExplicitCheckResult;
var currentLinkField = "Danceability";
var currentDelta = 0.05;
var currentData;
var deltas = ... |
///*******************************************************************************
// * Copyright (C) 2015 AmTech.
// *
// * Licensed to the Apache Software Foundation (ASF) under one
// * or more contributor license agreements. See the NOTICE file
// * distributed with this work for additional information
// * regard... |
///////////////////////////////////////////
//author: <NAME> /////////////////
//version: 1.1 ///////////////////////////
//date : 05/04/2011 ////////////////////
//////////////////////////////////////////
//////////////////////////////////////////////////
//
// Index (added by <NAME> 20 April 2012)
//
// - varia... |
/* global jQuery, OpenSeadragon, STATIC_URL */
import {
html,
list,
List,
mount,
setAttr,
setChildren,
text,
unmount
} from '../../redom/dist/redom.es.min.js';
import {$, $$} from './utils/dom.js';
export function conditionalUnmount(component) {
if (component.el.parentNode) {
... |
import {transformEarthEngineFailureMessage} from '../ee_promise_cache.js';
import {disasterDocumentReference} from '../firestore_document.js';
import {inProduction} from '../in_test_util.js';
import {damageTag, geoidTag, povertyHouseholdsTag, totalHouseholdsTag} from '../property_names.js';
import {getBackupScoreAssetP... |
/* <NAME>
* MineSweeper
* Sept 2014 - Jan 2015
*/
/* VARIABLES:
* i and j are always 0 - ((the size of the playing board - 1) * 25) in intervals of 25
* k and l, m and n are 0 - (the size of the playing board - 1)
* squares holds the values for how many bonbs surrounds that specific square [0 - (playing board - ... |
import {loggers} from '@rescapes/log';
import {
composeWithChain,
composeWithChainMDeep,
composeWithMapMDeep,
mapMDeep,
mapToNamedResponseAndInputs,
mapToNamedResponseAndInputsMDeep,
mergeDeepWithConcatArrays,
pickDeepPaths,
reqStrPathThrowing,
resultToTaskWithResult,
strPathOr,
toArrayIfNot,
... |
// RUN
function appInit(){
// load and add basemap
map = L.map('map', { zoomControl: false }).setView([50, 10], 4);
addBaseMap(map)
$('.loading').remove();
// add on click temp info
addOnClickInfo();
addOnAddRemoveInfo();
}
function updateApp(selYear, selMonth){
// disable select m... |
import ApollosConfig from '@apollosproject/config';
import { createGlobalId } from '@apollosproject/server-core';
import { ContentItem as coreContentItem } from '@apollosproject/data-connector-rock';
import {
get,
find,
kebabCase,
take,
toLower,
upperCase,
split,
parseInt,
last,
dropRight,
} from 'l... |
#!/usr/bin/env node
/**
* Copyright 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
const CryptoJS = require('crypto-js')
const { randomBytes } = require('crypto')
const secp256k1 = require('secp256k1')
const bs58 = require('base-x')(config.b58Alphabet)
const series = require('run-series')
const parallel = require('run-parallel')
const cloneDeep = require('clone-deep')
const transaction = require('./t... |
Math.TWO_PI = 2 * Math.PI;
// CANVAS -------------------------------------------------------------------------------------------
const CANVAS_STARS = { min: 34, max: 44 };
const CANVAS_BACKGROUND_MOONS = { min: 2, max: 4 };
const CANVAS_FOREGROUND_MOONS = { min: 2, max: 4 };
const CANVAS_SHIP_LAYER = 5;
class Canvas... |
/*
* Purpose: Javascript for building arrival forecasting graphs
* Author: <NAME>
*/
// Global variables
var arrivals;
// Load model and append headers to html doc
function loadModel(url) {
// Pull model from a json url
$.ajax({
dataType: "json",
url: url,
success: function(data)... |
function open_instr() {
$('#open_instr').colorbox({iframe:true,width:1100,height:700,transition:"none",closeButton:true});
}
////////////////////////////////////////////////////////////////////////////////////////////////
// TESTER RELATED CODE
var pass_status;
var PASS_COUNT = 3;
var MAX_Q = 11;
var FIRST_TEST ... |
var items="";
var url = jsBaseUrl+"/ajaxrequest/listrepresentativelocations?customer=178";
$.getJSON(url, function(data){
$.each(data,function(index,item){
items+="<option value='"+item.id+"'>"+item.name+"</option>";
});
$('#selectlocation').html(items);
});
$(document).on("click touchstart", "[i... |
'use strict';
const dgram = require('dgram');
const os = require('os');
const debug = require('debug')('echonet-lite');
// EHD(固定)
const EHD = 0x1081;
// ESV
const ESV = {
SetI: 0x60,
SetC: 0x61,
Get: 0x62,
INF_REQ: 0x63,
SetGet: 0x6e,
Set_Res: 0x71,
Get_Res... |
var path = require('path'),
fs = require('fs'),
url = require('url'),
_ = require('underscore'),
async = require('async'),
jsdom = require('jsdom').jsdom,
domToHtml = require('jsdom/lib/jsdom/browser/domtohtml').domToHtml,
cssmin = require('cssmin').cssmin,
mime = require('mime'),
ab... |
function export_error() {
// no tuning data to export
if (R.isNil(tuning_table['freq'][tuning_table['base_midi_note']])) {
alert("No tuning data to export.");
return true;
}
}
function save_file(filename, contents, raw, mimeType = 'application/octet-stream,') {
const link = document.createElement('a')... |
'use strict';
const fs = require("fs");
const async = require("async");
const shortid = require('shortid');
let vmModule = require("../vm/index.js");
const utils = require("../../../utils/utils.js");
const soajsUtils = require("soajs.core.libs").utils;
const soajsLib = require("soajs.core.libs");
shortid.characters('01... |
/** @module cscheid/plot */
/* global d3,_ */
import * as cscheid from '../cscheid.js';
import * as math from './math.js';
import * as blas from './blas.js';
// ////////////////////////////////////////////////////////////////////////////
// FIXME: There are two different plotting libraries in this file,
// because I... |
var routing;
(function (routing) {
var HashService = (function () {
function HashService() {
this.preventNextEvent = false;
this.pending = false;
this.cancellingPrev = false;
this.callCount = 0;
this.forwardingCount = 2;
this.hash = ""... |
/*
* Copyright (c) 2021, salesforce.com, inc.
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause
*/
/**
* @module progressive-web-sdk/utils/ssr-proxying
*/
/*
There are some special require... |
'use strict';
const routeModal = document.getElementById("route-modal");
const loadingOverlay = document.getElementById('loading-overlay');
let layerTrains = new L.LayerGroup();
let layerCars = new L.LayerGroup();
let layerPlanes = new L.LayerGroup();
let layerCarRentals = new L.LayerGroup();
let layerHotels = new L.... |
class Edt {
static courses = []
static material = {
"primary": "#000000",
"secondary": "rgba(0,0,0,0.5)",
"text": "rgba(0,0,0,0.87)",
"background": "#fafafa",
"td": "#4A4AFF",
"cm": "#FF0000",
"tp": "#FE8BAD",
"exam": "#00FFFF",
"tiers": "#... |
/**
* @author <NAME> / http://almarklein.org
*
* Shaders to render 3D volumes using raycasting.
* The applied techniques are based on similar implementations in the Visvis and Vispy projects.
* This is not the only approach, therefore it's marked 1.
*/
const register_volumeShader1 = function(THREE){
THREE.Vo... |
import { displayMod, makeSelect, horiz } from '../lib/utilities.js'
import parselink from '../lib/parselink.js'
export class ModifierBucket extends Application {
constructor(options = {}) {
super(options)
for (let loc in GURPS.hitlocationRolls) {
let hit = GURPS.hitlocationRolls[loc];
if (!hit.skip) { //... |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import Draggable from 'react-draggable';
import _ from 'lodash';
import { withRouter } from 'react-router-dom';
import {
invoiceBoxStyle, invoiceCustomer, invoiceDate, invoicePrice, invoicePriceText, invoiceProduct, invoiceTax, tableGe... |
/** ******************************************************* {COPYRIGHT-TOP} ***
* Licensed Materials - Property of IBM
* 5725-Z22, 5725-Z63, 5725-U33, 5725-Z63
*
* (C) Copyright IBM Corporation 2016, 2020
*
* All Rights Reserved.
* US Government Users Restricted Rights - Use, duplication or disclosure
* restric... |
// 판매유형
var fixed_trade_subject = true;
var angel_item_s_alias = {
'general': '일반판매',
'division': '분할판매'
};
var angel_item_alias = {
'money': '게임머니',
'item': '아이템',
'character': '캐릭터',
'etc': '기타'
};
// 현재선택된 타입
var angel_enable_type = {
sale: 'general',
goods: 'money'
};
// 현재선택된 단위
... |
/////////////////////////////////////////////////////////////////
//// Public WamiApp API ////
/////////////////////////////////////////////////////////////////
// Create a new Wami.App object. Note, you should never create more than one
// Wami.App object on your page.
//
// ... |
var path = require('path');
var extend = require('extend');
var _ = require('underscore');
var sanitize = require('validator').sanitize;
var async = require('async');
var fs = require('fs');
// JS minifier and optimizer
var uglifyJs = require('uglify-js');
// CSS minifier https://github.com/GoalSmashers/clean-css
var c... |
//<![CDATA[
function noUnload() {
$(window).unbind('beforeunload');
}
function jqConfirm(docType) {
docAction = docType;
$("#myForm").validate();
var v = $("#myForm").valid();
if (v) {
var text = "";
switch (docType) {
case "genDispatch":
text = "Da... |
$(document).ready(function () {
tablaPrestamos();
// ACTIVAR TITULOS
$("body").tooltip({ selector: '[data-toggle="tooltip"]' });
// SOLO NÚMEROS
$('body').on('input', ".input-number", function(e){
this.value = this.value.replace(/[^0-9]/g,'');
});
});
// TABLA PRESTAMOS
function... |
var jsonObj = "";
var targetIndex;
var ground;
var markerRoot;
var scene;
var targetH;
var targetW;
function readTextFile(file, callback) {
var rawFile = new XMLHttpRequest();
rawFile.overrideMimeType("application/json");
rawFile.open("GET", file, true);
rawFile.onreadystatechange = function () {
... |
#!/usr/bin/env node
const CppmApi = require('aruba-clearpass-api');
const async = require('async');
if (!global.log) {
const log4js = require('log4js');
global.log = log4js.getLogger();
log.level = 'info';
}
const IMPORTING =
{
"device": {
"key": "mac",
"aliases": ["device", "devices"... |
import React, { Component } from "react";
import "../../styles/bot.scss";
import {
Container,
Row,
Col,
Button,
Spinner,
Card,
CardImg
} from "reactstrap";
import logo from "../../img/logo_white.svg";
import { ChatPill } from "./bot/ChatPill";
import { ChatPillAsk } from "./bot/ChatPillAsk";
import socket... |
// Copyright 2018 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flags: --harmony-intl-relative-time-format
// The following test are not part of the comformance. Just some output in
// English to verify the forma... |
$(document).ready(function(){
const iso_dtp = {
language: 'es',
todayBtn: 1,
autoclose: 1,
todayHighlight: 1,
format: 'dd/mm/yy',
pickerPosition: "bottom-left",
startView: 2,
minView: 2,
ignoreReadonly: true
};
$('#dtpFechaAutoexclusionD').datetimepicker(iso_dtp);
$('#dtp... |
SERVER_TASKS_URL = "https://yourdomain.tld/mturk-data/experiments/";
function initialize() {
// check whether the HIT has been accepted
let url = new URL(window.location.href);
const debug = url.searchParams.get("debug");
const debug_mode = debug !== null;
if (!debug_mode && window.opener == null) {
al... |
var cls = require("../lib/class");
var mongoose = require("mongoose");
var mongodb = require("mongodb");
var Utils = require('../utils');
var Player = require('../player');
var Messages = require("../message");
var bcrypt = require("bcrypt");
var _ = require("underscore");
var async = require("async");
mongoose.pl... |
// import hoistNonReactStatic from 'hoist-non-react-statics';
import {
MODULE_GLOBAL, ERR,
SIG_FN_START, SIG_FN_END, SIG_FN_ERR,
DISPATCH, INVOKE, CC_HOOK,
} from '../../support/constant';
import ccContext from '../../cc-context';
import * as util from '../../support/util';
import ccDispatch from '../base/dispatc... |
//# dc.js Getting Started and How-To Guide
'use strict';
/* jshint globalstrict: true */
/* global dc,d3,crossfilter,colorbrewer */
Math.average = function() {
var cnt, tot, i;
cnt = arguments.length;
tot = i = 0;
while (i < cnt) tot+= arguments[i++];
return tot / cnt;
}
// ### Create Chart Objects
// Create chart ... |
import {
timeDay,
timeSunday,
timeMonday,
timeThursday,
timeYear,
utcDay,
utcSunday,
utcMonday,
utcThursday,
utcYear,
} from "d3-time";
function localDate(d) {
if (0 <= d.y && d.y < 100) {
var date = new Date(-1, d.m, d.d, d.H, d.M, d.S, d.L);
date.setFullYea... |
import React from 'react';
import PropTypes from 'prop-types';
const UndrawResponsive = props => (
<svg className={props.class} id='a622e68e-7a65-46e9-94a9-d455de519afc' dataName='Layer 1' xmlns='http://www.w3.org/2000/svg'
xmlnsXlink='http://www.w3.org/1999/xlink' style={{height:props.height,width:'100%'... |
//xxxxxxxxxxxxxxxxxxx Main Application Definition xxxxxxxxx
wApp = {
version: "1.4",
isWindows: function() { return(theApp.sysInfo().getOsString().match(/win/i)); },
config: { filesTable: "cirrusdat/FILES_MEM", root_path: "D://cirrus" },
router: {
params: {body: {}},
parse_params: func... |
let { MessageType } = require('@adiwajshing/baileys')
const potion = 520
const Spotion = 150
const limit = 350
const Slimit = 100
const Bdiamond = 900
const Sdiamond = 750
const Bcommon = 200
const Scommon = 20
const Suncommon = 100
const Buncommon = 600
const Bmythic = 2000
const Smythic = 500
const Ble... |
/*
* Copyright (c) 2022, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/L... |
/* -------------------------------------------------------
--------------- Add HOT Project Carousel ----------------
-------------------------------------------------------*/
// Fetch Project data from Tasking Manager API
function getProjects (projects) {
// Add Flexslider to Projects Section
$('.Projects-slider... |
//# sourceURL=dataAssociation.js
Ext.onReady(function(){
advancedWorkflowMenu();
});
var analysisConcept = null;
var module_array;
function advancedWorkflowMenu() {
var advancedMenu = null;
Ext.Ajax.request({
url : pageInfo.basePath+"/plugin/modules",
params: {pluginName:'R-Modules'},
... |
interfaces = {};
connectedToBSSID = null;
connectedToSSID = null;
showDevice = null
tunnels = null;
vpns = null;
function showDeviceTab(device) {
showDevice = device;
$("#interfaces .tab").not("#interfaceStatusTab_" + device).removeClass("selected");
$(".interfaceStatus").not("#interfaceStatus_" + device).hide();
... |
const app = getApp()
Page({
data: {
tempCanvasWidth:0,
tempCanvasHeight:0,
imgViewHeight:0,
page:'mainPage',
imageNotChoosed:true,
minScale: 0.5,
maxScale: 2.5,
doodleImageSrc:'',
tempImageSrc:'',
originImageSrc:'',
imgWidth:0,
imgHeight:0,
imgTop:0,
imgLeft:0,
... |
var DateTime = luxon.DateTime;
var completed_toggle = document.getElementById('completed-toggle');
var data = JSON.parse(document.getElementById('data-json').textContent);
var only_completed = false;
var _ = gettext;
var question_scores_svg = d3.select("#question_scores_chart .chart").append('svg');
var question_sc... |
import * as Dat from 'dat.gui';
import { Group, BoxBufferGeometry, TetrahedronGeometry, VertexColors, TextureLoader, TorusKnotGeometry, MeshPhongMaterial, Scene, Color, BoxGeometry, PlaneGeometry, MeshBasicMaterial, MeshLambertMaterial, DoubleSide, Mesh, Plane, Clock, IcosahedronGeometry } from 'three';
import { Tree, ... |
window.onload=function(){
deleteUser();
}
function deleteUser(){
var user = firebase.auth().currentUser;
console.log("deleted old");
if(user!=null)
user.delete().then(function() {
// User deleted.
}).catch(function(error) {
// An error happened.
consol... |
/**
* qcMergedPageChartChargeStateStatistics.js
*
* Javascript for the viewQCMerged.jsp page - Chart Charge State Statistics
*
* page variable qcMergedPageChartChargeStateStatistics
*
* Merged QC Page
*
* This code has been updated to cancel existing active AJAX calls when "Update from Database" button is ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.