text stringlengths 8.5k 48.7k |
|---|
var a = window.location.toString();
var name;
var playing = false;
var currentCard = 0;
let activity;
var historyStack = [];
var renderFncQueue = [];
var renderObjsIDs = new Set();
var lastClicked = "";
var id;
var logAddress="https://loggermuseoar.000webhostapp.com/srvLog.php";
function run() {
let cookie = docum... |
const ABOUT_IMG_URLS = [
'/' + APP_NAME + '/images/about/DOEcodeFeatures_main710px-min.png',
'/' + APP_NAME + '/images/about/DOEcodeFeatures_doi710px-min.png',
'/' + APP_NAME + '/images/about/DOEcodeFeatures_Repository710px-min.png',
'/' + APP_NAME + '/images/about/DOEcodeFeatures_Catalog710px-min.png',... |
import {
Universe
} from 'gravitle';
import { memory } from "gravitle/gravitle_bg";
import * as render from './render.js';
import * as Tests from './tests.js';
import * as utils from './utils.js';
import WebGLRenderer from './webgl-renderer.js';
const start = () => {
const fps_infos = document.getElementById('... |
import React, { useState, useEffect, useRef, useCallback } from "react";
import {
Tree,
Row,
Col,
Menu,
Button,
Modal,
Form,
Input,
Dropdown,
Checkbox,
Select,
message,
} from "antd/lib";
import { debounce } from "lodash";
import BreadCrumbs from "../../common/BreadCrumbs";
import { authHeader, ... |
/**
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"... |
import {
isXlRouletteGame,
getLastXlModeBeforeNmbSel,
formatAmount,
formatMoney,
EModesXl,
} from '@authenticgaming/ag.ui.core';
import { createSelector } from 'reselect';
import preferencesList from '~/constants/preferences';
import currency from '~/constants/currency';
import tabTypes from '~/con... |
"use strict";
exports[Symbol.toStringTag] = "Module";
var main = require("../main.js");
var vue = require("vue");
var vueI18n = require("vue-i18n");
var serverRenderer = require("vue/server-renderer");
require("vue-next-masonry");
require("nprogress");
require("pinia");
require("axios");
require("vite-ssg");
require("v... |
import {fixUrl, getAbsoluteBaseURL} from '../global/url';
import Listeners from '../global/listeners';
import HTTP from '../http/http';
import promiseWithTimeout from '../global/promise-with-timeout';
import AuthStorage from './storage';
import AuthResponseParser from './response-parser';
import AuthRequestBuilder fro... |
/* global _WORKLET */
/**
* Copied from:
* react-native/Libraries/StyleSheet/normalizeColor.js
* react-native/Libraries/StyleSheet/processColor.js
* https://github.com/wcandillon/react-native-redash/blob/master/src/Colors.ts
*/
/* eslint no-bitwise: 0 */
import { Platform } from 'react-native';
import { makeRemo... |
//@author mu @16/5/11
var node_local_zero = 50
var CreateTwj = cc.Class.extend({
bigwenduji : null,
dingwei : null,
wenduji_res:null,
temperature : 35,
xiaowenduji : null,
lock_dingwei : null,
_wendujiBeganCallback : null,
_wendujiMoveCallback : null,
_wendujiEndCallback : null,
... |
Math.TAU = Math.PI*2;
///// LOAD IMAGES /////
var assetsCallback;
var onLoadAssets = function(callback){
assetsCallback = callback;
if(assetsLeft==0) assetsCallback();
};
var assetsLeft = 0;
var onAssetLoaded = function(){
assetsLeft--;
if(assetsLeft==0) assetsCallback();
};
var images = {};
function addAsset(nam... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var React = require('react');
var reactRouterDom = require('react-router-dom');
var react = require('@chakra-ui/react');
var ... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.getTransitModes = getTransitModes;
exports.isTransit = isTransit;
exports.isWalk = isWalk;
exports.isBicycle = isBicycle;
exports.isBicycleRent = isBicycleRent;
exports.isCar = isCar;
exports.isMicromobility = isMicromobility;
expor... |
const SteamID = require('steamid');
const Currencies = require('tf2-currencies-2');
const SKU = require('tf2-sku-2');
const pistolSkins = new Map();
pistolSkins
.set(0, 15013)
.set(18, 15018)
.set(35, 15035)
.set(41, 15041)
.set(46, 15046)
.set(56, 15056)
.set(61, 15061)
.set(63, 15060)... |
/**
* @version 0.5.1
* @date 2016-07-26
* @stability 2 - Unstable
* @author <NAME> <<EMAIL>>
* @license MIT License
*/
// Void elements: http://www.w3.org/html/wg/drafts/html/master/syntax.html#void-elements
var voidElements = {
AREA:1, BASE:1, BR:1, COL:1, EMBED:1, HR:1, IMG:1, INPUT:1,
KE... |
/* global it, describe, afterEach, before */
import { morph, Polygon } from '../index.js';
import { expect } from 'mocha-es6';
import { pt, rect, Color, Rectangle, Transform } from 'lively.graphics';
import { num } from 'lively.lang';
import { generateReferenceExpression } from 'lively.ide/js/inspector.js';
let world,... |
var modules = require("../modules")
var { MessageEmbed } = require('discord.js')
var npmmodules = require("../npm-modules")
var discordEmbeds = require("../discord-embeds")
var config = require("../config.json")
require("../ExtendedMessage");
module.exports = {
roles: [],
prefixes: ["frakce"],
... |
import "antd/es/row/style";
import _Row from "antd/es/row";
import "antd/es/form/style";
import _Form from "antd/es/form";
import "antd/es/col/style";
import _Col from "antd/es/col";
import "antd/es/input-number/style";
import _InputNumber from "antd/es/input-number";
import "antd/es/time-picker/style";
import _TimePic... |
function toggleTabs(i) {
currentTab = i;
revealStuff();
hideStuff();
let subTabList = subTabsInMainTab(player.tabnumber).subTabList
if (player.tabnumber !== -1) {
for (let i = 0; i < subTabList.length; i++) {
let button = document.getElementById(subTabList[i].buttonID)
... |
MG.tools = {
sizeof, // 计算字节
debounce, // 防抖函数
ToHtmlString, // Html结构转字符串形式显示
toTXT, // Html结构转字符串形式显示
handle_bit, // 字节转KB或MB或G
getDomainName, // 根据url 获取domain中间的name
tool_windowOpenUrl, // 打开url ,判断本地文件时使用node打开
tool_splitByEnter, // 根据换行符切割字符串
tool_checkFormat, // 图片下载器=检查图片格式是否合法
tool_checkPat... |
import React, { Component } from 'react';
import {
animationTimingFunction,
s,
numAnimations,
stopAllAnimations,
animateProp
} from './animation';
import {
throttle,
getTranslateX,
setTranslateX,
getTouchPoints,
equalizePoints,
isNearbyPoints,
getCurrentTime,
checkImageFormat,
checkItemForma... |
const electron = require('electron'),
app = electron.app,
BrowserWindow = electron.BrowserWindow,
path = require('path'),
url = require('url'),
os = require('os'),
osPlatform = os.platform(),
fsnode = require('fs'),
fs = require('fs-extra'),
mkdirp = require('mkdirp'),
exec = require('child_process'... |
var gulp = require('gulp');
var rename = require('gulp-rename');
var inject = require('gulp-inject');
var jeditor = require("gulp-json-editor");
var File = require('vinyl');
var colors = require('ansi-colors');
var log = require('./log');
var replace = require('gulp-replace');
var path = require('path');
var fs = requi... |
/* micropolisJS. Adapted by <NAME> from Micropolis.
*
* This code is released under the GNU GPL v3, with some additional terms.
* Please see the files LICENSE and COPYING for details. Alternatively,
* consult http://micropolisjs.graememcc.co.uk/LICENSE and
* http://micropolisjs.graememcc.co.uk/COPYING
*
*/
impor... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may n... |
/**
* Return an incremental name based of the type of the shape
* @param {Object} pmCanvas The current canvas
*/
var IncrementNameCanvas = function (pmCanvas) {
var random,
elementsName = {
TASK: "Task".translate(),
SUB_PROCESS: "Sub-process".translate(),
START: "Start... |
// =============================================================================
const path = require('path');
const { existsSync, writeFileSync } = require('fs');
const { renderFile } = require('template-file');
const { dedent: _, usage, cooldownToString, stringToCooldown,
userLevelToString, stringToUserLe... |
'use strict';
exports.__esModule = true;
var _class, _desc, _value, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _class3, _temp;
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (O... |
'use strict';
var GeometryUtil = require('geo/GeometryUtil');
var _ = require('util/util');
// Patch THREE.Box2 with legacy function names
if (!_.isFunction(THREE.Box2.prototype.intersects)) {
THREE.Box2.prototype.intersects = function (box) {
return this.intersectsBox(box);
};
}
if (!_.isFunction(THREE.Box2.... |
module.exports = {
getdefs: function(chords) {
defs = [];
for (i = 0; i < chords.length; i++) {
for (j = 0; j < alldefs.length; j++) {
if (chords[i] == alldefs[j].name && alldefs[j].rank == 0) {
defs.push(alldefs[j]);
}
}
}
return defs;
},
toString: fun... |
import React from 'react';
import { Card, Table, Form, Row, Col, Select, Button, DatePicker, Spin, Radio, Modal } from 'antd';
// import { PageHeaderWrapper } from '@ant-design/pro-layout';
import moment from 'moment';
import { connect } from 'dva';
import { formatMessage } from 'umi/locale';
import { passengerNumForma... |
//评论滚动
if ($('#scrollDiv')[0]) {
(function($) {
$.fn.extend({
Scroll : function(opt, callback) {
// 参数初始化
if (!opt)
var opt = {};
var _this = this.eq(0).find("ul:first");
var lineH = _this.find("li:first").height(), // 获取行高
line = opt.line ? parseInt(opt.line, 10) : parseInt(this.height()... |
"use strict";
let thingsToLoad = [
"images/header.png",
"audio/soundtrack/Rebouz - Raindrops.mp3"
];
function load() {
// //Display the file currently being loaded
// console.log(`loading: ${g.loadingFile}`);
// //Display the percentage of files currently loaded
// console.log(`progress: ${g.... |
"use strict";
var keymap = [
// chip8 // keyboard
/* 0 */ 88, // x
/* 1 */ 49, // 1
/* 2 */ 50, // 2
/* 3 */ 51, // 3
/* 4 */ 81, // q
/* 5 */ 87, // w
/* 6 */ 69, // e
/* 7 */ 65, // a
/* 8 */ 83, // s
/* 9 */ 68, // d
/* A */ 90, // z
/* B */ 67, // c
/* C */ 52, // 4
/* D */ 82, // r
/* E */ 70, ... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
//function loadmainpage(){
//load content for first tab and initialize
// $('#tabinicio').load(main_path+'/modules/inicio/vista/vista.php', function() { });
// $('#infosystempanel').show();
//$('#main... |
var VNode = function VNode() {};
var options = {};
var stack = [];
var EMPTY_CHILDREN = [];
function h(nodeName, attributes) {
var children = EMPTY_CHILDREN,
lastSimple,
child,
simple,
i;
for (i = arguments.length; i-- > 2;) {
stack.push(arguments[i]);
}
if (attributes && attributes.childr... |
// Use Logger instead of console, as it's not guarenteed to work in all browsers...
var Logger = {
log: function(str) {
if (console && console.log) {
console.log(str);
}
}
}
var CopyContents = {
ready: function(event) {
$("[data-role*=\"copy-contents\"]").on("click.copyElement", CopyContents.click);
},
c... |
var visualizationObject = {}; // returned from UiV2Visualization.buildGraph
var visualizationDotOutput = "";
function visIsShowingMemberCounts() {
return document.getElementById("vis-settings-show-all-member-counts").checked || document.getElementById("vis-settings-show-direct-member-counts").checked;
}
$(document)... |
let url = window.location.href.split('/');
let patient_id = url[url.length-1];
$(document).ready(function() {
$.ajax({
type: 'post',
url: domain + "ajax/survey/survey_questionarie",
data: {"id":patient_id},
beforeSend: function () {
n_loader = -1;
},
success: function (d) {
var j_data = JSON.parse(d)... |
var http = require('http');
var soap = require('soap');
var chalk = require('chalk');
var fs = require('fs');
var builder = require('xmlbuilder');
var uuid = require('node-uuid');
var DOMParser = require('xmldom').DOMParser;
var qbws,
server,
counter = null,
connectionErrCounter = null,
username = proc... |
import * as THREE from './build/three.module.js';
import { OrbitControls } from './jsm/controls/OrbitControls.js';
import { FBXLoader } from './jsm/loaders/FBXLoader.js';
let camera, scene, renderer;
const clock = new THREE.Clock();
let mixer;
let mixer2;
let act ;
let action;
... |
import React from 'react';
import ReactDOM from 'react-dom';
import styled, { css } from 'styled-components';
import style from 'Shared/style-variables';
import { decrypt } from '../../../../../utils/crypt';
import { TESTNET, REGEX_TAXABLE_NETWORKS } from 'Config/constants';
import { Loading } from 'Components/Loading'... |
/* global Notification */
import { localize, localizeWith } from '../js/l10n.js'
import { savedClubs } from '../js/saved-clubs.js'
import { currentTime, escapeHTML, now } from '../js/utils.js'
export let days, months
export function setDaysMonths (newDays, newMonths) {
days = newDays
months = newMonths
}
cons... |
const host = "192.168.0.6";
// : "localhost";
const liveChangesSubscription = false;
var groupRoots = {};
var unsavedSession = false;
var nameDatabase = 'pokorny-17112501',
nameKeywordsDb = 'pie-keys-17102401',
nameMemoRootsDb = 'pie-memoroots-17102401';
var uriDatabases = `http://${host}:5984/`;
var remoteDa... |
var takeSnapshotUI = createClickFeedbackUI();
var video;
var takePhotoButton;
var toggleFullScreenButton;
var switchCameraButton;
var amountOfCameras = 0;
var currentFacingMode = 'environment';
var leadID='';
var TotalLength=0;
// Object.defineProperty(Images, "push", {
// configurable: true,
// enumer... |
import {useEffect} from 'react';
import {Platform} from 'react-native';
import Geolocation from '@react-native-community/geolocation';
import * as turf from '@turf/turf';
import proj4 from 'proj4';
import {useDispatch, useSelector} from 'react-redux';
import useServerRequestsHook from '../../services/useServerRequest... |
var debug = false;
var connection = null;
var fullJID = null;
var OccupantsArray = [];
var AvatarCache = {};
var userListActive = false;
var banListActive = false;
var occupantCheck;
var chatDataUpdate;
function showOccupants() {
var chatOccupantsDiv = document.getElementById('chatMembers');
var chatElementsD... |
/**
* Constants used in this game.
*/
var Colors = {
cherry: 0xe35d6a,
blue: 0x1560bd,
white: 0xd8d0d1,
black: 0x000000,
brown: 0x654321,
peach: 0xffdab9,
yellow: 0xffff00,
olive: 0x556b2f,
grey: 0x696969,
sand: 0x835c3b,
brownDark: 0x23190f,
green: 0x669900,
grass: 0xE5D85C
}... |
// ==UserScript==
// @name Stack Exchange Global Flag Summary
// @namespace http://floern.com/
// @version 1.2.1
// @description Stack Exchange networkwide flag summary available in your network profile
// @author Floern
// @include *://stackexchange.com/users/*/*
// @match ... |
import React, {Component, PureComponent} from 'react';
import {Platform, StyleSheet, ActionSheetIOS, Text, TextInput, Animated, View, Alert, TouchableWithoutFeedback, Keyboard, TouchableOpacity, TouchableHighlight, Image, ImageBackground, ScrollView, StatusBar, SafeAreaView, ActivityIndicator, Dimensions, RefreshContro... |
const crypto = require('crypto');
const assert = require('assert');
const ps = require('process');
const fs = require('fs');
const z = require('./zutil.js');
const db = require('./db.js');
/*
mine & spend sim :
grab any txs from mempool,
check if txs are unspent
sta... |
/*
* ------------------------------------------------------------
* "THE BEERWARE LICENSE" (Revision 42):
* maple "mavica" syrup <<EMAIL>> wrote this code.
* As long as you retain this notice, you can do whatever you
* want with this stuff. If we meet someday, and you think this
* stuff is worth it, you can... |
'use strict';
const Util = require('./util')
const Connect = require('./connect')
const exc = require('./exception')
// constants for upsampling. length=91
const firCoe = [-7.4137037e-4, -1.1531283e-3, -2.1740662e-4, 1.2790698e-3, 1.5922000e-3, -3.4433974e-18, -2.0013065e-3, -2.0233887e-3, 4.3397098e-4, 2.9163663e-3,... |
import React, { useEffect, useRef, useContext, useState } from 'react';
import {
ControlGroup, Button, Icon, ButtonGroup, Callout, RangeSlider,
Divider, Label, Tag, HTMLSelect, Switch
} from "@blueprintjs/core";
import { Tooltip2 } from "@blueprintjs/popover2";
import { AppContext } from '../../context/AppCont... |
/* eslint camelcase: ["off"] */
const inherit = require('./util/inherit');
let ArrayType;
let primitives;
let Model;
function _emptyObject () {
return Object.create(null);
}
const NOT_INSTANCE = {};
const EMPTY_PROPERTIES = _emptyObject();
function _forProperty (property, options, work) {
options = _toOptions(... |
'use strict';
import React, { useCallback, useMemo, useState } from 'react';
import DropdownButton from 'react-bootstrap/esm/DropdownButton';
import { LocalizedTime } from '@hms-dbmi-bgm/shared-portal-components/es/components/ui/LocalizedTime';
import { Checkbox } from '@hms-dbmi-bgm/shared-portal-components/es/compon... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*
* References:
* Gpsd : http://catb.org/gpsd/AIVDM.html [best doc]
* OpenCPN: https://github.com/OpenCPN/OpenCPN [file: AIS_Bitst... |
"use strict";
// https://github.com/prateek3255/typescript-react-demo-library
Object.defineProperty(exports, "__esModule", { value: true });
exports.component = exports.HofHtmlElement = void 0;
// Adapt bind to preserve function body instead of returning [native code] if function is bound which is
// important bec... |
/**
* @fileOverview Sisältää {@link Map}-luokan toteutuksen.
*/
"use strict";
/**#nocode+*/
var log = require('./Utils').log
, rand = require('./Utils').rand
, truncateNumber = require('./Utils').truncateNumber
, distance = require('./Utils').distance
, path = require('path')
, fs = require('fs')
, cjso... |
import * as PIXI from 'pixi.js';
import { Loader, Ticker, Graphics, Container, Application } from 'pixi.js';
import Event from 'eventemitter3';
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute t... |
import React from "react";
import { Button, Grid, TextField, Typography } from "@mui/material";
import { Select, FormControl, InputLabel, MenuItem } from "@mui/material";
import {
Step,
StepContent,
StepLabel,
Stepper,
IconButton,
InputAdornment,
Tooltip,
} from "@mui/material";
import HelpIcon from "@mui... |
import React, { useContext, useEffect } from "react";
import { connect } from "react-redux";
import { ButtonGroup, AnchorButton, Slider, Tooltip, HotkeysContext, Dialog, ControlGroup, Checkbox, MenuItem } from "@blueprintjs/core";
import { Select } from "@blueprintjs/select"
import * as globals from "../../globals";
im... |
"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";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
var _asyncToGenerator2 = _interopRequ... |
import { /* ALL_ASTYPES */ ADD, ADDRESS, ADDRESS_CLOSE, ALLOCATE_PAGES, AND, ARG_LIST, AS, ASSIGN, BAD_TOKEN, BITWISE_AND, BITWISE_OR, BITWISE_SHIFT, BITWISE_XOR, BLOCK, BLOCK_CLOSE, BREAK, CALL, COMMA, COMMENT, CONTINUE, DECLARATION, DEFAULT_MEMORY, DEFAULT_TABLE, DEFINITION, ELSE, END_OF_INPUT, EQ_COMPARISON, EXPORT,... |
const html = `<!DOCTYPE html>
<html>
<head>
<title>Workers-Proxy Code Builder</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/boo... |
var renderScene;
var sceneCube;
var quadScene;
var depthScene;
var pong1Scene;
var pong2Scene;
var copyScene;
var camera;
var cameraCube;
var renderer;
var controls;
var stats;
var light;
var linearDepthRenderTarget;
var pong1RT;
var pong2RT;
var farPlaneZ = 200;
... |
const anychatdefine=require("../../sdk/anychatdefine.js")
const anychat=require("../../sdk/anychat4wx.js")
const util=require("../../utils/util.js")
var app = getApp();
var qtimer=''; //定时器
var rtmpUrlTimer=''; //拉流定时器
var rtmpUrlTimerTarget='';
var roomTimer='';//查询房间人数
Page({
data: {
hidden: true,
nocanc... |
import $ from "jquery";
import _ from "underscore";
import "bootstrap";
import "jquery-deparam";
import "./configure_datatables";
import View from "../view";
import Cache from "../cache";
import ColumnManager from "./column_manager";
import SelectionManager from "./selection_manager";
import LockManager from "./lock... |
/****************************************************************************
Copyright (c) 2010-2012 cocos2d-x.org
Copyright (c) 2008-2010 <NAME>
Copyright (c) 2011 Zynga Inc.
http://www.cocos2d-x.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associa... |
'use strict';
import { isset, tobool, tonum, tostr, isarray, objForEach, objMap, getStyle, stdDoms, isbool, iselem, isfunc } from './stdlib';
import EventHandler from './event-handler';
import { isRect, stdRect, diffRect } from './rect';
import ALIGNMENT_PROPS from './alignment-props';
const ALIGNMENT_OUTER = ... |
/**
* NETopes AJAX javascript file.
* The NETopes AJAX javascript object used on ajax requests.
* Copyright (c) 2013 - 2019 AdeoTEK Software SRL
* License LICENSE.md
* @author <NAME>
* @version 2.5.0.3
*/
if(NAPP_PHASH && window.name!==NAPP_PHASH) { window.name=NAPP_PHASH; }
$(window).on('load',functio... |
/*
Copyright 2016 The Trustees of University of Arizona
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... |
// If game needs to be used via webpack for socket to work properly w/ react,
// use this template: https://github.com/photonstorm/phaser3-project-template
const config = {
type: Phaser.AUTO, // Which renderer to use
width: 640, // Canvas width in pixels (usually 800) - 171 /w mario tile example
height: 4... |
export { next, on, NextEventManager, time }
/*
NextEvent -- A micro-framework which provides an alternative JS event handling interface.
NextEvent wraps and augments the JavaScript Event interface. It offers five major features:
Event combination - This can accepts a list of EventTargets and event names, treating ... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import ImageScrollbar from '../ImageScrollbar/ImageScrollbar.js';
import ViewportOverlay from '../ViewportOverlay/ViewportOverlay.js';
import LoadingIndicator from '../LoadingIndicator/LoadingIndicator.js'... |
/**
* GPGPU state and GL resources: framebuffers, textures; and meta information.
*
* @todo Allow passes into or across textures; separate data and texture shapes.
* @todo In-place updates of complex resources and meta info.
* @todo Use transform feedback instead of data textures, if supported (WebGL2)?
*/
impor... |
import * as fs from 'fs-extra'
import * as path from 'path'
import * as vm2 from 'vm2'
import { ipcRenderer } from 'electron'
import { camelCase, cloneDeep, isBoolean, isEmpty, isObject, isString, partition, uniq, upperFirst } from 'lodash'
import { PLUGINS } from '@config'
import PluginHttp from '@/services/plugin-man... |
const fs = require("fs");
const { MessageEmbed, MessageActionRow, MessageButton, MessageSelectMenu } = require("discord.js");
const Adventure = require("../Classes/Adventure.js");
const Move = require("../Classes/Move.js");
const Enemy = require("../Classes/Enemy.js");
const Delver = require("../Classes/Delver.js");
c... |
/**
* Crumple Shade 0.0
*
* <NAME>
* <EMAIL>
*
* http://kennethfrederick.de/
* http://blog.kennethfrederick.de/
*
*/
// ------------------------------------------------------------------------
// Properties
// ------------------------------------------------------------------------
/**
* Note from the Scriptograph... |
//
// walk.js
//
// version 1.12
//
// Created by <NAME>, Autumn 2014
//
// Animates an avatar using procedural animation techniques
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
// constants
var M... |
"use strict";
var _document = document,
body = _document.body;
var fullWidth = body.clientWidth;
var fullHeight = body.clientHeight;
var _rxjs = rxjs,
fromEvent = _rxjs.fromEvent;
var map = rxjs.operators.map;
var mouseMove$ = fromEvent(body, "mousemove");
var mouseXY$ = mouseMove$.pipe(map(function (_ref) {
... |
/* ********************************************************************
**********************************************************************
* HTML Virtual Keyboard Interface Script - v1.10
* Copyright (c) 2008 - GreyWyvern
*
* - Licenced for free distribution under the BSDL
* http://www.opensource.... |
"use strict";
/// <reference path="../../localtypings/pxtarget.d.ts" />
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.has... |
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) {
ex... |
function light(){
if (arguments.length === 1){
return l_handleColor(arguments[0]);
} else {
return l_handle_gradient(arguments);
}
}
function l_handleColor(c){
let color = new l_Color(c);
return function(s){
if (s === 'lab' && !color.lab) color.makeLab();
return s ... |
/*
* RedGPU - MIT License
* Copyright (c) 2019 ~ By RedCamel( <EMAIL> )
* issue : https://github.com/redcamel/RedGPU/issues
* Last modification time of this file - 2020.3.26 14:41:31
*
*/
import RedGPU from "../src/RedGPU.js";
const cvs = document.createElement('canvas');
let testMat_color, testMat_col... |
/* globals WAY, WAYModuleLoader */
//=============================================================================
// WAY_Achievements.js
//=============================================================================
/*:
@plugindesc v1.4.0 This plugin allows you to create Achievements to your game. <WAY_Achievements>... |
// lnd rebalance is built on top of https://github.com/alexbosworth/balanceofsatoshis
// tool.
//
// calls 'bos rebalance' in a loop, until the target amount is met or until all
// possible routes is exhausted. dynamically builds a list of nodes to avoid
// based on candidate routes. once it encounters a candidate ro... |
$(document).ready(function () {
if (!navigator.cookieEnabled) {
return false;
}
//detect url change
window.onhashchange = function () {
var userID = document.location.hash;
userID = userID.replace('#', '');
var pathname = window.location.pathname;
if (userID && (p... |
let checkStartCamera = setInterval(
function(){
if ($('#myvideo').length > 0){
startTeacherScreen();
}
}, 500
);
function startTeacherScreen() {
clearInterval(checkStartCamera);
var server1 = "https://" + window.location.hostname + "/janus";
var janus1 = null;
v... |
// Copyright 2011 <NAME>, University of San Francisco. 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, this list of... |
/***********************************************************************
Ephemeris Panel
Copyright (c) 2018 <NAME>
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, inclu... |
"use strict";
import howler from "./howler.min"; //Para el manejo del sonido...
import utils from "./utils";
let dimensiones = {ancho : 320, alto : 480},
ratio = dimensiones.ancho / dimensiones.alto,
currentHeight = window.innerHeight,
currentWidth = (currentHeight * ratio) - 50,
worl... |
/* global getAttrs, setAttrs, getSectionIDs, generateRowID, on, removeRepeatingRow, _, getTranslationByKey */
/**
* Migrations
*/
/* Upgrade event handler */
const handleUpgrade = () => {
getAttrs(["character_sheet"], v => {
if (!v.character_sheet || v.character_sheet.indexOf(sheetName) !== 0)
... |
"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];
... |
const request = require("request");
const music = require("./music.js");
const msub = require("./msub-api.js");
const discord = require("discord.js");
const client = new discord.Client();
const prefix = "m.";
const admin = []
let HourPerRam = [];
let HourPerRamData = [];
let messageReaction = {};
const TOKEN = "";
cl... |
let bDebugging = false;
const sAPIkey = "<KEY>";
const locStorageKey = "CityWeather";
function Convert2Fahrenheit( Temp2Convert )
{
// To convert Celsius to Fahrenheit:
// (0°C × 9/5) + 32
// To convert Kelvins to Fahrenheit:
// (0K − 273.15) × 9/5 + 32 = -459.7°F
return Math.floor( ((Tem... |
var $ = require('common:widget/ui/jquery/jquery.js');
var UT = require('common:widget/ui/ut/ut.js');
var hex_md5 = require('common:widget/ui/md5/md5.js');
var helper = require('common:widget/ui/helper/helper.js');
var voteTel = function(){
var that = this;
that.voteTemWrap = $("#voteTem");
that.exchangeBtn = $("#... |
var aEliminar=0;
$(document).ready(function(){
var t= $('#tablaResultadosEv tbody > tr .fechaEventualidad');
$.each(t, function(index, value){
//console.log($(this));
$(this).text(convertirDate($(this).text()));
});
$('#barraMaquinas').attr('aria-expanded','true');
$('#maquinas').removeClass();
$('... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.