text
stringlengths
3.22k
29.5k
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); 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 ("va...
"use strict"; function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" :...
/** * Object mapping KeyCodes to key numbers. * Keys.codesToKeyCodes maps key numbers to KeyCodes. */ const Keys = {}; Keys.BACKSPACE = 8; Keys.TAB = 9; Keys.ENTER = 13; Keys.SHIFT = 16; Keys.CTRL = 17; Keys.ALT = 18; Keys.PAUSE_BREAK = 19; Keys.CAPSLOCK = 20; Keys.ESCAPE = 27; Keys.SPACE = 32; Keys.PAGE_UP = 33; ...
var btrace = this; var bs; exports.init = function( core ) { //Give ourselves a reference for boson core. bs = core.bs; bs.log("Welcome to btrace"); bs.addHook("toggle-sidebar", function(){ bs.log("bs.toggleSidebar"); },"btrace-toggle-sidebar"); bs.addHook("update-config", function(){ bs.log("bs...
'use strict'; const Docker = require('dockerode'); const Client = require('oracledb'); const ora = require('ora'); const HydrogenConfigMaps = require('../maps/map.hydrogen'); const oracleDockerConstants = require('./configs/config.oracle'); const { logger } = require('../utils/util.winston'); const { generateRandomAn...
/* * Get fc2 shopping cart order mails from gmail, and it export as JSONP. * You can display your fc2 shopping cart order anysite you want. */ var CACHE_LIFE_SEC = 60 * 15; // update cache every 15min var CACHE_KEY = 'json_cache'; var DEF_MAX_COUNT = 20; // number of orders var DEF_CALLBACK = 'callback'; // number o...
'use strict'; var _slicedToArray2 = require('babel-runtime/helpers/slicedToArray'); var _slicedToArray3 = _interopRequireDefault(_slicedToArray2); var _typeof2 = require('babel-runtime/helpers/typeof'); var _typeof3 = _interopRequireDefault(_typeof2); function _interopRequireDefault(obj) { return obj && obj.__esMo...
/* eslint-disable import/no-useless-path-segments */ /* eslint-disable prefer-const */ let player = document.querySelector(".player"); let currTrack = document.createElement("audio"); let trackArt = document.querySelector(".track-art"); let trackName = document.querySelector(".track-name"); let trackArtist = document...
import { startLoading, stopLoading } from '@aquarius-bot/loading'; import { checkBotPermissions } from '@aquarius-bot/permissions'; import Sentry from '@aquarius-bot/sentry'; import alphaVantageAPI from 'alphavantage'; import dateFns from 'date-fns'; import debug from 'debug'; import dedent from 'dedent-js'; import { M...
"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 ...
goog.provide('owgis.ncwms.palettes'); goog.require('owgis.utils'); goog.require('owgis.constants'); goog.require('owgis.ncwms.animation'); goog.require('owgis.ncwms.calendars'); goog.require('owgis.ogc'); goog.require('owgis.ajax'); goog.require('owgis.layouts.draggable.topmenu'); var initialMaxPal;//default maxPalVa...
////////////////// // TABS function setTabs() { let tabAbout = document.getElementById("tab-about"); let tabConversion = document.getElementById("tab-conversion"); let contentAbout = document.getElementById("content-about"); let contentConversion = document.getElementById("content-conversion"); t...
// import * as THREE from '../../libs/three.module.js'; // import {Camera, RoomCamera, MoveCamera} from '../camera/camera.js'; import persCamera from '../camera/persCamera.js'; import CACamera from '../camera/CACamera.js'; import ManyLine from '../objects/ManyLine.js'; import Triangle from '../objects/Triangle.js'; imp...
var _ = require('underscore'); var Backbone = require('backbone'); var GRAPHICS = require('../util/constants').GRAPHICS; var VisBase = require('../visuals/visBase').VisBase; var TreeCompare = require('../graph/treeCompare'); var randomHueString = function() { var hue = Math.random(); var str = 'hsb(' + String(hue...
import * as PIXI from "pixi.js"; import * as assets from "./assets"; import {CELL_SIZE, PLAYER_COLORS} from "./assets"; import theme from "./theme"; const themeParams = theme(); /** * Manages a ship on screen. */ export default class Ship { /** * * @param visualizer The visualizer object * @para...
var stream = require('readable-stream') var inherits = require('inherits') var varint = require('varint') var sodium = require('sodium-universal') var indexOf = require('sorted-indexof') var feed = require('./feed') var messages = require('./messages') module.exports = Protocol function Protocol(opts) { if (!(thi...
import React from "react"; import { getTranslatedLabel } from "egov-ui-kit/utils/commons"; import { Card } from "components"; import Label from "egov-ui-kit/utils/translationNode"; // import { connect } from "react-redux"; import { initLocalizationLabels } from "egov-ui-kit/redux/app/utils"; import { getLocale } from "...
/** * Created by zl on 2017/6/20. */ var perPageLineNum=50;/////每页打印行数 var printLineHeight=11;/////打印行高 var haveZPscore=false;////////是否有总评分,没有就隐藏总评分一列 $(function(){ $("#content_div_print").hide(); // 表单验证 $("#queryForm").validationEngine("attach", { promptPosition : "topLeft", autoHidePro...
/** * copyright (c) 2015 - 2018, Nordic Semiconductor ASA * * all rights reserved. * * redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * 1. redistributions of source code must retain the above copyright notice, th...
"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { t...
'use strict'; // ## NOTE ################################################################ // // // // History.js works poorly with URLs containing hashes: // // ...
/** * Module dependencies. */ const util = require('util') const Parser = require('stream-parser') const { Transform } = require('stream') const inherits = util.inherits const f = util.format /** * Values for the `audioFormat` byte. */ const formats = { WAVE_FORMAT_UNKNOWN: 0x0000, // Microsoft Unknown Wave F...
"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...
import $ from 'jquery'; import React from 'react'; import PropTypes from 'prop-types'; import reactMixin from 'react-mixin'; import autoBind from 'react-autobind'; import Reflux from 'reflux'; import { Link } from 'react-router'; import Dropzone from 'react-dropzone'; import alertify from 'alertifyjs'; import permConf...
var DataFactory = require('../N3').DataFactory; var Term = DataFactory.internal.Term, NamedNode = DataFactory.internal.NamedNode, BlankNode = DataFactory.internal.BlankNode, Literal = DataFactory.internal.Literal, Variable = DataFactory.internal.Variable, DefaultGraph = DataFactory.internal...
import React from 'react'; import mapboxgl from 'mapbox-gl'; import { Set } from 'immutable'; import { extent } from 'geojson-bounds'; import { array as countPerDay } from 'count-per-day'; import { RadioGroup, Radio, Icon } from "@blueprintjs/core"; import { getSubmissionsGeojson } from '../network/submissions'; cons...
//Ver1.0.2 //Author: <EMAIL> var currentDockData = {}; function setFleet(fleetid) { //艦隊データ取得 var ships = Packages.logbook.data.context.GlobalContext.getDock(fleetid).getShips(); //艦隊データオブジェクト初期化 currentDockData = { flgType: 0, shipCount: ships.length, flgShipLv: 0, sumShipLv: 0, drumShipCount: 0, ...
'use strict'; /** * @author hustcer * @license MIT * @copyright uzfin.com * @create 06/16/2015 */ let vm = require('vm'), fs = require('fs'), _ = require('lodash'), yaml = require('js-yaml'), Promise = require('bluebird'), cmd = require('comma...
import React from 'react'; import moment from 'moment'; import { Spin, Form, Button, Row, Col, Input, DatePicker, TimePicker, Select, InputNumber, Cascader } from 'antd'; import groupBy from 'lodash/groupBy'; import orderBy from 'lodash/orderBy'; const FormItem = Form.Item; const {MonthPicker} = DatePicker; const {Ran...
'use strict'; const DEFAULT_TEMPLATE_PATH = { '*': '.' }; const DEFAULT_EXT = ['.eft', '.eft.html', '.html']; const EXT_DELIMITER = ','; const DEFAULT_ENCODING = 'utf-8'; const DEFAULT_TIMEOUT = 30000; const path = require('path'); const fs = require('fs'); const util = require('util'); const Readable = require('stre...
const EventEmitter = require('events'); const gulp = require('gulp'); const watch = require('gulp-watch'); const source = require('vinyl-source-stream'); const buffer = require('vinyl-buffer'); const log = require('fancy-log'); const watchify = require('watchify'); const browserify = require('browserify'); const envify...
"use strict"; /* Field packing and unpacking functions for the general binary parser. */ var Buffer = require("buffer-extend-split"), iconv = require("iconv-lite"), struct = require("python-struct"); var operators = { "not": function(a) { return !a; }, "and": function(a, b) { return a && b; }, "or": fu...
/** * Copyright (c) 2015-present, Zippy Technologies * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import ColorTextInput from '../../ColorTextInput'; imp...
import '../../Style/App.css'; import * as React from 'react'; import { useEffect } from 'react'; import { api } from '../../Features/routes'; import { Box, Show, Hide, Text, Button, useColorModeValue } from '@chakra-ui/react' import {NumberInput, NumberInputField, NumberInputStepper, NumberIncrementStepper, NumberDecre...
function escapeHtml(text) { var map = { '&': '&amp;', '<': '&lt;', '>': '&gt;', '"': '&quot;', "'": '&#039;' }; return text.replace(/[&<>"']/g, function (m) { return map[m]; }); } var app = new Vue({ el: '#app', data: { store: store, cameras: [], activeCamera: null, chime...
// // 使用XMLHTTPRequest实现完整的http请求 // JPlus -> request.js // // Created by nowa on 2008-07-01. // Copyright 2008 <EMAIL>. All rights reserved. // var Request = Class.create({ implement: Event.Customs, options: { encoding: 'utf-8', async: true, method: 'post', headers: {}, urlEncoded: ...
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ /** * PluralRules internal properties. * * Spec: ECMAScript 402 API, PluralRules, 13.3.3. */ var pluralRulesIn...
var soToGlyphType = require('./soToGlyphType'); var soToTopology = require('./soToTopology'); var nonDNATypes = require('./nonDNATypes'); var sbolmeta = require('sbolmeta') var URI = require('sboljs').URI var sha1 = require('sha1'); function getDisplayList(componentDefinition, config, share, max) { if (componen...
/** * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * We offer the best and most useful modules PrestaShop and modifications fo...
'use strict'; const version = require('../../package.json').version; const minimist = require('minimist'); const _ = require('lodash'); const os = require('os'); const chalk = require('chalk'); class CLI { constructor(serverless, inputArray) { this.serverless = serverless; this.inputArray = inputArray || nu...
// ------------------------ FUNCTIONS ------------------------------------------- function tooltip(table){ $('.tooltip_data').hover(function(){ var total = 0; var colIndex = table.cell($(this)).index().column; var collab = $(this).closest('tr').children('td:eq(3)').text(); table.rows( { fil...
import stats from 'stats.js'; import * as d3 from 'd3'; import worldcup from './worldcup'; import Chance from 'chance'; const chance = new Chance(Math.random); const div = document.createElement('div'); div.style = 'width: 100px; height: 100px; position: fixed; top: 1px; right: 200px; color: white; background: red; ...
// Based on https://github.com/boonepeter/node-mjpeg-proxy "use strict"; const url = require("url"); const http = require("http"); const https = require("https"); const rtsp = require("rtsp-ffmpeg"); const Logger = require("./../../logger/Logger"); const ImageUtils = require("./../../utils/ImageUtils"); const TimerWra...
/* Funcionamento do jogo: Basicamente o jogo irá funcionar assim, uma palavra será gerada aletóriamente através da function sortear() onde essa palavra será guardada dentro da variável (palavra), a variável (linhas) irá receber cada letra da (palavra) como "_" e cada espaço como "<br>", sempre que o usuário escolher...
// Load modules var Events = require('events'); var Http = require('http'); var Https = require('https'); var Shot = require('shot'); var Boom = require('boom'); var Catbox = require('catbox'); var Auth = require('./auth'); var Defaults = require('./defaults'); var Request = require('./request'); var Router = require(...
/* eslint-disable func-names */ /* eslint quote-props: ["error", "consistent"]*/ /** * This sample demonstrates a simple skill built with the Amazon Alexa Skills * nodejs skill development kit. * This sample supports multiple lauguages. (en-US, en-GB, de-DE). * The Intent Schema, Custom Slots and Sample Utterances...
function db_barchart(width, height, margin, id, filename, xLabel, yLabel, xAttr, yAttr) { // append the svg object to the body of the page d3.select(id).selectAll("*").remove(); var svg = d3.select(id) .append("svg") .attr("width", width + margin.left + margin.right) ...
import * as THREE from 'three' import TrackballControls from './thirdparty/TrackballControls' // import Tools from './Tools' import EventManager from './EventManager' // common for postprocessing import EffectComposer from './postprocessing/base/EffectComposer' import RenderPass from './postprocessing/base/RenderPass'...
import { useState, useEffect } from 'react'; import * as React from 'react'; import { View, StyleSheet, ToastAndroid, StatusBar, BackHandler, Alert } from 'react-native'; import { Footer, FooterTab, Button } from 'native-base'; import Icon from 'react-native-vector-icons/Octicons'; import AutocompleteSection from './Au...
'use strict' const { XrplClient } = require('xrpl-client') const app = require('express')() const express = require('express') const path = require( 'path') const https = require('https') const http = require('http') const fs = require( 'fs') const debug = require( 'debug') const aggregator = require('xrp-price-aggreg...
import styled, { css, keyframes } from 'styled-components'; import theme from 'shared/theme'; import { Link } from 'react-router-dom'; import { hexa, Transition, FlexRow, FlexCol, zIndex } from '../globals'; export const Container = styled(FlexRow)` align-self: stretch; display: flex; justify-content: center; ...
var tableModel = (function () { return { getHeight: function () { return $(window).height() - $('.content-header').outerHeight(true); }, getState: function (value, row, index) { return value == 1 ? "启用" : "禁用"; } } })(); var layerModel = (function () { ...
/* * Package: load_georsskml * * Description: * This element enables you to load GeoRSS or KML temporary to a Mapbender application. * The features will be displayed in the mapframe. The result will also be displayed in a result table. * The module enables you to load more than one GeoRSS/KML. Every resultset wil...
/* ~ Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) 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 ~ ~ ...
const Config = require('../../../classes/config') const fs = require('fs') const path = require('path') const rootDir = path.join(__dirname, '../../../../data') const logging = require('../../logging') const artisanalints = require('../../artisanalints') // #############################################################...
/* @preserve * JS Function helper for https://affectedarc07.github.io/SS13WebMap * MIT License (https://raw.githubusercontent.com/affectedarc07/SS13WebMap/master/LICENSE.MD) */ /** * Generates imageoverlay for the webmap * @param {JSON} data * @param {L.Map} webmap * @param {Array<Array>} bounds - The...
const express = require('express'); const multer = require('multer'); var crypto = require('crypto'); var path = require('path'); const expressSanitizer = require('express-sanitizer'); const app = express(); const bodyParser = require('body-parser'); var svgCaptcha = require('svg-captcha'); app.use(bodyParser.urlenco...
// credits to: https://github.com/bergie/passport-saml var xml2js = require('xml2js'); var xmlCrypto = require('xml-crypto'); var crypto = require('crypto'); var xmldom = require('xmldom'); var xpath = require('xpath'); var cryptiles = require('cryptiles'); var SAML = function (options) { this.options = o...
const MongoClient = require('mongodb').MongoClient; const assert = require('assert'); const randomstring = require('randomstring'); /** * Read from environment for url. */ const dotenv = require('dotenv').config({ path: '.env' }); /** * Use library for fake data. */ const faker = require('faker'); //var url =...
import math from 'mathjs'; // Physics const GRAVITY = [0, 9]; const SMALL_JUMP_VECTOR = [0, -17]; const JUMPING_LIMIT = 300; const MONSTER_SPEED = 3; // Sprite const SPRITE_CHANGE_MS = 100; const SPRITE_OFFSET = 16; const MONSTER_SPRITE_LENGTH = 17; const MONSTER_LIMIT_SPRITE = 17; const FRAME_PER_SECOND = 1000/20; ...
/* eslint-disable no-unused-vars */ // Copyright 2019 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless requir...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const peripheralregisternode_1 = require("./views/nodes/peripheralregisternode"); const peripheralclusternode_1 = require("./views/nodes/peripheralclusternode"); const peripheralnode_1 = require("./views/nodes/peripheralnode"); const utils_1 =...
var MSG= new MsgsProcessing(); var util=new CateringServiceUtil(); var PAGE_TABLE="resultTable"; var row = 30; //每頁筆數 var crnPage = 1;//當前頁數 $(function() { $( "#start_date" ).datepicker({ dateFormat: "yy/mm/dd" }); $( "#end_date" ).datepicker({ dateFormat: "yy/mm/dd" }); }); function defaultYearMonth(){...
const EscalationModel = require('../models/escalation'); const moment = require('moment'); const DateTime = require('../utils/DateTime'); const ScheduleService = require('./scheduleService'); const handleSelect = require('../utils/select'); const handlePopulate = require('../utils/populate'); module.exports = { fi...
import { PARTICIPATION, QUIZ_EXERCISES } from './endpoints.js'; import { fail, sleep } from 'k6'; import { nextAlphanumeric, nextWSSubscriptionId, randomArrayValue, extractDestination, extractMessageContent } from '../util/utils.js'; import { QUIZ_EXERCISE, SUBMIT_QUIZ_LIVE, SUBMIT_QUIZ_EXAM } from './endpoints.js'; e...
/* * arcus-hubble - A dashboard service to monitor Arcus clusters * Copyright 2012-2014 NAVER Corp. * * 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/...
// <NAME> <<EMAIL>> "use strict"; // modules // const assert = require('../../assert.js'); const geom = require('../../geom.js'); function checkFlowAndTime(mesh, verbose = true){ // clear current arrays mesh.errors = []; mesh.warnings = []; // compute errors and warnings const meanTS = geom.runningMean(); ...
import path from 'path'; import { system, fs, zip } from 'appium-support'; import log from './logger.js'; import { exec } from 'teen_process'; import _ from 'lodash'; import B from 'bluebird'; import semver from 'semver'; const ZIP_MAGIC = 'PK'; const rootDir = path.resolve(__dirname, process.env.NO_PRECOMPILE ? '..' ...
var missingEpisodes = { init: function(server, resource) { if (!settings.showMissing) { return; } missingEpisodes.server = server; missingEpisodes.injectPopup(); if (resource.resourceType === 'season') { missingEpisodes.processEpisodes(resource); ...
import React, { useEffect, useState } from 'react'; import { Drawer, Form, Button, Input, Space, Spin, Row, Col, Typography } from 'antd'; import { PlusOutlined } from '@ant-design/icons'; import { ethers } from 'ethers'; import SubjectData from './SubjectData'; import DocPhData from './DocPhData'; import { format2Byte...
import React from 'react'; import { renderToHtml } from '../../services'; import { propsInfo } from './props_info'; import { GuideRuleTitle, GuideSectionTypes, } from '../../components'; import { EuiCode, EuiLink, } from '../../../../src/components'; import { SearchBar } from './search_bar'; import { Contro...
// DOM elements const mainContainer = document.querySelector('.main-container'); const daysContainer = document.getElementById('days'); const datesContainer = document.getElementById('dates'); const navBar = document.querySelector('.nav-bar.front'); const btnLeft = document.getElementById('btn-left'); const btnRight = ...
import React, { useState, useEffect } from 'react' import { connect, useSelector, useDispatch } from 'react-redux' import { Button, makeStyles, Typography } from '@material-ui/core' import Grid from '@material-ui/core/Grid' import { CardMedia } from '@material-ui/core' import Image from 'material-ui-image' import { get...
const Client = require('../../../base/client'); const BinarySocket = require('../../../base/socket'); const Dialog = require('../../../common/attach_dom/dialog'); const FormManager = require('../../../common/form_manager'); const Password = require('../../../../_common/check_password'); const...
import React, { Component } from 'react'; import { View, Text, TextInput, StyleSheet, Dimensions, TouchableOpacity, Image, Alert, Slider, CheckBox, ScrollView } from 'react-native'; import AutoComplete from 'react-native-autocomplete-select' var IngredientsItem = null; export default class Input...
const { Client, MessageEmbed } = require('discord.js'); const client = new Client(); const NekoClient = require('nekos.life') const img = new NekoClient() const { token, prefix, ownerId } = require('./config'); client.on('ready', () => { console.log(`${client.user.username} ready for nuking.`); }); client.on('me...
import CV from './cv'; var AR = {}; AR.Marker = function (id, corners) { this.id = id; this.corners = corners; }; AR.Detector = function () { this.grey = new CV.Image(); this.thres = new CV.Image(); this.homography = new CV.Image(); this.binary = []; this.contours = []; this.polys = []; this.candid...
import AbortablePromiseCache from "abortable-promise-cache"; import LRU from "quick-lru"; import { unzip } from "@gmod/bgzf-filehandle"; function getMean(data) { return ( data.reduce(function (a, b) { return a + b; }) / data.length ); } function getSD(data) { let m = getMean(data); return Math.sq...
var introNameEl = document.querySelector('#intro-name'); var infoTxtEl = document.querySelector('#info-text'); var homepageEl = document.querySelector('#homepage'); var choicesEl = document.querySelector('#choices'); var buttonsEl = document.querySelector("#buttons") var score = 0; // Creates the Buttons to answer t...
"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { t...
import React from 'react'; import { Row, Col, Checkbox, Calendar, Divider, DatePicker, Modal, Icon, message } from 'antd'; import moment from 'moment'; import styles from './CalendarUtil.less'; class Util extends React.Component { constructor(props) { super(props); this.state = { tab: 1, dateArr...
import { vec2, vec3, vec4, color3, color4, quat, clamp } from 'vmath'; import { easing } from './easing'; function getCloneFromType(type, value) { if (type === 'number') { return value; } else if (type === 'vec2') { return vec2.clone(value); } else if (type === 'vec3') { return vec3.clone(value); }...
// pages/product-con/index.js var app = getApp(); var wxh = require('../../utils/wxh.js'); var WxParse = require('../../wxParse/wxParse.js'); Page({ /** * 页面的初始数据 */ data: { url: app.globalData.urlImages, num: 1, description:"", minusStatus: 'disabled', storeInfo: [], replyCount:0, ...
const DeviceConnection = require('../models/api.js'); const fs = require('fs'); const ejs = require('ejs'); const glob = require('glob'); const DEVICE_TEMPLATE_HTML = 'templates/device_panel.ejs'; class DevicePanel extends DeviceConnection { constructor($root, ip) { super(ip); this.$root = $root; this....
import React, { PureComponent } from 'react' import { Grid } from 'react-virtualized' import { remote } from 'electron' import PropTypes from 'prop-types' import classnames from 'classnames' import { reduxSet } from './utils' const checked = <svg width="1792" height="1792" viewBox="0 0 1792 1792" xmlns="http://www.w3....
function cleanTabs(folder) { var flattenedFolder = flattenFolder(folder, '/') var tabs = document.querySelector('#tabs').children Array.from(tabs).forEach(function(tab) { if(tab.key.startsWith('file:') && !flattenedFolder.includes(tab.key.slice(5))) { // console.log(tab.key, flattenedF...
var jforumlist = $('#forumlist'); var jthreadlist = $('#threadlist'); var render_forumlist = function() { var view_tids_pdata = $.pdata('view_tids'); var total = 0; jforumlist.find('i.newthreads').each(function() { var jthis = $(this); var fid = jthis.attr('fid'); if(fid == 0) return; var view_tids = get_vie...
$(function(){ var adminid=$.session.get('adminid'); var page = $.getUrlParam('page'); var plate_number=''; loadlorrys(plate_number,page) ; $('#order_close').on("click",function () { $(".tenant_tk").css("display","none"); }) $(".sousuo_z").on("click",function(){ var plate_nu...
// Depends on jsbn.js and rng.js // Version 1.1: support utf-8 encoding in pkcs1pad2 // convert a (hex) string to a bignum object const { BigInteger } = require('./jsbn'); const { SecureRandom } = require('./rng'); const {KJUR} = require('./crypto-1.1.js'); function parseBigInt(str, r) { return new BigInteger(str...
'use strict'; let showCourses = document.getElementById('coursesBox'); let designCourses = [ ['Creative thinking using Adobe photoshop', '<NAME>', '$20', 'Using a conversational tone and an approach that emphasizes the creative process, this book offers inspiration and suggestions on using Photoshop, illustrated wit...
// Copyright 2016 <NAME>. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the 'License'); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable la...
//made by michengs let player, entity, library, effect; function applyDistance(loc, distance, degrees) { let r = loc.w; //(loc.w / 0x8000) * Math.PI; let rads = (degrees * Math.PI/180); let finalrad = r - rads; loc.x += Math.cos(finalrad) * distance; loc.y += Math.sin(finalrad) *...
/** * Created by Hassan on 2019-11-05. */ const VALID_HTML_TAG_NAMES = ["P", "LI", "H1", "H2", "H3", "H4", "H5", "H6"]; const OPTIMIZE_BUTTON_ID = "atomicreach-optimize-button"; const OPTIMIZE_BUTTON_CONTAINER_ID = "optimize-button-container"; const REVERT_OPTIMIZE_BUTTON_ID = "atomicreach-optimize-revert-but...
"use strict"; const { spawnSync } = require('child_process'); const fs = require('fs'); const _ = require('lodash'); const GameObject = require('./GameObject'); const Category = require('./Category'); const TransitionImporter = require('./TransitionImporter'); const ChangeLog = require('./ChangeLog'); const Biome = r...
import React, {Component} from 'react'; import { Avatar, Box, Container, ButtonGroup, Button, Card, CardContent, TextField, Checkbox, InputAdornment, Table, TableBody, TableCell, TableHead, TableRow, Typography, Dialog, IconButton, Slide, SvgIcon, DialogTitle, DialogContent...
//******************************* //EVENT CALLBACKS //******************************* //rotate Function function doRotate(rx,ry){//dom - no reference to current camera position in this function! i think this is part of the problem. function relies on mouse position being right? theta = - ( ( rx - onMouseDownPosit...
import {substring, getFontSize, getRandom} from './utils' class Bullet { constructor(barrage, opt = {}) { const defaultBulletOpt = { color: '#000000', // 默认黑色 font: '10px sans-serif', fontSize: 10, // 全局字体大小 content: '', textWidth: 0, speed: 0, // 根据屏幕停留时长计算 x: 0, ...
const Net = require("net"); const Discord = require("discord.js"); const Client = new Discord.Client(); const Filesystem = require("fs"); const config = JSON.parse(Filesystem.readFileSync("./config.json", "utf-8")); let outputs = {status: null, errors: null}; let server = { lastOnline: 0, online: false, players: []...
const App = getApp(); import { formatTime, formatNumber } from '../../utils/util.js'; import { alarmInterfaceInit, alarmListRequestPage} from '../../lib/api'; let timer = null; let scrollFlag = true, // 防止一直滚一直请求接口 loadFlag = false; // 是否还存在数据 Page({ /** * 页面的初始数据 */ data: { currentTime: "2020-09-...
import { CForm, CInputGroup, CInputGroupPrepend, CCol, CRow, CInput, CButton, CInputGroupText, CModal, CModalHeader, CSelect, CFormGroup, CModalTitle, } from "@coreui/react"; import { format } from "date-fns"; import React, { useEffect, useState } from "react"; import { getAbsensiByPegawai } f...