text
stringlengths
5.97k
41.2k
/** * App.js is responsible for connecting the UI with the game functionality. * Most of the functionality is used for the main menu and connecting/disconnecting behavior. */ 'use strict' import { GLOBAL } from './global.js' import * as cookies from './lib/cookies.js' import { BLUEPRINTS, TOOLTIPS } from './obj/blue...
'use strict' const fs = require('fs') const path = require('path') const moment = require('moment') const http = require('http') const dhs = require('./dhs') const config = require('./config') const bots = new Set let running = false let db = { } function saveDbSync() { return fs.promises.writeFile(path.join(__d...
// import {firebase} from 'firebase' const { saveMessage ,getUser, getAllUser,saveUser, saveUserAdmin, updateInfo, getAllUserManager,getMessage, saveUserManager,deleteUserManager} = require('./saveUser'); const bcrypt = require('bcrypt'); const saltRounds = 10; const enrollAdmin = require('../enrollAdmin') ...
/* eslint-disable max-len */ /* eslint-disable no-undef */ /* eslint-disable no-unused-expressions */ /* eslint-disable no-console */ /* eslint-disable import/no-cycle */ /* * Copyright 2021 Adobe. All rights reserved. * This file is licensed to you under the Apache License, Version 2.0 (the "License"); * you may no...
// GLOBAL // var seed = prompt("input seed"); // Determines everything. console.log(seed); //All random numbers are seeded based on this seed. //All initially-spawned creatures will have exactly the same parameters and come in the same order, assuming nothing directly related to creatures spawning is changed //Thi...
moment.lang('en', { relativeTime : { future: "in %s", past: "%s ago", s: "secs", m: "a min", mm: "%d mins", h: "an hr", hh: "%d hrs", d: "a day", dd: "%d days", M: "a mth", MM: "%d mths", y: "a yr", yy:...
//Global variables let urlgeocoding; var marker; let map, infoWindow, userLat, userLon; var pos; $("form").on("submit", function(e) { //Grabing user input of destination e.preventDefault(); const city = $("#city-text").val(); const state = $("#state-text").val(); console.log(`${city} and ${state}`)...
import React, { Component, PropTypes } from 'react'; import _ from 'lodash'; import cx from 'classnames'; import { MdTimelapse, MdConfirmationNumber } from 'react-icons/lib/md'; import { Select2, Dropdown, Modal, Card } from '../../Utils/components'; import Slot from '../../City/components/Slot'; import InfoOverlay fro...
import * as Utils from './utils'; import Loc from './loc'; import * as Wait from './wait'; import Diff from 'levenlistdiff'; const P = Utils.P; const debug = Utils.debug; const INIT = "init"; const READY = "ready"; const BUILD = "build"; const PATCH = "patch"; const SETUP = "setup"; const PAINT = "paint"; const CLOSE ...
/*jslint nomen: true, sloppy: true */ /*global $: false, Swipe: false, Zoomer: false, L: false, console: false, clearInterval: false, clearTimeout: false, document: false, event: false, frames: false, history: false, Image: false, location: false, name: false, navigator: false, Option: false, parent: false, screen: fal...
$("#flashTeamBranchBtn").click(function(){ console.log("SAVING ancestor_json:"); console.log(flashTeamsJSON); var flash_team_id = $("#flash_team_id").val(); $.ajax({ url: '/pull_requests', type: 'post', data: {"ancestor_json": JSON.stringify(flashTeamsJSON), "parent_team_i...
function $eq(a, b) { if (a != b) throw "$eq(" + a + ", " + b + ") failed"; } function $arrEq(a, b) { var mismatch = a.length != b.length; if (!mismatch) { for (var i = 0; i < a.length; i++) if (a[i] != b[i]) mismatch = true; } if (mismatch) throw "$arrEq(" + a + ", " + b + ") failed"; } fun...
import React from "react"; import PropTypes from "prop-types"; import Button from "material-ui/Button"; import List, { ListItem, ListItemText } from "material-ui/List"; import Grid from "material-ui/Grid"; import Typography from "material-ui/Typography"; import Input, { InputLabel } from "material-ui/Input"; import { F...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = function (sentence, language) { return getSentenceParts(sentence, language); }; var _indices = require("../../../stringProcessing/indices"); var _indices2 = _interopRequireDefault(_indices); var _stripSpaces = require(...
var data = {}; $(document).ready(function() { $('.sendmailRegister').on('click', function() { resetErrors(); $("#rdoreq").css("display", "none"); var url ='sendMialvalidation'; $.each($('form input, form select, form textarea'), function(i, v) { if (v.type !== "submit") { data[v.name] = v.value; ...
// typical mirage config export // http://www.ember-cli-mirage.com/docs/v0.4.x/configuration/ import { get, isEmpty } from 'lodash'; import faker from 'faker'; import parseQueryString from './util'; const getItems = (schema, request, recordName) => { const queryString = request.url.split('?')[1]; const params = pa...
// -*- mode: js; indent-tabs-mode: nil; js-basic-offset: 4 -*- // // This file is part of Almond // // Copyright 2016-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 Licen...
function Controller() { function UbicacionActual() { Titanium.Geolocation.accuracy = Titanium.Geolocation.ACCURACY_BEST; Titanium.Geolocation.distanceFilter = 10; Ti.Geolocation.purpose = "Mostrar tu posición actual"; Titanium.Geolocation.getCurrentPosition(function(e) { ...
var selectedChar = null; var WelcomePercentage = "30vh" qbMultiCharacters = {} var Loaded = false; var NChar = null; var EnableDeleteButton = false; var background = document.getElementById("musica_fondo"); var confirmar = document.getElementById("click"); var consejoAud = document.getElementById("click"); var transiti...
/** * Theme Layout Script * ------------------------------------------------------------------------------ * A file that contains scripts and styles for all pages. * * @namespace theme * @file <EMAIL> * @file <EMAIL> * @file layout.theme.css.liquid * @file layout.theme.js * */ import $ from "jquery"; import...
function sendurl(obj,type,id,e,urlprefix) { var temptype = '0'; if (type == '16') { type = '1'; temptype = '16'; } if (!(db_ajax & type) || typeof e != 'undefined' && e.ctrlKey) { return true; } if(temptype == '16'){ type = '16'; } try { var url_a = {1 : '/mawhole.php?ajax=1&' , 2 : '/m...
var express = require("express"); var bodyParser = require("body-parser"); var request = require("request"); var db = require("../database/databaseHelpers"); var session = require("express-session"); var twilio = require("twilio"); var moment = require("moment"); var geo = require("./geoHelper.js"); var bcrypt = requir...
/** # Exemplar.js — gradual typing by example Copyright ©2016-2017 <NAME> Relatively painless gradual strong typing by example. ### exemplar: create type checkers by example exemplar(exampleValue) Creates an exemplar that tests for values of the same type as `exampleValue`. exemplar({ ... }, true) Creates...
import {getIdForCell} from "./graph.js"; import { ARROW, COLOR_EDGE_ERROR, COLOR_FONT_ERROR, COLOR_STATE_ERROR, DOT, STYLE_EDGE, STYLE_LR_ITEM, STYLE_STATE } from "./constants.js"; import {I, isSetsEqual} from "./utils.js"; import {getGraph} from "./init.js"; const CLASSES_ERROR = "aler...
// Schema: // date,AQIindex,PM2.5,PM10,CO,NO2,SO2 var schema = [ {name: 'AQIindex', index: 1, text: 'AQI'}, {name: 'PM25', index: 2, text: 'PM 2.5'}, {name: 'PM10', index: 3, text: 'PM 10'}, {name: 'CO', index: 4, text: 'CO'}, {name: 'NO2', index: 5, text: 'NO₂'}, {name: 'SO2', index: 6, text: '...
// #region Poster Resolution const posterPathRoot = "https://www.themoviedb.org/t/p/w600_and_h900_bestv2"; const posterNotFoundPath = "/assets/img/posterNotFound.png"; /** * * @param {String} path The assumed path of the poster. * @returns {String} The path to the poster or the default poster if missing. */ const ...
const apis = require('./apis'); const logger = require('./logger'); const { firebase } = require('./firebase'); const minScorekeeperVersion = apis.minScorekeeperVersion; let apiKeyRetryAttempts = 0; mdc.autoInit(); const showStep = (id) => { for (let i = 1; i <= 5; i++) { const elm = document.querySelector('#s...
// book.js var template = require("../../utils/template.js"); var app = getApp(); Page({ /** * 页面的初始数据 */ data: { book: { isPay: "", isGift: "", bookName: "", lessonList: {}, allList: [] }, showLessonByCategory:{}, lesson_pic: "../../images/book/book.png", fo...
// ************************************* TU TREŚCI, KTÓRE WYLECĄ ZE STRONY ********************************************** // podmienione za nowsze wersje $('#suwak_galerii_submit').click( function() { if ( g_ilosc_wszystkich_galerii > 0 ) { var tag_na_podstrone_spisu_tresci_galerii = 'div#...
/** * Keycodes from: https://github.com/kwhat/libuiohook/blob/1.2/include/uiohook.h * [0] -> libuiohook key * [1] -> optional alias * * Comment out keys that you don't want to show */ export const KEYCODES = { /* Begin Virtual Key Codes */ 0x0001: ["VC_ESCAPE", "ESC"], // Begin Function Keys 0x003b: ["VC...
import React from "react"; import * as Icon from "react-feather"; import { format } from "date-fns"; const months = { 1: "Jan", 2: "Feb", 3: "Mar", 4: "Apr", 5: "May", 6: "Jun", 7: "Jul", 8: "Aug", 9: "Sep", 10: "Oct", 11: "Nov", 12: "Dec", }; export const stateNavbarName = { "/": "COVID IND...
/* * [Česky] * Projekt: Robot Karel * Copyright: Viz KOPIROVANI v kořenovém adresáři projektu * * [English] * Project: Karel, the Robot * Copyright: See COPYING in the top level directory */ // JavaScript - funkce pro práci se styly // ==========================================================================...
U.idToLetter = (id) => { if(id == 3) return 'R'; if(id == 2) return 'M'; return 'L'; }; U.slotNameById = (id) => { return 'slot' + U.idToLetter(id); }; var slots = new Vue({ el: ".authDiv", data: function () { return{ server: 0, slotL: ["", "", 7, 0, 0, "", 0, 60, 'Отсутствует', "Магазин 24/7 #23", "До...
import React, { Component } from 'react'; import { DragDropContext, Droppable, Draggable } from 'react-beautiful-dnd'; import { Form } from '@ant-design/compatible'; import '@ant-design/compatible/assets/index.css'; import { Row, Col, Input, Popconfirm, Button } from 'antd'; import uuid from 'uuid'; import { deepCopy, ...
console.log('LOAD'); const testingMode = true; //FALSE FOR RELEASE! const disableTwitchBlocking = true; const Widget = { wait: (ms) => new Promise(r => setTimeout(r, ms)), verifyBotMsg: () => new Promise(r => jebaitedAPI.checkScope('botMsg').then(r).catch(e => { Widget.displayError(`Jebaited Error! botMsg sco...
window.L = lalolib; const Columns = { DRAW: { name: 'draw', index: 0 }, DEM_EV: { name: 'dem_ev', index: 1 }, NATL_POP_VOTE: { name: 'natl_pop_vote', index: 2 }, STATES_START: { name: undefined, index: 3 }, }; const DEFAULT_SAMPLES = 10000; const DEFAULT_AUTORUN = true; const RAW_STATE_EVS = {"AL":9,...
import React, { Component } from 'react'; import * as PropTypes from 'prop-types'; import { connect } from 'react-redux'; import Table from '@material-ui/core/Table'; import TableBody from '@material-ui/core/TableBody'; import TableHead from '@material-ui/core/TableHead'; import TableRow from '@material-ui/core/TableRo...
// 导航栏动态渲染 // 判断滚动结束后渲染导航栏 var topValue = $(window).scrollTop(),// 上次滚动条到顶部的距离 interval = null;// 定时器 document.onscroll = function() { if(interval == null)// 未发起时,启动定时器,1秒1执行 interval = setInterval("isScrolling()", 100); topValue = document.documentElement.scrollTop; } function isScrolling(...
const { generateStatusMap, anyInChain } = require(`./status.js`); // function assignToPrototype(obj, proto, v = (k => k)) { // for (const [key, value] of Object.entries(obj)) { // proto[key] = v(value); // } // } function* iterArr(...args) { for (const arr of args) { yield* arr; } } function _isHighe...
const META_TAGS = { // https://moz.com/blog/seo-meta-tags // basic // https://gist.github.com/kevinSuttle/1997924 'title': { name: 'basic', value: 'high' }, 'noscript': { name: 'basic', value: 'high' }, 'meta keywords': { name: 'basic', value: 'high' }, 'meta news_keywords': { name: 'basic', value: 'hig...
/** * @file Popup 组件 * @author wujun07 * @owner wujun07:2017-07-04 * @description 主要借鉴 https://github.com/react-component/trigger * Popup分为两层 * PopupTrigger 作为一个 High-Order Component 主要处理与Popup的挂载、显隐行为相关的事情 * PopupWrap 主要处理Popup样式修饰相关的东西 */ import React, { Component } from 'react' import PropTypes from 'prop-t...
import React from "react" import moment from "moment" import Dialog from "./../../DialogComponent" import form from "./../../../Components/Form" import Constants from "../../../Assay/Constants" import "./Board.css" const MAP_OPTIONS = (clickMap) => [ { label: "Buckets", className: "agile-tracker-...
#!/usr/bin/env node 'use strict'; require('dotenv').config(); process.title = 'Danube-server'; const config = require('./config'); process.env.DEBUG = config.debug || '*'; /* eslint-disable no-console */ console.log('- process.env.DEBUG:', process.env.DEBUG); console.log('- process.env.APP_NAME:', process.env.APP...
/* CONSTANTS AND GLOBALS */ const width = window.innerWidth * 0.9, height = window.innerHeight * 0.7, margin = { top: 20, bottom: 50, left: 50, right: 40 }, radius = 5; // these variables allow us to access anything we manipulate in init() but need access to in draw(). // All these variables are empty before we ...
'use strict'; var inquirer = require('inquirer') const readline = require('readline') const path = require('path') const os = require('os') const fs = require('fs-extra') const { urlMatchToParser, getValidStreamRange, checkMediaSource, md5, getUrlExt, renderSize, renderDuration, unlink } = require(path.join(__dirname, ...
import React, { useState, useEffect } from "react"; // import React, { Component } from "react"; // import { NFTStorage, File } from "nft.storage"; import NFT from "./contracts/NFT.json"; import getWeb3 from "./getWeb3"; import Popup from "./components/Popup/popup.js"; import "./App.css"; import Web3 from "web3"; // T...
var character = {index: "chubby", met: false, fName: "Margaret", lName: "Williams", trust: 0, encountered: false, textEvent: "", color: "#da924b",}; //General tutorial stuff: //writeText("text"); - Writes some plain old text. //writeSpeech("character", "image", "dialogue") - Writes some dialogue. Leave "image" blank t...
/* Copyright 2015 OCAD University Licensed under the New BSD license. You may not use this file except in compliance with this License. You may obtain a copy of the License at https://github.com/fluid-project/first-discovery-server/raw/master/LICENSE.txt */ "use strict"; var path = require("path"); var publish = re...
import { Alert } from 'react-native'; import RNFetchBlob from 'rn-fetch-blob'; import { common } from './Common'; import { heroDesignerTemplate } from './HeroDesignerTemplate'; import { SKILL_ROLL_BASE } from '../decorators/skills/Roll'; import { store } from '../../App'; // Copyright 2018-Present <NAME> // // License...
'use strict'; const jitMappings = { removelogging: 'grunt-remove-logging', validation: 'grunt-html-validation', instrument: 'grunt-istanbul', scsslint: 'grunt-scss-lint', }; const sourcemaps = true; const names = { src: 'src', assets: 'assets', dest: 'dist', dev: 'dev', cache: '.cac...
$(document).ready(function(){ var nofinv = 1; $('#id_invoicenumber').addClass('invoice'+' '+nofinv); $('#id_invoicestatus').addClass('invoiceadditional'+' '+nofinv); $('#id_paidon').addClass('paid'+' '+nofinv); $('#id_rejectreason').addClass('reject'+' '+nofinv); $("#id_amount").addClass("amount...
/// <reference path="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.7.2.js" /> // Detects if the products have been purchased, and updates the Product or Game SearchResult function detectPurchased(purchaseHistoryUrl, productIds, displayText) { $.post(purchaseHistoryUrl, { 'productIds': productIds }, function ...
// This file defines the visual elements corresponding to the CockroachDB // distributed system and their animations. var d3 = require("d3"); var HeartbeatPayload = require("./request.js").HeartbeatPayload; var viewWidth = 960, viewHeight = 500 var timeScale = 2 // multiple for slowing down (< 1) or speeding up (> 1) ...
//////////////////////////////////////////////////////////// // CANVAS //////////////////////////////////////////////////////////// var stage var canvasW=0; var canvasH=0; /*! * * START GAME CANVAS - This is the function that runs to setup game canvas * */ function initGameCanvas(w,h){ var gameCanvas = document...
import 'react-app-polyfill/ie11'; import Link from 'next/link'; import React, { Component, Fragment } from 'react'; import normalize from '../static/normalize.css'; import the_SITE_url from '../components/Vars'; import style from '../static/style.css'; import axios from 'axios'; import Router from 'next/router'; func...
import assert from '../assert'; import { quadBezierSegmentAA, quadBezierSegment } from './quadratic'; import { line, lineAA } from '../line'; /** * Plot limited cubic Bezier segment * @param {number} x0 * @param {number} y0 * @param {number} x1 * @param {number} y1 * @param {number} x2 * @param {numbe...
const Schema = require('./schema') const ErrorCollector = require('./error-collector') const fs = require('fs') const csvparse = require('csv-parse') const fetch = require('node-fetch') const defaultDialect = { header: true, headerRowCount: 1, delimiter: ',', skipInitialSpace: true, lineTerminator: 'auto', ...
function getRandomInt(min, max) { return Math.floor(Math.random() * max)+min; } var cases = {}; cases.settings = { lang:"", case_id:"", count: 1, sound:true }; cases.prizes = []; cases.prizes_sold = []; cases.weapon_count = 25; cases.weapon_size = 198; cases.animation_time = 12; cases.animation = ['-webkit-tra...
////////////////////////////////// // // JS IM Library // by Colspan (Miyoshi) // http://colspan.net/ // License : MIT license // // depend jsim_common.js,jsim_keycode.js,jsim_caret.js function JSIM_setClassName( targetElement, className ){ targetElement.className = className; if( targetE...
/* Discrete regressions Currently only Logit regression */ const Decimal = require('decimal.js') const normdist = require('../distributions/norm.js') const chidist = require('../distributions/chi.js') const M = require('../tools/matrix.js') const Arr = require('../tools/array.js') // TODO delete this const...
/* Winter Run is a 2d platformer game that has the player travel through snowy landscapes and listen sound chilling music -Phaser 3 Framework- Sources: Codecademy and Youtube Music Created by: <NAME> */ class Level extends Phaser.Scene { constructor(key) { super({key}); this.levelKey = key ...
export { fiActivity } from './fi/activity.js'; export { fiAirplay } from './fi/airplay.js'; export { fiAlertCircle } from './fi/alertCircle.js'; export { fiAlertOctagon } from './fi/alertOctagon.js'; export { fiAlertTriangle } from './fi/alertTriangle.js'; export { fiAlignCenter } from './fi/alignCenter.js'; export { f...
"use strict"; /* #### #### # # #### ##### # # # # ## # # # # # # # # # #### # # # # # # # # # # # # # # ## # # # #### #### # # #### # */ const { ipcRenderer, shell } = require("electron"); const loadTheme = require("../mo...
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // <include src="assert.js"> /** * Alias for document.getElementById. Found elements must be HTMLElements. * @param {string} id The ID of the eleme...
"use strict"; function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj ...
const fs = require('fs'); const ZipStream = require('../utils/zip-stream'); const StreamBuf = require('../utils/stream-buf'); const utils = require('../utils/utils'); const XmlStream = require('../utils/xml-stream'); const StylesXform = require('./xform/style/styles-xform'); const CoreXform = require('./xform/core/c...
//@line 1 "src/GameBoard.js" // ========================================================================== class GameBoard { constructor(DOMGrid) { this.dotCount = 0; this.grid = []; this.DOMGrid = DOMGrid; } showGameStatus(gameWin) { // Show game win or game over ...
import * as THREE from "three"; import { Interaction } from "three.interaction"; import * as Detector from "../js/vendor/Detector"; import * as DAT from "../js/vendor/dat.gui.min"; import * as checkerboard from "../textures/checkerboard.jpg"; import * as star from "../textures/star.png"; import * as vertexShader from ...
"use strict"; function assert(actual, expected, message) { if (arguments.length == 1) expected = true; if (actual === expected) return; if (actual !== null && expected !== null && typeof actual == 'object' && typeof expected == 'object' && actual.toString() === expected.toString...
/* begin Page */ // required for IE7, #150675 if (window.addEvent) window.addEvent('domready', function() { }); var artEventHelper = { 'bind': function(obj, evt, fn) { if (obj.addEventListener) obj.addEventListener(evt, fn, false); else if (obj.attachEvent) obj.attachEvent('on' + evt, fn); else obj['on...
/* pxCore Copyright 2005-2018 <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...
import PropTypes from 'prop-types'; const numberProp = PropTypes.oneOfType([PropTypes.string, PropTypes.number]); const numberArrayProp = PropTypes.oneOfType([PropTypes.arrayOf(numberProp), numberProp]); const fillProps = { fill: PropTypes.string, fillOpacity: numberProp, fillRule: PropTypes.oneOf(['evenodd', '...
/* istanbul ignore file */ /** * @file MIP Shell Base * @author <EMAIL> (wangyisheng) */ /* global location */ import { convertPatternToRegexp, checkRouteConfig } from './util' import { createMoreButtonWrapper, createPageMask, toggleInner, renderHeader, bindHeaderEvents, unbindHeaderEvents } from '...
'use strict'; var ECDSA = require('../../lib/crypto/ecdsa'); var Hash = require('../../lib/crypto/hash'); var Privkey = require('../../lib/privatekey'); var Pubkey = require('../../lib/publickey'); var Signature = require('../../lib/crypto/signature'); var BN = require('../../lib/crypto/bn'); var point = require('../....
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var modCrypto = require('crypto'); function _interopNamespace(e) { if (e && e.__esModule) return e; var n = Object.create(null); if (e) { Object.keys(e).forEach(function (k) { if (k !== 'default') { var d = Object.ge...
/* eslint-disable react/prop-types */ import React from 'react' import NextLink from 'next/link' import {useRouter} from 'next/router' import {Trans, useTranslation} from 'react-i18next' import { Badge, Box, Flex, Button, Icon, Menu, MenuButton, MenuItem, MenuList, PopoverTrigger, Stack, Text, ...
var webglGraphicsSeq=1; function BBHtml5Game( canvas ){ BBGame.call( this ); BBHtml5Game._game=this; this._canvas=canvas; this._loading=0; this._timerSeq=0; this._gl=null; if( CFG_OPENGL_GLES20_ENABLED=="1" ){ //can't get these to fire! canvas.addEventListener( "webglcontextlost",function( event ){ ...
/** 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 _createForOfIteratorHelper from "@babel/runtime-corejs3/helpers/createForOfIteratorHelper"; import _typeof from "@babel/runtime-corejs3/helpers/typeof"; import _slicedToArray from "@babel/runtime-corejs3/helpers/slicedToArray"; import _asyncToGenerator from "@babel/runtime-corejs3/helpers/asyncToGenerator"; impo...
/*** * @package Object * @dependency core * @description Object manipulation, type checking (isNumber, isString, ...), extended objects with hash-like methods available as instance methods. * * Much thanks to kangax for his informative aricle about how problems with instanceof and constructor * http...
var app = angular.module("App", ["ngRoute"]); app.config([ "$routeProvider", function ($routeProvider) { $routeProvider. when("/game", { templateUrl: "view/game.html", controller: "GameController", reloadOnSearch: false }). when("/menu"...
Object.defineProperty(exports, "__esModule", { value: true }); exports.storePage = storePage; exports.storeComponent = storeComponent; exports["default"] = void 0; var _observer2 = _interopRequireDefault(require("./utils/observer")); var _diff = _interopRequireDefault(require("./utils/diff")); var _utils = require...
/** * Created by Administrator on 2016/5/23. */ var Datiurl = "http://course.dev.gdy.io/pub/api/listGroup?aid=5747fb38bc9a3439b1a5e11d&ret_items=1" var showurl ="" var indexTheme = 0; var rightNum = 0; var timenum = 0 var namestr ="刘小毅" var showLayer = myLayer.extend({ sprite: null, layerName:"showLayer", ...
// const { response } = require("express"); function colorizer(str) { let red = parseInt(str.substr(1, 2), 16); let green = parseInt(str.substr(3, 2), 16); let blue = parseInt(str.substr(5, 2), 16); let intensity = red * 0.299 + green * 0.587 + blue * 0.114; return intensity > 168 ? true : f...
import _inheritsLoose from '@babel/runtime/helpers/esm/inheritsLoose'; import { addEventListener } from 'consolidated-events'; import PropTypes from 'prop-types'; import React from 'react'; import { isForwardRef } from 'react-is'; /** * Attempts to parse the offset provided as a prop as a percentage. For * instance,...
// PNL calculation module const frostybot_module = require('./mod.base') var context = require('express-http-context') const axios = require('axios') module.exports = class frostybot_pnl_module extends frostybot_module { // Constructor constructor() { super() this.description = 'Statistics an...
const config = require('./config.json'); const Promise = require('promise'); const dgram = require('dgram'); const ServerResponse = require('./serverResponse'); const dns = require('dns'); const Servers = require('./servers'); const Channels = require('./channels'); const Database = require('./db'); const Discord = req...
'use strict'; exports.__esModule = true; exports.default = undefined; var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return t...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var indexOf = require("lodash.indexof"); var map = require("lodash.map"); var ts = require("typescript"); var jsDocUtils_1 = require("./../utils/jsDocUtils"); var validatorUtils_1 = require("./../utils/validatorUtils"); var exceptions_1 = requ...
let MAP_CENTER = new L.latLng(18.579916, -72.294903); // Port-au-Prince airport // Frequently accessed page elements let gisMap = 'undefined'; let waterElementTable = 'undefined'; let detailTable = 'undefined'; let latLongDetail = 'undefined'; let errorDetailTable = 'undefined'; let drawLayer = 'undefined'; // Curren...
const fs = require("fs"); const Eris = require ("eris"); const EventEmitter = require("eventemitter3"); const Postgres = require("pg"); const prettyms = require("pretty-ms"); const CronJob = require("cron").CronJob; const Context = require("./Context"); const Strings = require("./Strings"); const CommandOutput = requi...
"use strict"; // A directive for exceptions to ESLint no-init rule /*global exports, console, require */ /** * @overview * A set of file utilities wrapped in promises. These functions used * for moving files, zipping files, etc. * * All functions herein are only used internally. Methods and objects * may cha...
var $ = require('jquery'); var onReady = require('kwf/commonjs/on-ready'); var historyState = require('kwf/commonjs/history-state'); var getKwcRenderUrl = require('kwf/commonjs/get-kwc-render-url'); var t = require('kwf/commonjs/trl'); var injectAssets = require('kwf/commonjs/inject-assets'); var oneTransitionEnd = req...
#! const Discord = require("discord.js"); const fs = require("fs"); const commands = require("./commands.json"); const config = require("./config.json"); let data = require("./data.json"); const eyes = "👀"; const client = new Discord.Client({ intents: ["GUILD_MESSAGES", "GUILDS"] }); const webmsg...
var express = require('express'); var cookieParser = require('cookie-parser'); var google = require('googleapis'); var OAuth2 = google.auth.OAuth2; var app = express(); var meetings = []; var counter=0; var cronofy = require('cronofy'); var options = { client_id: 'MzA5TxBOuqvvDBCRJgM5N6OML-YGF46N', client_secret: ...
// config var config = { timeDiff: 0 } // visitors var visitors = 0 function visitorsInc () { visitors++ } function visitorsDec () { visitors-- } // app function connect (callback) { var simpl = require('simpl') var client = simpl.createClient() client.use(simpl.events()) client.use(simpl.json()) client.on...
import React from 'react'; import Tabs from '@material-ui/core/Tabs'; import Tab from '@material-ui/core/Tab'; import Box from '@material-ui/core/Box'; import PropTypes from 'prop-types'; import StateGraphs from './StateGraphs'; import Autocomplete from '@material-ui/lab/Autocomplete'; import TextField from '@material-...
// SnailBait constructor -------------------------------------------- var SnailBait = function () { this.canvas = document.getElementById('game-canvas'), this.context = this.canvas.getContext('2d'), // HTML elements........................................................ this.fpsElement = document.g...
// getGcd return the gcd of two numbers. /** * getGcd return the gcd of two numbers. * @param {Number} arg1 first argument for gcd * @param {Number} arg2 second argument for gcd * @returns return a `gcd` vlaue of both number. */ let getGcd = (arg1, arg2) => { let less = arg1 > arg2 ? arg2 : arg1; for(less;...
import { differenceInSeconds, parseJSON } from 'date-fns/fp' import _ from 'lodash/fp' import { Fragment, useRef, useState } from 'react' import { br, div, h, h2, p, span } from 'react-hyperscript-helpers' import { ButtonPrimary, Clickable, comingSoon, Link, spinnerOverlay } from 'src/components/common' import { Contex...