text
stringlengths
5.97k
41.2k
import { mysql } from '../Dependencies/Index.js' /** TODO * Implementar a leitura da tabela cursowrds * Refazer o effetivate */ class DataBaseCon{ constructor(){ this.loaded = false this.users = {} } async connect(){ try{ if(this.con && this.con.state != 'disconnec...
// var exports = module.exports = {} var d3 = require("d3") var setAxisScale = require("./setAxisScale.js") var csv = require("../data/sample.csv"); var margin = {top: 10, right: 200, bottom: 180, left: 40}; var margin2 = {top: 400, right: 10, bottom: 20, left: 40}; var outterWidth = 960; var outterHeight = 500; var ...
// SETTING // first field in the message must be timestamp that is number of seconds from last UTC midnight var fmt_ver = '<B'; var header_TPP_v1 = ['version', 'timestamp', 'TEMP_id', 'temperature', 'humidity', 'TEMP_count', 'PM1_id', 'PM1_PM10', 'PM1_PM25', 'PM1_count', 'PM2_id', 'PM2_PM10', 'PM2_PM25', 'PM2_count']; ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } }...
/* Copyright 2017 OpenFin 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 writing, software distri...
function SSSMSequencer(){ var signals; var steps; var split; var stepsTotal; var self = this; var cycle, cyclesTotal, ppqn; var midi; var _spp,_index; var _openNotes, _openNotesNum; var _lastNoteFlag; var startPos,lastPos; var seqStepWidth, seqStepHeight; var seqConta...
var foundLastNames = {}; var addInlineAvailability = true; var cachedResponses = {}; var playerDict = {}; var customMappings = {}; /** * Parse the DOM and search for valid player names. Surround names with <span> * tags. */ var injectMarkup = function(inNodes) { var nodes = []; var addMarkup = function(node,...
import * as d3 from 'd3'; import { render, html } from 'lit-html'; import utils from '../utils/utils'; let _this; class Bubble extends HTMLElement { constructor() { super(); _this = this; this.simTime = null; this.hovTime = null; this.selectDelegate = function noop() {}; this.first = true; ...
"use strict"; /** * Copyright (c) Microsoft 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 applica...
const alasql = require('alasql'); const fs = require('fs-extra'); const base64Helper = require('./base64-helper.js'); const rateLimiterProvider = require('./rateLimiter.js'); let RED; module.exports.initRED = function (_RED) { RED = _RED; }; module.exports.RedLinkProducer = f...
$(document).ready(function() { /** WORST CODES */ $(".tagsInput").select2({ width: 'resolve', theme: "classic", tags: true, tokenSeparators: [',', ' '] }); flatPickrInit(); /** WORST CODES */ /** OwlCarousel */ $('.owl-carousel').owlCarousel({ loop:...
var editor_class_list = ['main_container','span_but_h1_tag','span_but_h2_tag','span_but_h3_tag','span_but_h4_tag','span_but_h5_tag','span_but_h6_tag','span_but_p_tag','ui-sortable-handle','ui-sortable','hover_disable','click_show_my_border','image','padding-10px','dont_clone','dont_remove']; var element_id = 0; var my_...
import React, { Component } from "react"; import PropTypes from "prop-types"; import { Typography, withStyles } from "@material-ui/core"; import InputGroup from "../../../../common/form/InputGroup"; import Button from "../../../../elements/Button"; import notifications from "../../../../../stores/notifications"; impor...
import { delay } from 'async-agent'; import keyCodes from 'keycodes'; import { applySettings, AUTO, DockPoint, HUNDRED_PERCENT, isString, methodArray, methodBoolean, methodString } from 'type-enforcer-ui'; import controlTypes from '../controlTypes.js'; import Div from '../elements/Div.js'; import Heading from '...
/* * Copyright 2016 <NAME> and other contributors * Copyright 2020 Centrapay and other contributors * * 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/LI...
/** * atk打包工具 */ "use strict"; /**********************************声明系统依赖***********************************/ const path = require("path"); const child_process = require("child_process"); const platform = require("os").platform(); //http服务部分的依赖 const http = require("http"); const url = require("url"); const fs = requ...
var subpage_style = { top: '45px', bottom: '50px' }; var home_style = { top: '0px', bottom: '50px' }; var curView = null; var curModulename = ''; var menuhtml = ""; //菜单的HTML var listhtml = ""; var main, menu; var showMenu = false; var logout = false; var childlist = new Array(); var gps = { lat: 0, lng: 0 };...
const electron = require('electron'); const app = electron.app; const BrowserWindow = electron.BrowserWindow; const ipcMain = electron.ipcMain; const globalShortcut = electron.globalShortcut; const dialog = electron.dialog; const DEVELOPMENT = true; var fs = require('fs-extra'); var mkdirp = require('mkdirp'); var rm...
/* mapboxgl.accessToken = '<KEY>'; const map = new mapboxgl.Map({ container: 'map', style: 'mapbox://styles/mapbox/streets-v11', zoom: 6, center: [75.7643839, 28.877387] }); //map.invalidateSize(); // var bounds = [[-123.069003, 45.395273], [-122.303707, 45.612333]]; // map.setMaxBounds(boun...
/** * @module nodejs */ /** * @public * @namespace module:nodejs */ const { resolve, dirname, basename } = require('path') const { readFileSync } = require('fs') const { StringDecoder } = require('string_decoder') const Client = require('@hoctail/query') const tar = require('tar') const { Response } = require('nod...
var locks = require('locks'); var request = require('request'); var WebSocket = require('ws'); var Service, Characteristic; var WSLog; var WSConf; var WSState; const UNKNOWN = 0; const ON = 2; const OFF = 4; var Services; module.exports = function(homebridge) { Service = homebridge.hap.Service; Characteristi...
'use strict'; var util = require('util'); var path = require('path'); var fs = require('fs'); var SQLite = require('sqlite3').verbose(); var Bot = require('slackbots'); // var mongoose = require('mongoose'); // var db = mongoose.connect("mongodb://localhost:27017/lunchbot").connection; // var Botkit = require('botki...
/** * @description MeshCentral MeshAgent * @author <NAME> * @copyright Intel Corporation 2019-2022 * @license Apache-2.0 * @version v0.0.1 */ var fs = require('fs'); var path = require('path'); var worker = null; const NodeJSVer = Number(process.version.match(/^v(\d+\.\d+)/)[1]); var directRun = (require.main === mod...
var options = []; var id = 0; var intervalId; var msg = []; var move; var addresses; var markers = []; var infoWindows = []; var loadedMap, lat, lon; var range = 0; var searchRange; var MyMap = { myMap: function myMap() { if (navigator.geolocation) { var map = $('#map')[0]; ...
var TWEEN = require("tween.js"); var animitter = require("animitter"); var mathext = require("./../MathExt.js"); var guihelper = require("../GuiHelper.js"); var settings = require("../Settings.js"); var signal = require("./Signal.js"); let prismSolidParams = { constructor: THREE.Mesh, numTubes: 2, tubeRadi...
// Recojo los valores de la busqueda : nombre, año de publicacion, editorial y autor let inputAnio = document.getElementById('inputAnioPublicacion'); let inputNombre = document.getElementById('name'); let idEditorial; let idAutores; let editoriales = document.createElement('option'); let autores = document.createElem...
window.onload = function() { document.getElementById("signoutBtn").addEventListener("click", signoutUser); document.getElementById("showRemoveBtn").addEventListener("click", showRemoveBtn); document.getElementById("removeBtn").addEventListener("click", removeUser); document.getElementById("addTaskBt...
/* * Schedule Me - A simple single-user schedule sheet. * Copyright 2020 <NAME> <<EMAIL>> */ const min = Math.min, max = Math.max const floor = Math.floor, ceil = Math.ceil, round = Math.round const random = Math.random function randomElement(a) { return a[floor(a.length * random())] } // -------------------------...
var c, ctx; var speed, currentPath, fullPath, pathDrone, f = 0, steps, size = 22.5, tSize = 37.5, pSize = 3.5, statusBar, sumPauseTimes, prev_coords; var queryRange, minPointsInCluster = 3; var dataset = []; var path = []; var truck = { x: 0.0, y: 0.0, speed: 0.0 }; var drone = { x: 0.0, y: 0.0, ...
/** * Created by cuthbertm on 3/21/16. */ marked.setOptions({ gfm: true, tables: true, breaks: false, pedantic: false, sanitize: true, smartLists: true, smartypants: true }); toastr.options = { "positionClass": "toast-top-center", "toastClass": "notification", "closeButton": f...
var SimulateMove = defineObject(BaseObject, { _unit: null, _moveCount: 0, _moveMaxCount: 0, _xPixel: 0, _yPixel: 0, _isMoveFinal: false, _dxSpeedValue: 0, _dySpeedValue: 0, _unitCounter: null, _moveCource: null, createCource: function(unit, x, y, simulator) { var index = CurrentMap.getIndex(x, y); ...
/*! * ws: a node.js websocket client * Copyright(c) 2011 <NAME> <<EMAIL>> * MIT Licensed */ 'use strict'; const EventEmitter = require('events'); const crypto = require('crypto'); const Ultron = require('ultron'); const https = require('https'); const http = require('http'); const util = require('util'); const ur...
var util = require('util'); var Discord = require('discord.js'); var fs = require('fs'); //const ytdl = require('ytdl-core'); var net = require('net'); port = 2133; var startTime; var schedule = require('node-schedule'); const cron = require("cron"); const io = require('@pm2/io'); const client...
const nofetch = require('nofetch') const fs = require('fs') const blockstack = require('blockstack') const unlistedApps = require('./unlisted-apps') const appMeta = require('./src/data/app-meta') const csvtojson = require('csvtojson') var appPublishers = [ { username: 'jehunter5811.id', apps: [216, 1748, 1538, 934] ...
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); } function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } function _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; va...
function highlighter(e, f) { if ($("html").hasClass("lt9")) { // doesn't work with IE8 and below return true; } hljs.highlightBlock(f); var text = e.html().replace(/^\n+|\n+$/g, ''); if (e.hasClass("blank")) { e.html(text); } else { var nb = text.split(/\n/).length; var html = "<table><td clas...
'use strict'; const fs = require('fs'); // This should be the default amount of money users have.. // Ideally, this should be zero. const DEFAULT_AMOUNT = 0; // define database >eslint const Sb = require('origindb')('config/sb'); // define moneyName + moneyPlural fot eslint const moneyName = 'Credits'; const moneyP...
/** * game-of-life * ライフゲーム * @see https://ja.wikipedia.org/wiki/%E3%83%A9%E3%82%A4%E3%83%95%E3%82%B2%E3%83%BC%E3%83%A0 * * ■がうねうねするやつ。初期状態だけ決めて、あとは■が繁殖したり滅亡したりをただひたすら眺めるゲーム。 * ちゃんとした学者さんにとっては研究対象らしいが、ただうねうねするのを眺めるだけでも楽しい。 */ /* global $ */ const LIVE = 1; const DEAD = 0; let constant = { width: 60, hei...
function getCookie(gb) { var c = document.cookie.split("; "); for (var d = 0; d < c.length; d++) { c[d] = c[d].split("="); if (c[d][0] == gb) return c[d][1]; } } function setCookie() { for (var d of arguments) document.cookie = d + "; expires=Thu, 18 Dec 2043 12:00:00 GMT"; } function ...
/** * BotSpeak JS - BotSpeak Chrome Extension * @author <NAME> * @version 1.0 */ var socketio; var BOTSPEAK_DEVICES = { 'BEAGLEBONE_BLACK' : { 'name' : 'Beaglebone Black', 'img' : 'images/beaglebone.jpg', 'ip' : '', 'connection_id' : -1 }, 'BEAGLEBONE_BLACK_TCP' : { 'name' : 'Beaglebone Black (TC...
import React, { useState, useEffect } from 'react'; import { makeStyles } from '@material-ui/core/styles'; import Fab from '@material-ui/core/Fab'; import AddIcon from '@material-ui/icons/Add'; import Paper from '@material-ui/core/Paper'; import Grid from '@material-ui/core/Grid'; import TextField from '@material-ui/co...
function showStats(Schedule, cb){ var Sched = Schedule, name = Sched.data.class_info.name, days = Sched.data.class_info.days, hours_in_day = Sched.data.class_info.hours_in_day, schedules = Sched.data.scheduled, _schedules = new Array(), pm = null, fir...
import * as MTS from './poster.mutations'; import BackgroundWidget from 'poster/plugins/background/constructor'; import {Widget, CopiedWidget} from 'poster/widgetConstructor'; import { arrMoveTop, arrMoveUpper, arrMoveLower, arrMoveBottom, } from 'poster/utils'; import {isPlainObject} from '@/utils'; import _se...
#!/usr/bin/env node /* jshint maxdepth: 6 */ /* jshint forin: false */ /** * Revision Control Statistics * * http://cixtor.com/ * https://github.com/cixtor/revstats * https://en.wikipedia.org/wiki/Revision_control * https://en.wikipedia.org/wiki/Git_(software) * https://en.wikipedia.org/wiki/Mercurial * https:...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.renderCategorie = exports.deleteProduct = exports.renderProduct = exports.updateProduct = exports.updateStatus = exports.renderPedido = exports.renderPedidos = exports.createProduct = exports.createPedido = void 0; var _Pedidos = _...
import React, { Component } from 'react'; import axios from "axios"; import Button from 'react-bootstrap/Button' import ButtonGroup from 'react-bootstrap/ButtonGroup' import Select from 'react-select'; import { optionsIcon } from './selectIconImgs'; import { library } from '@fortawesome/fontawesome-svg-core' import ...
import React, { Fragment, memo, useRef, useState, useCallback, useEffect, } from 'react'; import { useDrag, useDrop } from 'react-dnd'; import { useSelector, useDispatch } from 'react-redux'; import { Icon, message } from 'antd'; import cloneDeep from 'lodash/cloneDeep'; import uniqueId from 'lodash/uniqueI...
const rp = require('request-promise'); const Discord = require('discord.js'); const mime = require('mime-types'); const Consts = require('./Consts'); /** * Class that holds both the Direct Line websocket clients and the Discord client. */ class DiscordConnector { constructor(config = {}) { this.discordS...
/*--------------------------------------------------------------------------- Copyright 2013 Microsoft Corporation. This is free software; you can redistribute it and/or modify it under the terms of the Apache License, Version 2.0. A copy of the License can be found in the file "license.txt" at the root ...
"use strict"; // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { return new (P || (P = Promise))(function (resolve, rej...
import * as Util from "./utils.js"; import { TimeQ } from './time-queue.js'; import * as Constant from "./constants.js"; // TODO update rules doc // TODO if total of max HP damage > max HP, MV halved (use condition/effect) // TODO button to level up char, add level/HD to top bar of actor sheet, allow players to click ...
'use strict'; /* instead of importing questions.js I have listed all the questions here var questions = require("./questions"); */ var totalScore = 0; var newGame = 0; var questions = [ { 'What food is Ross allergic to?': [ 'Lobster', 'Chcolate', 'Milk', 'Ice cream' ] }, { ...
/** * Created by MT on 17/09/2015. */ /** * Partial OWL2RL spec from http://www.w3.org/TR/owl2-profiles * @author <NAME> * @type {{rules: *[]}} */ var Rule = require('./Logics/Rule'), Fact = require('./Logics/Fact'), Prefixes = require('./Prefixes'), Logics = require('./Logics/Logics'); var Class =...
var $dom = $(document); var btnJoin = '.join-now-wrap'; var btnNew = '.btn-submit-new'; var btnLike = '.btn-like-click'; var btnLikeConf = '.btn-like-confirm'; var btnShare = '.btn-share-click'; var btnShareConf = '.btn-share-confirm'; var btnGoGallery = '.btn-go-gallery'; var btnSubmitNew = '.btn-submit-new'; var btn...
let count = 0; let degree_out = 0, radian_out = 0, remainder = 0, //余数 remainder_h = 0; //余数弧度 export default class Tools { constructor() { /** * 定义常量, 绘制的模式 * @final {String} DrawingType */ this.times = 1; count = 0; degree_out = 0; rad...
/* * @author lovepsone 2019 - 2021 */ import * as THREE from './../libs/three.module.js'; import {PSALoader} from './PSALoader.js'; /* Chunks Headers : - ACTRHEAD: Does not contain a data pair. - PNTS0000: Vertices. - VTXW0000: Weighted edges (wedges). - FACE0000: Triangle faces. - MATT00...
//Interpolator //Written by <NAME>, inloop.eu //Elements var graph = document.getElementById("graph"); var editor = ace.edit("editor"); var editorElement = document.getElementById("editor-parent"); var delay = document.getElementById("delay"); var box = document.getElementById("box"); var removeVis = document.getEleme...
/* eslint-disable camelcase */ const assert = require('assert'); const readXlsxFile = require('node-xlsx').default; const { validate, ParticipantBatchSchema, isBooleanValue } = require('../validation.js'); const { dbClient, collections } = require('../db'); const { createRows, verifyHeaders } = require('../utils'); con...
const days = ["Sun", "Mon", "Tues", "Wed", "Thurs", "Fri", "Sat"]; const months = [ "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" ]; function paddedStringForNum(num) { if (num < 10) { ...
"use strict"; function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj ...
// Links var ens_url = 'http://www.ensembl.org/Homo_sapiens/Location/View?t='; var ccds_url = 'http://www.ncbi.nlm.nih.gov/projects/CCDS/CcdsBrowse.cgi?REQUEST=ALLFIELDS&DATA='; var hgnc_url = 'http://www.genenames.org/cgi-bin/gene_symbol_report?match='; var hgnc_id_url = 'http://www.genenames.org/cgi-bin/gen...
// TODO: change html text element to be instantiated from here (createP()) let outBlock = []; let font; let resX, resY; let charWidth, charHeight; // NOT ALLOWED CHARACTERS: ()[]{}<>- `?& let notAllowedCharacters = '()[]{}<>- `?&'; let gradients = [ '.:=+*#%@', '.:;lIE8%', '.\':!;LlIE9G8%', ]; let currentTransl...
/** * DrawinglyScript.js * * The main script that controlls the game client page. * * @author <NAME> * @version 0.1.0 * */ var canvas = document.getElementById('canvas'); var ctx = canvas.getContext('2d'); var canvasX = $(canvas).offset().left; var canvasY = $(canvas).offset().top; var prevMouseX = prevMouseY...
import { connect} from 'dva'; import { Component, Children } from 'react'; import { Table, Pagination, Divider,Popconfirm,Modal, message, Button,Row, Col,Icon,Menu,Dropdown, Input,Checkbox } from 'antd'; import router from 'umi/router'; import styles from '../grid/grid.css'; import * as ButtonArea from '../../.....
const { MessageAttachment } = require("discord.js") const db = require('quick.db') const write = require('write'); module.exports = { name: 'announcement', run: async (client, message, args) => { if(!message.member.hasPermission('MANAGE_GUILD')) return message.channel.send(`${message.author}, vo...
// Exports data as any supported format // take in a format, file key, geojson, and callback var fs = require('node-fs'), crypto = require('crypto'), mv = require('mv'), kue = require('kue'), async = require('async'); var exec = require('child_process').exec; var Exporter = function( koop ){ var self = thi...
// The MIT License (MIT) // // Copyright (c) <NAME> <<EMAIL>> // // 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...
import React, { Component } from 'react' import Router from 'next/router' import { Divider, Button, Form, Input, Icon, Spin, Select, Modal, message } from 'antd' import { Button as ButtonR, ButtonGroup as ButtonG } from 'reactstrap'; import { Col, Row } from 'reactstrap' import TagsInput from 'react-tagsinput' im...
import React, { Component, Fragment } from 'react'; import { connect } from 'dva'; import moment from 'moment'; import { DataSet } from '@antv/data-set'; import { Row, Col, Card, Tag, Timeline, Table, Divider } from 'antd'; import Gallery from 'react-grid-gallery'; import { Chart, Axis, Geom, Tooltip, Legend } from 'bi...
/** * Chronote - google-docs-like editing on web pages * https://github.com/seowyanyi/Chronote * * Copyright 2015, <NAME> * Licensed under the MIT license. */ ////////////////////////////////////////////////////////////////////////////// ////////// Ported from SmartTeleMax's MaSha for use in Chronote/////////////...
import React, {Component} from 'react'; import {BackHandler, Dimensions, Platform, SectionList, Text, View} from 'react-native'; import {connect} from 'react-redux'; import {batchUpdateNotification, getNotifications} from '../../actions/notifications'; import {Actions} from 'react-native-router-flux'; import Notificati...
/* eslint-disable standard/no-callback-literal */ const express = require("express"); const rise = require("risejs").rise; // const riseRegex = /^\d{1,30}R$/; let latestTransactions = JSON.stringify([]); let status = JSON.stringify({ message: "No data available... System is not running...", "last-blockheight-checke...
/** @file three_output.js * @author Authored in 2019, 2020 at <https://github.com/nicky-nym/city3d> * @license UNLICENSE * This is free and unencumbered software released into the public domain. * For more information, please refer to <http://unlicense.org> */ import * as THREE from '../../node_modules/three/buil...
import React from 'react'; import { View, Text, TouchableOpacity, Dimensions, AsyncStorage as AsyncStorageNative, Platform, Image, ScrollView } from 'react-native'; import { AsyncStorage, Image as ImageWeb } from 'react-native-web'; import UICardDisplay from '../components/UICar...
"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })...
/** @jsx jsx */ import React from 'react' import { Map } from 'immutable' import {AnchorPopoverConfig} from './menu/link.js' import {MenuConfig} from './menu' import {ImageBlockConfig} from './blocks/image.js' import {VideoBlockConfig} from './blocks/video.js' import {CodeBlockConfig} from './blocks/code.js' import {...
const { LogisticRegressionNLU } = require('node-nlp'); async function train() { const classifier = new LogisticRegressionNLU({ language: 'es' }); classifier.add('Me quiero morir', 'p_muerte'); classifier.add('Deseo morir', 'p_muerte'); classifier.add('Ya quiero morir', 'p_muerte'); ...
var fs = require("fs"); var i18n = require('i18n'); var rest = require('restler'); var uuid = require('node-uuid'); var async = require('async'); var file = require('file'); global.Dnode = require('dnode'); function Bootstrap (app, express) { this.app = app; this.express = express; this.logging = require('...
STRUCTURE_COMPONENT_STATE_ALIVE = 1; STRUCTURE_COMPONENT_STATE_SETTING = 2; STRUCTURE_COMPONENT_STATE_DISABLED = 4; STATION_NODE_ROLE_CENTRAL = 1; STATION_NODE_ROLE_ANNEX = 2; STATION_NODE_ROLE_BRANCH = 4; STRUCTURE_STATION_RADIUS = 5; STRUCTURE_ARRAY_LENGTH = 50; STRUCTURE_ARRAY_THICK = 4; STRUCTURE_SPACE = S...
/** * @name Helper * @description Helpers act as a registry for specific types of Javascript modules * that are to be made available to a project runtime. Helpers exist to provide * common behavior, interfaces, and life cycle events and hooks for all types of things * ...
function spGetSolmanCustomerGuids() { AJS.$("#solman-connections-id").auiSelect2({ ajax: { url: AJS.params.baseURL + '/plugins/servlet/spGet', dataType: 'json', results : function(data, page) { var myResults = []; AJS.$.each(data, function(index, ...
var canvas = document.getElementById("workarea"); var context = canvas.getContext("2d"); var m = 10; // Margin to canvas border var s = 3; // Size of cube var r = 15; // Circle radius var p = 10; // Padding between circles var l = 25; // Padding between layers var strokeWidth = 2; // Line width of circl...
window.onload = function () { console.log('load!!!!') loadResult() loadSumResult() } function loadResult(){ var _starttime = GetRequest().starttime var _device = GetRequest().device var total_pass=0 var total_fail=0 console.log(_starttime+' '+_device) $.ajax({ type: 'POST', ...
var util = require('../../utils/util.js'); var Bmob = require("../../utils/bmob.js"); var app = getApp(); let that Page({ data: { picArray:[0 ,1, 2 ,3 , 4],//标志位,用来判定修改哪张小图 picture0:'', avatarUrl:'',//上传头像url。 pictureArray:[],//小图数组 flag_name:true, flag_sex:true, flag_university:true, ...
let mongoose = require("mongoose"); const axios = require("axios"); let proj4 = require("proj4"); let Geometry = require("./geometry.js"); let Appearance = require("./appearance.js"); let Bridge = require("./bridge.js"); let Building = require("./building.js"); let CityFurniture = require("./cityfurniture.js"); let C...
let PROMPT_TEXT = ">"; let CURRENT_DRIVE = "A"; let shell_pwd = [""]; let goInteractive = false; let goFancy = false; let DEBUG_PRINT = true; let errorlevel = 0; const termWidth = con.getmaxyx()[1]; const termHeight = con.getmaxyx()[0]; const welcome_text = (termWidth > 40) ? "TSVM Disk Operating System, version " ...
//Variablen //--------------------------------------------------------------------------------------------------------- var pop = [ 680000, 590000, 510000, 498000, 480000, 490000, 500000, 580000, 620000, 680000, 700000, 720000, 760000, 760000, 760000, 800000, 900000, 850000, 7...
import { MDBAnimation, MDBBtn, MDBCard, MDBCol, MDBContainer, MDBIcon, MDBRow } from 'mdbreact'; import React, { Component } from 'react'; import AuctionTable from '../components/AuctionTable'; import AuctionListItem from '../components/AuctionListItem'; import HelperFunctions from '../utils/Util'; import TimeAgo from ...
/* @jsx jsx */ import React, { Component } from "react"; import ReactGA from "react-ga"; import { css, jsx } from "@emotion/core"; import { IMAGES_CDN } from "../scripts/constants"; import algoliasearch from "algoliasearch/lite"; import { InstantSearch, connectSearchBox, connectHits, connectRefinementList, C...
const Cookies = require('js-cookie'); const moment = require('moment'); const BinarySocket = require('./socket'); const jpClient = require('../common/country_base').jpClient; const isCryptocurrency = require('../common/currency').isCryptocurrency; const RealityCheckData = requ...
$(document).ready(function () { //RECARGA LA GRILLA $("#frm_busqueda").submit(function( event ) { event.preventDefault(); $('#grid_variedad_listado').jqGrid("setGridParam",{datatype:"json"}).trigger("reloadGrid"); }); $("#frm_busqueda #btn_consultar").on('click', function(event){ $('#grid_varied...
/** * -------------------------------------------------------------------------- * Bootstrap (v5.0.0-beta2): carousel.js * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) * -------------------------------------------------------------------------- */ import { defineJQueryPlugin, emula...
/** * Copyright IBM Corp. 2017 * * 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 writ...
/* eslint-disable no-console */ const axios = require('axios'); const path = require('path'); const crypto = require('crypto'); const cheerio = require('cheerio'); const {execSync} = require('child_process'); const axiosRetry = require('axios-retry'); const {parse: parseDate} = require('date-fns'); const PQueue = requi...
import * as THREE from 'three'; import {camera} from './renderer.js'; import {WebaverseShaderMaterial} from './materials.js'; import {world} from './world.js'; import loaders from './loaders.js'; // const baseUrl = import.meta.url.replace(/(\/)[^\/\\]*$/, '$1'); const urlPrefix = `https://webaverse.github.io/fx...
import React from 'react' import PropTypes from 'prop-types' import VirtualScroller, { getItemsDiff } from './VirtualScroller' import shallowEqual from './shallowEqual' import { px } from './utility' // `PropTypes.elementType` is available in some version of `prop-types`. // https://github.com/facebook/prop-types/iss...
"use strict"; // some globalz : var THREECAMERA; let ISDETECTED = false; let FACEMESH; let ANGELMESH1 = false; let ANGELMESH2 = false; let ANGELMESH3 = false; let MIXERANGEL1 = false; let MIXERANGEL2 = false; let MIXERANGEL3 = false; let ACTIONANGEL1 = false; let ACTIONANGEL2 = false; let ACTIONANGEL3 = false; l...
import { CubeReflectionMapping, CubeRefractionMapping, CubeUVReflectionMapping, CubeUVRefractionMapping, LinearEncoding, sRGBEncoding } from '../../../../build/three.module.js'; import { NodeUniform } from './NodeUniform.js'; import { NodeUtils } from './NodeUtils.js'; import { NodeLib } from './NodeLib.js'; imp...
const ADMIN_EMAIL = "<EMAIL>"; const TILE_SERVER_BASE_URL = "https://empirelrpmap.com/"; const GEOJSON_DATA_BASE_URL = "https://empirelrpmap.com/"; let contributionAdminEmailElement = document.getElementById( "contribution-admin-email" ); contributionAdminEmailElement.href = `mailto:${ADMIN_EMAIL}`; contributionAdmi...
/* * * Copyright (c) 2021 Project CHIP Authors * * 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 requir...