text stringlengths 8.5k 48.7k |
|---|
//"use strict";
//app.LoadPlugin( "UIExtras" );
app.LoadScript( "tabs.js" );
app.LoadScript( "File-IO.js" );
app.LoadScript( "Net-IO.js" );
const APP_NAME = "PlayRustLang";
var APP_PATH = "/sdcard/" + APP_NAME;
var curFile;
function json(obj) {
return JSON.stringify(obj, null, 2);
}
function isValidFileName( ... |
const scene = new THREE.Scene();
const renderer = new THREE.WebGLRenderer();
var allInterval = [];
const audio1 = new Audio(), audio2 = new Audio(), audio3 = new Audio();
audio1.src = 'https://static.wikia.nocookie.net/minecraft_ru_gamepedia/images/a/aa/Grass_hit1.ogg';
audio2.src = 'https://static.wikia.nocookie.net/m... |
import React, { Component } from 'react'
import '../../../utils/polyfills'
import { ClaimFormValidationSchema } from './ClaimFormValidationSchema'
import { Formik, Form, Field } from 'formik'
import { feedBackClassName, feedBackInvalid } from '../shared/ValidationMessages'
import { DatePickerField } from '../shared/Dat... |
let DATA;
let PUBLIC = false;
let TAGS = new Set();
const languages = {
'3d': '3d.svg',
abc: 'abc.svg',
actionscript: 'actionscript.svg',
adonis: 'adonis.svg',
advpl_include: 'advpl_include.svg',
advpl_prw: 'advpl_prw.svg',
advpl_ptm: 'advpl_ptm.svg',
advpl_tlpp: 'advpl_tlpp.svg',
android: 'android.svg',
'ang... |
"use strict";
const Promise = require("bluebird");
const Merkury = require("merkury");
const GroupServer = require("./GroupServer.js");
const {MatchMakingConfirmation, State} = require("./dto/index.js");
const {StateUpdateLogic} = require("./logic/index.js");
const UDPServer = require("./unreliable/UDPServer.js");
c... |
const SparkMD5 = require('spark-md5');
const FileSaver = require('file-saver');
const Prando = require('prando').default;
const PotShuffle = require('./potshuffle').default;
function RGBtoColor(r, g, b) {
return (r << 16) + (g << 8) + b;
}
var ROM = (function(blob, loaded_callback, error_callback) {
var u_array ... |
import t, {
createContext as r,
useContext as n,
useCallback as e,
} from "react";
var o =
"undefined" != typeof globalThis
? globalThis
: "undefined" != typeof window
? window
: "undefined" != typeof global
? global
: "undefined" != typeof self
? self
: {},
i... |
import { IconButton, Typography } from '@mui/material';
import SendIcon from '@mui/icons-material/Send';
import React from 'react';
import {TextField} from '@mui/material';
import TuneIcon from '@mui/icons-material/Tune';
import { MythicDialog } from '../../MythicComponents/MythicDialog';
import {CallbacksTabsTaskingFi... |
/*
This is the master(main) js/JQuery override file
Use this to write custom js/JQuery code that will be universally accessible
---------Standards and Best Practices-------------------
-- 1. Make sure to always copy and paste this header to each *.js,*.css file to map the important functionality
--... |
// This is a common API to communicate between the filter and directly to the lightpack device
var fs = require("fs"),
path = require("path"),
filter = require("./lightpack-filter"),
client = require("./prismatik-client"),
device = require("./lightpack");
var API_KEY = "{15b3fc7b-5495-43e0-801f-93fe737... |
import { openSimplexNoise } from './noise'
// TODO: Add an int() method (as seen in Coding Train's Cabana #3)
const CORNER = 'CORNER'
const CENTER = 'CENTER'
const _VALID_RECT_MODES = [CORNER, CENTER]
const RADIUS = 'RADIUS'
const _VALID_ELLIPSE_MODES = [CENTER, RADIUS]
const CLOSE = 'CLOSE'
const DEFAULT = 'DEFAUL... |
const authLog = require('@cardstack/logger')('cardstack/auth');
const log = require('@cardstack/logger')('cardstack/indexing/document-context');
const { Model, privateModels } = require('../model');
const { getPath } = require('@cardstack/routing/cardstack/path');
const { merge, get, uniqBy } = require('lodash');
const... |
/* eslint-disable no-continue */
/* eslint-disable no-underscore-dangle */
/* eslint-disable prefer-destructuring */
/* eslint-disable no-undef */
'use strict';
class CalendarCreator {
constructor(container, btnPrevious, btnNext, modalInfoActions) {
this.currentDate = 0;
this.leftCalendar = 0;
this.midd... |
var margin = { top: 10, right: 10, bottom: 10, left: 10 },
padding = { top: 10, right: 10, bottom: 10, left: 10 },
vizWidth = 900,
vizHeight = 480,
plotWidth = vizWidth - margin.left - margin.right,
plotHeight = vizHeight - margin.top - margin.bottom,
panelWidth = plotWidth - padding.left ... |
// Debug logs.
function debug(args) {
//console.log('>>>', ...arguments);
}
const jQj = jQuery.noConflict(true);
// Analog jQuery.ready.
// Default DOMContentLoaded not work as need.
(function (window) {
var jReady = function (callback) {
readyBound = false;
jReady.isReady = false;
if (typeof ... |
var curPageNum = 0;
var sumPageNum = 0;
var g_maxRecoSize = 9;
var resultArray;
var propertyFilterArray;
var selectedPropertyFilter = new Array();
var searchPrefix = 'query.html?q=';
var instanceViewerURL = 'instance.html?inst=';
var query;
var isBool;
$(document).ready(initPage);
function initPage() {
bindButtons()... |
import { resolve, dirname } from 'path'
import { padTable, time, describe } from 'source/common/format.js'
import { isString, isBasicFunction } from 'source/common/check.js'
import { string, integer, basicObject, basicArray, basicFunction } from 'source/common/verify.js'
import { setTimeoutAsync } from 'source/common/... |
#!/usr/bin/env node
const FS = require( 'fs' )
const PATH = require( 'path' )
const COMMAND = require( 'commander' )
// dependency
const LINE = require( 'n-readlines' )
const COLOR = require( 'colors' )
const CONFIG = {
EXAMPLES: '../examples'
}
// module
function Gen( path ) {
this.path = path
this.stream ... |
/**
* Wheel, copyright (c) 2017 - present by <NAME>
* Distributed under an MIT license: https://arnovandervegt.github.io/wheel/license.txt
**/
const $ = require('../program/commands');
const dispatcher = require('../lib/dispatcher').dispatcher;
const VMData = require('./VMData').VMData;
class VM {
c... |
/*
Copyright 2015 <NAME>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
dist... |
class DeviceManager extends EventEmitter {
constructor() {
super();
this.video = {};
this.audio = {};
this.desktop = new Device({
deviceId: 'desktop',
groupId: '',
kind: 'desktopinput',
deviceType: 'desktop',
label: 'Desktop'
});
this.desktop.on('stream', stream... |
console.log(d3.version);
//import {helloWorld} from 'thecarriers';
//TODO: mouseover on station
//TODO: draw circle for station, size=type of station?
//TODO: MORE DATA!!
//TODO: center/reposition map
//TODO: group by carrier/train type
//TODO: add NL map boundaries
//TODO: show top 10 stations?
//TO... |
import React from 'react';
import '../styles/Home.css';
// import iframe from 'react-iframe';
// import React, { Component } from 'react';
// Component for content
function Home() {
const videoStyle = {
position: "absolute",
width:"178%",
left:"-39%",
hei... |
// LICENSE@@@
//
// Copyright (c) 2009-2013 LG Electronics, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless require... |
'use strict';
const de_webextApi = {
download: function(downloadRequest){
chrome.runtime.sendMessage(Object.assign(downloadRequest, {type: 'download'}));
},
getButtonStyle: function(){
chrome.runtime.sendMessage({type: 'button_style'});
},
switchPageStyle: function(style, turnOn = t... |
//
// keyer.js - a progressive web app for morse code
// Copyright (c) 2020 <NAME>, Charlestown, MA, USA
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or... |
var blue = "#66bd63";
var red = "#f46d43";
class ProbDist{
static gamma(z) {
var g = 7;
var C = [0.99999999999980993, 676.5203681218851, -1259.1392167224028,
771.32342877765313, -176.61502916214059, 12.507343278686905,
-0.13857109526572012, 9.9843695780195716e-6,... |
const MAX_VIDEO_RESULTS = 10;
const YOUTUBE_API_URLS = {
'channels': 'https://www.googleapis.com/youtube/v3/channels',
'playlistItems': 'https://www.googleapis.com/youtube/v3/playlistItems'
};
const YOUTUBE_API_ASSERTS = {
'channels': (response) => {
PeerError.assert(
hasChainedProperties(['items'], res... |
/*
* Uses Resource Timing API to build a page load waterfall
*
* Only currently works in IE10, and Chromium nightly builds, has a few issues still to be fixed,
* contributions welcomed!
*
* Feel free to do what you want with it, @andydavies
*
* To use, create a bookmark with the script below in, load a page, cl... |
var container, stats, controls, lineUI, gui;
var camera, scene, Backgroundscene, renderer, clock;
var lightpos, dirLight, angle;
var mainTex, normTex, emitTex, transTex, cubeMap, blurTex, colorTex;
var sphere;
var depthMaterial, composer, depthRenderTarget;
var ssaoPass;
// Custom global variables
var mouse = { x: 0... |
import { CountryModel } from '../models/country.model';
const countries = [
{ name: 'Afghanistan', alphaCode2: 'AF', alphaCode3: 'AFG' },
{ name: 'Åland Islands', alphaCode2: 'AX', alphaCode3: 'ALA' },
{ name: 'Albania', alphaCode2: 'AL', alphaCode3: 'ALB' },
{ name: 'Algeria', alphaCode2: 'DZ', alphaC... |
'use strict';
import Logger from './log.js';
const Shutdown = (err) => {
Logger.Error(err);
Logger.Log('SHUTDOWN');
process.exit(1);
};
process.on('uncaughtException', Shutdown);
process.on('unhandledRejection', Shutdown);
!process.env.TOKEN && Shutdown('Token required.');
!process.env.STORAGE && Shutdo... |
function addAssetToCanvas(nameModel, path, objFname, mtlFname, categoryName, dataDrag, translation, pluginPath){
// Add javascript variables for viewing the object correctly
let selected_object_trs = {
"translation": [translation[0], translation[1], translation[2]],
"rotation": [0,0,0],
... |
var Gimmer_Core = Gimmer_Core || {'debug':false, 'pluginCommands':{}};
Gimmer_Core.pendingCallbacks = {};
Gimmer_Core.areEventsStopped = false;
Gimmer_Core.isPlayerStopped = false;
//=============================================================================
/*:
* @plugindesc v1.5 - General plugin framework for my ... |
var ae = Object.defineProperty
var U = Object.getOwnPropertySymbols
var re = Object.prototype.hasOwnProperty,
se = Object.prototype.propertyIsEnumerable
var X = (m, o, t) =>
o in m
? ae(m, o, { enumerable: !0, configurable: !0, writable: !0, value: t })
: (m[o] = t),
I = (m, o) => {
for (var t i... |
import React from 'react';
import '../../App.css';
import MathInput from './MathInput.js';
import { genID } from './FreeMath.js';
// index in list
var STEP_KEY = 'STEP_KEY';
// long random identifier for a step, used as key for react list of steps
var STEP_ID = 'STEP_ID';
var PROBLEMS = 'PROBLEMS';
// student assignm... |
import { throttle } from 'lodash';
import d3 from 'd3';
import nv from 'nvd3';
import mathjs from 'mathjs';
import moment from 'moment';
import PropTypes from 'prop-types';
import { t } from '@superset-ui/translation';
import { CategoricalColorNamespace } from '@superset-ui/color';
import 'nvd3/build/nv.d3.min.css';
i... |
/* ==============================================================
Function: Draw radarChart
Author : <NAME>
Version : v1.0.0
Created : 14 Jan 2017
Last update : 14 Feb 2017
============================================================== */
var dataset = [[161.2, 51.6], [167.5, 59.0], [-159.5, 49.2], [157.0,... |
'use strict'
const pMap = require('p-map')
const GSet = require('./g-set')
const Entry = require('./entry')
const LogIO = require('./log-io')
const LogError = require('./log-errors')
const Clock = require('./lamport-clock')
const Sorting = require('./log-sorting')
const { LastWriteWins, NoZeroes } = Sorting
const Acce... |
import React, { useState, useEffect } from "react";
import PropTypes from "prop-types";
import { connect } from "react-redux";
import { withRouter } from "react-router";
import {
Grid, Form, Button, Icon, Label, Header, Divider, Popup, Input, Dropdown, Checkbox, Message,
} from "semantic-ui-react";
import AceEditor f... |
//TODO why global functions? use Class instead, important to find all inits in code!!!
//TODO prefetch ckeditor on button mouseover
window.initedRichTextEditors = [];
window.openedJstreeNode = false;
function initPhone() {
var telInput = $("input[js-role='phone']").intlTelInput({
initialCountry: 'us'
//utilsSc... |
/**
* YouTech menu javascript file.
*
* @author The YouTech JSC
* @package menusys
* @filesource megalib15.js
* @license Copyright (c) 2011 The YouTech JSC. All Rights Reserved.
* @tutorial http://www.smartaddons.com
* @requires Mootools 1.1
* @requires Joomla 1.5.xx
*/
/**
* Differents between... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getRandomWord = void 0;
const wordList = [
"ability", "able", "aboard", "about", "above", "accept", "accident", "according",
"account", "accurate", "acres", "across", "act", "action", "active", "activity",
"actual", "actual... |
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
const WebSocketServer_1 = __importDefault(require("./WebSocketServer"));
const fs = require('fs');
const path = require('path');
const bodyParser = require('body-parse... |
/**
* This module controls npc generation
*/
const { rnd, random } = require('./random');
const chalk = require('chalk');
const { cls } = require('./combat');
const { header, table } = require('./table');
//Synchronous readline stuff
const readline = require('readline-sync');
const fs = require('fs');
const path = re... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _htmlEntities = require("html-entities");
var _sbd = _interopRequireDefault(require("./ext/sbd"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
// div insi... |
import PropTypes from 'prop-types'
import {handleSignOut, getUser} from '../auth/auth'
import React, { Component } from 'react'
import {
Button,
Container,
Divider,
Confirm,
Header,
Icon,
Rating,
Image,
Input,
Label,
Menu,
Responsive,
Segment,
Sidebar,
Visibility,
Card,
Modal,
Dropdo... |
const fonts = [
{ name: 'eva-activity' },
{ name: 'eva-activity-outline' },
{ name: 'eva-alert-circle' },
{ name: 'eva-alert-circle-outline' },
{ name: 'eva-alert-triangle' },
{ name: 'eva-alert-triangle-outline' },
{ name: 'eva-archive' },
{ name: 'eva-archive-outline' },
{ name: 'eva-arrow-back' },
... |
const fs = require('fs');
const http = require('http');
const https = require('https');
const querystring = require('querystring');
const ytdl = require('ytdl-core');
const fileType = require('file-type');
const ytSearch = require('ytsr');
const ytPlaylist = require('ytpl');
const Discord = require('discord.js');
con... |
const {remote, shell} = require('electron')
const {Menu, MenuItem} = remote
const {dialog} = require('electron').remote
const path = require('path')
const csvsync = require('csvsync')
const fs = require('fs')
const os = require("os");
const $ = require('jQuery')
const {app} = require('electron').remote;
const appRootDi... |
function httpGet(theUrl) {
var xmlHttp = null;
xmlHttp = new XMLHttpRequest();
xmlHttp.open( "GET", theUrl, false );
xmlHttp.send( null );
return xmlHttp.responseText;
}
function roll_dice(dice_value) {
if (dice_value.includes('D') == false) {
return parseInt(dice_value);
}
var d_split = dice_value.... |
function resizeControls(vHeight, controlsWidth, m, b){
console.log('resizeControls', vHeight, controlsWidth, m, b)
d3.select("#controlsContainer")
.style('position','absolute')
.style('top',m + 'px')
.style('left',m +'px')
.style('padding',0)
//.style('padding-top','2px')
//.style('padding-right','20px') ... |
const App = (() => {
'use strict'
// Debounced resize event (width only). [ref: https://paulbrowne.xyz/debouncing]
function resize(a, b) {
const c = [window.innerWidth]
return window.addEventListener('resize', () => {
const e = c.length
c.push(window.innerWidth)
if (c[e] !== c[e - 1]) {... |
// Umbrella JS http://umbrellajs.com/
// -----------
// Small, lightweight jQuery alternative
// @author <NAME> http://francisco.io/
// @inspiration http://youmightnotneedjquery.com/
// Initialize the library
var u = function (parameter, context) {
// Make it an instance of u() to avoid needing 'new' as in 'new u()... |
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
const path_1 = require("path");
const lodash_1 = require("lodash");
const filepath_utils_1 = __importDefault(require("mmir-tooling/utils/filepath-utils"));
cons... |
/*
Copyright Mackan90096 [<EMAIL>]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... |
/**
* mockAward.js
* Created by <NAME> 3/9/17
*/
export const mockAward = {
selectedAward: {
id: 57557,
award_id: 'DEAC0494AL85000',
recipient_name: '<NAME>',
description: 'MANAGEMENT AND OPERATION OF SANDIA NATIONAL LABORATORIES BY SANDIA CORPORATION, CONTRACT NO. DE-AC04-94AL85... |
var iid,gender_flg,_gender,item_nm;
// setInterval(function() {
// console.log(document.readyState);
// },1000);
// setInterval(function() {
// console.log(document.readyState);
// console.log(window.onload);
// },1000);
$(document).ready(function(e) {
// $('.history-btn').click(function() {
// ... |
/* 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/. */
"use strict";
dump("######################## BrowserElementChildPreload.js loaded\n");
var BrowserElementIsReady... |
/*
* Generate a svg timeline with javascript.
* Based on https://github.com/jasonreisman/Timeline written in python.
* Slightly documented: https://github.com/linkviii/Timeline
*
* See README.md
*
* v 2021-05-14
* (Try to change with new features. Not strict.)
*
* MIT licensed
*/
// console.info("init strf... |
/* Binära prefix */
const KIBI = 1024;
const MEBI = KIBI * 1024;
const GIBI = MEBI * 1024;
const TEBI = GIBI * 1024;
var ipreg = /^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/
function alert(clazz, title... |
async function initResearch(){
spinnerLoad = document.getElementById('spinnerLoad');
await loadUserData();
// Only moderators allowed
if (! user.moderator) return;
initPage();
initSearchBar();
const url = new URL(location.href);
const searchHealthDead = url.searchParams.get('hd');
const search... |
//全局变量
var _mainMenu =
{
//浏览器是否IE版本
isIE: true,
//菜单快捷键对应按键c:67,o:79,u:85,t:84,i:73,s:83,a:65,m:77,r:82如果菜单要增加或者减少,这里请相应对调整,这里的顺序和菜单的排列顺序必须保持一致
_menuKey: [],
//一级菜单是否展开
topMenuTF: false,
//二级菜单是否展开
secMenuTF: false,
//当前展开的菜单在按键数组中的位置
actNmenuNum: 0,
//当前展开二级菜单的一级菜单项的位置
topactMenuNum: -1,
//顶级菜单
tmTF: tr... |
/*
TO DO
- make next and prev on data viz work using arrow keys
- remove name from data viz overview (just use css to hide it)
NICE TO HAVE - not going to happen!
- allow comparison of two graphs? have a double iframe
- MULTIPLE LEVELS ( I think this will just be too hard )
- Paulina ID 2
- Monik... |
/*
regex.test.js: Testing for functions provided by the regular expression class
*/
const assert = require('assert');
const RE = require('../src/regex.js');
// convenience for constructing output from RegularExpression.matches
function match(begin, end, content) {
return { begin, end, content };
}
describe('reco... |
import React, { Component } from 'react';
import styled from 'styled-components';
import { ContainerFluid, media } from '../../style/containers';
import colors from '../../style/colors';
import gradients from '../../style/gradients';
import fonts from '../../style/font-styles';
import trans from '../../trans';
import U... |
/** @license MIT License (c) 2011,2012 Copyright Tavendo GmbH. */
/**
* AutobahnJS - http://autobahn.ws
*
* A lightweight implementation of
*
* WAMP (The WebSocket Application Messaging Protocol) - http://wamp.ws
*
* Provides asynchronous RPC/PubSub over WebSocket.
*
* Copyright 2011, 2012 Tavendo GmbH. Lic... |
import utils from '@/utils/util';
import course_child_video from './course_child_video.js';
import course_open_class from './course_open_class.js';
import course_study_background from './course_study_background.js';
import course_train from './course_train.js';
const state = {
// 设置属性
deleteCourseMessage: null,
... |
const fs = require("fs");
const Discord = require("discord.js");
const ticketSystem = require('djs-ticketsystem');
const bdd = require("./bdd.json");
var ffmpeg = require('ffmpeg');
const {MessageEmbed} = require('discord.js')
const Bot = new Discord.Client({ partials: ['MESSAGE', 'CHANNEL', 'REACTION']});
const Confi... |
/* eslint-disable react-hooks/exhaustive-deps */
import React from "react";
import ReactTimeAgo from "react-time-ago";
import { Form, Button, Row, Col, Card, Modal, Dropdown } from "react-bootstrap";
import { Bookmark, BookmarkFill } from "react-bootstrap-icons";
import { useParams, useHistory } from "react-router-dom"... |
/* global base_url, google, bootbox, parseFloat, angular */
"use strict";
var app = angular.module('app', ['ui.bootstrap', 'ui.grid', 'ui.grid.pagination', 'ui.grid.autoResize', 'ui.grid.pinning', 'ui.grid.resizeColumns', 'ui.grid.selection']); //'ngTouch',
$( document ).ready(function() {
var map;var mark... |
/// <reference path="../jquery-1.6.1-vsdoc.js" />
/// <reference path="../raphael.js" />
/// <reference path="estado.js" />
/// <reference path="../json2.js" />
var Diagrama = function (posX, posY, sizeX, sizeY) {
var self = this;
var countEstado = 0;
var uid = 0;
this.paper = null;
this... |
import { WRAP_ARY_FLAG, WRAP_BIND_FLAG, WRAP_BIND_KEY_FLAG, WRAP_CURRY_FLAG, WRAP_CURRY_RIGHT_FLAG, WRAP_FLIP_FLAG, WRAP_PARTIAL_FLAG, WRAP_PARTIAL_RIGHT_FLAG, WRAP_REARG_FLAG } from "./CONSTANTS";
import toSource from "./toSource";
import overArg from "./overArg";
/** Used to associate wrap methods with their bit fl... |
"use strict";
var http_1 = require("@angular/http");
var Observable_1 = require("rxjs/Observable");
var ApiConfig = (function () {
function ApiConfig() {
}
ApiConfig.getApiUrl = function () {
return "http://cmsdev.helpfooter.com/alucard263096/drewface/api/";
};
ApiConfig.getUploadPa... |
let socket;
let freezeUpdatesUntil = -1;
let masterVersion = undefined;
let exportTableSettings = {};
let connStatusChangeTime = Date.now();
let onlineSlavesBackup;
let onlineSlavesDedupSorted;
let showOfflineClients = false;
let showOfflineSlaves = false;
let mostRecentHideClientTime = Date.now();
let mostRecentHideSl... |
"use strict";
// Size of a cube/block
var BLOCK_SIZE = 8;
var ROOM_WIDTH = 32;
var WALL_WIDTH = 16;
var WALL_HEIGHT = 8;
var MARGIN = 1;
var GROUND_WIDTH = ((Cave.COLS*2)-1) * WALL_WIDTH; // 11
var GROUND_HEIGHT = ((Cave.ROWS*2)+2) * WALL_WIDTH; // 12
// Are we inside the labyrinth or looking at the QR Code in zoo... |
'use strict';
/*
* Created with @iobroker/create-adapter v1.11.0
*/
// The adapter-core module gives you access to the core ioBroker functions
// you need to create an adapter
const utils = require('@iobroker/adapter-core');
const MAXCHANNELS = 10;
var net = require('net');
var matrix;
var recnt;
var connection = ... |
import { fill, error, promisifyEmit, mixin, ensureArray, assert, jsonHash, tryPromise } from '../util';
import EventEmitterMixin from './event-emitter-mixin';
import _ from 'lodash';
import uuid from 'uuid';
import EventEmitter from 'eventemitter3';
const OP_TYPE = Object.freeze({
CREATE: 'CREATE',
ASSIGN: 'ASSIGN... |
import React, { Component } from 'react'
import ReactDOM from 'react-dom'
import axios from 'axios'
import MenuPrincipal from '../components/MenuPrincipal'
import Input from '../components/Input'
const FormValid = require('../lib/FormValidation.js')
export default class AdminUserModifier extends Component {
/*
... |
/*
* demo-date.js - define the scripts used by the demo
*
* Copyright © 2012-2014, 2018, JEDLSoft
*
* 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/licen... |
$(document).ready(function() {
//设置easyui-messager默认确认和取消按钮的文本显示
$.messager.defaults={ok:"确认",cancel:"取消"};
//单选框取消选择功能
$(":radio").click(function(){
var name = this.name;
var value = this.value;
var $parent = $(this).parent();
//在父节点上保存key, value
var radioValue = $parent.data(name);
if(radioValue == ... |
$(document).ready(function(){
classificationData();
initAll();
});
$(document).on("change","#classificationSelect", function(){
let classificationID = $(this).val();
$("#table_content").html(preloader);
setTimeout(() => {
initDataTables();
tableContent(classificationID);
}, 100)... |
// Unify messaging method - And eliminate callbacks (a message is replied with another message instead)
function messaging( message, tab, callback ) {
if (background_debug_msg > 5) mpDebug.log('%c Sending message to content:','background-color: #0000FF; color: #FFF; padding: 3px; ', message, tab);
else if (backgroun... |
////////////////////// DONNEES GLOBALES //////////////////////
/*
* Définition de quelques codes de touches du clavier utilisées dans le jeu.
*/
const KEY_DOWN_ARROW = 40;
const KEY_F = 70;
const KEY_LEFT_ARROW = 37;
const KEY_RIGHT_ARROW = 39;
const KEY_UP_ARROW = 38;
/*
* Définition des différen... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.createSpeechRecognitionPonyfillFromRecognizer = createSpeechRecognitionPonyfillFromRecognizer;
exports.default = void 0;
var _regenerator = _int... |
import { CollisionDetector } from './CollisionDetector';
import { _Math } from '../../math/Math';
import { Vec3 } from '../../math/Vec3';
function CylinderCylinderCollisionDetector() {
CollisionDetector.call( this );
this.n = new Vec3();
this.p = new Vec3();
this.d = new Vec3();
... |
/* eslint-disable import/no-webpack-loader-syntax */
/* eslint-disable import/no-unresolved */
import QrScanner from 'qr-scanner'
import sortBy from 'lodash/sortBy'
import Swal from 'sweetalert2'
import QrScannerWorkerPath from '!!file-loader!../../../../../node_modules/qr-scanner/qr-scanner-worker.min'
import APIData ... |
import "./style.css"; // For webpack support
import {
Clock,
Raycaster,
Vector2,
WebGLRenderer,
sRGBEncoding,
Scene,
Color,
PerspectiveCamera,
PointLight,
Mesh,
PlaneGeometry,
MeshPhongMaterial,
ConeGeometry,
MeshBasicMaterial,
Vector3,
AmbientLight,
DirectionalLight,
DoubleSide,
... |
///////////////////////////////////////////////////////////////////////////////
// Directives
///////////////////////////////////////////////////////////////////////////////
"use strict";
require(["app/vncanvas-fx"]);
///////////////////////////////////////////////////////////////////////////////
// Local Helpers
////... |
const ETHERNET_HEADER_LENGTH = 14;
const PROTOCOL_TCP = 1;
const PROTOCOL_UDP = 2;
const SOURCE_PORT = 1;
const DEST_PORT = 2;
/**
* Contains all layer 4 protocols defined in the IPv4 protocol.
* @type {*[]}
*/
const L2_PROTOCOL_MAP = [ { "ethertype": "", "protocol": "" }, {
"ethertype": "0x0800",
"protocol":... |
var ownId, groundId;
var movementSpeed = 80;
var totalObjects = 1000;
var objectSize = 5;
var sizeRandomness = 4000;
var dirs = [];
var parts = [];
var colors = [0xFF0FFF, 0xCCFF00, 0xFF000F, 0x996600, 0xFFFFFF];
var hit = new Audio('assets/sound/sound.mp3');
var catchBall = new Audio('assets/sound/catch.wav');
var got... |
// ---------------------------------------------------------
// siamz.smallworld-magik
// ---------------------------------------------------------
'use strict';
const vscode = require('vscode');
const { exec } = require('child_process');
const fs = require("fs");
const os = require("os");
const codeBrowser = require... |
function modmailpro() {
if (!TBUtils.isModmail || !TBUtils.logged || !TBUtils.getSetting('ModMailPro', 'enabled', true))
return;
$.log('Loading MMP Module');
var $body = $('body');
var ALL = 0, PRIORITY = 1, FILTERED = 2, REPLIED = 3, UNREAD = 4, UNANSWERED = 5; //make a JSON object.
... |
const { program } = require('commander');
const fs = require('fs');
const crypto = require('crypto');
const readline = require('readline');
const { once } = require('events');
const mqtt = require('mqtt');
const { crc16update, crc32firmware } = require('./crc');
// The Intermatic manufacturer ID for ZWave products.
co... |
//3456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_
// (JT: why the numbers? counts columns, helps me keep 80-char-wide listings)
//
// TABS set to 2.
//
// ORIGINAL SOURCES:
// Chap 5: TexturedQuad.js (c) 2012 matsuda and kanda
// "WebGL Programming Guide" pg. 163
// RotatingTr... |
"use strict";
/*
* @copyright Leyun internet Technology(Shanghai)Co.,Ltd
* @license http://www.dzzoffice.com/licenses/license.txt
* @package DzzOffice
* @link http://www.dzzoffice.com
* @author zyx(<EMAIL>)
*/
var _explorer = {};
_explorer = function (json) {
_explorer.space = json.space; /... |
// MIT License
//
// Copyright 2016-2017 Electric Imp
//
// SPDX-License-Identifier: 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 limitatio... |
/*
MIT License
Copyright (c) 2021 JaonHax
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, pub... |
/*jslint node: true, indent: 4, maxlen: 80 */
/*properties
annotations, contributors, coordinates, created_at, current_user_retweet,
entities, exports, favorite_count, favorited, filter_level, format, geo,
hasOwnProperty, id, id_str, in_reply_to_screen_name, in_reply_to_status_id,
in_reply_to_status_id_... |
"use strict";
require("core-js/modules/es.symbol");
require("core-js/modules/es.symbol.description");
require("core-js/modules/es.symbol.iterator");
require("core-js/modules/es.array.concat");
require("core-js/modules/es.array.filter");
require("core-js/modules/es.array.for-each");
require("core-js/modules/es.ar... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.