text stringlengths 3.22k 29.5k |
|---|
const SVG_HEIGHT = 200;
/**
* Created by GO22670 on 10/15/13.
*/
var margin = {top: 1, right: 1, bottom: 6, left: 1},
width = 960 - margin.left - margin.right,
height = SVG_HEIGHT - margin.top - margin.bottom;
var formatNumber = d3.format(",.0f"),
format = function (d) {
return "$"+formatNumber(d... |
function Timer(startX, startY, d) {
var total = 0;
var remaining = 0;
var animating = false;
this.visible = false;
var timerPadding = 5;
var callback = null;
var timerC = document.createElement("canvas");
timerC.setAttribute("width", 1024);
timerC.setAttribute("height", 768);
var timerCtx = timerC.getContext(... |
import moment from 'moment';
import * as angular from 'angular';
import template from './contract-edit.template.html';
const has = (obj, key) => obj.hasOwnProperty.call(obj, key);
class ContractEditCtrl {
constructor($routeParams, $uibModal, Kategorien, Vertrag, Sla, Kosten, Error, $location, User, $rootScope, Waeh... |
import get from 'lodash/get';
import queryString from 'query-string';
import React from 'react';
import PropTypes from 'prop-types';
import { inject, observer } from 'mobx-react';
import ConditionValueField from './ConditionValueField/component';
import FormSelect from '../../FormSelect/component';
/** Return true if... |
// An All Components Screen is a great way to dev and quick-test components
import React, { Platform, ListView, View, PropTypes } from 'react-native'
// import { connect } from 'react-redux'
import styles from '../Styles/MainScreenStyle'
import Routes from '../Navigation/Routes'
import InfoView from '../Components/Info... |
import React from 'react';
import {
makeStyles
} from '@material-ui/core/styles';
import Button from '@material-ui/core/Button';
import LinearProgress from '@material-ui/core/LinearProgress';
import Paper from '@material-ui/core/Paper';
import Grid from '@material-ui/core/Grid';
import IconButton from '@material-ui... |
// Copyright (c) 2015, <NAME> (twitter.com/evanxsummers)
// ISC license, see http://github.com/evanx/redex/LICENSE
import assert from 'assert';
import fs from 'fs';
import path from 'path';
import bunyan from 'bunyan';
import lodash from 'lodash';
import util from 'util';
import Files from '../util/Files';
import Pa... |
var i8n = require('inflection');
var utils = require('./utils');
var defineCachedRelations = utils.defineCachedRelations;
/**
* Module exports
*/
exports.defineScope = defineScope;
exports.mergeQuery = mergeQuery;
function ScopeDefinition(definition) {
this.isStatic = definition.isStatic;
this.modelFrom = defini... |
import * as THREE from "three";
import React, { Suspense, useRef, useState } from "react";
import { Canvas, useFrame, useThree } from "react-three-fiber";
import { EffectComposer, SSAO } from "react-postprocessing";
import { ContactShadows } from "@react-three/drei";
import { a, useTransition, useSpring } from "@react-... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(gene... |
'use strict';
const ls = window.libsignal;
const store = new window.SignalProtocolStore();
const KeyHelper = ls.KeyHelper;
const numberOfPreKeys = 2;
const serverBaseUrl = window.location.href;
let idKeyPair = {};
let registrationId;
let deviceId = 123;
let preKeyObjects = [];
let preKeyObjectsToSend = [];
let signe... |
import React, { useEffect, useState } from 'react';
import Layout from '../../../components/layout';
import { useLazyQuery } from '@apollo/client';
import { getBundleCollection } from '../../../components/shared/query/query';
import { connect } from 'react-redux';
import BundleProduct from './BundleProduct';
import { b... |
import React, {useCallback, useEffect, useState} from 'react';
import {
View,
FlatList,
StyleSheet,
Image,
TouchableOpacity,
} from 'react-native';
import {actions, defaultActions} from './constant';
const RichToolBar = props => {
const editorRef = props.editorRef;
const {style, disabled, children, flatC... |
import React from 'react';
import { connect } from 'dva';
import { Input, Row, Col, Button, Icon, Spin, Form, message, Modal } from 'antd';
import PageHeader from '../../components/PageHeader';
import SelectableTag from '../../components/SelectableTag';
import LevelDrawer from '../../components/Drawers/LevelDrawer';
im... |
var $ = require( "jquery" );
window.$ = $;
require('bootstrap');
//require('bootstrap-icons');
const { exec } = require('child_process');
var fs = require('fs-extra');
const homedir = require('os').homedir();
const { BrowserWindow } = require('@electron/remote');
const express = require("express");
const app = express(... |
function SkyPanel(fix,iAdd){
this.Fixture = fix;
this.Int = iAdd - 1;
this.Color = iAdd;
}
var NumOfix = 16;
var Fix3 = new SkyPanel(3,1);
var Fix4 = new SkyPanel(4,21);
var Fix5 = new SkyPanel(5,41);
var Fix6 = new SkyPanel(6,61);
var Fix7 = new SkyPanel(7,81);
var Fix8 = new SkyPanel(8,101);
var Fix9 = new S... |
import React from 'react'
import axios from 'axios'
import { navigate } from '@reach/router'
import Loading from '../loading/loading'
import { addNFTToDB } from '../../firebase'
import NFTSample from '../../assets/classic-cars-sample/mv.jpeg'
import GEICO from '../../assets/geico.png'
import StateFarm from '../../asse... |
import React from "react"
import Layout from "../components/Layout"
import SEO from "../components/SEO"
import styled from "styled-components"
import Img from "gatsby-image"
import Dots from "../assets/dots.svg"
import { graphql } from "gatsby"
import { Formik, Form, Field } from "formik"
import * as Yup from "yup"
imp... |
const Node = require('../structures/Node');
const Dict = require('../structures/Dict');
const build = require('../util/query');
const endpoints = require('./endpoints');
class NodeManager {
/**
* Allowed filter arguments for nodes.
*/
static get FILTERS() {
return Object.freeze(['uuid', 'name... |
'use strict';
const actions = require('desk-base'),
argv = require('yargs').argv,
auth = require('basic-auth'),
bodyParser = require('body-parser'),
compress = require('compression'),
crypto = require('crypto'),
directory = require('serve-index'),
express... |
var volcontrol = document.getElementById('v-vol-control');
var btnPlay = document.getElementById('v-play');
var btnMuted = document.getElementById('v-mute');
var player = document.getElementById('player');
const videoViewer = document.getElementById('video-viewer');
var $vTotalTime = $('#v-total-time');
var totalTime;
... |
import React, { Component, Fragment } from "react";
import classNames from "classnames";
import PropTypes from "prop-types";
class Sidebar extends Component {
constructor() {
super();
this.state = {
activeTab: []
};
this.handleTabClick = this.handleTabClick.bind(this);
this.handleBackdropC... |
function objectToString(e) {
return nativeObjectToString.call(e)
}
function getRawTag(e) {
var t = hasOwnProperty.call(e, symToStringTag),
n = e[symToStringTag]
try {
e[symToStringTag] = void 0
var o = !0
} catch (e) {}
var r = nativeObjectToString.call(e)
return o && (t ... |
#!/usr/bin/env node
'use strict';
/**
* Try this command:
* sofa-tool --help
*/
/**
* Module dependencies.
*/
const program = require('commander');
const meld = require('./meld_tool_lib.js')
const rdf = require('rdflib');
// =========================================================... |
/// <reference path="./inc.d.ts" />
/*
* grunt-static-i18next
*
*
* Copyright (c) 2014 <NAME>
* Licensed under the MIT license.
*/
'use strict';
var _ = require('lodash');
var path = require('path');
var Q = require('q');
var static_i18nextTask = require('./static_i18nextTask');
var NSLoaderTask;
(function (NSLoa... |
'use strict';
const
abDate = require('ab-date'),
js0 = require('js0'),
spkForms = require('.')
;
export default class Field
{
get elem() {
js0.assert(`${this._fullName}_Field` in this._layout.$elems,
`Cannot find 'elem' in field layout.`);
return this._layout.$elem... |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { setTitle, setCharts } from 'dan-actions/workspaceActions';
import PropTypes from 'prop-types';
import { PapperBlock } from 'dan-components';
import AddCircleOutlineIcon from '@material-u... |
import React, { Component, Fragment, useState } from "react";
import PropTypes from "prop-types";
import { withStyles } from "@material-ui/core/styles";
import { Grid, IconButton } from "@material-ui/core";
import RoundedButton from "components/RoundedButton";
import styled from "styled-components";
import FavoriteIcon... |
import ReactPelFactory from '../factory/ReactPelFactory'
import VuePelFactory from '../factory/VuePelFactory'
import webpackExternals from 'display-pack-externals'
import debug from 'debug'
import loadjs from 'loadjs'
// 组态化组件资源服务地址
const log = debug('editor:fc-loader')
const important = debug('important')
/**
* 图元动... |
import React, { useState, useEffect, useRef } from "react";
import { withRouter, useHistory } from "react-router-dom";
import { useSelector } from "react-redux";
import { Ionicons } from "@expo/vector-icons";
import { Picker, Icon } from "native-base";
import { SwipeListView } from "react-native-swipe-list-view";
impor... |
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) {
ext... |
import React from 'react';
import { Row, Col, Select, Cascader, Tree, Icon, Modal, message } from 'antd';
import Map from './Map';
import mapApi from './api';
import {DialogCtrl, TreeCtrl, PanelCtrl} from '../../../components/Map/MapQuery/controls';
import {getBustypeInfo, queryStation, getAreaByStationid, updateArea} ... |
import lunr from 'lunr';
// The number of characters to use when padding search result highlights.
const SNIPPET_BUFFER = 100;
/**
* Retrieve the search term from the window location.
* @param {string} param The query param to be retrieved
* @returns {string} The search term provided by the user.
*/
const getQuer... |
/*
Copyright 2019 Adobe. All rights reserved.
This file is licensed to you 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... |
import React, { useState, useEffect } from "react";
import { useHistory } from "react-router-dom";
import styled from "styled-components";
import { COLORS } from "../../constants";
import { USER_LOGIN_SCHEMA, USER_REGISTRATION_SCHEMA } from "../schemas";
import propTypes from "prop-types";
import * as yup from "yup";
i... |
/* ------------- Imports -------------- */
import React, { Component } from 'react'
import { HashLink as Link } from 'react-router-hash-link'
// import { PrismCode } from 'react-prism'
// import rawStyles from 'raw-loader!./styled-input-styles.txt'
/* ------------- Form Library Imports -------------- */
import {
... |
import React, { PureComponent } from 'react';
import { View, TouchableOpacity, Image, Text } from 'react-native';
import { connect } from 'react-redux';
import { Actions } from 'react-native-router-flux';
import { translate, strings, formatCurrency } from '../../i18n.js';
import { addToBasket } from '../../actions';
im... |
import React, { Component } from 'react';
import CommonQueries from './common/CommonGraphQLQueries';
import DataIndex from './common/DataIndex';
import Utilities from './common/Utilities';
import DateUtil from './DateUtil';
import LifecycleUtil from './LifecycleUtil';
import Chart, { getChartNodeID } from './Chart';
c... |
import React from 'react'
import Dropzone from 'react-dropzone'
import { Box, Flex } from '@rebass/grid'
import { th } from '@pubsweet/ui-toolkit'
import styled, { css } from 'styled-components'
import { Icon } from '@elifesciences/component-elife-ui/client/atoms'
import {
errorMessageMapping,
MAX_SUPPORTING_FILES... |
'use strict'
var livesCount = 3;
var gBoard = [];
var gLevel = {
size: 4,
mines: 2
}
var FirstClick = 0;
var isGameOn = false;
var startTime = 0;
var seconds = 0;
var clickCount = 0;
var safeClicks = 3;
var setIntervalId;
var setIntervalEmojy
var ellives = document.querySelector('.lives')
var elEmoji = docume... |
const { expect } = require('chai');
const WOQL = require('../lib/woql');
const { Var } = require('../lib/query/woqlDoc');
const idGenJson = require('./woqlJson/woqlIdgenJson');
const woqlStarJson = require('./woqlJson/woqlStarJson');
const woqlInsertJson = require('./woqlJson/woqlInsertJson');
const woqlDoctypeJson =... |
/**
* Copyright 2020 Phenix Real Time Solutions, 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
*
* Unle... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE in the project root for license information.
*-------------------------------------------------------------------... |
import { Component, ContentChildren, ElementRef, EventEmitter, forwardRef, Input, HostListener, Optional, Output, Renderer, ViewEncapsulation } from '@angular/core';
import { NG_VALUE_ACCESSOR } from '@angular/forms';
import { ActionSheet } from '../action-sheet/action-sheet';
import { Alert } from '../alert/alert';
im... |
// Mosquitto broker setting:
// The maximum number of QoS 1 or 2 messages to hold in the queue (per client)
// above those messages that are currently in flight. Defaults to 100.
const MAX_QUEUED_MESSAGES = 100;
const mqttServiceModule = angular
.module('homeuiApp.mqttServiceModule', [])
.factory('whenMqttReady'... |
// check if a value is a primitive Object/Array
import { isObject } from "./isObject.js";
// options:
// - rootDiscover - records/set a discovery from root with a method
// - recurseDiscover - records/set a discovery from a wildcard position with a method
// - nestedDiscover - records/set a discovery from literal/opt... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
* @module node_opcua_crypto
*/
const constants = require("constants");
const crypto = require("crypto");
const fs = require("fs");
const path = require("path");
const buffer_utils_1 = require("./buffer_utils");
const crypto_exp... |
import React, {
Fragment,
useCallback,
useEffect,
useRef,
useState,
} from 'react';
import useSafeState from '@restart/hooks/useSafeState';
import PropTypes from 'prop-types';
import {
Box,
Button,
Flex,
Gauge,
Heading,
Modal,
Text,
} from '@fast-ai/ui-components';
import { FormattedMessage, useIntl } from ... |
var width = 1000,
height = 800;
var svg = d3.select("#Chart").append("svg")
.attr("width", width)
.attr("height", height);
var div = d3.select("#Chart").append("div")
.attr("class", "tooltip")
.style("opacity", 0);
var originX = width / 2,
originY = height / 2,
innerCircleRadius = 210,
outerC... |
'use strict'
import { isBigNumber } from '../../utils/is'
import { factory } from '../../utils/factory'
const name = 'intersect'
const dependencies = [
'typed', 'config', 'abs', 'add', 'addScalar', 'matrix', 'multiply', 'multiplyScalar', 'divideScalar', 'subtract', 'smaller', 'equalScalar'
]
export const createInt... |
/*
Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
NVIDIA CORPORATION and its licensors retain all intellectual property
and proprietary rights in and to this software, related documentation
and any modifications thereto. Any use, reproduction, disclosure or
distribution of this software and related docum... |
// SQLite3 Query Builder & Compiler
const constant = require('lodash/constant');
const each = require('lodash/each');
const identity = require('lodash/identity');
const isEmpty = require('lodash/isEmpty');
const reduce = require('lodash/reduce');
const QueryCompiler = require('../../../query/querycompiler');
const no... |
var api
var prefix
var href
window.onload = function (){
var getaddress = localStorage.getItem("address")
// Set overlay.js to open to chain info page
localStorage.setItem("opened", "chaininfo.html")
apiget = localStorage.getItem("apiSet")
// Set history page to open to explorer according to mainn... |
// Copyright (c) YugaByte, Inc.
import { getClusterByType } from './UniverseUtils';
import _ from 'lodash';
export function isDefinedNotNull(obj) {
return typeof obj !== 'undefined' && obj !== null;
}
export function isEmptyArray(arr) {
return _.isArray(arr) && arr.length === 0;
}
export function isNonEmptyArra... |
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { push } from 'react-router-redux';
import _ from 'lodash';
import { Helmet } from 'react-helmet';
import sanitize from 'sanitize-html';
import { getHasDefaultSlider } from '../helpers/user';
import { dropCatego... |
import React, { useState } from 'react';
import { useNavigate, createSearchParams } from 'react-router-dom';
import isEmpty from 'lodash/isEmpty';
import { FaMapMarkerAlt, FaRegCalendar, FaUserFriends } from 'react-icons/fa';
import { Alert, Button } from 'antd';
import DateRangePickerBox from '../../../components/UI/D... |
const config = require('../config')
const timestamp = new Date().toLocaleString();
var moment = require('moment');
moment.locale('th');
exports.findAll = (req, res, next) => {
req.getConnection((err, connection) => {
if (err) return next(err);
var options = req.query.options ;
var Pasevent... |
let _currentRoom = null
let _currentShare = null
const memberList = new Map()
let myMemberId = null;
/**
* Connect with Relay creating a client and attaching all the event handler.
*/
window.connect = () => {
const sfuWrapper = document.getElementById('sfuWrapper')
const canvasMap = new Map()
let _allowCanvasD... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import createSectionIterator from 'section-iterator';
import themeable from 'react-themeable';
import SectionTitle from './SectionTitle';
import ItemsList from './ItemsList';
const emptyObject = {};
const defaultRenderInputComponent = props ... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var React = require('react');
var core = require('primereact/core');
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
var React__default = /*#__PURE__*/_interopDefaultLegacy... |
/**
@module ember-flexberry-designer
*/
import { computed } from '@ember/object';
import { isArray } from '@ember/array';
import $ from 'jquery';
import { isPresent } from '@ember/utils';
import joint from 'npm:jointjs';
import FdUmlElement from './fd-uml-element';
/**
An object that describes an object on the ... |
const request = require('request');
const fs = require('fs');
const moment = require('moment');
const path = require('path');
const parser = require('papaparse');
const GIT_PATH = 'https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_daily_reports/';
function dataDownload(... |
import React, {Component} from 'react';
import Spotify from 'spotify-web-api-js';
import {Bar} from 'react-chartjs-2';
import './playlistData.css';
const spotifyWebApi = new Spotify();
const BarGraph = (props) => {
//const DoughnutGraph = (props) => {
//const LineGraph = (props) => {
//console.log(props);
// Tot... |
const expect = require('chai').expect;
const WebSocket = require('ws');
const lovelacePort = 38091;
/**
* returns number of entities that are always added to entities array.
* @returns {number}
*/
exports.getNumConstEntities = function () {
//zone.home
//alarm_control_panel.defaultAlarm
return 2;
};
/... |
// Print out campaign drop-off rates
// Drop off: last started or finished level event
// Adjust startDate below for different timeframe than last 7 days.
// Usage:
// mongo <address>:<port>/<database> <script file> -u <username> -p <password>
// Ignores the order at which levels are completed
// Ignores level skippi... |
const EventEmitter = require('events');
const uuidv4 = require('uuid/v4');
const { proto } = require('@tum-far/ubii-msg-formats');
const ProcessingModuleProto = proto.ubii.processing.ProcessingModule;
const namida = require('@tum-far/namida');
const ExternalLibrariesService = require('./externalLibrariesService');
co... |
import React, { useState } from "react"
import { injectIntl, Link } from "gatsby-plugin-intl"
import { navigate } from '@reach/router'
import Modal from 'react-bootstrap/Modal'
import Layout from "../components/layout"
import SEO from "../components/seo"
import PolicyTitle from "../components/policyTitle"
import Gdpr... |
import ModelBase, { checkDataLink, maybeBind, shuffle } from './ModelBase';
import LinkModel from './LinkModel'; // eslint-disable-line no-unused-vars
import getComputationSignature from 'src/Ractive/helpers/getComputationSignature';
import { capture } from 'src/global/capture';
import { isArray, isEqual, isNumeric, is... |
// get Pearson r^2 correlation coefficient
function getR2(x, y){
let sumX = 0,
sumY = 0,
sumXY = 0,
sumX2 = 0,
sumY2 = 0;
const minLength = x.length = y.length = Math.min(x.length, y.length),
reduce = (xi, idx) => {
const yi = y[idx];
sumX += xi;
sumY += yi;
sumXY += xi ... |
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { Inject, Injectable, ViewEncapsulation } from '@angular/core';
import { BaseException } from '../facade/excep... |
/**
* GitHub Gist backend for synchronisation between clients
*
* Any discrepancies in the exported functions are due to API
* limitations
*/
import { standaloneNamespaces, shallowNamespaces, EditSet } from './';
import * as idb from './indexeddb';
// GitHub API client dynamic import (memoised)
let __octokit = ... |
/**
* Copyright 2012-2020, Plotly, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
var isNumeric = require('fast-isnumeric');
var Registry = require('../../registry');
var Lib = require('../../l... |
/*
* Copyright 2018 Adobe. All rights reserved.
* This file is licensed to you 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... |
/**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also av... |
const _flatten = require('lodash/flatten');
const _uniq = require('lodash/uniq');
const { locations: allLocations } = require('../../../config');
const { findPotentialLocations } = require('../activityQueue/findPotentialLocations');
const {
calculateLapsFromSegmentEfforts,
calculateLapsFromDefinitions,
} = require... |
import Host from './vdom/host';
import { scheduleEffect, flushEffect } from './vdom/scheduler';
import { is } from './vdom/shallowEqual';
import { isArray, isFunction, isNull } from './types';
import { warning, throwError, throwMinifiedError } from './error';
import { INSTANCE } from './constant';
function getCurrentI... |
// // DEPRECATED : P5 Sound Library
// function beatingsine(fosc1a,fosc1b,fosc2a,fosc2b,fosc3a,fosc3b) {
//
// this.osc1a = new p5.Oscillator(); this.osc1a.setType('sine'); this.freq1a = fosc1a; this.osc1a.freq(this.fosc1a); this.osc1a.amp(0); this.osc1a.start();
// this.osc1b = new p5.Oscillator(); this.osc1b.s... |
// import { RenderSimple } from '../../../../src/cesiumplugin/core/primitives/renderGeom/RenderSimple.js'
// import { CameraPro } from '../../../../src/cesiumplugin/core/control/camera/CameraPro.js'
import { CameraPro, RenderSimple} from "../../lib/geo/cesiumplugin.mjs";
class TestInteraction {
/**
* 交互
* @par... |
import React from 'react';
import { connect } from 'react-redux'
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
import {
Button, DropdownItem, DropdownToggle, DropdownMenu,
Row, Col, UncontrolledButtonDropdown, UncontrolledTooltip
} from 'reactstrap';
import MaxAvailableSpaceContain... |
/*
Copyright SecureKey Technologies Inc. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
*/
import Vue from 'vue'
import {expect} from 'chai'
import {mount, shallowMount} from '@vue/test-utils'
import Store from '../../../../cmd/user-agent/src/pages/chapi/Store.vue'
import Get from '../../../../cmd/user-agen... |
/*
* Version: 1.1.0
* Template: Hope-Ui - Responsive Bootstrap 5 Admin Dashboard Template
* Author: iqonic.design
* Design and Developed by: iqonic.design
* NOTE: This file contains the script for initialize & listener Template.
*/
/*----------------------------------------------
Index Of Script
----------------------... |
/*
This file is part of the OdinMS Maple Story Server
Copyright (C) 2008 <NAME> <<EMAIL>>
<NAME> <<EMAIL>>
<NAME> <<EMAIL>>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License versio... |
/*
<NAME>
<EMAIL>
*/
var terrain = [];
var platforms = [];
var gravity = 0.004;
var keyX = 0;
var keyY = 0;
var restartTimer = -1;
var music;
function Ship(x, y, vx, vy) {
this.direction = createVector(0, 0);
this.velocity;
this.position;
this.sprite;
this.sound = {};
this.fuel = 100;
this.boundingP... |
/* eslint-disable jsx-a11y/mouse-events-have-key-events */
import React, {
useCallback,
useEffect,
useContext,
useMemo,
useRef,
useState,
} from "react";
import PropTypes from "prop-types";
import StyledMenuItemWrapper from "../../menu-item/menu-item.style";
import { StyledSubmenu, StyledSubmenuWrapper } f... |
import React from 'react'
import {connect} from 'dva';
import {Card, Steps, Button, Input, Icon, Collapse} from 'antd';
import intl from 'react-intl-universal';
import {MetaMaskAccount} from "LoopringJS/ethereum/account";
import eachLimit from 'async/eachLimit';
import Notification from '../../../common/loopringui/comp... |
/*
//------------------------------------------------------------------------------
// 时间: 2018-04-28
// 作者: 蔡捷 (<EMAIL>)
// 标签
// 文件: tag.cshtml 页面文件
// 文件: tag.js JS文件
//------------------------------------------------------------------------------
路径:~/Areas/dev/ViewJS/tag.js
说明:标签(... |
function addNode(parent, textval) {
var i;
var tempnode;
var nodelist = this.nodelist; //'This' refer to the tree object!
i = nodelist.length;
nodelist[i] = new nodeStruct;
nodelist[i].index = i;
nodelist[i].trid = this.name + "_" + i;
nodelist[i].imgOnClick = "onclick='" + this.name + ".expand("+... |
// [min, t1, t2, t3, t4, max]; max for upper bound of bar scale
// 0 1 2 3 4 5
//Ex.: 0 10 15 40 70 100
var classMetricSpec= [
{shortname: "LOC", name: "Class Lines of Code",thresholds:[0, 50, 300, 900, 1500, 2000]},
{shortname: "NOM", name: "Number of Methods",thresholds:[0, 20, 30, 40, 50, ... |
var ocs_debugs = {}; // For stashing debug data.
/* ocs_log(msg)
*
* If the ocs_log function is not defined prior to this point, a
* simple console.log is connected.
*/
if (typeof ocs_log == 'undefined') {
console.log('ocs_log not defined, using console.');
function ocs_log(msg) {
console.log(... |
import {
Graph,
ConnectionHandler,
DomHelpers,
EdgeHandler,
InternalEvent,
Point,
CellHighlight,
constants,
VertexHandler,
RubberBandHandler,
Shape,
StencilShape,
StencilShapeRegistry,
CellRenderer,
utils,
load,
} from '@maxgraph/core';
import { globalTypes } from '../.storybook/preview... |
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//------------------------------------------------------... |
"use strict";
const MAX_FRAMES = 20;
let serverFrame = 0;
let clientFrame = null;
function addFrame(element, frame, attr, frameData) {
const frames = JSON.parse(element.dataset[attr] || "[]");
frames.push([frame, frameData]);
while (frames.length > MAX_FRAMES) {
frames.shift();
}
element.dat... |
var sysPath = require('path');
var fs = require('fs');
var each = require('async-each');
var jsonPaths = {
bower: 'bower.json',
dotbower: '.bower.json',
component: 'component.json'
};
var dependencyLocator = {
bower: 'name',
component: 'repo'
};
var jsonProps = ['main', 'scripts', 'styles'];
var getDir = ... |
import React, {Fragment, PureComponent} from 'react';
import {css, StyleSheet} from 'aphrodite';
import {Form, FormControl, ListGroup, Tab, Table} from 'react-bootstrap';
import StarfishMissions, {TYPES} from "../../../lib/StarfishMissions";
import {checkComponentDidUpdate} from "../../../lib/react-debug-utils";
cons... |
var tableLpgto;
document.getElementById("form_busca").addEventListener('submit', (e) => {
e.preventDefault();
atualiza_tabela();
});
function atualiza_tabela() {
cardTotal();
if (tableLpgto != undefined) tableLpgto.destroy();
tableLpgto = $('#table_lpgto').DataTable({
processing: true,
info: true,
paging:... |
"use strict";
var CLI = require('clui');
var clc = require('cli-color');
var _ = require('lodash');
var Line = CLI.Line;
var inquirer = require('inquirer');
var async = require('async');
// The formatter can be in two modes:
// 1. with simulation
// 2. without simulation
//
// 1.
// With simulation the whole process ... |
const API_KEY = "<KEY>";
const BASE_URL = "https://api.football-data.org/v2/";
const LEAGUE_ID = 2015;
const ENDPOINT_STANDING = `${BASE_URL}competitions/${LEAGUE_ID}/standings`;
const ENDPOINT_ALL_TEAM = `${BASE_URL}competitions/${LEAGUE_ID}/teams`;
const ENDPOINT_TEAM_BY_ID = `${BASE_URL}teams/`;
const fetchAPI = ... |
var timeoutcountereditevent=3000;
var timeoutcountercheckevent=2000;
$(function checkeventf() {
var eventidurl = document.getElementById("eventid").value;
//var event = document.getElementById("event").innerHTML;
var dataString = 'eventid=' + eventidurl;
// AJAX code to submit form.
$.ajax({
type: "POST"... |
var masterList = new Object();
var playerPicked = false
masterList["luke"] = {
name: "<NAME>" ,
hp: 100 ,
attk: 10,
boost: 10,
luck: 7,
streak: 0,
player: false,
artA: "<pre> ~~~~<br> ~~o o<br> _\\ -/_<br> / \\ / \\<br>\\\\| | |//<br> \\\\ | //<br> )===(I<br> |_||_I<br> (_)(_)<br> |_||_|<br> /__][... |
import React from 'react';
import PropTypes from 'prop-types';
import { debounce } from 'lodash';
import { SUBMIT_TIMEOUT } from 'utils/constants';
import { compose } from 'redux';
import { connect } from 'react-redux';
import { createStructuredSelector } from 'reselect';
import withImmutablePropsToJS from 'with-immuta... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.