text
stringlengths
3.07k
16k
import debounce from 'lodash.debounce' const HALF_PI = 0.5 * Math.PI const TAU = 2 * Math.PI const TO_RAD = Math.PI / 180 const fadeInOutWithOpacity = (t, m, o) => { const hm = 0.5 * m const fio = 0.125 * (Math.abs(((t + hm) % m) - hm) / hm) const fiowo = fio * o return fiowo } const rand = n => n * Math.ran...
import React, { useEffect, useState } from 'react'; import MaterialTable from "material-table"; import { Link } from 'react-router-dom'; import { makeStyles, withStyles } from '@material-ui/core/styles'; import { Button, CircularProgress } from '@material-ui/core'; import CoinGecko from 'coingecko-api'; const CoinGecko...
#!/usr/bin/env node var kiwi = require('./kiwi'); var fs = require('fs'); var usage = [ '', 'Usage: kiwic [OPTIONS]', '', 'Options:', '', ' --help Print this message.', ' --schema [PATH] The schema file to use.', ' --js [PATH] Generate JavaScript code.', ' --ts [PA...
// FORM HANDLING SECTION let dirtyForm = false; let changes = ['template']; let oldVal = ""; const origin_form = $('#blueprints'); const translate_form = $('#translated'); translate_form.find('input').on("textchange", function() { const name = this.name; addToChanges(name); }); translate_form.find('textarea'...
import React, { useState } from "react"; import { Form, Segment, Header, Button, Grid, Select, Icon, Card, List, Input, } from "semantic-ui-react"; import { DateInput } from "semantic-ui-calendar-react"; import { useStoreContext } from "../../utils/GlobalState"; import { LOADING, LOADING_DONE } from...
import freighterApi from '@stellar/freighter-api'; import StellarSdk from 'stellar-sdk'; import StellarBase from 'stellar-base'; import axios from 'axios'; const checkFreighter = async () => { if (freighterApi.isConnected()) { return true; } return false; }; const retrievePublicKey = async () => {...
var express = require('express'); var bodyParser = require('body-parser'); var request = require('request'); var db = require('../database/database.js'); var bcrypt = require('bcrypt'); var helpers = require('./helpers.js').helpers; var session = require('express-session'); const app = express(); app.use(express.stat...
"use strict"; /** * @author <NAME> <<EMAIL>> * This file takes care of the node positions in the tree-bags. * It takes the start position from the bags and calculate the node position on this. * The start position and all important dependecies from the "construct graph" are set in @code{mapAngles}. * Although the...
//Hide display element (progress) document.getElementById("display").style.visibility = "hidden"; //Reload video function reload_video() { document.getElementById("video").load() } //Show display element (progress) function call_display() { document.getElementById("display").style.visibility = "visible"; } //Show p...
var DataTypes = require("sequelize").DataTypes; var _avaliacao_pedido = require("./avaliacao_pedido"); var _centro_custos = require("./centro_custos"); var _curso = require("./curso"); var _departamento = require("./departamento"); var _det_pedido = require("./det_pedido"); var _modo_envio = require("./modo_envio"); va...
import IDataSource from './IDataSource'; import processFHIRResources from './utils/fhir-entry-processor'; import 'fhirclient'; class McodeV09SmartOnFhirDataSource extends IDataSource { constructor(props) { super(); this._gestalt = { create: { async: false, ...
/* B"H Need to Fix - this crashes my heroku app | idk why so it's not in server/index.js */ const e = require('express'); const getexercisetype = require('./exercisetypes'); const mysql = require('./mysql'); const cm = require('./ContactMethods'); const comments = require('./comments'); async function getAll(){ ...
import router from './router' import NProgress from 'nprogress' // Progress 进度条 import 'nprogress/nprogress.css'// Progress 进度条样式 import { getToken } from '@/utils/auth' // 验权 import store from './store' import RouterList from '@/router/routerConfig' const whiteList = ['/login'] // 不重定向白名单 router.beforeEach((to, from,...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.handlerList = exports.handleReturnInNonContinuousBlock = exports.handleReturnInEmptyBlocks = exports.handleReturnFromAtomicBlock = exports.handleSoftReturn = undefined; var _extends = Object.assign || function (target) { for (var i...
import React, { Component } from 'react'; import Masonry from 'react-masonry-component'; import styled from 'styled-components'; import axios from '../axios-config'; import { baseUrl } from '../baseurl-config'; import Button from '../components/Button'; import CardListContainer from '../containers/CardListContainer'; ...
var resetInputs = function () { $('.topic').val(''); $('.question').val(''); $('.answer').val(''); $('.key').val(''); $('.value').val(''); } var getLocalStorageLength = function () { return window.localStorage.length; } var generateDeckId = function () { return 'deck+' + getLocalStorageLength...
const db = require('./db/connection'); const conTable = require('console.table'); const inquirer = require('inquirer'); const PORT = process.env.PORT || 3001; console.log('Listening on port 3001.'); // ============= Initial Prompt ============ // function mainMenu() { inquirer.prompt([ { name:...
var r = require('redis').createClient(); var _ = require('underscore'); var fs = require('fs'); // prefixes for redis sets // use applicationPrefix() to set the initial prefix var _appPrefix = ''; var ZKEY_COMPL = 'compl'; var ZKEY_DOCS_PREFIX = 'docs:'; exports.applicationPrefix = applicationPrefix = function(prefix...
/** * Copyright (c) QNAP Systems, Inc. All rights reserved. */ var coap = require('coap'); var fs = require('fs'); var util = require('util'); var EventEmitter = require('events').EventEmitter; var coapConnect = function coapConnect () { this.coapoptions = null; this.resourceinfo = null; this.readResou...
import { DateUtils } from '../../../libs/utils'; import Locale from '../../locale' const t = Locale.t const weeks = ['sun', 'mon', 'tue', 'wed', 'thu', 'fri', 'sat']; const months = ['jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug', 'sep', 'oct', 'nov', 'dec']; DateUtils.i18n = { dayNamesShort: weeks.map(week...
const configureGAM = require('@endeavor-business-media/package-shared/config/gam'); const config = configureGAM({ basePath: 'MAE' }); config .setAliasAdUnits('default', [ { name: 'lb1', templateName: 'LB1', path: 'default/lb1' }, { name: 'lb2', templateName: 'LB2', path: 'default/lb2' }, { name: 'rail1'...
'use strict'; var lazyReq = require('lazy-req')(require); var inquirer = require('inquirer'); var fs = require('fs'); var path = require('path'); var through = lazyReq('through2'); var putils = require('../lib/plugin-utils'); module.exports = function (gulp, gutil) { /** * This function should match all validat...
/* https://tools.ietf.org/html/rfc1035 section 4.1 PCAP protocol dissector for DNS messages Extracts all message header fields (except Z), question and answer sections. Authority and additional sections are ignored. Extracts only IPv4, IPv6 and CNAME RDATA from answer section. Tested on newtork l...
var ArrayMethods, ArrayHelperMethods, ARRAYLIST_PROTO; /** * A collection of elements * @class ArrayList * @constructor * @param {Array|Object} items An element or an array of elements */ function ArrayList(items) { this._items = !Lang.isValue(items) ? [] : Lang.isArray(items) ? items : [items]; } ARRAYLIST_P...
/*global imports*/ const Applet = imports.ui.applet; const St = imports.gi.St; const Gdk = imports.gi.Gdk; const Gtk = imports.gi.Gtk; const Keymap = Gdk.Keymap.get_default(); const Caribou = imports.gi.Caribou; const PopupMenu = imports.ui.popupMenu; const Lang = imports.lang; const Gio = imports.gi.Gio; const Main = ...
"use strict"; // Standard library const path = require("path"); const stream = require("stream"); // Third-party dependencies const uuid = require("uuid"); const mime = require("mime"); const combinedStream2 = require("combined-stream2"); const Promise = require("bluebird"); const debug = require("debug")("form-data2...
/* GENERATED FILE */ import { html, svg, define } from "hybrids"; const PhSpeakerLow = { color: "currentColor", size: "1em", weight: "regular", mirrored: false, render: ({ color, size, weight, mirrored }) => html` <svg xmlns="http://www.w3.org/2000/svg" width="${size}" height="${size}" ...
/* * Copyright 2019 American Express Travel Related Services Company, 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 r...
import React, { useState } from "react"; import { Dropdown, RadioButtons, ActionBar, RemoveableTag, CloseSvg, CheckBox, Localities, SubmitBar } from "@egovernments/digit-ui-react-components"; import { useTranslation } from "react-i18next"; import _ from "lodash"; const Filter = ({ searchParams, onFilterChange, defau...
/** * Translate page layouts, as generated by page-layouts, into an * object which computes layout information for the document as * a whole. */ export default class DocumentLayout { constructor (config, zoomLevel) { const computedLayout = getComputedLayout(config, zoomLevel); this.dimensio...
const appKey = "5dd393f7e456aa299405e657419de369"; let searchButton = document.getElementById("search-btn"); let searchInput = document.getElementById("search-txt"); let cityName = document.getElementById("city-name"); let icon = document.getElementById("icon"); let temperature = document.getElementById("temp"); let h...
import { createGlobalStyle } from "styled-components"; const GlobalStyles = createGlobalStyle` @font-face { font-family: 'Book'; src: url('../static/fonts/geomanist-book.woff2') format('woff2'); font-weight: normal; font-style: normal; font-display: auto; } @font-face { font-family: 'In...
// This file is required by the index.html file and will // be executed in the renderer process for that window. // All of the Node.js APIs are available in this process. require('dotenv').config(); const path = require('path'); const express = require('express'); const app = express(); var co...
'use strict'; let express = require('express'); let velocity = require('express-velocity'); let ejs = require('ejs'); let path = require('path'); let http = require('http'); let cors = require('cors') let rewrite = require('./middleware/rewrite'); let routeBoard = require('./middleware/routeBoard'); let folder = requi...
/* * brozzler/behaviors.d/pm-ca.js - behavior for http://pitchfork.com/festival/chicago/ * * Copyright (C) 2014-2017 Internet Archive * * 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 *...
/** * Copyright 2016, GeoSolutions Sas. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ const React = require('react'); const {connect} = require('react-redux'); const {compose} = require('redux'); const Config...
var schedule_admin_view_api = riot.observable(); var api_base_url = 'api/v1/summits/@SUMMIT_ID'; var dispatcher = require('./schedule-admin-view-dispatcher.js'); schedule_admin_view_api.RETRIEVED_PUBLISHED_EVENTS = 'RET...
var constants = require('./controller_constants'); var MapModule = require('ti.map'); function Destination(mainMap, annotations, directions) { this.mainMap = mainMap; // The currents routes differ by form and functionality // - Polyline is for placement on the map. This allows curves and such // - Nav has all wayp...
import React, { useState } from 'react'; const currentYear = new Date().getFullYear(); console.log(currentYear); const monthsArr = Array.from({ length: 12 }, (x, i) => { const month = i + 1; return month <= 9 ? '0' + month : month; }); const yearsArr = Array.from({ length: 9 }, (_x, i) => Number(currentYear.toStri...
/*Validaci[on del campo medio de verificacion*/ $('#medioVerificacion').blur(function(){ var medioVerificacion = $("#medioVerificacion").val(); if (medioVerificacion.indexOf('')== -1){ $('#medioVerificacion').addClass('error'); $('#medioVerificacion').addClass...
import { distance } from './util.js'; import { isNullOrUndefined } from 'util'; import { variables } from './data.js'; let velocityScale = 0.05; let lengthScale = 0.02; var Element = { He: { name: "Helium", number: 2, radius: 140, mass: 4.002602, color: "#F9AA33" }, ...
import React, { Component } from 'react'; import {ToastsContainer, ToastsStore} from 'react-toasts'; import { Badge, Button, Card, CardBody, CardFooter, CardHeader, Col, Pagination, PaginationItem, PaginationLink, Table, Collapse, DropdownItem, DropdownMenu, DropdownToggle, Fade, Form, For...
/* * Copyright (c) 2015, Parse, LLC. All rights reserved. * * You are hereby granted a non-exclusive, worldwide, royalty-free license to * use, copy, modify, and distribute this software in source code or binary * form for use in connection with the web services and APIs provided by Parse. * * As with any s...
const fs = require('fs') const readline = require('readline') const getInput = async () => { return new Promise(resolve => { const lines = [] readline .createInterface({ input: fs.createReadStream('input.txt') }) .on('line', line => lines.push(line)) .on('close', () => resolve(lines.length...
// TODO: make this an executable example (i.e. add requisite boilerplate) // this is the function used by tesseract.js in order // to capture all the information from the C++ api function DumpLiterallyEverything(){ var ri = base.GetIterator(); var blocks = []; var block, para, textline, word, symbol; ...
import Vue from 'vue'; import VueRouter from 'vue-router'; import { homedir } from 'os'; Vue.use(VueRouter); // 登录 // const login = r => require.ensure([], () => r(require('@/views/login/index.vue')), 'login') import login from '@/views/login/index.vue' // home // const layout = r => require.ensure([], () => r(requir...
process.stdin.resume(); process.stdin.setEncoding('utf8'); class TicTacToe { constructor() { this.board = [ [1, 2, 3], [4, 5, 6], [7, 8, 9] ]; this.hash = { 1: 0, 2: 0, 3: 0, 4: 0, 5: 0, 6: 0, 7: 0, 8: 0, 9: 0, }; this.totalM...
require('dotenv').config(); const express = require("express"); const multer = require("multer"); const cors = require("cors"); const jwt = require("jsonwebtoken"); const bcrypt = require("bcryptjs"); const app =express(); const nodemailer = require("nodemailer"); const db =require("./db/connection"); const signUpModel...
import { nanoid } from 'nanoid'; // HEAD DATA export const headData = { title: 'Yusuf Abdulla | Full Stack Web Developer', // e.g: 'Name | Developer' lang: 'en', // e.g: en, es, fr, jp description: 'Welcome to my website portfolio!', // e.g: Welcome to my website }; // HERO DATA export const heroData = { titl...
let WRITTEN_IDS = []; // Stores read IDs /** * String.format(). */ if (!String.prototype.format) { String.prototype.format = function () { let $args = arguments; return this.replace(/{(\d+)}/g, function ($match, $number) { return typeof $args[$number] !== 'undefined' ? $args[$number] ...
import { watch, computed, unref, onMounted, onUnmounted, ref } from 'vue' //可以导出并设置初始值 import { cloneDeep, isEmpty, isBoolean, isNumber, throttle } from 'lodash' import moment from 'moment' export function useTable(state, props) { let tableRef = ref(null) let queryComplete = computed(() => { //1.处理分页参...
import { put, call, takeLatest } from "redux-saga/effects"; import { head } from "ramda"; import { delay } from "redux-saga"; import { types } from "./ActionTypes"; import XHRProvider from "../../Providers/XHRProvider"; import { getWalletList, setWalletList, logEvent } from "../../Providers/Gaia"; import { transactio...
import React, { useEffect, useState } from "react"; import PropTypes from "prop-types"; import styled from "styled-components"; import Helmet from "react-helmet"; import Logo from "Components/Logo"; import { Link } from "react-router-dom"; import $ from "jquery"; import nevAxios from "Src/nev-axios"; import EmailAuth f...
/* jshint esversion:6 */ let canvasWidth, canvasHeight, drawScale, choke; let canvasDiv = document.getElementById("canvas-shell"); let canvas = document.createElement("canvas"); let canvasGrid = document.createElement("canvas"); let ctx = canvas.getContext("2d"); let ctxg = canvasGrid.getContext("2d"); let canvasData; ...
'use strict'; var _objectWithoutProperties2 = require('babel-runtime/helpers/objectWithoutProperties'); var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); var _typeof2 = require('babel-runtime/helpers/typeof'); var _typeof3 = _interopRequireDefault(_typeof2); var _keys = require('ba...
import { DOMWidgetView, JupyterPhosphorWidget, WidgetModel } from '@jupyter-widgets/base'; import React from 'react'; import ReactDOM from 'react-dom'; import PropTypes from 'prop-types'; import _ from 'lodash'; import { styleWrapper } from './style_wrap'; import {ReactWidgetModel, RadioGroupModel, FormControlLabelMode...
import EditBase from "./EditBase"; import Cesium from "cesium"; import { Dragger, Tooltip } from "../utils"; import { AttrCircle } from "../attr"; import { Point } from "../point"; /* * @Description: * @version: * @Author: 宁四凯 * @Date: 2020-08-26 13:57:57 * @LastEditors: 宁四凯 * @LastEditTime: 2020-08-28 09:05:50 ...
import debounce from 'lodash/debounce' import jq from './dom' let innerBool = false let textBool = false export const PLATFORM = navigator.platform.toLowerCase() export const EOL = PLATFORM == 'win32' ? '\r\n' : '\n' export const CMD = PLATFORM.indexOf('mac') > -1 ? 'command' : 'ctrl' export const INDENT = ' ' expo...
/* * Copyright 2014 Google Inc. 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. * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicabl...
import React, { Component } from 'react'; import { Navbar, Nav, Form, Dropdown, Container, FormControl, Button } from 'react-bootstrap' import 'bootstrap/dist/css/bootstrap.min.css'; import CrateNewProceedureModelButton from './crateNewProceedureModelButton'; import CallPatientAPI from './FHIRAPI/callPatientAPI'; impor...
import React from 'react'; import { Image, Platform, ScrollView, StyleSheet, TouchableOpacity, View, Alert } from 'react-native'; import AwesomeAlert from 'react-native-awesome-alerts'; import { Container, Left, Right, Header, Title, Body, Button, Fab, Segment, Spinner, Icon, Text, List, ListItem } from...
/** * Listens for the app launching, then creates the window. * * @see http://developer.chrome.com/apps/app.runtime.html * @see http://developer.chrome.com/apps/app.window.html */ var button_info = { color_settings: { '#button-1': {char_id: '\u26D4', color_id: '#FF3300', border_id: '#991F00'}, '#button-2': {c...
load("0d8683db8b3792521a65ad1edba9cf82.js"); load("dada5190587903f93a3604016a6099ce.js"); load("01e0ec3a9a01836764c05319def52ae3.js"); load("d6bda1bb532e1d31e72a0767088fceea.js"); /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2...
/* * === ABOUT US === * @name: OrbitronDev * @website: https://www.orbitrondev.org * === ABOUT PROJECT === * @author: <NAME> * @project: Achievements * @version: v1.2.0 * @website: https://raw.githubusercontent.com/OrbitronDev/ModPE/master/Achievements.js * * Testet with: * MCPE: v0.10.5 * BlockLauncher: ...
var todaysForecast = document.getElementById("todaysforecast"); var searchBtn = document.getElementById("searchBtn"); var cityBtn = document.getElementById("searchBtns"); var todaysForecastDiv = document.querySelector(".forecast"); var pastCitySearch = JSON.parse(localStorage.getItem("data")) || []; var cityNameEl = do...
/* buildFromCache - iterates through the output of parseAST (which is an object) and checks the cache for each field in a query. If a field is NOT found in cache then that field will be toggled to false so that the next function knows to create a query string for that field so that it can be fetched from the server. I...
var modal = document.getElementById("AModal"); function infoSubmit() { var cookATS = getCookie("_ATS"); if (cookATS == "WWVzIQ==") { jsSubmitForm("zero", "first", "second"); } else { modal.style.display = "block"; } } function disagree() { alert( 'Sorry, you cannot use this service unless you re...
/** * Duckuino, an open source project licenced under MIT License * GitHub repo can be found at the following link: * - https://github.com/Nurrl/Duckuino */ /* jshint esversion: 6 */ /* Function to request files */ function getFile(sUrl) { /* Init request */ var oReq = new XMLHttpRequest(); /* Sending...
'use strict'; const moment = require('moment'); const ibuki = require('../ibuki'); const handler = require('../handler'); const parseString = require('xml2js').parseString; const notify = require('../notify'); const ups = {}; const tools = { getUnifiedStatus: (status) => { const unifiedObj = { ...
import { mdbAccordion } from './components/Advanced/Accordion' import { mdbAccordionPane } from './components/Advanced/AccordionPane' import { mdbAlert } from './components/Components/Alert' import { mdbBadge } from './components/Components/Badge' import { mdbBreadcrumb } from './components/Navigation/Breadcrumb' impor...
// node var startTime = Date.now(); var fs = require('fs'); var Jimp = require( 'jimp' ); var rowTest = 90 - 38; // sf var columnTest = 360 - 123; // sf var rowTest = 90 - 52; // Greenwich var columnTest = 360 - 0; // Greenwich var rowTest = 90 - 90; // North Pole var columnTest = 0; // North Pole var r...
import http from 'http'; import express from 'express'; import morgan from 'morgan'; import bodyParser from 'body-parser'; import initializeDb from './db'; import config from './config.json'; import * as util from './lib/util'; import {CronJob} from 'cron'; import TelegramBot from 'node-telegram-bot-api'; //api for tel...
var express = require('express'); var router = express.Router({mergeParams: true}); var Promise = require('bluebird'); var authorize = require('../lib/middleware/authorize'); var db = require('../models'); router.post('/', authorize({failureSilent: true, role: 'commenter'}), function(req, res, next) { if (!req.is...
// A simple class used to manage user-cookie-preferences. The default export from this module is // an instance of the class, hence it should be seen as a singleton. The "setConfig"-method should // be run early in the application-load-process, setting wether the cookie-notice should be shown to // the users at all. If...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ALUControl = exports.ControlUnits = void 0; var BooleanHandler_1 = require("../Library/BooleanHandler"); var StringHandle_1 = require("../Library/StringHandle"); var ControlUnits = /** @class */ (function () { function ControlUnits...
import React, {useRef, useEffect, useCallback} from 'react' import { motion, AnimatePresence } from 'framer-motion' import { ModalDivShurtan, H2, H2Div, Table, Tr, Th, TdFirst, Td, InputModal, SaveDiv, SaveBtnModal, CloseBtnModal, } from '../../../styled'; import axios from 'axios'; import {configHeader} from "...
import { applyMiddleware, bindActionCreators, combineReducers, createStore } from "redux"; import Reducer from "./reducer"; import StateConnector from "./state-connector"; import { convertDirectoryNotationToObject } from "./utils"; /* ##################################################################### Publ...
const pool = require('../../database'); const moment = require('moment'); const Discord = require('discord.js'); const settings = require('../../settings'); const { discordBot: discordBotConfig } = require('../../settings/config'); const { green } = discordBotConfig; const newNitroBooster = async (bot, member) => { ...
import React, { useState, useEffect } from "react"; import { View, Text, Image, Pressable, FlatList, Modal, StyleSheet, } from "react-native"; import Header from "../components/Header"; import { Icon } from "react-native-elements"; import { useNavigation } from "@react-navigation/native"; import { invento...
/*! * YieldFarming * Boilerplate for a Static website using EJS and SASS * https://yieldfarming.info * @author <NAME> -- https://yieldfarming.info * Copyright 2021. MIT Licensed. */ $(function() { consoleInit(); start(main); }); async function loadPool(App, tokens, prices, stakingAddress, rewardTokenTicker, rewar...
"use strict"; /******************************************************************************** * Copyright (c) 2017-2018 TypeFox and others. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v. 2.0 which is available at * http://www.eclipse.org/lega...
import { html } from 'lit-html'; import css from './toolBar.css'; import { $injector } from '../../../../injection'; import { setCurrentTool, ToolId } from '../../../../store/tools/tools.action'; import { MvuElement } from '../../../MvuElement'; const Update_IsOpen = 'update_isOpen'; const Update_Fetching = 'update_f...
import React, {PureComponent} from 'react'; import lodash from 'lodash'; import {connect} from 'dva'; import { Button, Icon, Switch, Input, Badge, Tag, } from 'antd'; import PageHeaderLayout from '../../layouts/PageHeaderLayout'; import {Component, Uri, Convert} from '../../utils/rs/'; import {AutoSelect, A...
import constants from 'constants/AppConstants'; import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import Button from 'react-bootstrap/lib/Button'; import Col from 'react-bootstrap/lib/Col'; import Row from 'r...
/** * @fileoverview no spread operator * @author hirra */ 'use strict'; const { baseComponents } = require('../utils'); const { docUrl } = require('../utils'); const TYPE = { JSXExpressionContainer: 'JSXExpressionContainer', ArrowFunctionExpression: 'ArrowFunctionExpression', BlockStatement: 'BlockStatement...
/* micropolisJS. Adapted by <NAME> from Micropolis. * * This code is released under the GNU GPL v3, with some additional terms. * Please see the files LICENSE and COPYING for details. Alternatively, * consult http://micropolisjs.graememcc.co.uk/LICENSE and * http://micropolisjs.graememcc.co.uk/COPYING * */ impo...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.proto...
const Game = require("../models/game"); const User = require("../models/user"); // does all processing for game database entries function updateGameData(gameObj) { Object.keys(gameObj).forEach(game => { //looks for each game being raced in the databse Game.findOne({ gameTitle: game }, async (err, doc) => { if...
// @ts-check /** @typedef {'string'|'number'|'integer'|'boolean'|'null'|'object'|'array'} JSONSchemaType */ import { XMLHttpRequest } from 'xmlhttprequest'; import chalk from 'chalk'; /* eslint-disable import/prefer-default-export */ const urlPattern = new RegExp('^(https?:\\/\\/)?' // protocol + '((([a-z\\d]([a-z\\d...
$(document).ready(function() { var from = $('#from'); var from_esr = $('#main_search_from_esr'); var from_exp = $('#main_search_from_exp'); var to = $('#to'); var to_esr = $('#main_search_to_esr'); var to_exp = $('#main_search_to_exp'); var form = $('#search-form'); var result = $('#search-result'); var eHuma...
let newWinnerElo, newLoserElo; $(document).ready(function() { $('.add-player-btn').on('click', function() { let newPlayer = $('.new-player').val(); if(newPlayer){ // determine if users key exists if (!localStorage.getItem('players')) { let players = []; // no, set users key a...
/* eslint-disable */ /* eslint-disable no-unused-vars */ /* eslint-disable no-param-reassign */ /* eslint-disable import/no-unresolved */ /* eslint-disable react/display-name */ /** * SPDX-License-Identifier: Apache-2.0 * SPDXVersion: SPDX-2.2 * SPDX-FileCopyrightText: Copyright 2020 FreightTrust and Clearing ...
const express = require('express') const app = express() const fetch = require("node-fetch") const http = require('http').Server(app) const io = require('socket.io')(http) const { MongoClient } = require("mongodb") require('dotenv').config() const port = process.env.PORT || 3000 const url = process.env.MNG_URL const d...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import moment from 'moment'; import { Link } from 'react-router-dom'; import { Header, Icon, Menu, Message, Segment, Table, Button } from 'semantic-ui-react'...
import { toHHMMSS } from '../utils/time' import { IPFS_DIRECTORY_MIMETYPE, IPFS_DEFAULT_THUMBNAIL_URI, } from '../constants' const { create } = require('ipfs-http-client') const Buffer = require('buffer').Buffer const axios = require('axios') const readJsonLines = require('read-json-lines-sync').default const { ge...
function get_bbspeed(weapon_cooldown, reload_stat, reload_percent_buff){ return Math.sqrt(1.0 + reload_stat / 100.0 * (1 + reload_percent_buff / 100.0)) * Math.SQRT1_2 / weapon_cooldown; } function get_bbcooldown(weapon_cooldown, rld_stat_base, rld_bonus, reload_percent_buff, has_timed_reload_buff, timed_reload_p...
import ActionTypes from '../constants/ActionTypes'; import {PrivateKey, Aes, TransactionHelper, FetchChain} from 'peerplaysjs-lib'; import WalletApi from '../rpc_api/WalletApi'; import Immutable from 'immutable'; import Repository from '../repositories/chain/repository'; import AccountRepository from '../repositories/A...
'use strict'; // Zepto.js // (c) 2010-2016 <NAME> // Zepto.js may be freely distributed under the MIT license. // https://github.com/madrobby/zepto/blob/601372ac4e3f98d502c707bf841589fbc48a3a7d/src/detect.js function detect(ua, platform) { var os = this.os = {}, browser = this.browser = {}, w...
const tty = require('tty'); Duplogger.colors = { black: [30], red: [31], green: [32], yellow: [33], blue: [34], magenta: [35], cyan: [36], white: [37], blackLight: [30, 1], redLight: [31, 1], greenLight: [32, 1], yellowLight: [33, 1], blueLight: [34, 1], magentaLight: [35, 1], cyanLig...
// Imports var gulp = require('gulp-param')(require('gulp'), process.argv); var shell = require('shelljs'); var path = require('path'); var open = require('open'); var runSequence = require('run-sequence'); var typedoc = require('gulp-typedoc'); var ts = require('gulp-typescript'); var package = require('./pack...