text stringlengths 5.97k 41.2k |
|---|
/* jshint -W097 */
/* jshint strict: false */
/* jslint node: true */
'use strict';
const utils = require('@iobroker/adapter-core');
class Trashschedule extends utils.Adapter {
constructor(options) {
super({
...options,
name: 'trashschedule',
useFormatDate: true
... |
'use strict';
if (typeof module === 'object' && module && module.exports)
module.exports = Thunk;
Thunk.aa = aa;
Thunk.Channel = Channel;
Thunk.all = all;
Thunk.race = race;
var nextTick = typeof setImmediate === 'function' ? setImmediate :
function nextTick(cb) { setTimeout(cb, 0); };
//=========================... |
import "antd/es/form/style";
import _Form from "antd/es/form";
import "antd/es/space/style";
import _Space from "antd/es/space";
import "antd/es/button/style";
import _Button from "antd/es/button";
import "antd/es/steps/style";
import _Steps from "antd/es/steps";
import "antd/es/config-provider/style";
import _ConfigPr... |
//******************************************************************************************************
// pagedViewModel.js - Gbtc
//
// Copyright © 2016, Grid Protection Alliance. All Rights Reserved.
//
// Licensed to the Grid Protection Alliance (GPA) under one or more contributor license agreements. See
// ... |
//scene to hold the task, in first context A. routes to 'next stage' scene 1
//import js game element modules (sprites, ui, outcome animations, etc.)
import Player from "../elements/player.js";
import Robot1 from "../elements/robo1.js";
import Robot2 from "../elements/robo2.js";
import RatingPanel from "../elements/ra... |
import { useEffect } from "react";
import { CONSTANTS } from "../../../Utils/Constants";
import Theme from "../../../Utils/theme";
import Flex from "../Container";
import Text from "../Text";
import WebsiteIcon from "../WebsiteIcon";
import InterestController from "./Interests";
import Gradient from "../../Assets/Image... |
import React, { useState, useEffect, useRef } from "react";
import { useTranslation } from "react-i18next";
import { Dropdown, DatePicker, Toast } from "@egovernments/digit-ui-react-components";
import * as func from "./Utils/Category";
import { FormComposer } from "../../components/FormComposer";
import { sortDropdown... |
import React from 'react';
import BattleMovedex from './moves';
import BattleItems from './items';
import { calcMovedex } from './pokedex-calc';
class Analysis {
constructor(id) {
this.id = id;
this.type = 'offense';
this.name = '';
this.mon = '';
this.damage = 0;
this.isKO = false;
this.move = '';
t... |
import React, { Component } from 'react';
import { Link } from 'react-router-dom'
import PropTypes from 'prop-types'
import serializeForm from 'form-serialize'
import TimePriceSelect from './TimePriceSelect'
import * as RegisterApi from '../utils/RegisterApi'
import * as CheckVariable from '../utils/CheckVariable'
imp... |
var util = require('util')
, events = require('events')
, uglify = require('uglify-js')
, jsp = uglify.parser
, pro = uglify.uglify
, fs = require('fs')
, jsdom = require('jsdom')
, async = require('async')
, request = require('request')
, websocket_multiplex = require('websocket-multiplex');
var wor... |
var mydata = [
{ id: "1",more_value: ""},{ id: "2",more_value: ""},{ id: "3",more_value: ""},{ id: "4",more_value: ""},{ id: "5",more_value: ""}];
var last_scan_ele;
var vm = new Vue({
el:'#rrapp',
data:{
showList:false,
lgortList:[],
wh_list:[],
werks:'',
relatedareaname:[],//仓管员
whNumber:'',
sobk... |
/*
* Copyright 2013 Jive Software
*
* 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 l... |
/**
* @license
* Copyright © 2017-2018 Moov Corporation. All rights reserved.
*/
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import SwipeableViews from 'react-swipeable-views'
import withStyles from '@material-ui/core/styles/withStyles'
import ChevronLeft from '@material-ui/icons/Che... |
const BigNumber = require('bignumber.js')
const _ = require('lodash')
const { encodeB32, decodeB32, pubkeyToAddress } = require('../tools')
const { UserInputError } = require('apollo-server')
const { getNetworkGasPrices } = require('../../data/network-fees')
const { fixDecimalsAndRoundUpBigNumbers } = require('../../co... |
import $ from "jquery";
import _ from "underscore";
$.fn.safeClone = function() {
var $clone = this.clone();
// IE BUG : Placeholder text becomes actual value after deep clone on textarea
// https://connect.microsoft.com/IE/feedback/details/781612/placeholder-text-becomes-actual-value-after-deep-clone-on-t... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MetaStorage = void 0;
const hyper_graphdb_1 = require("hyper-graphdb");
const graphObjects_1 = require("./graphObjects");
const errors_1 = require("hyperdrive/lib/errors");
const crypto_1 = require("./crypto");
const certacrypt_crypto_... |
'use strict';
require('babel-polyfill');
var gulp = require('gulp');
var gulpLoadPlugins = require('gulp-load-plugins');
var del = require('del');
var lazypipe = require('lazypipe');
var sseries = require('stream-series');
var chalk = require('chalk');
var crypto = require('crypto');
var fs = require('fs');
var hashs... |
"use strict";
cc._RF.push(module, 'fa978eEx9FOL6gmIAzVqdRP', 'rollnotice');
// modules/public/script/notice/rollnotice.js
"use strict";
var NOTICE_PLAZA = 0; //大厅跑马
var NOTICE_PUBLIC = 1; //普通跑马
var NOTICE_PUBLIC2 = 2; //普通跑马2
var NOTICE_HORIZONTAL = 1; //垂直滚动
var NOTICE_VERTICAL = 2; //特殊跑马
var HtmlTextParser =... |
const ASSERT = require("assert");
const PATH = require("path");
const FS = require("fs-extra");
const URL = require("url");
const HTTP = require("http");
const HTTPS = require("https");
const CRYPTO = require("crypto");
const TUNNEL = require("tunnel");
const Q = require("q");
const DEEPCOPY = require("deepcopy");
con... |
/*
* 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
* distributed u... |
const fs = require('fs');
const path = require('path');
const utilities = require('../utilities.js');
const FileBackedCollection = require('../FileBackedCollection.js');
//holds the number of events to store in memory before writing the events to
//an intermediate file of events
const MAX_BUFFER_SIZE = 10;
class Ev... |
/*
Wallet.js - osirem.com
Copyright OSIREM LTD (C) 2016
www.osirem.com www.qage.org www.geopomp.com
This source is proprietary, and cannot be used, in part or in full without
the express permission of the original author. The original author retain the
rights to use, modify, and/or relicense this code without... |
var frameModule = require("ui/frame");
var Image = require("tns-core-modules/ui/image").Image;
const Label = require("tns-core-modules/ui/label/").Label;
const GridLayout = require("tns-core-modules/ui/layouts/grid-layout").GridLayout;
const StackLayout = require("tns-core-modules/ui/layouts/stack-l... |
import isFinite from 'lodash/isFinite';
import VirtualScroller from './VirtualScroller';
import BoundedCache from './BoundedCache';
import { decodeKeydown } from './util';
const CLASS_BOX_PREVIEW_THUMBNAIL = 'bp-thumbnail';
const CLASS_BOX_PREVIEW_THUMBNAIL_NAV = 'bp-thumbnail-nav';
const CLASS_BOX_PREVIEW_THUMBNAIL_I... |
var max_file_bytes;
var current_max_page = 1;
var has_more_content = true;
var loading_stuff = false;
window.onload = init_dank;
// start up the dankness
function init_dank() {
console.log('initializing dank systems...');
// handle nsfw toggle clicks
var nsfw_toggle = document.getElementById('nsfw-hide-toggle'... |
window.Trails = false;
// STANDARDS:
// measure: radius 100KMs
// measure: dist 1,000,000KMs
// measure: planet_mass earth masses
const GAMMA_GRAV_CONST = 1; // Makes things waaay simpler for now
const SQRT = Math.sqrt;
const ABS = Math.abs;
const POW = Math.pow;
const STAR_SHRINK_FACTOR = 150;
const PLANET_SHRINK_FA... |
var bLoginTriggered = false;
$(document).ready(function() {
$('button.stop, a.stop, input.stop, [type="submit"].stop, select.stop').click(function(e) {
e.preventDefault(); e.returnValue = false;
$("select.stop").prop("disabled", true);
$(this).blur();
return false;
});
if (checkCookie('prev_latlng') == fals... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = exports.keepStreamAlive = exports.userEventHandler = void 0;
var _lodash = _interopRequireDefault(require("lodash.zipobject"));
var _httpClient = _interopRequireDefault(require("./http-client"));
var _openWebsocket = _i... |
var that = this;
function __skpm_run (key, context) {
that.context = context;
var exports =
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/****... |
/*
Copyright (c) 2010 - 2017, Nordic Semiconductor ASA
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of... |
'use strict';
/* global Rectangle, Vector, Particle */
var Sink = function (x, y, r, force, isSource) {
var i, degtorad = Math.PI / 180;
this.base = Rectangle;
this.radius = r || 15;
this.base(x, y, 2 * this.radius, 2 * this.radius, 0);
this.force = force || 1;
this.speed = 10;
this.isSourc... |
function getSvgTextWidth(fontSize, obj) {
var testBox, width;
testBox = '<svg id="TestBoxGetSvgTextWidth" style="position:absolute;visibility:hidden;"><text id="TestGetSvgTextWidth" style="height:auto;width:auto;">'+obj+'</text></svg>';
$('body').append(testBox);
width = document.getElementById('TestGetSvgTextWid... |
/**
* @typedef {number} GSoundStatus
* @typedef {number} GToneFrequency
* @typedef {string | number | GToneFrequency} GToneInput
* @typedef {Array<[Array<GToneInput>, number]>} GTonesSequenceInput
**/
/**
* @enum {GSoundStatus}
*/
const GSoundStatus = {'off': 0, 'fx': 1, 'music': 2};
/**
* Static instance of ... |
import React from 'react'
import PropTypes from 'prop-types'
import moment from 'moment'
import { Divider, Typography, Collapse, Icon, Row, Col, List, Button, Form, Card, Badge, message, Drawer, Tooltip } from 'antd'
const { Paragraph, Text } = Typography
import getConfig from 'next/config'
const { publicRuntimeConfig ... |
'use strict';
const extend = require('extend');
const ws = require('ws');
const https = require('https');
const log = new (require('basic-logger'))({ showTimestamp: true, prefix: 'Room' });
const DJQueue = require('./djqueue.js');
const Roles = require('./role');
const DB = require('./database');
const nconf = require(... |
// https://observablehq.com/@jimpick/provider-quest-storage-ask-scanner@2175
import define1 from "./5cf93b57a7444002@222.js";
import define2 from "./a957eb792b00ff81@406.js";
import define3 from "./c4e4a355c53d2a1a@111.js";
function _1(md){return(
md`# Internal: Scanner: Asks [Provider.Quest]`
)}
function _2(md){retu... |
title = "GROOVER";
description = `
[PRESS] to jab
`;
characters = [
`
r
`,
];
const G = {
WIDTH: 100,
HEIGHT: 100,
PLAYER_ROTATION_SPEED: (2 * Math.PI) / 71.991,
BEAT_RADIUS: 6,
BEAT_THICKNESS: 5,
BEAT_DISTANCE: 21,
BEAT_ROTATION_MOD: .44,
BEAT_ARC_LENGTH: .3,
BEAT_TRIANGLE_MOD1: .35,
SPIKE_BASE_LENGTH:... |
/**
* Adapted from https://github.com/arhs/iban.js
*
* Copyright (c) 2013-2020 ARHS Developments SA
*
* 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 wit... |
var data, charactersRaw, characters, charactersTopicRaw, charactersTopic;
var latoL;
var x = 0;
var y = 0;
var wordsToDisplay = 30;
var minIndex, maxIndex;
var canScroll = true;
var focusCharacter;
var focusIndex;
var viewLesson = true; // true = by lesson, false = by topic
var showInfo = false;
var unitColors = {
A... |
/*
* File: HomeMaticSPGarageDoorAccessory.js
* Project: hap-homematic
* File Created: Sunday, 29th March 2020 5:32:18 pm
* Author: <NAME> (<EMAIL>)
* -----
* The MIT License (MIT)
*
* Copyright (c) <NAME> <<EMAIL>> (https://github.com/thkl)
*
* Permission is hereby granted, free of charge, to any person obtai... |
//TODO: clean this up to follow node js module way
var fs = require('fs');
var path = require('path');
var _ = require('underscore');
/**
* @global
* @class ScoreDecoder
* @type {{decode: Function, decodeFromFile: Function, getGameMappingStructure: Function, getGameMapping: Function}}
*/
module.exports = {
dec... |
/* eslint-disable no-unused-vars */
// Rule disabled temporarly as filters will be added back.
import { Layout, Spin, Pagination, Tag, Select, Switch } from 'antd'
import { Link } from 'react-router-dom'
import React, {
useEffect,
useState,
useContext,
useMemo,
useRef,
useCallback
} from 'react'
import Prop... |
/*
* 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 ... |
import React, {useEffect, useState} from 'react';
import { makeStyles, withStyles } from '@material-ui/core/styles';
import Snackbar from '@material-ui/core/Snackbar';
import MuiAlert from '@material-ui/lab/Alert';
import GridItem from "components/Grid/GridItem.js";
import GridContainer from "components/Grid/GridContai... |
import {OutputNode} from '../Node.js';
import {LineOutput} from './LineOutput.js';
import { getThreeEnvironment } from '../ThreeEnvironment.js';
import { vShader, fShader, uniforms } from './SurfaceOutputShaders.js';
class SurfaceOutput extends OutputNode{
constructor(options = {}){
super();
/* should be .add()ed... |
const Span = require('./Span')
const permutate = require('./permutate')
module.exports.tests = {}
function getSpans (spans, ...indexes) {
return indexes.map(i => spans[i])
}
module.exports.tests.permutate = (test) => {
test('permutate: simple', (t) => {
let spans = Span.connectSiblings(
new Span('SoHo'... |
const helper = require('./adapterHelper');
function isMapSubSetChannel(id) {
return isSpotAreasChannel(id) || isVirtualBoundariesChannel(id);
}
function isSpotAreasChannel(id) {
return !!id.includes('.spotAreas.');
}
function isVirtualBoundariesChannel(id) {
return !!id.includes('.virtualBoundaries.');
}... |
const timer = require('timers');
const request = require('request');
const { Constants, ErrorHelper } = require('eae-utils');
/**
* @class JobsScheduler
* @desc Periodic scheduling and managing of jobs - Job Statuses Managed: Queued, Error, Cancelled, Done
* @param mongoHelper Helper class to interact with Mongo
... |
'use strict';
// handles replies to threads
var db = require('../../db');
var boards = db.boards();
var posts = db.posts();
var reports = db.reports();
var threads = db.threads();
var logger = require('../../logger');
var common;
var overboardOps;
var formOps;
var referenceHandler;
var r9k;
var uploadHandler;
var lan... |
import React, { Component } from 'react';
import { Helmet } from 'react-helmet';
import 'antd-mobile/dist/antd-mobile.min.css';
import browser from './common';
import './common.scss'
import './forumTemp.scss'
import Http from '../../utils/http';
import Utils from '../../utils/DMCUtil';
import { SERVER_BASE_PATH, UPLOAD... |
/**
Copyright 2014-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the License. A copy of the License is located at
http://aws.amazon.com/apache2.0/
or in the "license" file accompany... |
const data = {
'eresource': {
'id': '8f275ebf-6255-4d4b-9a31-903d4391a319',
'subType': {
'id': '2c91809c7d30b7b0017d30bef9080007',
'value': 'electronic',
'label': 'Electronic'
},
'dateCreated': '2021-11-18T02:24:45Z',
'tags': [],
'lastUpdated': '2021-11-18T02:24:45Z',
'no... |
var shipType = {
CARRIER: 5,
BATTLESHIP: 4,
CRUISER: 3,
SUBMARINE: 2,
DESTROYER: 1,
NONE: 0
};
class ai {
constructor(){
}
generateRandomNumber(min, max, availableNumbers){
if(typeof availableNumbers === "undefined"){
return Math.round(Math.random() * (max-min) + min);
}else{
var number;
do {
... |
// -*- mode: js; indent-tabs-mode: nil; js-basic-offset: 4 -*-
//
// This file is part of Genie
//
// Copyright 2020 The Board of Trustees of the Leland Stanford Junior University
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
//... |
var marks = [];
var bodies = [];
var trans = [];
var colors = [];
var engines = [];
var drives = [];
var ads = [];
var curUser = {};
var isLoged;
var all = false;
// Метод, старабывающий при загрузке страницы
// Наполняет HTML дефолтными данными
$.ajax({
url: "./list",
method: "get",
success: function (dat... |
/*
* @Description: In User Settings Edit
* @Author: xi.guo
* @Date: 2019-08-06 11:24:02
* @LastEditTime: 2019-08-21 16:44:57
* @LastEditors: chaos.dong
*/
import React, { Component } from 'react';
import { connect } from 'react-redux';
import LazyLoad from 'react-lazyload';
import cls from 'classnames';
import { ... |
/**
*
* ©2016-2017 EdgeVerve Systems Limited (a fully owned Infosys subsidiary),
* Bangalore, India. All Rights Reserved.
*
*/
var async = require('async');
var inflection = require('inflection');
var logger = require('oe-logger');
var log = logger('uimetadata');
/**
* @classdesc This model stores the form defini... |
var gl;
const {mat2, mat3, mat4, vec2, vec3, vec4} = glMatrix; // Now we can use function without glMatrix.~~~
function testGLError(functionLastCalled) {
/* gl.getError returns the last error that occurred using WebGL for debugging */
var lastError = gl.getError();
if (lastError != gl.NO_ERROR) {
... |
import dynamic from "next/dynamic"
import Editorial from "highline/components/contentful/contentful_editorial"
import ContentBlock from "highline/components/contentful/contentful_content_block"
import ContentfulProductTileContainer from "highline/containers/contentful_product_tile_container"
import Video from "highline... |
/**
* Created by josh on 3/20/16.
*
*
new model. there are multiple layers
each layer is the same size as the overall model.
each layer has an attached opacity. there is no alpha channel since that doesn't make much sense for indexed colors (right?)
setting the pixel automatically sets it on the currently select... |
/********************************************************************************/
/* this file is part of: / diese Datei ist ein Teil von: */
/* tellmatic, the newslettermachine */
/* tellmatic, die Newslettermaschine ... |
var AppDispatcher = require('../dispatcher/AppDispatcher');
var _ = require('lodash');
var moment = require('moment');
var StoreBase = require('../lib/StoreBase');
var TableActions = require('./TableActions');
var ActionTypes = TableActions.actionTypes;
/**
* A Table requires a definition to operate upon. The table ... |
/*
PAGELAYER
http://pagelayer.com/
(c) Pagelayer Team
*/
var pagelayer_doc_width;
// Things to do on document load
jQuery(document).ready(function(){
// Current width
pagelayer_doc_width = jQuery(document).width();
// Rows
jQuery('.pagelayer-row-stretch-full').each(function(){
pagelayer_pl_row_full(jQuery(t... |
//const { geteuid } = require("process");
// Handle any errors from Checkout
var handleResult = function(result) {
console.log('[stripe] handleResult',result);
/* if (result.error) {
console.log('[stripe] checkout error',result);
alert('[stripe] checkout error',result);
// var displ... |
function SVGElement(parent, id, name, description) {
this.parent = parent;
this.id = id;
this.name = name;
this.description = description;
this.svgNS = this.parent.getSVG().namespaceURI;
}
SVGElement.prototype = {
getSVG : function () {
return this.element;
}
}
function SVGGrou... |
import { delay } from '../../../test-util/wait';
import * as pdfAnchoring from '../pdf';
import { matchQuote } from '../match-quote';
import { TextRange } from '../text-range';
import FakePDFViewerApplication from './fake-pdf-viewer-application';
/**
* Return a DOM Range which refers to the specified `text` in `cont... |
var authentication = require('vox-common/authentication');
var Chain = require('vox-common/chain');
var colors = require('colors');
var debug = require('debug')('vox:interactive-controller');
var errors = require('vox-common/errors');
var moment = require('moment');
var P = require('bluebird');
var urlparse = require('... |
/*
// Template Name : Frostofolio - Fully Responsive Personal Template
// Author : Zen Developer
// Version : 1.0.0
// Copyright : Copyright 2021 by Zen Developer
// Created : March 2021
// File Name : Main of JS file
portofolio
*/
const personalInfo = {
name: "<NAME>",
birthday: "Atl... |
/*
* This file is part of the Companion project
* Copyright (c) 2018 Bitfocus AS
* Authors: <NAME> <<EMAIL>>, <NAME> <<EMAIL>>
*
* This program is free software.
* You should have received a copy of the MIT licence as well as the Bitfocus
* Individual Contributor License Agreement for companion along with
* thi... |
let colmuns = [
{
data: "name",
render: function (data, type, row) {
return '<span class="rules-name" data-id="' + row.id + '">' + data + '</span>'
}
}, {
data: "indicators",
render: function (data, type, row) {
... |
import React from 'react';
import ReactGA from 'react-ga';
import styled from 'styled-components';
import { Link } from 'react-router-dom';
import BurgerMenu from '../components//header/burger';
import MiniHeader from '../components/header/mini-header';
import Content from '../components/content';
import List from '../... |
/*jshint esversion: 6 */
var EditSession = undefined;
var editor = undefined;
// EditSessions per file
var codepad_sessions = [];
// file sources provided in URL
var codepad_shared_sources = [];
// all available scenes
var scenes = [];
var default_script = `function init(self)
end
function final(self)
end
func... |
import { useState } from 'react';
import Link from 'next/link'
import { getStressPanel } from '../components/stressPanel.js';
import { buildThrottle, clearState, handleResult, coRRHandlers, coRR4Handlers, coWWHandlers, coWRHandlers, coRW1Handlers, coRW2Handlers, atomicityHandlers, barrierLoadStoreHandlers, barrierStore... |
// Candy Generator!
// Requires JQuery and D3 and a candy.json!
class CandyGen {
// Copyright © 2021 <NAME> MIT License
// See github.com/vsoch/candy-generator for full license
// Keep record of candy bases!
items = {
templates: [],
choices: {}
};
// The constructor is call... |
const cachedUsers = [];
const cachedMesages = [];
const cachedChannels = [];
const cachedTyping = {};
let gatewayInfo = null;
let currentChannel = null;
function setUsers(users) {
const usersElement = $('#users');
usersElement.empty();
users.forEach((user, index) => {
cachedUsers.push(user);
const element = ... |
// Other interfaces are singleton, but this one needs to interact with the RankingInterface
var object = new interfaceObject();
object.init();
function interfaceObject(){
var battle;
var gm = GameMaster.getInstance();
var ranker = RankerMaster.getInstance();
var rankingInterface = InterfaceMaster.getInstance();... |
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.AppSyncModelDartVisitor = void 0;
const appsync_visitor_1 = require("./appsync-visitor");
const ... |
/**
* Round
* wangxm 2018-01-07
*/
const bignum = require('@ddn/bignum-utils');
const slot = require('./slot');
const constants = require('../../constants');
const RoundChanges = require('./round-changes');
var _singleton;
class Round {
static singleton(context) {
if (!_singleton) {
_sin... |
var preData = "nec ";
var commands = {
'all.ZONE_CONTROL_PARTY_OFF' : '0x7E816C92',
'all.ZONE_CONTROL_PARTY_ON' : '0x7E81AC52',
'all.PROGRAM_ENHANCER_AUTO' : '0x7E811BE4',
'all.PROGRAM_2CH_STEREO' : '0x7E8103FC',
'all.PROGRAM_ADVENTURE' : '0x7E81DF... |
// SPDX-FileCopyrightText: 2020 IntelMQ Team <<EMAIL>>, 2020 <NAME> <<EMAIL>>, 2021 <NAME> <<EMAIL>>
//
// SPDX-License-Identifier: AGPL-3.0-or-later
'use strict';
var ALL_BOTS = 'All Bots';
var bot_logs = {};
var bot_queues = {};
var path_names = {};
var reload_queues = null;
var reload_logs = null;
var app = app || ... |
var ajax_url = _p.web_ajax + 'chat.ajax.php';
var online_button = '<img src="' + _p.web_img + 'statusonline.png">';
var offline_button = '<img src="' + _p.web_img + 'statusoffline.png">';
var connect_lang = 'Chat\u0020\u0028Conectado\u0029';
var disconnect_lang = 'Chat\u0020\u0028Desconectado\u0029';
var chatLang = 'C... |
// @ts-check
'use strict';
class TextPoint {
/**
* @param {number} line
* @param {number} column
*/
constructor(line, column) {
this.line = line;
this.column = column;
}
clone() { return new TextPoint(this.line, this.column); }
copy(p) { this.line = p.line; this.column = p.column; }
withOffset(l, c) ... |
/* eslint-disable react-native/no-inline-styles */
/* eslint-disable prettier/prettier */
import * as React from 'react';
import {
View,
Text,
StyleSheet,
Pressable,
ScrollView,
Dimensions,
ToastAndroid,
FlatList,
} from 'react-native';
import { Surface, Divider } from 'react-native-pape... |
const {
etherGasCost,
etherUnsigned,
etherMantissa,
UInt256Max,
etherExp
} = require('../Utils/Ethereum');
const {
makeAToken,
fastForward,
setBalance,
getBalances,
adjustBalances,
pretendBorrow,
preApprove,
enterMarkets
} = require('../Utils/Avastorm');
const repayAmount = etherExp(10);
co... |
/// <reference path="../../../typings/main.d.ts" />
"use strict";
var jsyaml = require("../jsyaml/jsyaml2lowLevel");
var defs = require("raml-definition-system");
var ll = require("../lowLevelAST");
var _ = require("underscore");
var yaml = require("yaml-ast-parser");
var hlimpl = require("../highLevelImpl");
v... |
const { RateLimiterMemory } = require('rate-limiter-flexible');
const { processAlerts } = require('./alerting2.js');
const { goog } = require('./google.js');
const { isNode } = require('./compat.js');
const clientlib = require('./clientlib.js');
const FOLDER_NAME = `opsgrid${isNode() ? '' : '-gas'}`;
const WRITE_ROW_... |
'use strict';
var numColumns = 10;
var numRows = 6;
var players = [];
var minPlayers = 2;
var maxPlayers = 4;
var inputActive = false;
var playerId = 0;
var moves = 0;
var overloaded = [];
var debug = 0;
document.addEventListener('DOMContentLoaded', function() {
var params = new URLSearchParams(window.location.search... |
var i = 0;
var mapajax = 0;
var markers = [];
//<![CDATA[
// this variable will collect the html which will eventually be placed in the side_bar
var side_bar_html = "";
//var img='images/mapIcons/marker_red.png';
var img = '<?php echo base_url(); ?>assets/images/mapIcons/map_car_red.png';
var yimg = '<?php echo base_u... |
/*******************************************************************************
* Copyright 2018 <NAME> and contributors
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy
* of the License at
*
* h... |
$(document).ready(function() {
if (Config.useESX) {
document.getElementById("hunger").style.display = "";
document.getElementById("thirst").style.display = "";
document.getElementById("hunger-thirst").style.display = "";
document.getElementById("hunger-option").style.display = "";
document.g... |
EngineClass = Class.extend({
player0: null,
entities: [],
factory: {},
_deferredKill: [],
sprites_loaded: 0, // 0 means not loaded, 1 and 2 loaded
flyes_alive: 0,
max_flyes_alive: 15,
last_fly_created: 0,
total_fly_counter: 0,
cheer_up_goal: 4,
scrore_frames: 0,
in... |
Math.rand = function(max) {
return Math.floor(max * Math.random())
}
Array.prototype.clear = function() {
this.splice(0,this.length)
}
class Toucher{
initalize(){
this.x = 0
this.y = 0
return new Toucher()
}
constructor(){
this.touched = false
this.touch_struct = { touch_start_pos: nu... |
if ( ! Detector.webgl ) { Detector.addGetWebGLMessage(); }
var renderer, scene, camera, controls;
var geometry, material, mesh;
var materials;
var light, pointLight, ambientLight;
var surf, keys;
var titles, helpbar;
init();
animate();
var txt;
function init() {
document.body.style.cssText = 'margin: 0;... |
import L from "leaflet";
import $ from "jquery";
import pulseIcon from "leaflet-pulse-icon";
import * as utils from "./utils";
'use strict';
let app = {
defaultOptions: {
coordsNorthingFirst: true, // Set to true if coords are in format [easting, northing]
minFeatureSize: 5,
maxFeatureSize: 30,
highlightM... |
"use strict";
function _ref2(a, c, b) {
return b.indexOf(a) === c;
}
function _ref3(a) {
return a.kind === kinds.Kind.FIELD && "__typename" === a.name.value;
}
function withPromise(a) {
a.toPromise = function() {
return wonka.toPromise(wonka.take(1)(a));
};
return a;
}
function _ref(a) {
return a.pa... |
/**
*
*/
/*
* === === === === === === === Classes ===========================
*/
/*
* Server class
*/
function PlotServer(hostname, rocks, earth_models) {
// The host hosting plots.
this.hostname = hostname;
// (rock name , rock property) pairs
this.rocks = rocks;
this.earth_models = ear... |
// This Page is Skeleton of React Structure for Web Development
// If you want to make other page, Copy and Refactor this page.
import React, { Component } from "react";
import { connect } from "react-redux";
import { withRouter } from "react-router-dom";
import { NavBar, List, SideBar, Footer } from "../../Components... |
// -----------------------------------------------
// netserver.js
//
// Server side implementation of pdg network interface
//
// Written by <NAME>, 2012
// Copyright (c) 2012, Dream Rock Studios, LLC
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated ... |
import { feeFactor } from './factorCalcs';
import React from 'react';
import axios from 'axios';
import { colors, tokenAddresses, tokenColors } from './colors';
import { softWrap } from './softWraps';
import { unCapped } from './unCapped';
import { BLACKLISTED_SHAREHOLDERS } from './shareHolders';
import { cap1, cap2, ... |
//Operational Functions
$.ajaxSetup({ cache: false });
const enableBodyScroll = function() {
document.ontouchmove = function(e) {
return true;
}
}
const disableBodyScroll = function() {
document.ontouchmove = function(e) {
e.preventDefault();
}
}
$.fn.isInViewport = function() {
con... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.