text
stringlengths
5.97k
41.2k
import React, { Component } from 'react' import PropTypes from 'prop-types' import classnames from 'classnames' import {connect} from 'react-redux' import {qrcode} from 'qrcode-npm' import copyToClipboard from 'copy-to-clipboard' import ShapeShiftForm from '../shapeshift-form' import {buyEth, showAccountDetail} from '....
/** * Events Utils. * * Waiting for VS Code to support JavaScript private fields. * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes/Class_fields * Meantime keep `_` for private. */ import Vue from 'vue' const defaultEventDuration = 2 // In hours. const minutesInADay = 24 * 60 // Don't ...
import React from 'react' import {Select, MenuItem, TextField, Divider, Button, Container, Grid, makeStyles, Typography, Icon, MobileStepper, Switch } from '@material-ui/core' import {useForm, useFieldArray, Controller} from "react-hook-form"; import {compdate,getCurrentDate, convt, getInputDateTime, getPrizeNames} fro...
var utils = require('utils'), lib = require('lib'); var exports = { events: events.map([ 'propChange', 'childControl', 'changeState', 'idControl', 'destroy', 'show', 'hide', 'remove', 'attach', 'detach', 'resize', /* not used */ 'change', 'select', '...
const St = imports.gi.St; const Meta = imports.gi.Meta; const Atk = imports.gi.Atk; const Clutter = imports.gi.Clutter; const Main = imports.ui.main; const Tweener = imports.ui.tweener; const Gio = imports.gi.Gio; const Me = imports.misc.extensionUtils.getCurrentExtension(); const WorkspaceSwitcherPopup = imports.ui.wo...
'use strict'; const path = require('path'); const fs = require('fs'); const jwt = require('jsonwebtoken'); const joi = require('joi'); const uuid = require('uuid/v4'); const {initMetadataFromRequest} = require('./common'); const getReqRespRpcValidation = function getReqRespRpcValidation(validation, methodName) { c...
/** * @author <a href="mailto:<EMAIL>"><NAME></a> */ var assert = require('assert-plus'); var bignum = require('bignum'); var bunyan = require('bunyan'); var crypto = require('crypto'); var common = require('../common'); var dtrace = require('../dtrace'); var fash = require('../index'); var util = require('util'); v...
/** * 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 appli...
import _ from 'underscore'; import util from 'util'; import { Console } from '../console/console.js'; import buildmessage from '../utils/buildmessage.js'; import files from '../fs/files.js'; import bundler from '../isobuild/bundler.js'; import archinfo from '../utils/archinfo.js'; import release from '../packaging/rele...
var Adapter = require('./adapter'); var FhirClient = require('./client'); var Guid = require('./guid'); var jwt = require('jsonwebtoken'); var BBClient = module.exports = {debug: true} function urlParam(p, forceArray) { if (forceArray === undefined) { forceArray = false; } var query = location.search.subs...
// Translation strings var strOptions = getText('options'); setHtml($$('title'), strOptions); setHtml($$('h1 a'), strOptions); setHtml($$('label[for="align"]'), '@align'); var $option = $$$('option'); setHtml($option[0], '@top_left'); setHtml($option[1], '@top_right'); setHtml($option[2], '@bottom_left'); setHtml($opt...
"use strict"; var logger = require('../../server/logger.js').get('appium') , _ = require('underscore') , fs = require('fs') , async = require('async') , exec = require('child_process').exec , path = require('path') , ncp = require('ncp') , xcode = require('./xcode.js') , Simctl = require('./simctl.js')...
/*! * https://cocreate.app * https://github.com/CoCreate-app/Realtime-Datatables * Released under the MIT license * https://github.com/CoCreate-app/Realtime-Datatables/blob/master/LICENSE */ var dtOBJs = []; function initSockets() { CoCreateSocket.listen('createDocument', function(data) { createdDocument...
$(document).ready(function() { $('.phone-mask').mask("+7 (999) 999-99-99"); var focusVal = ''; var documentScroll = ''; var headerHeight = $('#header').height(); var submenuHeight = $('.menu .list:first-of-type .submenu').innerHeight(); $('.focus').focus(function() { focusVal = $(this)....
// About 'y' flag // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/sticky // http://developer.mozilla.org/es4/proposals/extend_regexps.html#y_flag // http://wiki.ecmascript.org/doku.php?id=proposals:extend_regexps&s=regexp#y_flag // http://mathiasbynens.be/notes/javascript-unic...
// core nodes import PropertyNode from './core/PropertyNode.js'; import VarNode from './core/VarNode.js'; import AttributeNode from './core/AttributeNode.js'; import ConstNode from './core/ConstNode.js'; import UniformNode from './core/UniformNode.js'; // accessor nodes import BufferNode from './accessors/BufferNode.j...
// @flow import { getLoader, getWalletExists, createWallet, openWallet, closeWallet, getStakePoolInfo, rescanPoint } from "wallet"; import * as wallet from "wallet"; import { rescanCancel } from "./ControlActions"; import { getWalletServiceAttempt, startWalletServices, getBestBlockHeightAttempt, cancelPingAttempt }...
"use strict" const fs = require('fs'); const path = require('path'); const util = require('util'); const {Readable, pipeline, finished} = require('stream') const DBWriter = require('./dbWriter.js'); const YadamuLibrary = require('./yadamuLibrary.js'); const StringWriter = require('./stringWriter.js') const NullWrite...
const TRANSLATE_MODE = 0; const ANALYZE_MODE = 1; const CODE_MORSE = 0; const CODE_BRAILLE = 1; const LANG_AUTO = 0; const LANG_EN = 1; const LANG_JA = 2; const LANG_RU = 3; const LANG_GR = 4; const LANG_HE = 5; const LANG_AR = 6; const LANG_PR = 7; const LANG_KO = 8; const LANG_TH = 9; const MORSE_...
// ACCELEROMETER TEST function accelerometerOnSuccess(acceleration) { accel_x.innerHTML = acceleration.x; accel_y.innerHTML = acceleration.y; accel_z.innerHTML = acceleration.z; accel_timestamp.innerHTML = acceleration.timestamp; }; function accelerometerOnError() { alert('accelerometer onError!')...
module.exports = Player var h = require('virtual-dom/h') var hyperx = require('hyperx') var hx = hyperx(h) var prettyBytes = require('prettier-bytes') var Bitfield = require('bitfield') var TorrentSummary = require('../lib/torrent-summary') var {dispatch, dispatcher} = require('../lib/dispatcher') // Shows a stream...
// eslint-disable-next-line import/order import { test } from '../tools/prepare-test-env-ava.js'; // eslint-disable-next-line import/order import { spawn } from 'child_process'; import { provideHostStorage } from '../src/controller/hostStorage.js'; import { buildVatController, loadBasedir, initializeSwingset, ...
/* * genctype.js - ilib tool to generate the json ctype information from the Unicode * data files * * Copyright © 2013-2015, 2018, 2020 JEDLSoft * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the L...
function getAllCourses() { var request = $.ajax({ url : BASE_URL + 'get_course.php', type : 'get' }); $.blockUI({ message: 'Loading..' }); request.done(function(response, textStatus, jqXHR) { setCourses(response); $.unblockUI(); getCourses().forEach( function(course) { var option = ...
// This mapping table should match the discriminants of // `rustdoc::html::item_type::ItemType` type in Rust. const itemTypes = [ "mod", "externcrate", "import", "struct", "enum", "fn", "type", "static", "trait", "impl", "tymethod", "method", "structfield", "varia...
function updateState(state, action) { return Object.assign({}, state, action); } function elt(type, props, ...children) { let dom = document.createElement(type); if (props) Object.assign(dom, props); for (let child of children) { if (typeof child != "string") dom.appendChild(child); else ...
'use strict'; /* For ESLint: List any global identifiers used in this file below */ /* global browser, log, License, runBandaids, openTab */ // Set to true to get noisier console.log statements const VERBOSE_DEBUG = false; let loggingEnable = false; const THIRTY_MINUTES_IN_MILLISECONDS = 1800000; // Enable...
import { html, render } from './lib/lit-html/lit-html.js'; import { buildSlideRightTitle, secondLevelScreenShow, secondLevelScreenHide, updateMain, sync, isChrome } from './main.js'; import { speak } from './vocalize.js'; import { showCloseAccountPopup } from './account.js'; import { combobox } from './combobox.j...
// D3 Animated Scatter Plot // Section 1: Pre-Data Setup // =========================== // Before we code any data visualizations, // we need to at least set up the width, height and margins of the graph. // Note: I also added room for label text as well as text padding, // though not all graphs will need those specif...
import React, { Component } from 'react'; import Layout from "../components/layout"; import Highcharts from 'highcharts'; import HighchartsReact from 'highcharts-react-official'; import auth from "../services/authService"; import crypto from "../services/cryptoService"; import loading from "../src/91.gif"; import cry...
/* new syntax: #foo and `foo match the string object 'foo' (it's also accepted in my JS) 'abc' match the string object 'abc' 'c' match the string object 'c' ``abc'' match the sequence of string objects 'a', 'b', 'c' "abc" token('abc') [1 2 3] match the array object [1, 2, 3] foo(bar)...
/* Voucher System for SpacialGaze Coded by HoeenHero */ 'use strict'; const fs = require('fs'); let writeJSON = true; let noRead = false; let shopItems = ['Custom Symbol', 'Custom Avatar', 'Custom Color', 'Custom Title', 'Custom Icon']; const eventLeaders = ['krakenmare', 'celestialtater', 'insist']; const exp...
import webextMenus from "webext-menus"; import {createLock} from "@eight04/read-write-lock"; import browser from "webextension-polyfill"; import {pref} from "./lib/pref.js"; import {createTab} from "./lib/tab.js"; import {fetchImage} from "./lib/fetch-image.js"; import {download} from "./lib/downloader.js"; import {im...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } var R = require('ramda'); var R__default = _interopDefault(R); var RS = require('ramdasauce'); var RS__default = _interopDefa...
import $ from 'jquery'; import Component from '@ember/component'; import Editor from 'mobiledoc-kit/editor/editor'; import Ember from 'ember'; import counter from 'ghost-admin/utils/word-count'; import createCardFactory from '../lib/card-factory'; import defaultCards from '../cards/index'; import layout from '../templa...
var Goalkeepers = ["<NAME>","<NAME>","<NAME>","<NAME>","<NAME>","<NAME>","<NAME>","<NAME>","<NAME>","<NAME>","<NAME>","<NAME>","<NAME>","<NAME>","<NAME>","<NAME>","<NAME>","<NAME>","<NAME>","<NAME>","<NAME>","<NAME>","<NAME>", "<NAME>","<NAME>","<NAME>","<NAME>","<NAME>","<NAME>","<NAME>"]; var Defenders = ...
var demo_contents_import_running = false; var demo_contents_iframe_running = false; window.onbeforeunload = function() { if ( demo_contents_import_running ) { return demo_contents_params.confirm_leave; } }; // ------------------------------------------------------------------------------- ...
var createMap = function(game){ } var player; var score = 0; var scoreText; //Player physics settings var HORIZONTAL_TOP_SPEED = 225; var JUMP_VELOCITY = 425; var WALLJUMP_HORIZONTAL = 50; var WALLJUMP_VERTICAL = 375; var HORIZONTAL_ACCEL = 2000; //tilemap stuff var map; var MAP_WIDTH = 60; var MAP_HEI...
import { registerBidder } from '../src/adapters/bidderFactory.js'; import { config } from '../src/config.js'; import * as utils from '../src/utils.js'; import { BANNER, NATIVE } from '../src/mediaTypes.js'; import { getStorageManager } from '../src/storageManager.js'; import { ajax } from '../src/ajax.js'; export const...
/* app manager binds z.js data to live running metaversefile apps. you can have as many app managers as you want. */ import * as THREE from 'three'; import * as Z from 'zjs'; import {makePromise, getRandomString} from './util.js'; import physicsManager from './physics-manager.js'; import metaversefile from ...
import React, { useRef, useEffect, useState } from 'react'; import { connect } from 'react-redux'; import { Helmet } from 'react-helmet'; import { Link } from 'gatsby'; import './ProductPage.scss'; import { useLazyQuery } from '@apollo/client'; import { Controller, Scene } from 'react-scrollmagic'; import ProductForm f...
/** * Created by <NAME> (<EMAIL>) on 14-03-18. */ import BattleManager from './BattleManager' import Boot from './Boot'; import Bubble from './Bubble' import ClassPanel from './ClassPanel' import Client from './Client' import Engine from './Engine' import InfoPanel from './InfoPanel' import Menu from './Menu' import ...
import React, { Component } from 'react' import { View, Text, StyleSheet, Dimensions, TextInput, Modal, TouchableHighlight, KeyboardAvoidingView,Alert,ScrollView,Picker,AsyncStorage} from 'react-native' import { getStatusBarHeight } from 'react-native-status-bar-height'; import Botao from '../componentes/botao' import ...
"use strict"; var MAP, PROPS = {}, SEEN, FLOOR, PLAYER, DUNGEON = 1; var COLS = 20, ROWS = 30, ROOMS = 5, ENEMIES = 5, HP = 5; var VISIBLE_WIDTH = 30; // ROWS var VISIBLE_HEIGHT = 20; // COLS var EYESIGHT = 5; var GRID_SIZE = 20; var WEAPONS = [{ type: "weapon", name: "Stick", damag...
// Script to synchronize a calendar to a spreadsheet and vice versa. // // See https://github.com/Davepar/gcalendarsync for instructions on setting this up. // // Set this value to match your calendar!!! // Calendar ID can be found in the "Calendar Address" section of the Calendar Settings. var calendarId = '<EMAIL>';...
import Activity from '../../containers/Activity' import Avatar from '@material-ui/core/Avatar' import Delete from '@material-ui/icons/Delete' import Error from '@material-ui/icons/Error' import FormControl from '@material-ui/core/FormControl' import FormControlLabel from '@material-ui/core/FormControlLabel' import Form...
var decoder = new TextDecoder(); var encoder = new TextEncoder(); function bin2hex(buf) { /* return buf.reduce(function(hexstr, byte) { return hexstr + ('0' + (byte & 0xFF).toString(16)).slice(-2); }, ""); */ // No Reduce on duktape return ""; } function hex2bin(hexstr) { /* return Uint8Arr...
#! /usr/bin/env node var fs = require("fs"), url = require("url"), util = require("util"), async = require("async"), path = require("path"), log = require("npmlog"), vm = require("vm"), shelljs = require("shelljs"), mkdirp = require("mkdirp"), nopt = require("nopt"), inquirer = require("inquirer"), ...
angular.module('appControllers').controller('GPSCtrl', GPSCtrl); // get the main module controllers set GPSCtrl.$inject = ['$rootScope', '$scope', '$state', '$http', '$interval']; // Inject my dependencies const MSG_GROUND_TEST = ["GROUND TEST MODE - GPS REQUIRED", "DO NOT USE IN FLIGHT WITHOUT GPS"], MSG_LEVELING...
require('dotenv').config() var express = require('express'); var fetch = require('node-fetch') const is = require('is-html'); const url = require('is-url'); const showdown = require('showdown'); const { Canvas } = require('canvas-constructor'); var bodyParser = require('body-parser'); const converter = new showdown.Co...
import events from 'events'; import ensureArray from 'ensure-array'; import _ from 'lodash'; import TinyGLineParser from './TinyGLineParser'; import TinyGLineParserResultMotorTimeout from './TinyGLineParserResultMotorTimeout'; import TinyGLineParserResultOverrides from './TinyGLineParserResultOverrides'; import TinyGLi...
/* Copyright (C) 2016 NooBaa */ 'use strict'; const _ = require('lodash'); const url = require('url'); const http = require('http'); const https = require('https'); const HttpProxyAgent = require('http-proxy-agent'); const HttpsProxyAgent = require('https-proxy-agent'); const crypto = require('crypto'); const xml2js =...
/* eslint-disable @typescript-eslint/no-var-requires */ const { addMocksToSchema, makeExecutableSchema, mockServer, MockList, } = require('graphql-tools'); const casual = require('casual-browserify'); const kebabCase = require('lodash/kebabCase'); const random = require('lodash/random'); const times = require('...
'use strict'; var isChannelReady; var isInitiator; var isStarted; var localStream; var pc; var remoteStream; var turnReady; var pc_config = webrtcDetectedBrowser === 'firefox' ? {'iceServers':[{'url':'stun:172.16.17.32'}]} : // number IP {'iceServers': [{'url': 'stun:stun.l.google.com:19302'}]}; va...
var set_repayment = function( t ){ var a = b = null; /*if(t==1){ a = true; b = false; }*/ if(t==2){ a = false; b = true; } repayment.each(function(){ var val = $(this).val(); if(val>2){ $(this).attr({'disabled':a,'checked':false}); }else{ $(this).attr({'disabled':b,'checked':fal...
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed u...
/** * Deals with the main GUI elements (but not the survey form) */ import support from 'enketo-core/src/js/support'; import * as printHelper from 'enketo-core/src/js/print'; import vex from 'vex-js'; import $ from 'jquery'; import feedbackBar from './feedback-bar'; import settings from './settings'; import { init ...
const path = require("path"); const fs = require('fs'); const glob = require('glob'); const readlineSync = require('readline-sync'); const inkjet = require('inkjet'); const im = require('imagemagick'); const PNG = require('pngjs').PNG; var artoolkit_wasm_url = './libs/NftMarkerCreator_wasm.wasm'; var Module = require('...
"use strict"; // Filter the list of devices document.getElementById("filter-input").oninput = function(){ var entrada = this.value; var elementos = document.addDevice.menuDevices.options; if(entrada == ""){ for(var i = 0; i < elementos.length; i ++) elementos[i].style.display = ""; ...
/****************************************************************************** * Copyright 2010-2019 migenius pty ltd, Australia. All rights reserved. *****************************************************************************/ import * as Const from './Functions'; /** * Class representing a row major 4x4 Matrix...
import { throttle } from 'async-agent'; import { endOfDay, endOfDecade, endOfHour, endOfMinute, endOfMonth, endOfSecond, endOfYear, format as formatDate, startOfDay, startOfDecade, startOfHour, startOfMinute, startOfMonth, startOfSecond, startOfYear } from 'date-fns'; import { repeat } from 'object-agent...
import GFX from './GFX'; import {CT} from './AACoordinateTransformation'; import {CAAEarth} from './AAEarth'; import {CAAFK5} from './AAFK5'; import {ELL} from './AAElliptical'; import {CAANutation} from './AANutation'; const eclipticLongitude = function(JD) { const rho = (JD - 2451545) / 365250; const rhosquared =...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const babel_traverse_1 = require("babel-traverse"); const babel_generator_1 = require("babel-generator"); const html_1 = require("html"); const babel_core_1 = require("babel-core"); const ts = require("typescript"); const class_1 = require("./...
"use strict"; import { ViewerViewState } from "./ViewerViewState.js"; import { DEFAULT_FOV, MAX_FOV, MIN_FOV, ZOOM_SPEED, PAN_SPEED, ARROW_LEFT_RIGHT_SPEED, ARROW_UP_DOWN_DISTANCE, PLUS_MINUS_ZOOM_SPEED } from "./ViewerConfig.js"; import { EventPosition } from "./EventPosition.js"; export class ViewerPanoAPI { f...
// Copyright © 2013, 2014 <NAME> <<EMAIL>> // // 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, p...
const VAL = { BLANK:0x0000, //空白 MINE:-0x0001, //有雷 }; const STATUS = { INIT:0x1000, SHOW:0x1001, FLAG:0x1002, UNSURE:0x1003, INDENT:0x1004, }; const STYLES = { BASE:'cell', INIT:'cell init', FLAG:'cell flag', UNSURE:'cell unsure ', MINE_RED:'cell mine-red', MINE_BLA...
/* eslint-env node */ /* eslint no-console:0, valid-jsdoc:0 */ 'use strict'; var colors = require('colors'), eslint = require('gulp-eslint'), exec = require('child_process').exec, gulp = require('gulp'), gulpif = require('gulp-if'), gzipSize = require('gzip-size'), closureCompiler = require('cl...
import Doc from './doc' import State from './state' import RegistrationPage from './register' import LoginPage from './login' import WalletsPage from './wallets' import SettingsPage from './settings' import MarketsPage from './markets' import OrdersPage from './orders' import OrderPage from './order' import { getJSON, ...
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; var __importStar = (this && this.__importStar) || function (mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) for (var k in m...
var nodeUtil = require("util"), nodeEvents = require("events"), _ = require('underscore'), bsParserUtils = require('./bsParserUtils'); var BSParser = (function () { 'use strict'; var parseGroupedDescriptionTextIntoTransaction = function (transaction, groupedText) { // Parse known text fie...
import React, { Component } from "react"; import { View, Text, Image, StyleSheet, TouchableOpacity, ScrollView, AsyncStorage, Alert, Modal, Dimensions, TextInput, ActivityIndicator, StatusBar, FlatList, RefreshControl, TouchableWithoutFeedback } from "reac...
import { Button, Input } from "@windmill/react-ui"; import Pagination from "../Pagination"; import clsx from "clsx"; import dayjs from "dayjs"; import relativeTime from "dayjs/plugin/relativeTime"; import fuzzysort from "fuzzysort"; import React, { lazy, Suspense, useEffect, useState, useMemo } from "react"; import { C...
const {readdirSync} = require('fs'); const { join } = require("path"); const filePath = join(__dirname,"..","commands"); const basePrice = 500; //modules const capeModule = require(`${filePath}/cape.js`) const reserveModule = require(`${filePath}/reserve.js`) const HQModule = require(`./headquarters`) const...
const TAG_LINE = 'x-test - a simple, tap-compliant test runner for the browser.'; export const assert = (assertion, message) => { Test.assert(assertion, message); }; export const test = href => { Test.test(_test, href); }; export const it = (description, callback, interval) => { Test.it(_test, null, descriptio...
var assert = require('assert'); var util = require('util'); var Reader = require('endian-reader'); var dof = require('../dof'); var constants = dof.constants; function Parser() { Reader.call(this); this.version = null; }; util.inherits(Parser, Reader); module.exports = Parser; Parser.prototype.mapFlags = functi...
var searchEl = document.querySelector("#search"); var cityName = document.querySelector("#input-field"); var stateName = document.querySelector("#states"); //these are the current day variables var containerEl = document.querySelector("#container") var cityEl = document.querySelector("#cityName"); var tempEl = documen...
import $ from "jquery"; import { testEmail } from "./inputMaskRus.js"; let changedSize = 0 $(document).ready(function() { /* ОБщая сумма товара в корзине у юзера */ if (!getCookie('total_sum_in_cart')) { setCookie('total_sum_in_cart', '0', 5); } }); /* Закрытие модалки для выбора размеров...
const axios = require('axios'); const aws = require('aws-sdk'); const fs = require('fs'); const _ = require('lodash'); const yaml = require('yaml'); const validateSchema = require('jsonschema').validate; const { parse } = require('json2csv'); const githubToken = process.env.GITHUB_API_TOKEN; const verbose = process.en...
/*! * 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...
#!/usr/bin/env node /* eslint-disable no-negated-condition */ import * as path from 'path'; import { existsSync, mkdirSync, } from 'fs'; import * as util from 'node:util'; import { Command, InvalidArgumentError } from 'commander'; import * as winston from 'winston'; import { consoleColor, printRequest, printRespo...
/** * Author: <NAME> <i.torchio at entpy dot com> * Version: 0.1.0 * * License: GPL_v3 {Link: http://gplv3.fsf.org/} * * 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 restr...
/** * Created by maikuraki on 2017/11/4. */ import React from 'react'; import {BrowserRouter as Router, Route, Switch, Link, Redirect} from 'react-router-dom'; import {remote, ipcRenderer} from 'electron'; import eventEmitter from '../lib/eventEmitter'; import * as constStr from '../lib/const'; import * as Actions fr...
'use strict'; //----------------------------DECLARING ELEMENTS-------------------------------// const navBtn = document.getElementById('navigation'); const resetBtn = document.getElementById('reset'); const name = document.getElementById('name'); const address = document.getElementById('address'); const summary = docu...
// Copyright 2016 <NAME>. 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 applicable la...
// DOM ELEMENTS // Storing key dom elements const app = document.querySelector('#app') const game = document.querySelector('#game') // Check for mobile devices const isMobile = /iPad|Android|webOS|iPhone|iPod|Blackberry/.test(navigator.userAgent) && !window.MSStream // check orientation, assigned to app container lat...
import React, { Component } from 'react'; import './visualizer.css'; import * as THREE from 'three/build/three'; import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls'; class Visualizer extends Component { constructor(props) { super(props); // bin dimensions this.binCon...
import React from 'react'; import PropTypes from 'prop-types'; import Joi from 'joi'; import { connect } from 'react-redux'; import Helmet from 'react-helmet'; import moment from 'moment'; // import * as Domain from '../../domain'; import * as Basic from '../../components/basic'; import * as Advanced from '../../compon...
/** * Successful acceptance tests & lints start the production build. * Tasks are run serially, 'pat'(run acceptance tests) -> 'build-development' -> ('eslint', 'csslint', 'bootlint') -> 'build' */ const { src, dest, series, parallel, task } = require("gulp"); const babel = require("@rollup/plugin-babel").defau...
// force path style to avoid CORS block. AWS.config.s3ForcePathStyle = true; const ToolURLMap = { 'CN': { 'ToolURL': 'https://s3.cn-north-1.amazonaws.com.cn/aws-s3-tool.cn.xinjian.io/index.html', 'Domain': 'aws-s3-tool.cn.xinjian.io', 'S3Base': 'https://s3.cn-north-1.amazonaws.com.cn' }, 'Global': { ...
const RLP = require('rlp'); const BPRO = artifacts.require("BPRO"); const Minter = artifacts.require("MockMiner"); const BravoImpl = artifacts.require("GovernorBravoDelegate"); const Bravo = artifacts.require("GovernorBravoDelegator"); const Timelock = artifacts.require("Timelock"); let admin let bpro; let bravo; l...
/* var tx = (new TransactionBuilder(opts)) .setUnspent(utxos) .setOutputs(outs) .sign(keys) .build(); var builder = (new TransactionBuilder(opts)) .setUnspent(spent) .setOutputs(outs); // Uncomplete tx (no signed or partially signed) var tx = builder.build(); ...
import React, { useState, useEffect } from 'react' import { useSelector, useDispatch } from 'react-redux' import { useHistory, useParams, Link } from 'react-router-dom' import { FormattedMessage, useIntl } from 'react-intl' import { CopyToClipboard } from 'react-copy-to-clipboard' import { Card, Icon, Label, Dropdown, ...
/* * Copyright WebGate Consulting AG, 2020 * * 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 ...
const path = require('path'); const fs = require('fs'); const css = require('css.of'); require('css.escape'); const alignContent = require('./components/align-content.js'); const alignItems = require('./components/align-items.js'); const alignSelf = require('./components...
/** * Copyright 2017 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 applic...
'use strict'; const isLazyEngine = require('../../utilities/is-lazy-engine'); const { getAddonProxy } = require('./addon-proxy'); const PROJECT_BUNDLE_HOST_NAME = '__PROJECT__'; const logger = require('heimdalljs-logger')('ember-cli:per-bundle-addon-cache'); const { TARGET_INSTANCE } = require('./target-instance'); /...
import { $$, appendChildren, buildNode, errorMessage, jsonRequest, pad0, plural } from "./Common.js"; import { Log } from "../../Shared/ConsoleLog.js"; import { PlexData, SeasonData, ShowData } from "../../Shared/PlexTypes.js"; import Tooltip from "./inc/Tooltip.js"; import Overlay from "./inc/Overlay.js"; import But...
var game = new Phaser.Game(384, 435, Phaser.CANVAS, '', null, false, false); var Breakout = {}; Breakout.Boot = function(game) { this.game = game; }; Breakout.Boot.prototype = { preload: function() { this.load.spritesheet('bricks', 'assets/bricks.png', 16, 16); this.load.spritesheet...
"use strict"; console.clear(); /****************************************** * GLOBAL CONSTANTS & FLAGS *****************************************/ // note: this matches the breakpoint in styles.css const MOBILE_BREAKPOINT = 640; let IS_MOBILE = document.querySelector("body").offsetWidth < MOBILE_BREAKPOINT; const DES...
var events = require('events'), net = require('net'), util = require('util'), crypto = require('crypto'), tls = require('tls'); var POP3Grammar = { // in POP3 the available commands vary by state states: { "AUTHORIZATION": { "USER": "username", "PASS": "password", "APOP": "use...