text
stringlengths
3.22k
29.5k
var accounts = []; var accountNames = {}; addAccount(eth.accounts[0], "Account #0 - Miner"); addAccount(eth.accounts[1], "Account #1 - BARF Owner"); addAccount(eth.accounts[2], "Account #2 - Member #1"); addAccount(eth.accounts[3], "Account #3 - Member #2"); addAccount(eth.accounts[4], "Account #4 - Member #3"); addAc...
var VMDK = require( '../vmdk' ) var fs = require( 'fs' ) /** * @internal Run a series of asynchronous tasks * @param {Array<Function>} tasks * @param {Function} callback * @returns {undefined} */ function series( tasks, callback ) { var run = ( error ) => { var task = tasks.shift() error || task == nul...
// const wdInputs = document.querySelectorAll('.wd-input'); // let wd = {}; // wdInputs.forEach(el => el.addEventListener('change', captureChanges)); // function captureChanges(e) { // const el = e.target; // const type = el.getAttribute('data-wd-input-type'); // const fieldId = el.getAttribute('data-wd...
import React, { useEffect, memo } from 'react'; import { connect } from 'react-redux'; import { compose } from 'redux'; import PropsTypes from 'prop-types'; import { useInjectReducer } from 'utils/injectReducer'; import { useInjectSaga } from 'utils/injectSaga'; import { createStructuredSelector } from 'reselect'; impo...
var map; var canvas; var ctx; var tilesheetimg; var sheetlookup = []; var seed; var player = [0,0,0,0]; var render = true; var cycles = 0; var lastkey = undefined; function init(){ canvas = document.getElementById('c'); ctx = canvas.getContext('2d'); ctx.font = "30px calibri"; ctx.fillText("Loading ...",50,50);...
"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { t...
/** * Copyright Zendesk, Inc. * * Use of this source code is governed under the Apache License, Version 2.0 * found at http://www.apache.org/licenses/LICENSE-2.0. */ 'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var React = require('react'); var containerUtilities = require('@zend...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("va...
import React, { Component } from 'react'; import '../css/Search.css'; import search_logo from '../media/search.svg' class Search extends Component { handleBitcoinAddressChange = () => (event) => { const newValue = String(event.target.value); if (newValue !== null) { this.props.updateEnteredB...
export { solve as solution }; function solve(roads) { const context = { count: 0}; initializeCities(context, roads); initializeRoads(context, roads); initializeSubsets(context); updateRoadWeights(context); while (context.roadMinHeap.length > 0) { findMinRoads(context); joinZeroRoads(context); ...
/* index.js naz interpreter copyright (c) 2020 sporeball MIT license */ // dependencies const chalk = require("chalk"); const perf = require("execution-time")(); const ms = require("pretty-ms"); // spinner code const ora = require("ora"); const spinner = ora("running...") spinner.color = "yellow"; spinner.spi...
/* CSCN - Created with jsPsychMaker: https://github.com/gorkang/jsPsychMaker */ questions = ( typeof questions != 'undefined' && questions instanceof Array ) ? questions : []; questions.push( check_fullscreen('OTRASRELIG') ); OTRASRELIG = []; //temporal timeline var instruction_screen_experiment = { type: 'ins...
width = 650; height = 420; MAX = 10; max = 6; capacity = 31; MAX_LVLS = 5 circleRadius = width * 0.025; centerOffset = width * 0.02; xOffset = 4*MAX_LVLS; yOffset = 0.1 * width; circleStroke = 0.005 * width; root_rad = {x: width/2, y: yOffset} mnheap_code_urls = { 'create_mnheap': baseUrl+'/snippets/min-heap/create...
import {append, appendLeft, iter, ref} from '@data-structs/linked-list' import {doublyLinkedList, insertNode, removeNode} from '@data-structs/doubly-linked-list' const createLevel = (prevLevel = null) => { const size = ref(0), head = ref({ value: -Infinity, next: null, prev: null, ge...
import React, { useState, useEffect } from "react"; import { useSelector } from "react-redux"; import { useHistory } from "react-router-dom"; import Card from "@material-ui/core/Card"; import { Avatar, TextField, Button } from "@material-ui/core"; import Radio from "@material-ui/core/Radio"; import RadioGroup from "@ma...
import React, { useState, useEffect } from 'react'; import { StyleSheet, Text, View, FlatList, TouchableOpacity, TextInput, Switch,RefreshControl,Pressable,Button, Alert } from 'react-native'; import { createStackNavigator } from '@react-navigation/stack'; import Ionicons from 'react-native-vector-icons/Ionicons'; impo...
import { ipcRenderer } from 'electron'; import { ThemeType } from '@meetfranz/theme'; import { computed, action, observable, } from 'mobx'; import localStorage from 'mobx-localstorage'; import { webContents } from '@electron/remote'; import ms from 'ms'; import { todoActions } from './actions'; import { FeatureS...
const baseProductURL = "/product"; const baseProductImageURL = "/productImage"; // server 上存在的缩略图图片 let serverThumbnail = []; // server 上存在的商品详情图片 let serverProductImage = []; // 本地存储的图片数据 // 保存商品缩略图的数据 let localProductThumbnail = []; // 保存商品详情的数据 let localProductDetailsPicture = new Map(); // 本地保存的商品缩略图的地址 let localP...
//This javascript isn't run because it is loaded before teh dynamic content $(function() { $("input, textarea").keyup(function() { var reqs=checkreqs(); }); $("#submit").click(function() { if (checkreqs()) { return true; } return false; }); checkreqs(); $("#title").keyup(function() { $("#...
import React, { useEffect } from 'react'; import Header from './Header'; // import $ from 'jquery'; // import * as jquery from 'jquery'; import Footer from './Footer'; import './layout.css'; const Layout = ({ children }) => { useEffect(() => { // typeof window !== 'undefined' && window; var $ = window.$; // var ...
"use strict" const Writable = require('stream').Writable const { performance } = require('perf_hooks'); const YadamuLibrary = require('./yadamuLibrary.js'); class DBWriter extends Writable { /* ** ** The DB Writer should always be invoked with the option {end: false}. ** */ constructor(dbi,ya...
import React, { useState } from 'react'; import { Link, useHistory } from 'react-router-dom'; import { toast } from 'react-toastify'; import 'react-toastify/dist/ReactToastify.css'; import { useDispatch } from 'react-redux' import { GoogleLogin } from 'react-google-login'; import FacebookLogin from 'react-facebook-logi...
const Promise = require('bluebird'); const partition = require('lodash/partition'); const chalk = require('chalk'); const virtualModules = require('./virtualModules'); const store = require('./store'); const reIndexModules = require('./reIndexModules'); const TreatError = require('./TreatError'); const makeTreatCompile...
//10 = pegamos a função express const express = require("express"); //10 = criamos uma varivel para receber o objeto express //10 = Router() = função dentro do express const routes = express.Router(); //11 = Maneira de encurtar a digitação das rotas //11 = Criar variavel que ira armazenar informações em comum nas rota...
import React from 'react'; import { makeStyles } from '@material-ui/core/styles'; import CssBaseline from '@material-ui/core/CssBaseline'; import AppBar from '@material-ui/core/AppBar'; import Toolbar from '@material-ui/core/Toolbar'; import Paper from '@material-ui/core/Paper'; import Stepper from '@material-ui/core/S...
var _ = require('underscore'); var testCaseBuilder = require('./testCaseBuilder'); var trim = require('trim'); var fs = require('fs'); var xml2js = require('xml2js'); var inspect = require('eyes').inspector({maxLength: false}); var settings = require('../settings.json'); var fieldMappings = settings.mappings; var Entit...
var introTitle = { mdTitle: "<strong>Art of Neutrality</strong> is a leading edge technology for reducing physical pain and stress." }; var introText1 = { icon: "mdi-action-favorite", mdText: "<h5> Opening of the heart</h5>" + "<p class='light'>" + "A new programme that very few people kn...
import React, { Component, Fragment } from 'react'; import { ListGroupItem, CardImg, Col, Row, Container, CardText } from 'reactstrap'; import { CSSTransition, TransitionGroup } from 'react-transition-group'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import SunEditor from "suneditor-...
"use strict"; function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj ...
class AutocompleteLight extends HTMLElement { box = null xhr = null timeoutId = null input = null box = null connectedCallback() { this.input = this.querySelector('[slot=input]') if (!this.input) return setTimeout(this.connectedCallback.bind(this), 100) this.input.addEventListener( 'focu...
//author:fermi //用户操作 function adduser() { $("#ruleurl").attr('action', ''); $("input[name=id]").val(''); $("input[name=user_login]").val(''); $("input[name=user_email]").val(''); $("input[name=user_pass]").val(''); $("input[name=re_pass]").val(''); $("input[name=group_id]").val(''); $("#userurl").attr(...
const quickMode = process.env.QUICK; function* run(numbers) { const mem = {}; function getPosition(mode, pos) { switch (mode) { case 1: return pos; case 2: return base + read(1, pos, true); case 0: default: return read(1, pos, true); } } function read(mo...
var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } r...
import React , {Component}from "react"; // reactstrap components import { Card, CardHeader, CardBody, CardFooter, Row, Col, Table, Button, Input, FormGroup, Label } from "reactstrap"; // core components import PanelHeader from "components/PanelHeader/PanelHeader.js"; imp...
const config = require('./config'); class Shop { constructor(shopDomain) { this.shopDomain = shopDomain; this.phoneNumber = '3232323232'; this.notDisabledSaveXPath = '//button[not(@disabled)]//span[contains(text(), "Save")]'; } async settingsGeneralPhone(page) { await pag...
import React from 'react'; import * as firebase from 'firebase'; import { connect } from 'react-redux'; import PillsTournaments from './PillsTournaments.js'; import firebaseApp from '../firebase.js'; class UpdateTournaments extends React.Component { constructor() { super(); this.state = { tournaments: [] }; ...
// ==UserScript== // @name TagPro Events Library // @description Add listeners to events like caps, kisses etc. // @author Ko // @version 1.0 // @downloadURL https://github.com/wilcooo/TagPro-EventsLibrary/raw/master/tpel.lib.js // @supportURL https://www.reddit.com/message/compose/?to=Wilcooo //...
const viewResolver = (name) => require('./docs/' + name).default; export const menuNavs = [{ title: "Getting Started", icon: "bs-apps", children: [{ title: "About", route: "/about", view: viewResolver("about"), }, { title: "Usage", route: "/usage", view: ...
// Copyright 2017 SAP SE. // // 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...
// // REFACTOR ASAP!!!! // const Fraction = require('fraction.js'); function _step_durations_from_notes(notes){ return notes.map(note => { if(note.type == "r") return new Fraction(-1, note.value); else if(note.type == "n") return new Fraction(1, note.value); els...
// wink-statistics // Fast and Numerically Stable Statistical Analysis Utilities. // // Copyright (C) GRAYPE Systems Private Limited // // This file is part of “wink-statistics”. // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated...
var _class, _temp; function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(th...
const d3 = require('d3'); const jsdom = require('jsdom'); const { JSDOM } = jsdom; const { document } = (new JSDOM('')).window; global.document = document; var originalData = [], helper; var legendSpace = 20, offset = 20; var offsetX = 16, offsetY = 5; var tooltip; var Helper = (function() { var...
var g_requestCid = regenerateCid(); var g_ignoreUserPass = false; function getQueryURL(server, endpoint, querySelectedType, queryValue, limitValue, fieldsValue) { var endpointURL = getEndpointURL(server, endpoint); var queryParams = new Array(); appendQueryParamToArray(queryParams, "byfields=", fieldsValue...
import React, { Component} from 'react'; import Player from "./VideoPlayer"; import { LoadingIndicator, LoadingIcon,RadioGroup } from 'lucid-ui'; import {Dialog,Button, CheckIcon } from 'lucid-ui'; import { withRouter, Redirect } from 'react-router-dom' const style = { marginRight: '13px', }; const { LoadingMessag...
/** * Created by <NAME> on 28/02/2017. */ var ctx, canvas, moteur, scale = 1, vitesse = 100, cptCoup = 0; $('#canvas') .click(function(e) { var posX = (e.pageX-$(this).offset().left) * (1/scale), posY =(e.pageY-$(this).offset().top) * (1/scale); var tile = moteur.map.getTile(posX+moteur.map.cam...
import {default as createLogger} from '../../modules/logFactory.js'; import {fetchHtmlElements, fetchStyleElements} from '../../modules/extras-html.js'; import '../UserInfoForm/main.js'; import '../../modules/extras-location.js'; import '../../modules/extras-css.js'; import '../../modules/String.js'; import '../../modu...
import { MAX_BODIES } from 'physics/arcade/Constants.js' export let BodyCount = 0; // Helping data locality by splitting members // into big arrays. export let BodyDataPositionX = new Float32Array(MAX_BODIES); export let BodyDataPositionY = new Float32Array(MAX_BODIES); export let BodyDataVelocityX = new Float32A...
const readline = require('readline'); const Thingy = require('thingy52'); const forEach = require('lodash/forEach'); const toInteger = require('lodash/toInteger'); const toLower = require('lodash/toLower'); const replace = require('lodash/replace'); const { calibrate, getColor } = require('./color'); const SCAN_WINDOW...
/* Twitch Filtered Chat Fanfare: Effects */ "use strict"; class FanfareEffect { /* {{{0 */ constructor(host, config) { this._host = host; this._client = host._client; this._config = config || {}; this._particles = []; /* Frame counter for complex animations (increments on draw) */ this._fra...
'use strict'; var fs = require('fs'), http = require('http'), https = require('https'), path = require('path'), semver = require('semver'), url = require('url'), Q = require('q'); var CustomError = require('./customError'), exec = require('./processTools').exec, log = require('./log'),...
const cardsPerPersonalLevel = 50; const cardsPerTaLevel = 15; const levelsPerSchoolWideLevel = 2; // get the number of students in teh team // get the average number of cards per student in the team export function getTaTeamData(data) { console.log('getting TA Team Data'); const taTeamData = data.map((team) => { ...
const DefaultChromosomeChallengeIdInput = "allele-targetMatch-visible-simpleDom"; // All var editableCharacteristics = ["armor", "tail", "forelimbs", "hindlimbs", "horns", "wings", "nose", "metallic", "colored", "black", "dilute"]; // Color subtraits //var editableCharacteristics = ["metallic", "colored", "black", "di...
// 웹소켓 const webSocket = () => { if ('WebSocket' in window) { const roomId = 3; // 임시 방 번호 const authToken = "<KEY>"; // document.cookie = 'Authorization=' + authToken + '; path=/'; // let oSocket = new WebSocket(`ws://localhost:8080/chat/room/${roomId}`); let socket = io(`http://localhost:8080...
/** * Copyright 2021 <NAME> <<EMAIL>> * * 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 */ "use strict" import { proxyTypes, nodeStatuses, prox...
//For DogeSketch - by <NAME> //Run the function when the window Loads //Each mouse-event explained below window.onload = function() { var board = document.getElementById('container'); var dclick = document.querySelector("#doge"); board.addEventListener('mousedown', chalked); board.addEventListener('mousemove', dra...
// Jun 12 2017 var ethPriceUSD = 380.39; // ----------------------------------------------------------------------------- // Accounts // ----------------------------------------------------------------------------- var accounts = []; var accountNames = {}; addAccount(eth.accounts[0], "Account #0 - Miner"); addAccount...
import * as d3 from 'd3'; export default drawGroupedBarChart; function drawGroupedBarChart() { let data, margin = {top: 50, right: 100, bottom: 100, left: 100}, width = 1000, height = 300, x = d3.scaleBand() .rangeRound([0, width]) .padding(0.3), x2 = d3.scaleBand() ....
import moment from 'moment'; import { sortBranches, flattenHistory, countWaterfall } from './utility'; function collectBranchCondition(privateKey, batchID) { return new Promise(resolve => { const app = AppDB.findOne({orgKey: privateKey}); const branches = app.branches; const batchX = XBatchDB.fi...
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate...
/** * @author: <NAME> * * This is a JSON-based web service written in javascript for a google sheet of student organizations. It is meant to be used with Modo labs Xmodule, which uses the web app's URL as a data source. This web service declares how its data should be displayed in Xmodule, using its UI elements...
import _cache from "./cache"; import use from "./use"; import deepClone from "./deepClone"; //1) Update request using interceptor. export default async ({ requestInterceptor, ...request }) => { if (requestInterceptor) { request = requestInterceptor(request); if (request instanceof Promise) { ...
import { useFonts } from "expo-font"; import { LinearGradient } from "expo-linear-gradient"; import { Button, Card, CardItem, Text } from "native-base"; import React, { useContext, useEffect, useState } from "react"; import { Image, SafeAreaView, ScrollView, StyleSheet, TouchableOpacity, View, } from "react...
// Packages const fs = require("fs") const path = require("path") const readdirRecursive = require("recursive-readdir") const rl = require("readline-sync") const sharp = require("sharp") const imagemin = require("imagemin") // TODO const execa = require("execa") const Listr = require("listr") const glob = require("glob...
const fs = require('fs'); const path = require('path'); const parser = require('@asyncapi/parser'); const diffText = require("@ads-vdh/md-diff"); const Generator = require("@asyncapi/generator"); async function readAA(file) { const dir = path.dirname(file); const data = fs.readFileSync(file).toString()...
var settings = { "async": true, "crossDomain": true, "url": "", "method": "GET", "headers": { "x-rapidapi-host": "api-football-v1.p.rapidapi.com", "x-rapidapi-key": "<KEY>" } }; var teams = [ { teamName: "Bournemouth", containerBackground: "#8b0304", h2: "black" }, /* Arse...
// [Generate-Base] "use strict"; const fs = require("fs"); const hasOwn = Object.prototype.hasOwnProperty; // ---------------------------------------------------------------------------- // [asmdb] // ---------------------------------------------------------------------------- const asmdb = (function() { try { ...
// -*- coding: utf-8 -*- // // bod2sfen.js Copyright 2011-2016 shibacho // // 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...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _react = _interopRequireDefault(require("react")); var _classnames = _interopRequireDefault(require("classnames")); var _propTypes = _interopRequireDefault(require("prop-types")); var _zminkAxioline = _inte...
// import { rgb } from "color-convert"; import { Universe} from "wasm-game-of-life"; // Import the WebAssembly memory at the top of the file. import { memory } from "wasm-game-of-life/wasm_game_of_life_bg"; const CELL_SIZE = 5; // px const GRID_COLOR = "#000000"; const DEAD_COLOR = "#000000"; const DEAD = 0; //...
/** * Copyright (c) 2019 Mozilla Inc. All Rights Reserved. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ import * as mat4 from 'gl-matrix/src/gl-matrix/ma...
/** * Simple gauge indicator. * * @module gauge */ var Emitter = require('component-emitter'); var extend = require('xtend/mutable'); var css = require('mucss/css'); var doc = document; /** * Gauge component constructor */ function Gauge(el, options) { //ensure proper el is passed if (!(el instanceof HTML...
// Wasm Module (Package) Manager for the shell import table from "text-table"; import * as idbKeyval from 'idb-keyval'; import welcome from "./callback-commands/welcome"; import about from "./callback-commands/about"; import help from "./callback-commands/help"; const WAPM_COMMAND_GRAPHQL_QUERY = `query shellGetComma...
// !preview r2d3 data = tibble(x = 1:50, y = sin(x)), options = list(free_draw = FALSE, draw_start = 10, pin_start = FALSE, x_range = c(0,50), y_range = c(-5,5), line_style = list(strokeWidth = 4), data_line_color = 'steelblue', drawn_line_color = 'orangered', x_name = 'my_x_col', y_name = 'my_y_col', title = 'My Drawr...
'use strict'; const parentDivs = []; window.onresize = () => { for (let parent of parentDivs) { const reloadFloatIndex = parent.reloadFloatIndex; const currentReloadFloatIndex = getReloadFloatIndex(parent.reloadFloat); if (reloadFloatIndex !== currentReloadFloatIndex) { FloatDiv...
function search () { var type = $( 'form[id^=search]' ).prop( 'id' ).slice( 'search'.length ); $( '#mCSB_3_container' ).empty(); $( '#searchWrapper' ).css( 'display', 'block' ); if ( type === 'Book' ) { searchBooks(); } else if ( type === 'Show' ) { searchVideos( 'series' ); } ...
import React, { useState, useEffect, Component, useRef } from 'react' import './index.css' import board from './board' import { useParams } from 'react-router-dom' import { render } from '@testing-library/react' // destructure createBoard file for functions to create & manipulate board const { createNewBoardPieces,...
//var editor = CodeMirror.fromTextArea(document.getElementById('code'), { //// mode: "javascript", // mode: "turkish", // extraKeys: {"Ctrl-Space": "autocomplete"}, // styleActiveLine: true, // lineNumbers: true, // lineWrapping: true, // autoCloseBrackets: true, // theme: 'eclipse', // gutters: ["CodeMirror-li...
/** * Bithook: Bitcoin Webhook Server * * Webhook callback server capability of scanning 10,000's of addresses, scripthashes, or outpoints. * * Features: * * - REST API for adding and removing outputs. * - NeDB (MongoDB) compatible fast file-based database * * See: https://github.com/matterpool/bithook-server...
/* WXport Copyright (c) 2020 <NAME> The MIT License (MIT) 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...
var Events = require('./events'), unique = require('./unique'), Controller = null; class Request { constructor(url, method, parameters, callbacks, settings) { this.settings = settings; this.url = url; this.method = method; this...
/* Creates an Orbit-DB Access Controller that allows anyone to write, so long as they can prove they have burned an SLP token. Most of this code is copied directly from the OrbitDB Access Controller Library (ACL): https://github.com/orbitdb/orbit-db-access-controllers/blob/main/src/orbitdb-access-controller.js...
import React, { Component } from 'react'; import { connect } from 'react-redux'; import axios from 'axios'; import { Dropdown, TextInput, MultiSelect, TextArea } from 'carbon-components-react'; import GetApiServerUri from './helpers'; import IsManager from './is_manager'; import TornjakApi from './tornjak-api-helpers';...
import { m, cc } from './mj.js'; import * as util from './util.js'; let islandID = util.getUrlParam('id'); const Alerts = util.CreateAlerts(); const Loading = util.CreateLoading(); const [infoBtn, infoMsg] = util.CreateInfoPair('使用说明', m('div').text('按 F12 打开控制台,输入命令 danger_delete_island() 可删除小岛,不可恢复。')); const Title =...
const ZipEntry = require('./zipEntry'); const Headers = require('./headers'); const Utils = require('./util'); const fs = require('fs'); module.exports = function(input, inputType) { let entryList = []; let entryTable = {}; let _comment = new Buffer(0); let filename = ''; let inBuffer = null; const mainHea...
'use strict'; /** * @typedef { import("http").ClientRequest } ClientRequest */ const { isAbsoluteFilePath, isCssRequest, isHtmlRequest, isJsRequest, isModule, isModuleBundlerFilePath, isNodeModuleFilePath } = require('./is.js'); const { warn, WARN_MISSING_EXTENSION, WARN_PACKAGE_INDEX, WARN_SE...
"use strict"; require("core-js/modules/es.symbol.js"); Object.defineProperty(exports, "__esModule", { value: true }); exports.StoryPanel = void 0; require("core-js/modules/es.array.find.js"); require("core-js/modules/es.object.to-string.js"); require("core-js/modules/es.object.keys.js"); require("core-js/module...
import { TaskPropertySearchTypeNumber, TaskPropertySearchTypeString, TaskPropertyOperationType } from '../../services/Task/TaskProperty/TaskProperty' import _values from 'lodash/values' import _slice from 'lodash/slice' import _filter from 'lodash/filter' import _get from 'lodash/get' import ...
// this needs to be changed in new environments const usableURL = 'http://localhost:8080'; // Create outer div const outerDiv = document.createElement('div'); outerDiv.setAttribute('id', 'taskModal'); outerDiv.style.cssText = 'width: 500px; height: auto; border: 1px solid #ccc; box-sizing: border-box; border-radius: 1...
const tel = document.querySelector(".sjzc .tel") const pass = document.querySelector(".sjzc .password") const repassword = document.querySelector(".sjzc .againpass") const truename = document.querySelector(".sjzc .truename") const idcard = document.querySelector(".sjzc .idcard") const aSpan = document.querySelectorAll(...
import React from 'react'; import { Line } from 'react-chartjs-2'; const Daily = ({dailyTemp , hourTemp , temperature_weekly ,indexOfCard}) => { let knowWeather = dailyTemp.weather[0].main; let getIcon = dailyTemp.weather[0].main.toLowerCase(); let source_image = ''; const atmosphere = [ ...
app.controller("whistleController", ['$scope', '$timeout', '$window', function($scope, $timeout, $window) { $scope.letter = '' $scope.alphabet = { 'a': ['.', '-', ' ', ' '], 'b': ['-', '.', '.', '.'], 'c': ['-', '.', '-' ,'.'], 'd': ['-', '.', '.', ' '], 'e': ['.', ' ', ' ', ' ']...
const { Canvas } = require("canvas-constructor"); const { get } = require("superagent"); const fs = require("fs"); const { join } = require("path"); module.exports = class TicTacToe { constructor(msg, GameMap) { this.players = new Map(); this.msg = msg; this.host = msg.author; this...
function yoe_table() { let sum = 0; let cs_sum = 0; //construction subtotal sum var inputValues = $('#Yoe_cost :input').map(function () { //iterates given div let h = $(this).val(); //holder var type = $(this).prop("type"); let idH = $(this).attr("id"); // hold id //remove $...
import React, { Component } from 'react' import PropTypes from 'prop-types' import * as d3Force from 'd3-force' import * as d3Selection from 'd3-selection' import * as d3Zoom from 'd3-zoom' import styles from './CanvasNetworkGraph.scss' const d3 = Object.assign({}, d3Force, d3Selection, d3Zoom) function generateSimu...
/* * Copyright 2020 New Relic Corporation. All rights reserved. * SPDX-License-Identifier: Apache-2.0 */ 'use strict' const DESTINATIONS = require('../../../lib/config/attribute-filter').DESTINATIONS const tap = require('tap') const test = tap.test const http = require('http') const helper = require('../../lib/age...
import React, { Component } from 'react'; import { View, Text, Image, StyleSheet, ScrollView, TouchableOpacity } from 'react-native'; import LinearGradient from 'react-native-linear-gradient'; import { Actions } from 'react-native-router-flux'; import Swiper from 'react-native-swiper'; import Icon from 'react-native-ve...
import React, { useState } from 'react'; import './ServicesSection.css'; import { Icon, Col, Row, Button } from 'antd'; import jobseekersIcon from '../../../icons/jobseeker-service-section.svg'; import recruitersIcons from '../../../icons/recruiters.svg'; import globalizationIcon from '../../../icons/globalization.svg'...
/* * This program has been developed by students from the bachelor Computer Science at Utrecht University * within the Software Project course. © Copyright Utrecht University (Department of Information and * Computing Sciences) */ const { LiveGames } = require('./utils/live-games'); const { Players } = require('./...
'use strict'; exports.__esModule = true; var _propTypes = require('prop-types'); var _propTypes2 = _interopRequireDefault(_propTypes); var _classnames = require('classnames'); var _classnames2 = _interopRequireDefault(_classnames); var _scrollbarSize = require('dom-helpers/util/scrollbarSize'); var _scrollbarSiz...