text
stringlengths
5.97k
41.2k
'use strict'; import dateUtil from './date'; /** * * @param tag 标签名 * @param attrs 属性对象 * @param children 子结点对象 */ export const createDomElement = (tag, attrs, children) => { var el = document.createElement(tag); if (attrs) { for (var key in attrs) { attrs.hasOwnProperty(key) && el.setAttribute(ke...
'use strict'; /** * Data loader. * * @class Kartographer.Data.DataLoader */ // eslint-disable-next-line valid-jsdoc var DataLoader = function ( createPromise, createResolvedPromise, mwApi, clientStore, title, debounce, getGroupIdsToExclude ) { var DataLoader = function () { /** * @type {Object} Hash of gr...
// prevent any input in base-folder document.getElementById("base-folder").addEventListener("keydown", function (e) { e.preventDefault(); }); const { ipcRenderer } = require("electron"); const intrinsicScale = require("intrinsic-scale"); const appSetting = ipcRenderer.sendSync("get-settings", "app"); const albumSele...
import Phaser, { GameObjects } from 'phaser'; import VirtualJoystick from 'phaser3-rex-plugins/plugins/virtualjoystick.js'; import { getSocket } from "services/socket"; import usePlayerStore from "stores/usePlayerStore.ts"; import { useConsumerStore } from "webrtc/stores/useConsumerStore"; import useWorldUserStore f...
var Log = { elem: false, write: function(text){ if (!this.elem) this.elem = document.getElementById('log'); this.elem.innerHTML = text; }, hide: function() { this.elem.style.display = "none"; } }; function Viewer() { this.typeURI = "http://www.w3.org/1999/02/22-rdf-syntax-ns#type...
import React, { useState, useEffect } from 'react'; import { message, Spin, Popover, Empty } from 'antd'; import { dboxTypeArr, dboxProjectType, pictureTypeArr } from '@shared/CommonConfig'; import MyIcon from '@components/MyIcon'; import { recentUpload, ownProject, ownProjectModule, fileByProject, ownTeam, fileByTeam ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = undefined; var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done...
import styled from "styled-components"; import Header from "../components/header"; import { RootWrapperLayout, DefaultLayout, ContentLayout, } from "../components/common/layout"; import { DefaultInput } from "../components/common/input"; import { DefaultButton } from "../components/common/button"; import { useEff...
"use strict"; let worldObjects = []; //shortcuts to these npcs let playerNPC = undefined; let guestNPC = undefined; //graphics reference let npcSpriteSheet = undefined; //ANIMATION enum, order matters tmpEnum = 0; const ANIMATION_STANDING = tmpEnum++; const ANIMATION_WALKING = tmpEnum++; const ANIM...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var acs_bluetooth_common_1 = require("./acs-bluetooth.common"); var bluetooth_gatt_errors_1 = require("./bluetooth-gatt-errors"); var rxjs_1 = require("rxjs"); var core_1 = require("@angular/core"); var utils = require("tns-core-modules/utils/...
import { Array } from 'core-js'; import moment from 'moment'; import { get, readable, writable } from 'svelte/store'; import { employee, saveData } from "./employee.js" import { path } from "./settings" const CAD_SHEET_CAD = "CAD"; const CAD_SHEET_DED = "DED"; const CAD_SHEET_BEN = "BEN"; const CAD_SHEET_ERN = "ERN"; ...
var nb; // = 40.0093; var sb; // = 39.9854; var wb; // = 116.3485; var eb; // = 116.3953; var centerx = 116.3907817; //(wb + eb) / 2; var centery = 39.9174311; //(nb + sb) / 2; var WIDTH = 1800; var HEIGHT = 1200; var isDragging = false; var dragStart = []; var dragEnd = []; var global_flag = false; // var data = in...
var assert = require('assert') , bl = require('bl') , TOLERANCE = 0.1 , streams = require('./lib/streams') , util = require('util') function msgpack() { var IncompleteBufferError = function(message) { Error.call(this); //super constructor Error.captureStackTrace(this, this.construc...
var API_URL = "../rest/auroraclient"; var tasks = []; // IndexedDB var indexedDB = window.indexedDB || window.webkitIndexedDB || window.mozIndexedDB || window.OIndexedDB || window.msIndexedDB, IDBTransaction = window.IDBTransaction || window.webkitIDBTransaction || window.OIDBTransaction || window.msIDBTransactio...
/* pcm accumulator examples (not exhaustive): <-------------- lW ----------------> <--------------- W ----------------> : .....|..... _______________ | : .''' | '''_--- | |\ | :.....''' |_____--- '''......| | \_______| :..........
function vh(v) { var h = Math.max(document.documentElement.clientHeight, window.innerHeight || 0); return h / v; } function vw(v) { var w = Math.max(document.documentElement.clientWidth, window.innerWidth || 0); return w / v; } function vmin(v) { return Math.min(vh(v), vw(v)); } function vmax(v) { return...
// QUICK START GUIDE // // 1. Clone this gists and make it private // 2. Create an incoming integratin in a Spark Room from the Spark Web client : http://web.ciscospark.com // 3. Replace YOUR_INTEGRATION_SUFFIX by the integration id, example: Y2lzY29zcGFyazovL3VzL1dFQkhPT0svZjE4ZTI0MDctYzg3MS00ZTdmLTgzYzEtM2EyOGI1N2ZZZ...
/* exported remote */ /* global remote */ const path = require('path'); // get directory path const { remote, shell, ipcRenderer, BrowserWindow, } = require('electron'); // necessary electron libraries to send data to the app const { Say } = require('say'); // tts engine const soundsFolder = path.join(__dirname, ...
// jet start rebalancer const date = require('date-and-time'); const {execSync} = require('child_process'); const {listActiveRebalancesSync} = require('../api/utils'); const {listRebalancesSync} = require('../db/utils'); const lndClient = require('../api/connect'); const config = require('../api/config'); const {exec...
'use strict'; var d3Array = require('d3-array'); var d3Collection = require('d3-collection'); var d3Random = require('d3-random'); var d3Ease = require('d3-ease'); var d3Polygon = require('d3-polygon'); var d3Path = require('d3-path'); var d3Quadtree = require('d3-quadtree'); var d3Queue = require('d3-queue'); var d3S...
/* #AJAX ================================================== */ // 4 Alla & Danil: we need to unify all ajax and masonry and other stuff in this manner: function loadingEffects() { var $isotope = $(".dt-isotope"), $grid = $(".iso-grid .wf-cell:not(.shown), .dt-css-grid .wf-cell:not(.shown)"); if ($grid.exis...
import React, { Component } from 'react'; import { observer } from 'mobx-react'; import { Button, Icon, DatePicker, Popover, Dropdown, Menu, Modal, Form, Select, Checkbox, Spin, } from 'choerodon-ui'; import { Page, Header, Content, stores, } from 'choerodon-front-boot'; import _ from 'lodash'; import moment from '...
var lz = function(n) { var str = ""; if (n < 1000) { str = "0"; } if (n < 100) { str = "00"; } if (n < 10) { str = "000"; } return str + n; } var c = ""; c += "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n"; c += "<CheatTable>\n"; c += "<CheatEntries>\n"; c += "<CheatEntry>\n"; c += "<Description>\"_...
/* Copyright 2022 <NAME> <EMAIL> LICENSE MIT Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, di...
import {ColorReplaceFilter} from '@pixi/filter-color-replace'; /** * Retro style pause menu, contains options for: * - Palette swapping * - Refreshing the page * - Hiding Controller buttons * - Disabling screen shake * @class */ export class PauseMenu{ /** * @param {Map<string, PIXI.Texture>} buttonTex...
// Increment the version to invalidate the cached script const VERSION = 0.79 const global_stylesheet = document.head.querySelector("style.span-array-css") const local_stylesheet = document.currentScript.parentElement.querySelector("style.span-array-css") if(window.SpanArray == undefined || window.SpanArray.VERSION ==...
/** * ICE lookup data initialization script. */ var cvxCodeSystem = '2.16.840.1.113883.12.292'; var icd9CodeSystem = '2.16.840.1.113883.6.103'; var groupCodeSystem = '2.16.840.1.113883.3.795.12.100.1'; var cvxData = { '01': {'displayName': 'DTP', 'group': ['200'] }, '02': {'displayName': 'OPV', 'group': ['4...
/** */ var __systems = {}; var __aops = {}; var System = function(_settings){ /* Public Variables */ //System Name this.name = _settings.name || "default"; // Check if System is already initialized then return the System if(__systems[this.name]){ return __systems[this.nam...
const $ = require('jquery'); const jui = require('jqueryui'); const {draggable,droppable,resizable,autocomplete,dialog} = $.ui; define( [ 'dojo/_base/declare', 'dojo/_base/array', 'dojo/promise/all', 'JBrowse/View/Track/HTMLVariants', 'WebApollo/FeatureSelect...
/* =================================================== * artovamodel-vis projects.js * artovamodel.fi/visual-eng --> Example Projects * =================================================== * FourCoffees 2013 * * Licensed under the MIT License * using d3.js, tabletop.js, jquery.js * ==============================...
$(document).ready(function() { $('#color_picker1').colorPicker( { defaultColor:8, // индекс цвета по-умолчанию columns:9, // количество цветов click:function(c){ $('#output1').html(c); } }); }); $(document).ready(function() { $('#color_picker2').colorPicker( { defaultC...
import React from "react"; import { fbFieldValue, pAuth, pFirestore, pFunctions, } from "../../services/config"; import { PContext } from "../../services/context"; import Loading from "../Loading"; import personIcon from "../../images/person-icon.png"; import MyStats from "./MyStats"; /*PROPS: Object() groupD...
#!/usr/bin/env node const parse = require('csv-parse/lib/sync'); const fs = require('fs'); const _ = require('lodash'); const knex = require('../libs/db').knex; const constants = require('../models/constants'); const UserGroup = require('../models/user.js').UsersGroup; // const Camp = require('../models/camp.js').Camp;...
var Point = function(a,b) { if (a && a.hasOwnProperty("y")) { b = a.y; a = a.x } return {x: a, y: b}; }; // GLOBALS // CANVAS var canvas; // = document.getElementsByTagName('canvas')[0]; var ctx; // = canvas.getContext("2d"); //trackTransforms(ctx); var mapImage = new Image(); map...
import React, { Component, PureComponent } from 'react'; import Checkbox from 'checkbox'; import isEqual from 'lodash/isEqual'; import get from 'lodash/get'; import forEach from 'lodash/forEach'; import uniq from 'lodash/uniq'; import assign from 'lodash/assign'; import classnames from 'classnames'; import PropTypes fr...
import DeviceStore from '../stores/DeviceStore'; import { definitions } from '../constants/definitions'; const config = require('../../../../../../../../../../config.json'); const TRUE = 'true'; const FALSE = 'false'; const LOAD_LAST_MODEL = 'loadLastModel'; const IS_SYNC = 'isSync'; /* Flag for knowing when the ...
import { camelCase, compact, difference, isArray, isEmpty, isFunction, isNaN, kebabCase, omitBy, parseInt, pick } from 'lodash' import bitTorrentPeerId from 'bittorrent-peerid' import { userKeys, systemKeys, needRestartKeys } from '@shared/configKeys' import { APP_THEME, ENGINE_RPC_HOST, GRAPHIC,...
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import React, {PureComponent} from 'react'; import PropTypes from 'prop-types'; import {intlShape} from 'react-intl'; import { ActivityIndicator, FlatList, KeyboardAvoidingView, Platform, ...
"use strict"; var tslib_1 = require("tslib"); var renderer_1 = require("./renderer"); var user_input_1 = require("../user-input/user-input"); var canvas_image_effect_1 = require("./canvas-image-effect"); var DEBUG = true; function createBuffer() { var canvas = document.createElement('canvas'); var context = can...
import metadata from '../metadata.min.json' import as_you_type_custom, { repeat } from '../../../../source/AsYouType' class as_you_type extends as_you_type_custom { constructor(country_code) { super(country_code, metadata) } } describe('as you type', () => { it('should parse and format phone numbers as you type...
/* MIT License http://www.opensource.org/licenses/mit-license.php Author <NAME> @sokra */ "use strict"; const Module = require("../Module"); const Template = require("../Template"); const Parser = require("../Parser"); const acorn = require("acorn"); const escope = require("escope"); const ReplaceSource =...
import Errors from 'ui/utils/errors'; import { get, set, computed, setProperties, observer } from '@ember/object'; import { scheduleOnce } from '@ember/runloop'; import { alias, notEmpty } from '@ember/object/computed'; import { inject as service } from '@ember/service'; import Component from '@ember/component'; impo...
// Copyright 2018-2021, University of Colorado Boulder /** * A class for the fan, which is an energy user * * @author <NAME> (PhET Interactive Simulations) * @author <NAME> (PhET Interactive Simulations) */ import NumberProperty from '../../../../axon/js/NumberProperty.js'; import createObservableArray from '../...
const secretKeys = require('../secrets.json'); const fs = require('fs'); const https = require('https'); /** * Bottleneck - Task Scheduler / Rate limiter * @see {@link https://github.com/SGrondin/bottleneck} */ const Bottleneck = require('bottleneck'); /** * MovieDB - themoviedb.org client * @see {@link https:/...
"use strict"; var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SchematicCommand = exports.UnknownCollectionError = void 0; /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at htt...
/* - [x] Get all elements containing class name with "gs-" - [x] Create new animation object for each element - [x] Check element for animType class - [x] Update object's animProps - [x] Check element for animTrigger class - [x] Update object's animTrigger - [x] Check element for enhancement classes - [x] Update objec...
/* The MIT License (MIT) Copyright (c) 2017-2019 <NAME> Github: https://github.com/gsavio 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 rig...
window.onload = function () { Demo7(); Demo8(); Demo9(); document.getElementById('divKey').onmousedown = function () { if (window.event.altKey) { alert('按下了alt键'); } else if (window.event.shiftKey) { alert('按下了shift键'); } else if (window.event.ctrlKey) { ...
// Switching Views let exampleSubDir = '/competition/examplesubmissions/' let liveSubDir = '/competition/submissions/' let chosenSubDir; // if (window.location.pathname === '/' || window.location.pathname === '/competition/submissions/'){ chosenSubDir = liveSubDir // } else { // chosenSubDir = exampleSubDir //...
// $Id$ // ============================================================================= // Preference handling // Handle all the preferences, including online functions custom // context menus, and skins [this is called from php_manual_prefs.js] function prefHandler() { // Find out what file stores the skin JS co...
/* * == BSD2 LICENSE == * Copyright (c) 2014, Tidepool Project * * This program is free software; you can redistribute it and/or modify it under * the terms of the associated License, which is identical to the BSD 2-Clause * License as published by the Open Source Initiative at opensource.org. * * This program...
const fs = require("fs-extra"); const fastglob = require("fast-glob"); const parsePath = require("parse-filepath"); const lodashset = require("lodash/set"); const lodashget = require("lodash/get"); const lodashUniq = require("lodash/uniq"); const merge = require("./Util/Merge"); const TemplateRender = require("./Templa...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import messageTypes from 'ringcentral-integration/enums/messageTypes'; import messageDirection from 'ringcentral-integration/enums/messageDirection'; import parseNumber from 'ringcentral-integration/lib/pa...
const ClassOperator = { // Require the class to be equal to higher AtLeast: 0, // Require the class to be equal only MustMatch: 1, // Require the class to be equal to lower AtMost: 2 }; const ClassIndex = { Base: 0, Advancement: 1, Desire: 2 } function SkillInfo(_skilltreeCore, __i...
import React, { Component } from 'react'; import BackgroundImage from '../util components/background-image'; import SideBar from './side_bar'; import apps from '../../apps.config'; import Window from '../base/window'; import UbuntuApp from '../base/ubuntu_app'; import AllApplications from '../screen/all-applications' i...
function GetPluginSettings() { return { "name": "HTML|iFrame", "id": "HTML_iFrame", "version": "1.42", "description": "在Construct 2中引入iFrame.", "author": "PlayLive", "help url": "https://www.scirra.com/forum/plugin-html-iframe_t149647", "category": "杂项||Mis", "type": "world", "rota...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
function ReportScheduleOptions(orgUnits,formErrors,success) { var periodId = "#periodType", startDtId = "#startDate", displayPeriodId = "#reportingPeriod"; var dtCh= "/", minYear=1900, maxYear=2100; var applicableOrgUnits = []; var isChecked=false; var isDateSelected=false; var self = this; $(p...
/* * GIP Viewer * 2017-2020 <NAME> * License: MIT */ /* ENVIRONMENT */ var OpenStreetMap_Mapnik = L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { maxZoom: 19, attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors' }); var OpenStreetMap_F...
import React, { useImperativeHandle, useEffect, useState, useMemo, useRef } from 'react' import { Animated, PanResponder, StyleSheet, View } from 'react-native' import { observer } from 'startupjs' import { Div, Row, Icon } from '@startupjs/ui' import PropTypes from 'prop-types' import { faAngleLeft, faAn...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. 'use strict'; const fs = require('fs'), utils = require('../test/util/utils'), path = require('path'), gitHubPost = require('./postToGitHub'); ...
'use strict'; const confusingBrowserGlobals = require('confusing-browser-globals'); const bestPractices = { // Enforces return statements in callbacks of array's methods // https://eslint.org/docs/rules/array-callback-return 'array-callback-return': ['error', { allowImplicit: true }], // Enforce that class m...
var popup = new mapboxgl.Popup({ closeButton: false }); var hoveredStateId = null; var districtData; var fileresult; var dates = []; var percentile = 0.9; var percentileThreshold = 300; var newlyInfectedPercentile = 0; var maxGrowth = 0; var layers = []; var sliderDate; var timeSliderContainer = null; var select...
/* global wasm_bindgen:readonly */ const VERSION = "v1.0"; import { WorkerPool } from "./Pool.js"; import Language from "./Language.js"; const modulePromise = wasm_bindgen("./wasm/libenchcrack_bg.wasm"); /** * @typedef wasm_bindgen * @property {typeof import("../wasm/libenchcrack").Manipulator} Manipulator * @proper...
function MinPhotoSize(actual, maxvalue) { return Math.min(actual, maxvalue) + "px"; } function ShowFormatBytesStr(bytes) { if(bytes > 1073741824) { document.write((Math.round((bytes/1073741824)*100)/100).toString()+' G'); } else if(bytes > 1048576) { document.write((Math.round((bytes/1048576)*100)/100).toStrin...
/* Copyright (c) 2008 Journyx, Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, ...
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b)...
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, des...
'use strict'; var _ = require('underscore-contrib'); var fs = require('fs'); var path = require('path'); var stringify = require('./stringify'); var Types = require('./types'); var util = require('util'); var DEFAULT_OPTIONS = { language: 'en', resources: { en: JSON.parse(fs.readFileSync(path.join(__dirname, '../...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.createWorkerFarm = createWorkerFarm; exports.BuildError = exports.default = exports.INTERNAL_RESOLVE = exports.INTERNAL_TRANSFORM = void 0; var _assert = _interopRequireDefault(require("assert")); var _diagnostic = _interopRequire...
// class App.js v2.0 of Jan 3, 2021 import React, { Component } from 'react'; // from node.js module import Avatar from 'avataaars'; // from node.js module import { BounceLoader } from 'react-spinners'; // from node.js module import getWeb3 from "./getWeb3"; // to call web3 API import Pepito from "....
var MeshError = require('./error'); var serveStatic = require('serve-static'); // var util = require('util'); var path = require('path'); var depWarned0 = false; // $happn.mesh.* var fs = require('fs'); var utilities = require('./utilities'); module.exports = ComponentInstance; function ComponentInstance() { } C...
// Copyright (c) 2016-2018, BuckyCloud, Inc. and other BDT contributors. // The BDT project is supported by the GeekChain Foundation. // All rights reserved. // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // ...
let timelinePos = 0, onionPos, postOnionPos; let timelinePosFriend; let posKey, onionKey, postonionkey, keyToUpdate, previouskey, nextkey; let posKeyFriend; let tm; let playing = false; let loopTm = true; let nframe; let onVirginFrame = true; let playKeys = 0; let playingAll = false; let playingWithSound = false; let t...
/** * jquery.matchHeight.js v0.5.2 * http://brm.io/jquery-match-height/ * License: MIT */ (function($) { $.fn.matchHeight = function(byRow) { // handle matchHeight('remove') if (byRow === 'remove') { var that = this; // remove fixed height from all selected elements ...
/* * Copyright 2017 Red Hat, Inc. and/or its affiliates. * * 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 app...
// Copyright IBM Corp. 2017,2019. All Rights Reserved. // Node module: loopback-connector-couchdb2 // This file is licensed under the Apache License 2.0. // License text available at https://opensource.org/licenses/Apache-2.0 'use strict'; var async = require('async'); var g = require('strong-globalize')(); var util ...
//-------------- Requires --------------- const fs = require('fs'); const { prefix, token } = require('./config.json'); const prompts = require('./assets/prompts.json'); const validEmoji = require('./assets/emoji.json'); const Discord = require('discord.js'); const client = new Discord.Client(); //-------------- Start...
import React from 'react'; import moment from 'moment'; import firstBy from 'thenby'; import autoBind from 'auto-bind'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import prettyBytes from 'pretty-bytes'; import selection from '../ui/selection.js'; import Highlighter from 'react-highlighter'...
'use strict'; const stages = require('aws-core-utils/stages'); const contexts = require('aws-core-utils/contexts'); const kinesisCache = require('aws-core-utils/kinesis-cache'); const lambdaCache = require('aws-core-utils/lambda-cache'); const tries = require('core-functions/tries'); const Try = tries.Try; // const...
/* global declarations here*/ var k = 3; document.getElementById("k").value = k; var i = 1; var j_arr = [1, 1]; var search_keys = [[], []]; var j_points = [];///to save the middle points of each j block var bucketsize = 2; document.getElementById("rec").value = bucketsize; var unit = 40; var interval = 20; var cellwidt...
"use strict"; require("core-js/modules/es.array.slice.js"); require("core-js/modules/es.object.freeze.js"); require("core-js/modules/es.symbol.js"); require("core-js/modules/es.symbol.description.js"); require("core-js/modules/es.symbol.iterator.js"); require("core-js/modules/es.array.from.js"); Object.definePro...
/*This software is released under MIT License. Texts for license are listed below: * Aventura do Saber , a educational fantasy action RPG * Copyright (c) 2012-2013, ITSimples Games Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ...
// Cronicle Server Communication Layer // Copyright (c) 2015 <NAME> // Released under the MIT License var cp = require('child_process'); var dns = require("dns"); var SocketIO = require('socket.io'); var SocketIOClient = require('socket.io-client'); var Class = require("pixl-class"); var Tools = require("pixl-tools")...
const t = require('@babel/types'); const generate = require('@babel/generator').default; const template = require('@babel/template').default; const path = require('path'); const queue = require('../queue'); const utils = require('../utils'); const fs = require('fs-extra'); const platforms = require('../../consts/platfo...
//Define Margin var margin = {left: 60, right: 30, top: 20, bottom: 0}, width = 740 - margin.left - margin.right, height = 540 - margin.top - margin.bottom; //Define SVG var svg = d3.select("#visualization") .append("svg") .attr("id", "map-svg") .attr("width", width + margin.left + margin.right) ...
/*! * Fierce Planet * * Copyright (C) 2011 <NAME> * MIT Licensed */ var RMITWorlds = RMITWorlds || new Campaign(); var RMITModule = RMITModule || {}; var RMITResources = RMITResources || {}; /*! * Fierce Planet - ResourceKinds * * Copyright (C) 2011 <NAME> * MIT Licensed */ (fun...
// 0x07004120 - 0x07004210 import { gsDPSetTextureImage, gsDPLoadSync, gsDPLoadBlock, gsSPVertex, gsSP2Triangles, gsSP1Triangle, gsSPEndDisplayList, gsDPPipeSync, gsDPSetCombineMode, gsSPClearGeometryMode, gsDPSetTile, gsSPTexture, gsDPTileSync, gsDPSetTileSize, gsSPDisplayList, gsSPSetGeometryMode, G_...
var fs = require('fs'), console = require('console'), util = require('util'), emitter = require('events').EventEmitter, fu = require('./file-utils'); /** * constructor - will document options in higher-level code. */ function tokenizer(options) { // defaults var base_options = { 'SplitPolicy'...
import crypto from 'crypto'; import scmp from 'scmp'; import superagent from 'superagent'; import uuid from 'uuid'; import url from 'url'; import has from 'lodash/object/has'; import constants from '../constants'; import { getSession, clearSessionCookies, oauthTokenToSession, setSessionCookies, } from './sessi...
/** * 云安APP端公共脚本 34.8M * verson 0.3.45 * @author 李世靖 <EMAIL> * 每个页面必须引入本文件,以确保程序正常运行 * 部分方法依赖于 api.js */ 'use strict'; //启用严格模式 const APP_ID = 'A6044910518982'; //AC平台的APPid const maxDistance = 40; //巡查、处警最大坐标偏移/米 const appName = "Kyour"; var IOS_EXAMINE = true; //ios审核时开启 var apikey, isDebug; ...
#! /usr/bin/env node import { relative, dirname, resolve } from 'node:path'; import { fileURLToPath } from 'node:url'; import _ from 'lodash'; import { truwrap } from 'truwrap'; import { TemplateTag, replaceSubstitutionTransformer, stripIndent } from 'common-tags'; import { box } from '@thebespokepixel/string'; import ...
// Import packages const dgram = require('dgram'); const net = require('net'); const {EventEmitter} = require('events'); const timeout = require('p-timeout'); const retry = require('retry'); const debug = require('debug')('TuyAPI'); // Helpers const Cipher = require('./lib/cipher'); const Parser = require('./lib/messa...
$.fn.serializeObject = function() { var o = {}; var a = this.serializeArray(); $.each(a, function() { if (o[this.name]) { if (!o[this.name].push) { o[this.name] = [o[this.name]]; } o[this.name].push(this.value || ''); } else { o...
var csrfToken = jQuery('meta[name="csrf-token"]').attr("content"); var url = jQuery('meta[name="url"]').attr("content"); var nurl = jQuery('meta[name="nurl"]').attr("content"); function hidepost(postid){ //alert(postid); $.ajax({ url:url+'/?r=query/approve-query', type:'POST', cache:false...
/*---------------------------------------------------------------- Copyright (C) 2019 筱程 wechatscan.com 文件名:thisorder/index 文件功能描述:点餐 ----------------------------------------------------------------*/ var util = require('../../util/util.js') var app = getApp() var qcloud = require('../../util/vendo...
// CS30 Major Project // <NAME> // 10/19/2021 // // Extra for Experts: // - used a new library called p5.play, used virtual camera to create open experience // - created my own pixel art for sprites // - implemented sound effects // - used class objects with the p5.play Group() feature along with the sprites function /...
const requireDir = require('require-dir'); const WeaponInterface = require('../WeaponInterface.js'); const prices = {"Common":100,"Uncommon":250,"Rare":400,"Epic":600,"Mythical":2000,"Legendary":5000,"Fabled":20000}; const weaponEmoji = "🗡"; const weaponPerPage = 10; const nextPageEmoji = '➡'; const prevPageEmoji = '...
"use strict"; var utils = require('@iobroker/adapter-core'); // Get common adapter utils var adapter = new utils.Adapter('hyperion'); var Hyperion = require('hyperion-client'); var convert = require('color-convert'); var hyperion; adapter.on('unload', function (callback) { try { adapter.log.info('cleaned ev...