text
stringlengths
3.22k
29.5k
const path = require('../components/path'); const force = require('../components/force'); const eye = require('./eye'); const xmlns = "http://www.w3.org/2000/svg"; const distance = (x1, y1, x2, y2) => Math.sqrt(Math.abs(x1 - x2) * Math.abs(x1 - x2) + Math.abs(y1 - y2) * Math.abs(y1 - y2)); const u = 4; const v = 10; c...
//Generate safety explorer given an array of data files. function initSafetyExplorerSuite(settings, dataArray) { d3.selectAll('#container *').remove(); safetyExplorerSuite .createExplorer( '#container', // element settings // settings ) .init( clone(da...
/* eslint no-unused-vars: "off" */ 'use strict'; import { WorkerManager } from '../core/worker-manager'; import OffloadIdAndPromiseMap from './OffloadIDAndPromiseMap'; import serialize from './serialize-javascript'; import Logger from '~/util/logger'; const logger = new Logger('task/index.js'); let workerManager; l...
source.repository.git = null; let git_nav = { title: 'Git', icon: 'coos-icon-git', value: 0, disabled: true, dot: true, type: 'success', onClick() { source.gitRemoteForm.show(); }, permission: 'GIT_REMOTE_ADD' }; source.repository.navs.push(git_nav); let git_plus_nav = { title: 'Git还原', icon: 'coo...
// Copyright 2016 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. class Binary extends Array { emit_u8(val) { this.push(val); } emit_u16(val) { this.push(val & 0xff); this.push((val >> 8) & 0xff); ...
import { html, LitElement } from 'https://unpkg.com/lit@2.0.0/index.js?module'; import { fetchAlphaFoldId, fetchExons, fetchVariants, fetchProteinFeatures } from './dataFetchers.js'; import { getRGBFromHex } from './colorHelpers.js'; import './exonsControlPanel.js'; import './variantsControlPanel.js'; import ...
$().ready(function (){ $("#cpaff_other_form").validate({ rules:{ profile_photo : "required", email : "required", password : "<PASSWORD>", confirm_password : { required : true, equalTo : "#password" }, nam...
"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...
var left = $('#box').position().left; var top = $('#box').position().top; var width = $('#box').width(); $('#search_result').css('left', left).css('top', top + 27).css('margin-top', '27px').css('width', width + 400).css('z-index', 4); // PRETRAGA ZA KUPCEM $('#search_box').keyup(function () { var value = $(t...
import React from 'react'; import PropTypes from 'prop-types'; import { ScrollView, StyleSheet, Image, View, Text } from 'react-native'; import { connect } from 'react-redux'; import ImagePicker from 'react-native-image-crop-picker'; import { isEqual } from 'lodash'; import Touch from '../utils/touch'; import Keyboard...
import React from "react"; import { render } from "react-dom"; import { Formik, Field, Form } from "formik"; import * as Yup from 'yup'; import classNames from "classnames"; import styled from 'styled-components'; import PropTypes from 'prop-types'; const StyledForm = styled(Form) ` flex: 1 1 100%; margin-bott...
'use strict'; var ok = require('assert').ok; var path = require('path'); var taglibLookup = require('./taglib-lookup'); var charProps = require('char-props'); var deresolve = require('./util/deresolve'); var UniqueVars = require('./util/UniqueVars'); var PosInfo = require('./util/PosInfo'); var CompileError = require(...
/* * Copyright 2019, GeoSolutions Sas. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import moment from 'moment'; import { ...
import Vue from "vue"; import VueRouter from "vue-router"; import store from '../store'; import MainView from "../views/MainView"; import AdminVue from "../views/AdminVue"; import StatsList from "../views/StatsList"; import LiveStats from "../views/LiveStats"; import PredictionStats from "../views/prediction_stats"; i...
//现在为直接在h标签上加id,后期可依需要,改为在其旁边加上<a href name="">的方式 var BaiKe = { config: { id: "mycontent", dirid: "baike_dir", navid: "baike_nav", level: ["h1", "h2", "h3", "h4"], tags: ["h1", "h2", "h3", "h4"], titleLen: 20 }, Init: function () { this.GetDirs(); }, GetNextTag: function (tag) {//返回下一级tag var dirc...
// get access token from ejs file var access = document.getElementById("access") var accessStr = access.innerHTML accessStr = accessStr.substring(1); var ppButtonIcon = document.getElementById("ppButtonPic") var ppButton = document.getElementById("ppButton") var counter = 0 var accumulatedSongTime = 0 var currentSon...
var grid = {}; var parentIndex = null; $(document).ready(function(){ $.jgrid.defaults.styleUI = 'Bootstrap'; grid = $("#jqGrid").jqGrid({ beforeRequest: function(){ $(".ui-jqgrid .jqgrid-overlay").attr("style","display:block"); }, loadComplete: function(xhr){ $(".ui-jqgrid .jqgrid-overl...
import properties from '../properties'; import routeDefinitions from '../definitions/routeDefinitions.json'; import mapDefinitions from '../definitions/mapDefinitions.json'; import TileMath from '../utils/TileMath'; import Map from '../sprites/Map'; import Player from '../sprites/Player'; import DamageSystem from '...
import React, { useEffect, useState } from 'react'; import PropTypes from 'prop-types'; import { View, Text, I18nManager, TouchableOpacity, Image, StatusBar } from 'react-native'; import { Container, Header, Content, Input, Footer, Title, Body, List, ListItem, Left, Right, Toast, Root, Segme...
import _ from 'lodash'; import GitHubApi from 'github'; import moment from 'moment'; import winston from 'winston'; import { load as loadConfig } from '../lib/config.js'; import bf4 from '../lib/bf4.json'; import Drone from '../lib/dronebase'; const configName = process.argv[2]; const config = loadConfig(configName);...
//LOGIC.JS OUTLINE IN ORDER // // document ready + function // game object declaration // variables - global variables declaration // clearScore - clears variables for next games // checkAnswer - check answer and run if correct else run “incorrectInput” function // noInput - fires when timer runs out without input // i...
import React from 'react' import csv from 'csv-file-creator' import ReactTable from 'react-table' import Moment from 'moment' import update from 'immutability-helper'; import eol from 'eol' import map from 'lodash/map' //import bookings from '../bookings' //import { manageEventCheck } from '../permission.js' import {...
import { get } from 'lodash' import championDict from '../assets/Lol/champion.json' const blankIntervalState = () => ({ players: {}, playerLocations: {}, destroyedObjectLocations: [], killLogs: [], killStatus: {"100": 0, "200": 0} }) export default function parseTimeline(matchData, timeline, focus...
import { library } from '@fortawesome/fontawesome-svg-core' import { faLaughSquint, faPaperPlane } from '@fortawesome/free-regular-svg-icons' import { faBars, faBell, faChevronLeft, faChevronRight, faEllipsisH, faHome, faImage, faPlusSquare, faRecycle, faTimes, faTrashAlt } from '@fortawesome/...
//comply jQuery easyUI //$.extend($.validator.defaults, // { // onfocusin : function(element) { // //alert($(element).attr('class')); // var hiddenElement = null; // if ($(element).parent().hasClass('combo')) { // hiddenElement = $(element).parent().find(".combo-value").get(0); // } else { // hid...
var m_oTestTable = null; var m_oTestLabels = new Object(); function onLoad() { // initialize the test presentation label lookup m_oTestLabels["wde.qchs.algo.Barnes"] = "Barnes Spatial"; m_oTestLabels["wde.qchs.algo.ClimateRange"] = "Climate Range"; m_oTestLabels["wde.qchs.algo.Complete"] = "Complete"; m_oTe...
/* * SQUAD CHESS RULES * * This library takes in a game state (board position, turn number, and legal turns) and an action (a turn), * then returns a new state and set of legal turns. * * General architecture: Take in a board state and an action (turn), * return a new state and a list of legal turns. * * DATA ...
import { resolve } from 'path'; import { readFileSync, statSync } from 'fs'; import { webpack, group, customConfig, setContext, defineConstants, addPlugins, setDevTool } from '@webpack-blocks/webpack2'; import ExtractTextPlugin from 'extract-text-webpack-plugin'; import autoprefixer from 'autoprefixer'; import P...
import React, { PureComponent } from 'react'; import PropTypes from 'prop-types'; import { Tween } from './utils'; import './index.less'; /* eslint-disable */ (function() { let lastTime = 0; const vendors = ['webkit', 'moz']; // 兼容,添加浏览器前缀 for (let i = 0; i < vendors.length && !window.requestAnimationFrame; i++...
/* * @Author: ext.qiubo * @Date: 2021-04-06 12:01:15 * @LastEditTime: 2021-04-15 11:54:16 * @LastEditors: ext.qiubo * @FilePath: \client\src\index.js * @version: */ /// 其实,关于socket真不能向我之前做的那么简单了,刚刚想了一下,大体的架构分成3步骤拆解:1、需要proxy reflect做一个劫持函数。2、自定义一个dispatch,观察者方式查看进度。3、在queue里封装一个消息消费者队列。 "use strict"; function C...
const { MessageEmbed } = require("discord.js"); const { TrackUtils } = require("erela.js"); const sendError = require("../util/error"); const sendSuccess = require("../util/success"); const _ = require("lodash"); module.exports = { name: "collection", description: "View and manage your collections", usage: "coll...
/** * Adds specified targets to the specified rule, or updates the targets if * they are already associated with the rule. * * In CloudFormation the resource declaration is: * * CloudWatchEventsRule: * Type: Custom::Events::Rule * * CloudWatchEventsRuleTarget: * Type: Custom::Events::Target * P...
//import logo from "./logo.svg"; import React, { useEffect, useState } from "react"; import "./App.css"; import asp from "./main"; function App() { const [selected, setSelected] = useState("105"); let sampleDataSource = [ { Name: "Rajveer", Id: 104, Salary: 10000, Currency: "GBP" }, { Name: "David", Id: 1...
import React, { Component } from 'react' import './MyTagsList.css' import { connect } from 'react-redux' import { Redirect, NavLink, Link } from 'react-router-dom' import { DialogContent, DialogTitle, Dialog, Button, DialogActions, ListItemAvatar, Fab, Avatar, Typography, IconButton, ListItem, List, L...
"use strict"; var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, ...
const fs = require("fs"); const path = require("path"); const EventEmitter = require("events"); const Interaction = require("./interaction"); const { Client, Collection } = require("discord.js"); /** * An object * @typedef {Object} HandlerOptions * @property {string} [commandsDir=undefined] - Dir for the commads *...
const filePath = "./assets/img/resources/national/"; const missingBackgrd = "./assets/img/img-placeholder.jpg"; const resources = { 1: { url: "https://suicidepreventionlifeline.org/ ", fileName: `${filePath}using-phone.jpg`, title: "National Suicide Prevention Lifeline", desc: "If yo...
'use strict' const {v4: uuidv4} = require('uuid') const fs = require('fs') const gm = require('gm').subClass({imageMagick: true}) const puppeteerch = require('puppeteer-ch') const puppeteerff = require('puppeteer-ff') const pageTimeout = 40 // Seconds to wait until giving up on generate.html class Renderer { co...
import React, { Component } from "react"; import { connect } from "react-redux"; import { Button } from "../components/general"; import { Agenda } from "react-native-calendars"; import { TouchableOpacity, Text, View, ScrollView, Dimensions, SafeAreaView } from "react-native"; import { fetchEvents, getPrivilege,...
import React, { useState } from 'react'; import Button from 'react-bootstrap/Button'; import Col from 'react-bootstrap/Col'; import Spinner from 'react-bootstrap/Spinner' import Container from 'react-bootstrap/Container' import Row from 'react-bootstrap/Row' import Form from 'react-bootstrap/Form'; import Alert from 'r...
// Use this file to change prototype configuration. // Note: prototype config can be overridden using environment variables (eg on heroku) const TODAYS_DATE = new Date(); const AGENT_TYPES = [{ type: 'CONTACT_CENTRE_AGENT', label: 'Contact centre agent' }, { type: 'CONTACT_CENTRE_MANAGER', label: 'Contact cen...
var Orthographies = { handles: [], names: {}, input: {}, output: {}, parsing: {}, postprocess: {} }; var Alphabet = ["d", "g", "x", "j", "f", "v", "th", "s", "z", "sh", "zh", "sl", "zl", "m", "n", "a", "el", "e", "ol", "i", "y", "uh", "ul", "c", "t", "k", "ah", "eh", "o", "u"]; for (var i = 0; i < Alphabet....
// // example.js // dota2 spectator // // Created by Roger (<EMAIL>) on 07/28/15. // Copyright (c) 2015 <EMAIL>. All rights reserved. // // Description: var fs = require('fs'); var path = require('path'); var util = require('util'); var crypto = require('crypto'); var steam = require('steam'); var dota = require(...
/* Authenticates the player and provides server details from each running server. Handles menu progression logic. */ // Setup let initialized = false; let lastUpdate = Date.now(); let state = 0; // State of where the player is in the authentication process (0: Start Menu, 1: Server Select, 2: Connecting to ...
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b)...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { FormControl, Filter, Sort, Toolbar, PaginationRow, PAGINATION_VIEW } from 'patternfly-react'; import listFilter from './listFilter'; import sortFilter from './sortFilter'; import paginate from './paginate'; class ListViewToolbar ex...
import React, { useState, useEffect, useRef, Fragment } from "react"; import Tour from "reactour"; import TwoPaneResizable from "../common/TwoPaneResizable"; import CodeDisplay from "../code-display/CodeDisplay"; import NavBar from "../common/NavBar"; import PageNotFound from "../common/PageNotFound"; import SideBar fr...
let defaultOpt = { index:1, //当前激活图片下标 loop:true, //是否开启无缝滚动 threshold:0.2 , //滑动超过0.2比例即可翻页 autoplay:{ delay: 2000 , //4秒切换一次 }, pagination: { el: '.swiper-pagination', } } class MoveHandle { constructor(opt){ if(!opt.el){ return } this.initParameter(defaultOpt,...
function patientIntake_bodyAnnotationCloser(closer) { var saveBodyAnnotation = false; if (typeof bodyCanvas__finalized != 'undefined') { if (bodyCanvas__finalized == false && bodyCanvas__readonly != true) { saveBodyAnnotation = true; } } if (saveBodyAnnotation && _.isObject(bodyCanvas__canvas)...
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 ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, des...
var require = require || null; var gulp = require('gulp'); var del = require('del'); var ts = require('gulp-typescript'); var filter = require('gulp-filter'); var log = require('gulp-print'); var replace = require('gulp-replace'); var reactTools = require('react-tools'); var browserify = require('gulp-browserify'); va...
'use strict'; const path = require('path'); // standard Node.js module for PATH management const fs = require('fs'); // standard Node.js module for file operations const jsdom = require("jsdom"); // Node.js module for HTML documents loading and working with const { JSDOM } = jsdom; //const ast = require( path....
import React, { Component } from 'react'; import './App.css'; import axios from 'axios'; // import axios, { post } from 'axios'; import Paper from '@material-ui/core/Paper'; import Grid from '@material-ui/core/Grid'; import { withStyles } from '@material-ui/core/styles'; import AppHeader from './AppHeader'; import AppH...
const { forEach } = require('callbag-basics') const morphdom = require('morphdom') const isCallbag = x => typeof x === 'function' , isNode = x => x instanceof Node const isAttributes = x => !(x instanceof Array) && x instanceof Object , isChildren = x => x instanceof Array && x.every(item => isNo...
function insertIntoInput(textarea, template, cursor, cursor2, force_newline) { var val = textarea.val() || '', st = textarea[0].selectionStart || 0, end = textarea[0].selectionEnd || 0, prev = val.substr(0, st), is_newline = prev.length === 0 || prev[prev.length] === '\n', b...
//---------------------------------------------------- Serverinfo创建弹出页面 ------------------------------------- function addEquipment(cid) { $('#serverinfoList_dialog').dialog( { title : '新增服务器信息', width : 720, height : 320, align : 'center', closed : false, cache : false, href : "/excloudPlatform...
/* Software distributed under MIT License, read the accompanying LICENSE.txt file for more information. */ let animation = false; let n; // These can be used for "draw lines" option let px, py; let x, y; // Controls let inWidth, inHeight, sldSeedSize, sldSeedSpacing, pSeedSize, pSeedSpacing, ...
var Translatron = angular.module('Translatron', ['ui.bootstrap']) function connectWebsocket() { console.info("Connecting to " + 'ws://' + window.location.hostname + ':9000') var conn = new WebSocket('ws://' + window.location.hostname + ':9000'); conn.onerror = function (error) { console.log(error);...
'use strict'; /* ASSERT: ok(value, [message]) - Tests if value is a true value. equal(actual, expected, [message]) - Tests shallow, coercive equality with the equal comparison operator ( == ). notEqual(actual, expected, [message]) - Tests shallow, coercive non-equality with the not equal comparison oper...
const cities = ['New York', 'Los Angeles', 'Chicago', 'Houston', 'Philadelphia', 'Phoenix', 'San Antonio', 'San Diego', 'Dallas', 'San Jose', 'Austin', 'Jacksonville', 'San Francisco', 'Indianapolis', 'Columbus', 'Fort Worth', 'Charlotte', 'Detroit', 'El Paso', 'Seattle', 'Denver...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _promise = require('babel-runtime/core-js/promise'); var _promise2 = _interopRequireDefault(_promise); var _asyncToGenerator2 = require('babel-runtime/helpers/asyncToGenerator'); var _asyncToGenerator3 = _interopRequireDefault(_as...
"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...
import React from 'react' import { Header } from '../Header' import { SuperPromo } from '../SuperPromo' import { NewsList } from '../News/newslist' import showValue from '../Utils/showValue' import isValid from '../Utils/isValid' import { PromoList } from '../Promo/promolist' import { YoutubeList } from '../Youtube/you...
/* * * * * IMPORTS * * * * * */ // react import React from 'react'; import { StyleSheet, View, ScrollView, Image, Text, TouchableOpacity } from 'react-native'; import { Avatar, Header, ListItem } from 'react-native-elements'; import AsyncStorage from '@react-native-async-storage/async-storage'; import Icon from 'reac...
import SkillIds from './SkillIds'; const boringBuffs = { 'Do Nothing Transformation Buff': true, 'Conjure Fire Attributes': true, 'Conjure Fiery Greatsword': true, 'Number of Boons': true, 'Ride the Lightning': true, 'Signet of Restoration': true, 'Elemental Refreshment': true, 'Fire Aura': true, 'Fi...
title = "BLITZED"; description = ` Annihilate. [Hold Left] Move Left [Hold Right] Move Right `; characters = [ ` ll ll llll llll llllll llllll `,` l lll l `,` llllll l ll l llll l l `,` llll l ll l llll l l `,` ll l l l l ll `,` y y yyyyyy yyyy yyyyyy y y ` ]; const G = { WIDTH: 1...
/* eslint no-console: 0, max-len: 0, prefer-destructuring: 0 */ /* global $, ClipboardJS, calc, FastClick */ var parseResult = function (advice) { var output = ''; if (advice.type === 'additional') { output += '<br><br><strong>Additional advice:</strong><br>'; } advice.text.forEach(function (element) { ...
// Wait for the deviceready event before using any of Cordova's device APIs. // See https://cordova.apache.org/docs/en/latest/cordova/events/events.html#deviceready document.addEventListener('deviceready', onDeviceReady, false); function onDeviceReady() { // Cordova is now initialized. Have fun! //StatusBar.o...
import { Button } from 'antd'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { FlagOutlined } from '@ant-design/icons'; import CloseIcon from './icons/general/close-icon.js'; import DeleteIcon from './icons/general/delete-icon.js'; import { isTouchDevice } from '../ui/browser-helper.js...
import React, { useState, useEffect, useContext } from 'react'; import { Formik } from 'formik'; import TitleBar from '../utils/TitleBar'; import Button from '@material-ui/core/Button'; import Alert from '@material-ui/lab/Alert'; import { csvContext } from '../context/csv-context'; import LoadDataset from '../utils/Loa...
/* * Copyright 2019 Firespring, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
/*************************************************************************** This customRequire function load src after all dependencies loaded Type of parameter src is a string Type of dependencies is an array of string Type of success_callback is function This function will be updated for handling dependencies o...
// Dependencies const inquirer = require("inquirer"); const mysql = require("mysql"); const express = require('express') const ctable = require("console.table") const app = express(); app.use(express.json()); app.use(express.urlencoded({ extended: true })); // Sets the information necessary to connect to the server ...
"use strict"; const net = require("net"); const cp = require('child_process'); const crypto = require('crypto'); const os = require('os'); const path = require('path'); const EventEmitter = require("events"); const Data = Symbol("Data"), StartApp = Sy...
import React from "react"; import PropTypes from 'prop-types'; import bbox from '@turf/bbox'; import { configVals } from '../app/config.js'; import Filters from './Filters'; // We can't import these server-side because they require "window" const MapboxGeocoder = process.browser ? require('@mapbox/mapbox-gl-geocode...
var util = require('util'); var utils = require('../../util/utils'); var WebSocket = require('ws'); var Tracer = require('../../util/tracer'); var constants = require('../../util/constants'); var EventEmitter = require('events').EventEmitter; var logger = require('pomelo-logger').getLogger('pomelo-rpc', __filename); v...
import React, { Component } from "react"; import { View, Text, FlatList, ImageBackground, TouchableOpacity, TouchableHighlight, StyleSheet, Dimensions } from "react-native"; import { Navigation } from "react-native-navigation"; import AsyncStorage from "@react-native-community/async-storage"; import { constants } from ...
const json2md = require("json2md") const YAML = require("yamljs") const _last = require("lodash/last") const _get = require("lodash/get") const _repeat = require("lodash/repeat") const {getToc, slugGenerate} = require("./toc") const _cloneDeep = require("lodash/cloneDeep") function getParagraphTag(p) { const tags = ...
window.onload = function () { localStorage.clear(); }; var loadingDiv = `<div class="flex justify-center"> <svg class="h-6 w-6 animate-pulse text-white" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor"> <path d="M11 3a1 1 0 10-2 0v1a1 1 0 102 0V3zM15.657 5.757a1 1 0 00-1.414-1.414l-.707.70...
// Fitness Voice // Created by javiercampos.es // Last update: 2020-10-24 import { BodyPainter } from './bodyPainter.js'; import { SimplePoseDetection } from './simplePoseDetection.js'; import { Settings } from './settings.js'; import * as SoundEffects from './soundEffects.js'; import * as UI from './ui.js'; import { ...
import React from 'react'; import PropTypes from 'prop-types'; import * as ReactDOM from "react-dom"; import {connect} from "react-redux"; import * as studentActions from "../../infoStudent/studentActions"; import {bindActionCreators} from "redux"; import * as registerActions from "../../registerStudents/registerAction...
import * as mjolnir from "mjolnir"; import * as axios from "axios"; let private_key = null; let public_key = null; let user_address = null; let user_address_hex = ""; let fee = null; let utxos = []; let inputs = []; let outputs = []; window.document.getElementById("store_pk").onclick = function(self) { console.l...
var colorsSystem = document.querySelectorAll(".switch-colors-system .colors-system span"); var container = document.querySelector(".container_color_picker"); var switchR = document.querySelector(".switch-colors-system .right"); var switchL = document.querySelector(".switch-colors-system .left"); var resize...
import React, { useState, useEffect } from "react"; import useInterval from "./useInterval"; // Custom useInterval react hook import axios from "axios"; import seedData from "../data/seedData1Week"; import seedDataAll from "../data/seedDataAllWeeks"; // import config from "./config"; import HistoricalGraph from "./His...
/* * Copyright 2017 Capital One Services, 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 la...
const fetch = require('cross-fetch'); const BN = require('bn.js'); const { makeRandomPrivKey, privateKeyToString, getAddressFromPrivateKey, TransactionVersion, StacksTestnet, uintCV, tupleCV, makeContractCall, bufferCV, serializeCV, deserializeCV, cvToString, connectWebSocketClient, broadcas...
const Mousetrap = require('mousetrap'); const css = require('classnames'); const LEFT = 'left'; const RIGHT = 'right'; exports.decorateConfig = config => { const hyperTabsConfig = { ...config.hyperTabs || {}} let navCss = ''; hyperTabsConfig.navMoveable = hyperTabsConfig.navMoveable ? parseInt(hyperTabsConfig.n...
/* This file is only used during the build process; its content is inserted in the html file */ /* Disable the previous advance-on-click behaviour */ /* NOTE: use CLICK_NEXT=1 to restore the default advance-on-click behaviour... */ var CLICK_NEXT = 0; /* NOTE: use HISTORY=0 to avoid pushing browser history elements fo...
// mutation.js updateSurveyFormData () - // -> addOrReplaceOrIgnoreIfMoreRecent (state['survey'], client['SLK'], survey) let ONE_HOUR = 60 * 60 * 1000; export function objectFlip(obj) { const ret = {}; Object.keys(obj).forEach(key => { ret[obj[key]] = key; }); return ret; } export async function promis...
function htmlentities(input) { return input.replace(/\&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;'); } function c(tagName) { return document.createElement(tagName); } function win(N) { return document.getElementById(N); } function n(e) { document.body.appendChild(e); } function oset(id, trans) { wi...
// importing the dependencies from their source codes because if we put these exports in the main // bundle it increases its size significantly - this means we are repeating the same source code // in another bundle - inefficient but better than increasing core bundle size import { EMPTY_OBJ, EMPTY_ARR } from '../../sr...
import { spliceOne, spliceObject } from "../util/array"; import ObjectPool from "../util/ObjectPool"; import { Types, Tag, Data, Value } from "./tag"; import EntityManager from "./EntityManager"; import QueryListener from "./QueryListener"; const DEBUG_NAME = false; const IS_DEV = process.env.NODE_ENV === "deve...
import React from 'react' import MultiPicker from '../../picker/MultiPicker' import Picker from '../../picker/Picker' import PropTypes from 'prop-types' import { ViewPropTypes } from 'react-native' function getDaysInMonth(date) { return new Date(date.getFullYear(), date.getMonth() + 1, 0).getDate() } function pad...
import React, { Component } from 'react'; import './style.css'; import $ from 'jquery'; let musicList = [], // 音乐列表 musicLength = 10, // 音乐列表的总长度 isDrgging = false, // 是否在拖动 rotateTimer = 0, // 图片旋转计时器 angle = 0, // 图片旋转的角度 musicTimer = 0, // 音乐播放计时器 slideLeft = 20, // 滑块距离父容器的距离 slideWidth = 10, ...
var Web3 = require('web3'); var util = require("util"); var Rabbus = require("rabbus"); var Rabbot = require("rabbot"); var config = require('./config'); var EthereumTx = require('ethereumjs-tx'); var currentWeb3 = new Web3(new Web3.providers.HttpProvider("http://127.0.0.1:8545")); /** * Check if a web3 host is va...
/* global require: false, process: false, setInterval: false, setTimeout: false, clearInterval: false, clearTimeout:false, module: false, console: false */ /** * Module dependecies. */ var mraa = require('mraa'); /* If you get any mraa missing errors, run this on your board: $ echo "src mraa-upm http://iotdk.intel...
import axios from "axios"; import { useContext, useEffect, useRef, useState } from "react"; import URLModule from '../../../contents/js/URL'; // CSS import '../../../contents/css/UserProduct/Step1.css'; // Context import {ServerContext} from '../../../App'; let urlModule = null; //const server = 'http://localhost:30...
import * as glfw from 'glfw'; //import { glClear, glClearColor, glViewport, GL_COLOR_BUFFER_BIT, GL_DEPTH_BUFFER_BIT, GL_STENCIL_BUFFER_BIT } from './gl.js'; import * as nvg from 'nanovg'; let window; export function DrawImage(image, pos) { const size = nvg.ImageSize(image); nvg.Save(); if(pos) nvg.Translate(.....
/** * @component_name jj input number * @component_desc Input numerical values with a customizable range. * @attribute value / v-model ,binding value, number, / ,0 * @attribute min, the minimum allowed value, number, / * ,-Infinity * @attribute max, the maximum allowed value, number, — * ,Infinity * @at...
$(function () { loadRegData(); $("#add_draggable").on({'hidden.bs.modal': function(){ cleanAdd(); }}); $('#add_save').bind('click', function () { addReg(); }); $('#edit_save').click(function(){ editReg(); }); $("#search_btn").bind('click',function(){ ...