text
stringlengths
3.22k
29.5k
import _ from 'lodash/fp' import { div, h, span } from 'react-hyperscript-helpers' import { AutoSizer } from 'react-virtualized' import { buttonPrimary, buttonSecondary, Checkbox, link, RadioButton, search } from 'src/components/common' import { icon } from 'src/components/icons' import { textInput, validatedInput } fr...
import React, { useEffect, useState } from "react"; import axios from "../../../axios"; import { useHistory } from "react-router-dom"; import { Card, Container, Row, Col, Table, Button, Modal, Form, Accordion, } from "react-bootstrap"; import { numberWithCommas } from "../../../helpers"; import auth f...
//Desarrollo de las visualizaciones import * as d3 from 'd3'; import { numberWithCommas3 } from '../helpers'; import { getInTooltip, getOutTooltip, positionTooltip } from '../modules/tooltip'; import { setChartHeight } from '../modules/height'; import { setChartCanvas, setChartCanvasImage } from '../modules/canvas-imag...
import React, { Fragment, useEffect, useState, useMemo, useRef } from 'react' import { connect } from 'redux-bundler-react' import { AutoSizer, Table, Column, SortDirection } from 'react-virtualized' import { sortByProperty } from '../../lib/sort' // Components import Button from '../button/Button' import Overlay from...
import { Deck } from './deck.js'; class HighlightPlugin { constructor() { if (hljs === undefined) { throw new Error(`Highlight JS not loaded?`); } this.id = 'highlight' this.HIGHLIGHT_STEP_DELIMITER = '|' this.HIGHLIGHT_LINE_DELIMITER = ',' this.HIGHLIGHT...
////////////////////////////////////////////////////////////////////////////////////////// // ___ _ ___ // // | | \/ | ) | | This software may be modified and distri- // // O- |- | | - | | |- -O bute...
// OrderFormatting.JS // used to format items in your orderbook related to price changes function splitWeakStrong(NumberToSplit, ReferenceNumber) { const equalizerCharForNumber = '*'; const equalizerCharForRef = '#'; const maskCharNoChange = '0'; const maskCharChanged = '1'; var mask = ""...
class Seq { force() { for (const x of this) ; } get length() { let n = 0; for (const x of this) ++n; return n; } toArray() { const a = []; for (const x of this) a.push(x); return a; } toString() { return this.toArray().join(' -> '); } forEach(fn) {...
const debug = require('debug')('kube-watcher:general') const debugEvents = require('debug')('kube-watcher:events') const FULL_DUMP_INTERVAL = process.env.FULL_DUMP_INTERVAL || 60000 const PODS_URL = process.env.PODS_URL || 'http://localhost:8001' + '/api/v1/namespaces/customer/pods' const ENDPOINTS_URL = process.env...
var fs = require('fs'); var _ = require('underscore'); var DefaultRules = load_rules('game_rules.json'); function load_rules(fn) { return JSON.parse(fs.readFileSync(__dirname + '/' + fn, {encoding: 'utf-8'})); } var Game = function(players, rules) { var self = { players: players.slice(0), ...
const { performance } = require('perf_hooks') const AStar = require('./lib/astar') const Move = require('./lib/move') const Movements = require('./lib/movements') const gotoUtil = require('./lib/goto') const Vec3 = require('vec3').Vec3 const { PlayerState } = require('prismarine-physics') const nbt = require('prisma...
// Sets the HTML and text versions on the confirmation email export const confirmationEmail = ( link, team ) => { const body = { // eslint-disable-next-line no-useless-escape html: `<div className=\"email\" style=\"\n border: 1px solid black;\n padding: 20px;\n font-family: sans-serif;\n line-heig...
import "dotenv/config"; import { promisify } from "util"; import fetch from "node-fetch"; import express from "express"; import rateLimit from "express-rate-limit"; import bodyParser from "body-parser"; import * as redis from "redis"; const { SERVER_PORT = 3000, TELEGRAM_TOKEN, TELEGRAM_WEBHOOK, TRACE_MOE_KEY,...
import React, { Component } from 'react'; import classnames from 'classnames'; const outerSize = 234; //tile size const innerSize = 218; //clock size //polar to cartesian var ptc = function(r, theta) { return { x: r * Math.cos(theta), y: r * Math.sin(theta) } } class Clock extends Component { construc...
/***************************************************插件部分*************************************************/ /** * 轮播插件[支持渐隐和直接切换] * 2014-7-7 :完成添加动态banner支持 */ function ScrollBar(settings) { this.leftBtn = settings.leftBtn || null; //向左 this.rightBtn = settings.rightBtn || null; //向右 this.scrollBo...
const EVENTBASEURL="event-api/api/" const LTBASEURL="lt-api/api/" let baseURL=''; if(process.env.NODE_ENV === 'development'){ baseURL ='http://172.16.31.10:18086/api/'; //开发环境 // baseURL ='http://172.16.31.10:18086/api/'; //开发环境 // baseURL ='../../api/'; //生产环境 }else if (process.env.NODE_ENV === 'product...
function deleteTestBucket(id) { $.ajax({ type: 'DELETE', contentType: 'application/json', dataType: 'json', url: base_url + "/testBucket/delete/" + id, beforeSend: function (xhr) { xhr.setRequestHeader('Authorization', "Bearer " + readCookie("TAaccess")); }, success: function () { fetchAllTestBuc...
//ocr process, listen image from contents js and respond text //1. read image //2. crop image to only get text position, using bucket tool(floodfill) method to mask out //3. use tesseract to process ocr to image to get text window.addEventListener("message", function(request) { if (request.data.type === 'ocr') { ...
// Name: <NAME> // Student number: 11293284 // Padding for the piechart var piePadding = { top: 10, right: 125, bottom: 30, left: 5 }; function pieChart() { /* * Draws an interactive piechart of the types of stars */ // Get the dimensions of the piechart svg var svgWidth = docum...
const path = require("path"); const { readFileSync, existsSync } = require("fs"); const { bsv, compileContract: compileContractImpl } = require("scryptlib"); const { getPlatformScryptc } = require("scryptlib/dist/compilerWrapper"); const { exit } = require("process"); const Signature = bsv.crypto.Signature; const BN =...
import React from 'react'; import { Link } from 'react-router-dom'; import Loader from 'react-loader-spinner'; import { confirmAlert } from 'react-confirm-alert'; import { toast } from 'react-toastify'; import { connect } from 'react-redux'; import isEmpty from 'lodash/isEmpty'; import NoSleep from 'nosleep.js'; import...
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } // START - Program.js const lineToString = line => { return line.op + ' ' + line.args[0] + ' ' + (line.args...
import {RoomEnum} from "../../enums/RoomEnum.js"; import {UserStats} from "../../api/UserStats.js"; export let socket = io(); const http = new XMLHttpRequest(); let room = null; export class MainMenu extends Phaser.Scene { constructor() { super({key: "MainMenu"}); this.text = ""; } init(...
import React, { useState, useContext } from "react"; import Stars from "./Stars"; import { Context } from "../../App"; import { Link } from "react-router-dom"; import Footer from "./Footer"; const Review = () => { const context = useContext(Context); const [reviews, setReviews] = useState([]); const...
const flattenDeep = require('lodash/flattenDeep') const memoize = require('lodash/memoize') const range = require('lodash/range') const chunk = require('lodash/chunk') const Web3 = require('web3') const Bottleneck = require('bottleneck') const { get, post } = require('@origin/ipfs') const { debug, validateParams } = ...
var puntos=[ { "name": "<NAME>", "location": { "coordinates": { "lat": -12.1276493, "lng": -77.0008835 }, "full_address": "Dirección completa #1" }, "phone": "65 9332-6545", "type": { "name": "Su...
/* Copyright 2016 First People's Cultural Council 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 w...
// Global var userIngredients = []; //div id = $("#ingredientTags") //needed for click function on submit button var healthsearch = "" var dietsearch = "" var caloriessearch = "" var ingredientssearch = "" var dynamicurl = "https://api.edamam.com/search?q=" + userIngredients + "&app_id=65e2efca&app_key=a27e3c83b57...
// =================== // join raid wizard // =================== const WizardScene = require('telegraf/scenes/wizard') const moment = require('moment-timezone') const { Markup } = require('telegraf') var models = require('../models') const Sequelize = require('sequelize') const Op = Sequelize.Op const listRaids = requ...
import mongoose from "mongoose"; import Fuse from "fuse.js"; import Post from "../models/Post.js"; import { uploadAudioToS3, uploadImageToS3 } from "./s3.js"; import User from "../models/User.js"; function fisherYates(myArray) { var i = myArray.length; if (i == 0) return false; while (--i) { var j = Math.fl...
import _ from "lodash"; import React, { Component } from "react"; import { connect } from "react-redux"; import { Alert, ListView, View, ScrollView, TextInput, Image, TouchableHighlight, TouchableOpacity, Dimensions, Platform, StatusBar, SafeAreaView } from "react-native"; impor...
/** @module ember-jsonapi-resources @submodule serializers **/ import Ember from 'ember'; import { singularize, pluralize } from 'ember-inflector'; /** Serializer/Deserializer for a JSON API resource object, used by adapter. When extending use a mixin or define transform methods to serialize and/or deseria...
// Copyright 2017 Esri // 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, softwar...
'use strict'; var bson = alchemy.use('bson'), emitter = alchemy.use('events').EventEmitter, maxSize = 65536, mevents = new emitter(), udpIp = alchemy.settings.multicast_ipv4, udpPort = 4002, callbacks = {}, services = alchemy.shared('alchemy.services'), submits...
import React, { useState, useEffect, Fragment } from "react"; import CircularProgressBar from "./components/CircularProgressBar"; const examples = [ { id: 0, name: "minimal", percent: 75 }, { id: 1, name: "minimal width shadow", percent: 75, styles: { borderRadius: "50%", ...
const { log } = console; import '../pages/index.scss'; import smoothscroll from 'smoothscroll-polyfill'; import ThemeSwitch from '../components/ThemeSwitch'; import Input from '../components/Input'; import { footerThemeSwitcher, headerThemeSwitcher, footerInputElement } from '../utils/variables'; // --+++Импорт S...
import CPM from "../models/CPM.js" import CPMEvol from "../models/CPMEvol.js" import Canvas from "../Canvas.js" import GridManipulator from "../grid/GridManipulator.js" import CentroidsWithTorusCorrection from "../stats/CentroidsWithTorusCorrection.js" import Centroids from "../stats/Centroids.js" /** This class prov...
/** * scratch-ln generators. * * Generator, using the blockly generator stuff to transform blocks -> text * * @file This files defines the blockspecifications const. * @author <NAME>. */ import ScratchBlocks from 'scratch-blocks'; import {blockspecifications} from "../blockspecification/blockspecification"; im...
/** * @typedef {import("discord.js").TextChannel} DiscordJs.TextChannel * @typedef {import("../../types/logTypes").LogEntry} LogTypes.LogEntry */ const request = require("@root/request"), util = require("util"), settings = require("../../settings"); /** @type {LogTypes.LogEntry[]} */ const queue = []; /*...
import resizeImage from "resize-image"; import wfc from '../../wfc/client/wfc'; import ConversationType from "../../wfc/model/conversationType"; import Config from "../../config"; import GroupMemberType from "../../wfc/model/groupMemberType"; function mergeImages(sources = [], options = {}) { // Defaults let d...
/*** * @name 滑动验证 * @author 稀饭 * @date 2020/04/13 * @export {class} VerificationSlider * @constructor * @param onload 在传入的imgList列表中第一张图片加载成功时调用 * @param opts 配置项 * opts结构: * imgList {Array} 用来绘制的图片数组 可是是Image对象或者img标签 也可以是正确的文件路径 * canvas {HTMLCanvasElement} 原生画布,绘制图片的画布 必填 * ...
import React from 'react'; import { FormattedMessage, injectIntl, intlShape } from 'react-intl'; import PropTypes from 'prop-types'; import { Grid, Typography, Button, Modal, Tabs, Tab } from '@material-ui/core'; import { withStyles } from '@material-ui/core/styles'; import messages from '../messages'; import playHe...
let frames = 0; // Le nombre de frames écoulées depuis la dernière seconde let gameStatus = 0; //0=partie en cours, 1=gagné, 2=perdu window.addEventListener("load", async () => { // Au chargement de la page let images = await loadImages(); // On charge les images let canvas = document.getElementById("gameCanvas")...
/* eslint-disable class-methods-use-this */ /* eslint-disable consistent-return */ /* eslint complexity: 'off' */ /** * A transport module for postmaster-general using AWS SNS and SQS. * @module index */ const Promise = require("bluebird"); const _ = require("lodash"); const AWS = require("aws-sdk"); const { Consu...
/** * Copyright 2021 Google LLC * * 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...
/* GENERATED FILE */ import { html, svg, define } from "hybrids"; const PhAndroidLogo = { 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}"...
import React, { useState, useEffect, useRef } from "react"; import configData from "../config_url.json"; import { MDBDataTable, MDBInput } from "mdbreact"; import { useParams } from "react-router-dom"; import Button from "@material-ui/core/Button"; import FastfoodIcon from "@material-ui/icons/Fastfood"; import Circular...
'use strict'; //===============================================================/ // =initialization //===============================================================/ // include plugins var gulp = require('gulp'), argv = require('yargs').argv, concat = require('gulp-concat'), changed = require('gulp-changed'),...
import PropTypes from 'prop-types'; import React, { PureComponent } from 'react'; import { ScrollView, InteractionManager, LayoutAnimation, } from 'react-native'; import _ from 'lodash'; import { connectStyle } from '@shoutem/theme'; import { View } from '../View'; import { Page } from './Page'; /** * Render...
/* Speech Recognition - simple implementation of W3C Web Speech API designed to allow overwriting of nearly all attributes and function callbacks to implement custom behavior */ const voiceTranscript = document.getElementById('voice-transcript'); // create and return new WebSpeechRecognition object function WebSp...
import React, { Component } from "react"; import set from "lodash-es/set"; import { connect } from "react-redux"; import { withRouter } from "react-router-dom"; import Card from "../../../common/Card/Card"; import omit from "lodash-es/omit"; import { CATEGORIES_NAMES, PLACE_TYPES, USER_TYPES } from "../../../constans";...
import React, { useState, useEffect, useCallback } from 'react'; // GameManager import { returnGrid, returnScore, returnUpcomingShape, returnLevel, returnRowsCleared, returnDropSpeed, initialize, update, renderRotateShape, renderMoveLeft, renderMoveRight, renderDrop } from '../gameManager'; // Ai import { makeNextMov...
'use strict'; require('coffee-script/register'); var Helper = require('hubot-test-helper'); var scriptHelper = new Helper('../hubot/slack-github-issues.js'); var User = require('@slack/client/lib/models/user'); var ReactionMessage = require('hubot-slack/src/reaction-message'); var SlackRtmDataStore = require('../lib/...
import { html } from "lit-html"; import { toggle } from "../components/Toggle"; import OverlayContainer from "../layers/OverlayContainer"; import PartisanOverlayContainer from "../layers/PartisanOverlayContainer"; import LayerTab from "../components/LayerTab"; import Layer, { addBelowLabels } from "../map/Layer"; impor...
// window._ = require('lodash'); /** * We'll load jQuery and the Bootstrap jQuery plugin which provides support * for JavaScript based Bootstrap features such as modals and tabs. This * code may be modified to fit the specific needs of your application. */ try { window.Popper = require("popper.js").default; w...
'use strict'; var s2 = require('s2-geometry').S2, Long = require('long'), ByteBuffer = require('bytebuffer'); /** * Various utilities for dealing with Pokémon Go API requests. * @class Utils * @memberof pogobuf */ module.exports = { /** * Provides cell IDs of nearby cells based on the given coor...
const versions = require('./vars.json').versions , MIN_GCC_VERSION = versions.gcc , MIN_LLVM_VERSION = versions.llvm , MIN_PYTHON_VERSION = versions.python.min , MAX_PYTHON_VERSION = versions.python.max , MIN_NODE_GYP_VERSION = versions.gyp , MIN_NODE_VERSION = versi...
var exec = cordova.require("cordova/exec"); var sha256 = require("./Sha256"); var ready = false; var apiResultReceivedCallbackSet = false; var _dummy = function () { }; var apiUserCallbacks = { resultReceived: _dummy }; var userCallbacks = { qrCodeScanned: _dummy, ready: _dummy, serviceDataUpdated: ...
const express = require("express"); const BigCommerce = require("node-bigcommerce"); const router = express.Router(); const { Reseller, UploadFile, Contact } = require("../models"); const unirest = require("unirest"); //BigCommerce main api connection const bigCommerce = new BigCommerce({ clientId: process.env.BC_CL...
'use strict'; // const course = [ // // 1 obj = 1 chap-content // // 1 chap-content = * articles // // 1 article = 1 title + * art-content // { // chapTitle: "Async JS Intro", // content: [ // { title: "Intro", content: "lorem ipsumdolor sit amet consectetur adipisicing elit. Lorem ipsum dolor sit ...
$(document).ready(function(){ $('.tabs').tabs(); $('.dropdown-trigger').dropdown({ constrainWidth: false }); $('.carousel.carousel-slider').carousel({ fullWidth: true, indicators: true }); var elem = document.querySelector('#filters-id'); var instance = M.Collapsible.init(elem, { accordion...
import * as THREE from 'three' //node.js import loop from 'raf-loop' import WAGNER from '@superguigui/wagner' import BloomPass from '@superguigui/wagner/src/passes/bloom/MultiPassBloomPass' import FXAAPass from '@superguigui/wagner/src/passes/fxaa/FXAAPass' import Noise from '@superguigui/wagner/src/passes/noise/noise...
const path = require('path'); const minimatch = require('minimatch'); const fs = require('fs-extra'); const util = require('./util.js'); const FileActions = { REMOVE_ALL: 0, REMOVE_BUNDLED: 1, KEEP_ALL: 2, KEEP_NECESSARY: 3, }; const MissingFileTagActions = { KEEP: 10, REMOVE: 11, }; const T...
let rowNum = 2 //Adding new rows function addRow(){ let host = prompt("Enter Host Name",""); let table = document.getElementById('table'); table.innerHTML+=` <div class="image row${rowNum}"> <img src="https://pix10.agoda.net/hotelImages/747/7476707/7476707_19053021300074837521.jpg?s=1024x768" alt=""> ...
// Leaflet Control class Leaflet { constructor() { this.Control = { "locate": "", "maps": "" }; // leaflet object }; init() { const Mono_Filter = ['grayscale:90%', 'bright:85%', 'contrast:130%', 'sepia:15%']; let def = Conf.default; let params = { maxZoom: de...
const fetch = require('node-fetch') const { t: typy } = require('typy') const { getToken, requestHeaders, stripHtml } = require('./shared/helpers') const { successResponse, errorResponse } = require('./shared/response') const { sentryWrapper } = require('./shared/sentryWrapper') // Used to detect changes between CF an...
console.log("custom aeri.js initiated"); $("#items_table_tax").hide(); $("#items_table_total_qty").hide(); $("#items_table_total_amount").hide(); //logic for custom ajax select menu for inward test $("#inward_test_datalist").on('change', function () { var val = this.value; var url = '/getTest/'+val; ...
/** * This file is the main class that implements a wrapper around bthrads worker classes */ let threads; const path = require('path'); const EventEmitter = require('events'); const fs = require('fs'); /** * Main method of the wrapper called to initialize a wrapped object * @param options Object with settings for ...
import React, { Component } from 'react'; import $ from 'jquery'; import { Router, Route, hashHistory, IndexRoute, Redirect, IndexLink } from 'react-router'; import { Link, HashRouter } from 'react-router-dom' import { connect } from 'react-redux'; import PropTypes from "prop-types"; import PubSub from 'pubsub-js'; imp...
/* MIT License Copyright (c) 2017 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, su...
// Public search interface // 'use strict'; const assert = require('assert'); const http = require('http'); const path = require('path'); const serialize = require('serialize-error').serializeError; const url = require('url'); const Daemon = require('./daemon'); const { ...
var canvas; var ctx; var dot; var food_array; var food; var dots; var food_x; var food_y; var movingLeft = false; var movingRight = true; var movingUp = false; var movingDown = false; var inGame = true; const TEXT_SIZE = 30; const DOT_SIZE = 90; const START_DOTS = 3; const ALL_DOTS = 900; const MAX_RAND = 10; c...
// // bot.js // examples // // Created by <NAME> on 2/20/14. // Modified by Philip on 3/3/14 // Copyright 2014 High Fidelity, Inc. // // This is an example script that demonstrates an NPC avatar. // // Distributed under the Apache License, Version 2.0. // See the accompanying file LICENSE or http://www.apache.o...
import React from 'react'; import queryString from 'query-string'; import { BrowserRouter as Router } from 'react-router-dom'; import { fireEvent } from '@testing-library/react'; import { createMemoryHistory } from 'history'; import { noop } from 'lodash'; import { renderWithIntl } from '@folio/stripes-data-transfer-c...
/* eslint node/no-callback-literal:off */ /** * @copyright 2013 <NAME> * @copyright 2016 commenthol * @license MIT * @module perihelion */ /** * Perihelion: Chapter 38, Planets in Perihelion and Aphelion. * * Functions Aphelion and Perihelion implement algorithms from the book * to return approximate results. ...
import React from 'react'; import { mount } from 'enzyme'; import IngredientsModal from './IngredientsModal'; import Modal from '../Modal'; import Substitutions from '../Substitutions'; const ingredients = ["1 cup all-purpose flour (plus extra for dusting)", "3 tbsp sugar (refined)", "2 tsp oil", "1/4 tsp vanilla extr...
const { app, BrowserWindow, Menu, shell, ipcMain } = require('electron'); const url = require('url'); const path = require('path'); // set userData to use `digital-paper-edit-electron` to be backward compatible before name change from `digital-paper-edit-electron` to `autoEdit 3`; // https://www.electronjs.org/docs/api...
var through = require('through2') var parseExif = require('exif-reader') module.exports = function () { var offset = 0 var pending = 0 var buffers = [] var pos = 0 var s1 = 0, s2 = 0 var state = 'ff' var started = false var dqtSeq = 0 var width = -1, height = -1 return through.obj(write, end) fu...
const crypto = require('crypto'); const ecdh = crypto.createECDH('secp256k1'); const EC = require("elliptic").ec; const ec = new EC("secp256k1"); const fs = require('fs'); const algo = require('algosdk'); const request = require('request'); const config = require('./config'); const chalk = require('chalk'); const figle...
const { expect } = require("chai"); const { expectRevert, expectEvent, constants, BN } = require("@openzeppelin/test-helpers"); const { mineBlock } = require("../Utils/Ethereum"); const StakingLogic = artifacts.require("StakingMockup"); const StakingProxy = artifacts.require("StakingProxy"); const SOV_ABI = artifacts...
/* * @(#)uploader.js */ /* * Author: <NAME> * Created: 2015/08/28 * Description: The uploader module */ var Util = require('./utils.js'); var fs = require('fs'); var path = require('path'); var http = require('http'); var digestClient = require('http-digest-client'); var exec = require('child_process').exec; va...
// /////////////////////////////////////////////////////////////// // // // JavaScript XML Database Library v0.5 // // Copyright (C) 2002 <NAME>. All rights reserved. // // e-mail: <EMAIL> // // ...
// Bucle optimizado para animaciones web. (function() { var lastTime = 0; var vendors = ['ms', 'moz', 'webkit', 'o']; for(var x = 0; x < vendors.length && !window.requestAnimationFrame; ++x) { window.requestAnimationFrame = window[vendors[x]+'RequestAnimationFrame']; window.cancelAnimationFrame = wi...
import React from "react"; import {Text, ScrollView, TouchableOpacity, View, Image, TextInput, StyleSheet} from "react-native"; import {Wallet, Contract, ENS} from "../../../AliceSDK/Web3"; import {E2EABI} from "../ABI"; import {NavigationBar} from "../../../AliceComponents/NavigationBar"; import { ethers } from 'ether...
// Copyright 2013 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. /** * @fileoverview Utilities for rendering most visited thumbnails and titles. */ /** * The origin of this request. * @const {string} */ const MV_D...
import React, {Component} from 'react'; import axios from 'axios'; //import {Link} from 'react-router-dom'; class NewInstance extends Component { constructor(props) { super(props); this.state = { groups: [ ], disks: [ { "name": "sys...
/* admin js for the template system We can improve this by using a form validator such as parsley, this is the bootstrapped version with the simplest use case. */ var rootUrl = location.protocol + '//' + location.host; //have the display messages defined here so we can easily call them. var loginError = "Username ...
const { config } = require('.'); const {emit, players, util, chunks, options} = require('./bullet'); /** * default skill points */ const defaultSkillValues = { next_level_xp: 60, level: 0, xp: 0, carry: 0, dmg: 10, hp: 100, max_carry: 200, max_hp: 100, max_sp: 30, skill_points: 0, sp: 30 }; /** * amount...
var t = 1; var dt = 0.001; var rPerM = 5; var rcutoff = 1e-17; var iterationsPerDraw = 5; // unit conversions var PxPerMeter = 30. // for particle creation by mouseclick var X = 0; var Y = 0; // colors var boxCol = [100,100,100]; var backCol = [255,255,255]; // other var sigma = 0.001; var epsilon = 1; var box; v...
/* istanbul ignore if */ if (!Error.prepareStackTrace) { require('source-map-support/register'); } import fs from 'fs'; import gawk from 'gawk'; import os from 'os'; import path from 'path'; import { arch } from 'appcd-util'; import { cmd, run, which } from 'appcd-subprocess'; import { DataServiceDispatcher } from '...
// 快速幂 function fast_power(a, n, mod) { // body... var result = 1; var va = a%mod; var pow = n; while (pow > 0) { if (pow&1 == 1) { result = (result*va) % mod; } pow >>= 1; va = (va*va) % mod; } return result; } // 扩展欧氏算法求模数的逆元 function mod_inverse(num, mn) { var ret = new Array(); // 数据安全检查...
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnPrope...
const ordenarArrayporFecha = require("../../../helpers/orderArrayByDate"); class PagoBusiness { constructor({ AbonoRepository, PagoDanioRepository, FacturacionRepository, PagoAccesorioRepository, PagoRepository, PagoArriendoRepository, ArriendoRepository, PagoExtraRepository }) { this._pagoExtraRepository...
module.exports = assert /** * Available under MIT license * <NAME> <http://josh.mit-license.org> * `isEqual` and its dependencies from: * Lo-Dash 1.0.1 <http://lodash.com/> * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/> * Based on Underscore.js 1.4.4 <http://underscorejs.org/> * Copyrigh...
'use strict'; const Term = function(en, fr) { this.en = en; this.fr = fr; }; const Couple = function(id, firstTerm, secondTerm, wtf, polarized) { this.id = id; this.firstTerm = firstTerm; this.secondTerm = secondTerm; this.wtf = wtf; this.polarized = polarized; }; Couple.prototype = { hasTerm: functio...
var jade = require('jade'); var coffee = require('./coffee'); var crypto = require('crypto'); var path = require('path'); var fs = require('fs'); var os = require('os'); //process.env.DEBUG = 'derby-jade'; var debug = require('debug')('derby-jade'); var options = {}; var defaultIndent = 2; //process.platform = 'win32'...
const $ = jQuery = jquery = require ("jquery") const ui = require ("jquery-ui-dist/jquery-ui.js") const notification = require ("cloudflare/core/notification") const common = require ("cloudflare/common") const global = require ("cloudflare/global") require ("cloudflare/speed/automatic_platform_optimization") require ...
import React, { Component } from 'react'; import { connect } from 'react-redux'; import ReactTimeout from 'react-timeout'; import Sound from 'react-sound'; import MonsterAttack from '../monsters/assets/monster-attack.wav'; import MonsterDeath from '../monsters/assets/monster-death.wav'...
process.env.NTBA_FIX_319 = 1; const TelegramBot = require("node-telegram-bot-api"); const fetch = require("node-fetch"); const fs = require("fs"); const config = require("./config.json"); let chatIds = new Set(config["chatIds"]); chatIds.add(config["adminChatId"]); const bot = new TelegramBot(config["botToken"], { p...
// FeedHenry Metrics Generator // // Responsible for producing rolled up metrics data // and writing messages to log files // "use strict"; var fs, fhmsg, helpers, async, fhdb; // using node-fs here rather than fs allows us to mkdir recursively //spawn = require('child_process').spawn; fs = require('node-fs'); async ...