text stringlengths 3.07k 16k |
|---|
import React, { Component } from 'react';
import OHIF from '@ohif/core';
import PropTypes from 'prop-types';
import qs from 'querystring';
import { extensionManager } from './../App.js';
import ConnectedViewer from '../connectedComponents/ConnectedViewer';
import ConnectedViewerRetrieveStudyData from '../connectedComp... |
//Array of licenses to choose from
const licenseData = [
{
id: 'Apache-2.0',
name: 'Apache License 2.0',
badge: '[](https://opensource.org/licenses/Apache-2.0)',
link: '(https://opensource.org/licenses/Apache-2.0)',
notic... |
"use strict";
const fs = require("fs");
const net = require("net");
const WIDTH = 84;
const HEIGHT = 84;
const UP = 'u';
const DN = 'd';
const LT = 'l';
const RT = 'r';
function createEmptyMap(w,h,c) {
const map = [];
for (let y = 0; y < h; y++) {
const row = [];
for (let x = 0; x < w; x++) {
row.... |
import ArrayUtil from '../ArrayUtil'
import Chain from '../Chain'
import Encoder from '../Encoder'
import StringUtil from '../StringUtil'
const meta = {
name: 'bacon-cipher',
title: 'Bacon cipher',
category: 'Ciphers',
type: 'encoder'
}
/**
* Array of variant specs
* @type {object[]}
*/
const variantSpecs... |
import { Trans, t } from "@lingui/macro";
import { i18nMark, withI18n } from "@lingui/react";
import classNames from "classnames";
import { Link } from "react-router";
import mixin from "reactjs-mixin";
/* eslint-disable no-unused-vars */
import React from "react";
/* eslint-enable no-unused-vars */
import { StoreMixin... |
import "./styles.css";
import {
Box,
Button,
ButtonGroup,
CircularProgress,
Container,
Grid,
Paper,
Typography,
} from "@mui/material";
import React, { useEffect } from "react";
import {
fetchForumPostCounts,
fetchUsers,
} from "../../redux/slice/generalSlice";
import { useDispatch, useSelector } f... |
/* Copyright (c) 2016 <NAME> https://goo.gl/gl0mbf | MIT License https://goo.gl/HgajeK */
import {Range} from './Range.js';
const blocklessElements = {
'P':1,
'H1':1,
'H2':1,
'H3':1,
'H4':1,
'H5':1,
'H6':1,
'SPAN':1,
'BUTTON':1,
'B':1,
'I':1,
'STRONG':1,
'LABEL':1,
... |
import _ from 'lodash';
import { html, render, nothing } from 'lit-html';
import { repeat } from 'lit-html/directives/repeat';
import { classMap } from 'lit-html/directives/class-map';
import jss from 'jss';
import preset from 'jss-preset-default';
import './index.css';
const width = 30;
const height = 18;
const area... |
import React, { useState, useEffect } from 'react';
import { toast } from 'react-toastify';
import Tarjeta from '../Tarjeta';
import ConfirmaEliminacion from '../ConfirmaEliminacion';
import MiModal from '../MiModal';
import Lista from './Lista';
import Formulario from './Formulario';
import useFetch from '../../../hoo... |
import React, { useState, useEffect } from 'react';
import axios from 'axios';
import { Link } from 'react-router-dom';
import { Form, Button } from 'react-bootstrap';
import { useDispatch, useSelector } from 'react-redux';
import Message from '../components/Message';
import Loader from '../components/Loader';
import F... |
// -*- mode: js; indent-tabs-mode: nil; js-basic-offset: 4 -*-
//
// This file is part of Genie
//
// Copyright 2018 Google LLC
// 2020 The Board of Trustees of the Leland Stanford Junior University
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in co... |
import styled, { css } from 'styled-components';
import Link from 'gatsby-link';
import { media } from './Breakpoints';
const about = '#16a085';
const projects = '#e74c3c';
const contact = '#2980b9';
const SiteTitle = styled.h1`
margin-top: 40px;
font-size: 64px;
font-weight: 300;
line-height: 1.2;
`;
const... |
$('.loader').addClass('hidden')
import {
EASE,
PI2,
PI_HALF,
SPEED
} from './constant.js';
class Base extends PIXI.Container {
constructor(color, radius, thickness, length = 1, velocity = 0) {
super();
this.radius = radius;
this.length = length;
this.velocity = vel... |
function limpiar_dlg(){
$("#prop_desc").val('');
$("#cod_prop").val(0);
}
function clicknewpropietario()
{
limpiar_dlg();
$("#dlg_new_edit_propietario").dialog({
autoOpen: false, modal: true, width: 600, show: {effect: "fade", duration: 300}, resizable: false,
title: "<div class='widget... |
// Lists of conditions on the game
const difficulties = ["Easy", "Medium", "Hard", "Extreme"];
const times = [900, 600, 400, 250];
const seqs = [4, 9, 15, 25];
// Globals
var gamePlaying = false;
var pattern = [1]; // Randomly generated each time.
var progress = 0;
var guessCounter = 0;
var clueHoldTime = 1000;
var cl... |
"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... |
import grafhelpers from '../middleware/helperFunctions';
import cookieHelpers from '../middleware/cookieHelper';
class GrafTools {
// Helper
clear_selection(graf, selection) {
grafhelpers.color_graf(graf, 'black', 'node', new Set(graf.nodes));
grafhelpers.color_graf(graf, 'black', 'edge', new Set(graf.link... |
/* before the game starts, the sequence, level and score are empty */
let sequence = [];
let playerSequence = [];
let level = 0;
let score = 0;
const head = document.querySelector('.head');
const startButton = document.querySelector('.startBtn');
const info = document.querySelector('.info');
const tileContainer = doc... |
'use strict';
var common = require('../common');
var assert = require('assert');
if (!common.hasCrypto) {
common.skip('missing crypto');
return;
}
if (common.hasFipsCrypto) {
common.skip('not supported in FIPS mode');
return;
}
var crypto = require('crypto');
function testCipher1(key) {
// Test encryption a... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*------------------------------------------------------------... |
import React,{useState, useEffect} from 'react';
import * as yup from 'yup';
import axios from 'axios';
import styled from 'styled-components';
import HelperNav from './Helper/HelperNav';
const FormDiv = styled.div `
display:flex;
justify-content:center;
align-items: center;
margin-top: 5%;
`;
const FormCont... |
import React, { PureComponent } from 'react'
import PropTypes from 'prop-types'
import hoistStatics from 'hoist-non-react-statics'
import {
isLoaded,
getFirebase,
firebaseReducer,
reactReduxFirebase,
} from 'react-redux-firebase'
import { watchEvents, unWatchEvents } from 'react-redux-firebase/lib/actions/query... |
const settings = {
municipios: {
get: value => {
const data = [
{ value: "001", label: "<NAME>" },
{ value: "002", label: "Água Doce do Norte" },
{ value: "003", label: "Águia Branca" },
{ value: "004", label: "Alegre" },
{ value: "005", label: "<NAME>" },
{ value: "006", label: "Alto Rio ... |
'use strict';
//Prerequisites:
let hours = ['6am', '7am', '8am', '9am', '10am', '11am', '12pm', '1pm', '2pm', '3pm', '4pm', '5pm', '6pm', '7pm'];
let distribution = [0.5, 0.75, 1.0, 0.6, 0.8, 1.0, 0.7, 0.4, 0.6, 0.9, 0.7, 0.5, 0.3, 0.4, 0.6];
function randomNumber(min, max) {
return (Math.floor(Math.random() * (max ... |
import { BASE_URL, downloadURI, get, post } from "./helpers";
let lastYtThumbnail = null;
let isBusy = false;
function populateForm(json) {
const mostLikelyArtist =
json["artists"].length > 0 ? json["artists"][0][0].name : "";
const nameSuggestions = [];
for (const artistAndScore of json["artist... |
import React, {Component} from 'react'
import Round from './Round'
let baseURL = process.env.REACT_APP_BASEURL
if (process.env.NODE_ENV === 'development') {
baseURL = 'http://localhost:3000'
} else {
baseURL = 'https://golf-stat-tracker-backend.herokuapp.com'
}
class Profile extends Component{
constructor(prop... |
/* Webcam */
var localMediaStream = null;
var video = document.querySelector("video");
var offsetx = 60;
var offsety = 10
$("#webcam_getmedia").mousedown(function(e){
var cvs = $("#video_covering");
var ctx = cvs.get(0).getContext('2d');
ctx.strokeStyle = "#ff0000";
for(let i = 0; i <= 3; ++i){
... |
const _CONF = require('../config');
const _LOGGER = require('../helpers/logging');
var proxy = require('redbird')({port: _CONF.ports.proxy,
bunyan: false
});
/*const sslParams = {
letsencrypt: {
email: "<EMAIL>",
production: false
}
}
*/
//, bunyan: process.env.PROXYLOGS || false
let _REDIS;
let _AUT... |
"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... |
/* eslint-disable react/no-unescaped-entities */
import React from 'react';
import { Box, Stack, Text } from '@chakra-ui/react';
import { useState, useEffect } from 'react';
import { useDispatch } from 'react-redux';
import { Constants } from '../../../constants/index';
import { updateUserData } from '../../../redux/ac... |
/* eslint-disable react/jsx-wrap-multilines */
import React, { PureComponent, Fragment } from 'react';
import { ScrollView, View, RefreshControl } from 'react-native';
import { injectIntl } from 'react-intl';
// Utils
import { groomingServerName } from '../../../utils/settings';
// Constants
import LANGUAGE, { VALUE ... |
import React from 'react';
import { StyleSheet,
ImageBackground,
Dimensions,
KeyboardAvoidingView,
View ,
} from 'react-native';
import { Text, Input, Button, Block, Icon, theme } from '../../components/UIComponents';
//import Button from 'react-native-button';
import { AppStyles } from '../../AppStyles';
impor... |
import React, { Component, Fragment } from 'react';
import { connect } from 'react-redux';
import './styles.css';
import * as Styles from '../../common/Table/SharedStyles';
import AppBar from '@material-ui/core/AppBar';
import Tabs from '@material-ui/core/Tabs';
import Tab from '@material-ui/core/Tab';
import Ty... |
import { Box, Button, ButtonGroup, Grid, IconButton, Typography } from '@material-ui/core';
import AddIcon from '@material-ui/icons/Add';
import FavoriteBorderIcon from '@material-ui/icons/FavoriteBorder';
import RemoveIcon from '@material-ui/icons/Remove';
import ShareIcon from '@material-ui/icons/Share';
import ... |
/*
* The main component for the skills page.
*/
import PropTypes from 'prop-types';
import React, {Component} from 'react';
import {StyleSheet, css} from 'aphrodite/no-important';
import Colors, {hexWithAlpha} from '../../data/Colors';
import {Blurb, Heading, Link, LinkButton, NoScript} from '../../Components';
imp... |
const model = require('./model.js')
const { callbackify } = require('util')
/**
* Has a callback
* @callback Cursor~mapFn
* @param {document[]} res
* @return {*|Promise<*>}
*/
/**
* Manage access to data, be it to find, update or remove it.
*
* It extends `Promise` so that its methods (which return `this`) ar... |
import React, { Component } from 'react';
import 'bootstrap/dist/css/bootstrap.css';
import {
Route,
BrowserRouter,
Redirect,
Switch,
NavLink,
Link,
} from 'react-router-dom';
import {
Collapse,
Navbar,
NavbarToggler,
Nav,
NavItem,
UncontrolledDropdown,
DropdownToggle,
DropdownMenu,
Dropdo... |
import React, {Component} from 'react';
import '../css/Formulaire.css';
import axios from 'axios';
import request from 'request';
class Formulaire extends Component {
constructor() {
super();
this.state = {
video: "//aka.ms/ampembed?url=%2F%2Famssamples.streaming.mediaservi... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
var _createClass2 = require('babel-runtime/helpers/createClass');
var _createClass3 = _interopReq... |
const authroute = require.main.require('@screeps/backend/lib/game/api/auth')
const util = require('util')
const fs = require('fs')
const R = require('ramda')
const readFile = util.promisify(fs.readFile)
const indexById = R.indexBy(R.prop('_id'))
module.exports = (config) => {
config.backend.features = config.backe... |
/*
This blueprint helps in transitioning Node.js v0.10 functions. It can be run in three modes:
- List: to list all existing Node.js v0.10 functions and their versions in the current region
- Backup: to publish a version of your current deprecated functions $LATEST version.
- Upgrade: to upgrade the runtime fiel... |
/* Copyright (c) 2016 <NAME>,
released under the CeCILL-B license (French BSD license)
(http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt).
*/
import {inherits as ol_inherits} from 'ol'
import ol_control_Control from 'ol/control/Control'
/** Control bar for OL3
* The control bar is a container for other c... |
import React, { useRef } from "react"
import { connect } from "react-redux"
import { actions } from "redux-router5"
import Actions from "../data-sets-actions"
import {
getDataSetLocation,
getDataSetFilelist,
getDatasetImageBoxStatus,
getDatasetImageUrl,
getDataForImageDownload,
getDataSetMetada... |
'use strict';
const _ = require('lodash');
const {determineStatus} = require('../common-utils');
const {versions: browserVersions} = require('../constants/browser');
module.exports = class ResultsTreeBuilder {
static create() {
return new this();
}
constructor() {
this._tree = {
... |
// Copyright 2018 Team 254. All Rights Reserved.
// Author: <EMAIL> (<NAME>)
//
// Client-side logic for the field monitor display.
var websocket;
var redSide;
var blueSide;
var lowBatteryThreshold = 8;
// Handles a websocket message to update the team connection status.
var handleArenaStatus = function(data) {
$.e... |
import React, { Component } from 'react';
import { I18nContext, withI18n } from './context';
import { warnOnce, initSSR } from './utils';
let removedIsInitialSSR = false;
export class NamespacesConsumerComponent extends Component {
constructor(props) {
super(props);
if (!props.i18n) {
this.state = {
... |
('use strict');
console.log('loaded tree-boxes.js script');
function sayHello() {
console.log('hello');
}
function drawNodeMap(d3) {
console.log('inspect d3');
console.log(d3);
var treeData = {
name: 'NODE NAME 1',
subname: 'CODE N1',
fill: 'orange',
children: [
... |
import React from 'react'
import useScroll from './useScroll'
import useRect from './useRect'
import useIsomorphicLayoutEffect from './useIsomorphicLayoutEffect'
const defaultEstimateSize = () => 50
export function useVirtual({
size = 0,
estimateSize = defaultEstimateSize,
overscan = 0,
paddingStart = 0,
p... |
const _ = require('underscore');
const Step = require('app/steps/Step');
const relation = require('app/utils/DivorceRelation');
module.exports = class CheckYourAnswers extends Step {
constructor(steps = []) {
super();
this._steps = steps;
}
get url() {
return '/check-your-answers';
}
get templ... |
const EventEmitter = require('events');
const { Parser: HtmlParser } = require('htmlparser2-svelte');
const { parseAndMergeKeywords } = require('./v3-utils');
const { parseComment, hasOwnProperty } = require('../utils');
const { TemplateEvent } = require('./events');
/**
* @typedef {import('../../typings').Svelte3Fe... |
import React from 'react';
import { BrowserRouter as Router, Route, Link } from "react-router-dom";
import store from '../../reducer/index'
import { Redirect } from 'react-router'
import { unauthorized, login } from '../../reducer/actions'
import { formatToInteger } from '../../util'
import { Button, Drawer, Form, Inpu... |
import React, { Component } from 'react';
import { MuiThemeProvider, withStyles } from '@material-ui/core/styles';
import IconButton from '@material-ui/core/IconButton';
import HeartIcon from '@material-ui/icons/Favorite';
import CommentIcon from '@material-ui/icons/Comment';
import ShareIcon from '@material-ui/icons/S... |
import "core-js/modules/es.array.reduce.js";
import { useStorybookApi } from '@storybook/api';
import { STORIES_COLLAPSE_ALL, STORIES_EXPAND_ALL } from '@storybook/core-events';
import global from 'global';
import throttle from 'lodash/throttle';
import { useCallback, useEffect, useReducer } from 'react';
import { matc... |
import React from 'react'
import PropTypes from 'prop-types'
import { injectIntl, FormattedMessage } from 'react-intl'
import { withStyles } from '@material-ui/core/styles'
import Button from '@material-ui/core/Button'
import Dialog from '@material-ui/core/Dialog'
import DialogActions from '@material-ui/core/DialogActi... |
require('./base-css.js');
require('../css/filter-input.css');
var util = require('./util');
var React = require('react');
var ReactDOM = require('react-dom');
var $ = require('jquery');
var storage = require('./storage');
var win = require('./win');
var MAX_LEN = 128;
var FilterInput = React.createClass({
getInitial... |
import { LineLayer, SolidPolygonLayer } from '@deck.gl/layers';
import { generateContours } from './contour-utils';
import { log } from '@deck.gl/core';
import GPUGridAggregator from '../utils/gpu-grid-aggregation/gpu-grid-aggregator';
import { AGGREGATION_OPERATION, getValueFunc } from '../utils/aggregation-operation-... |
"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 { login,loginAuth, logout, getInfo } from '@/api/user'
import { findMenuByRole } from '@/api/menu'
import { getToken, setToken, removeToken,getId,setId,removeId,getName,setName,removeName,getMobile,setMobile,removeMobile,setCity,removeCity,setCitySelected,removeCitySelected} from '@/utils/auth'
import router, { ... |
import React, { Component } from 'react';
import { Tabs, Form, Pagination, Input, Button, Row, Col, Table, Select } from 'antd';
import { connect } from 'dva';
import { routerRedux, Link } from 'dva/router';
import TitleItem from '../../components/common/TitleItem.js';
import styles from './Order.less';
import '../../c... |
const transmuxQueue = [];
let currentTransmux;
export const handleData_ = (event, transmuxedData, callback) => {
const {
type,
initSegment,
captions,
captionStreams,
metadata,
videoFrameDtsTime,
videoFramePtsTime
} = event.data.segment;
transmuxedData.buffer.push({
captions,
... |
import PeerNetwork from "/lib/p2p-peer.js"
const canvas = document.getElementById('main-canvas');
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;
const ctx = canvas.getContext('2d');
var color = localStorage.color || '#000000';
var isMouseDown = false;
var prevX, prevY;
var canvasReq = false;
v... |
import { html } from './html.js';
import { camelToLisp } from './camelToLisp.js';
import { camelToLabel } from './camelToLabel.js';
export { camelToLisp };
export { html };
export class BaseScaffoldGenerator {
def;
visualHints;
static generateFrom(def, visualHints = {}) {
return new BaseScaffoldGene... |
var chai = require('chai'),
expect = chai.expect,
targaryen = require('targaryen');
var export_data = require('./verifier-export'); //with path
var rules = require('./../frontend/config/security-rules.json'); //with path
chai.use(targaryen.chai);
describe('With current security rules', function () {
bef... |
const getElementById = (id) => document.getElementById(id);
const getColorNumberElement = () => getElementById("numberOfColors");
const getRandomNumber = (limit) => Math.floor(Math.random() * limit);
const createElement = (tag, className, id) => {
const newElement = document.createElement(tag);
if (className !== un... |
import React from "react";
import { Link } from "gatsby";
import PropTypes from "prop-types";
import Img from "gatsby-image";
import { Location } from "@reach/router";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import rehypeReact from "rehype-react";
import styled from "styled-components";
import... |
import React from "react"
import { Link } from 'gatsby'
import kebabCase from 'lodash/kebabCase'
import styled from 'styled-components'
import { graphql } from 'gatsby'
const queryString = require('query-string');
const ThemeTitle = styled.div`
margin-top: 15px;
margin-bottom:15px;
color: inherit;
font-family... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { View, Text, StyleSheet, Dimensions, Image, LayoutAnimation, TouchableOpacity,Button } from 'react-native';
const { width, height } = Dimensions.get('window');
export default class TurtorialStep extends Component {
static propType... |
'use strict';
var options = {
debug: 1
},
padding = 8 / 512,
totalExtent = 4096 * (1 + padding * 2),
tileIndex,
canvas = document.getElementById('canvas'),
ctx = canvas.getContext('2d'),
height = canvas.height = canvas.width = window.innerHeight - 5,
ratio = height / totalExt... |
/* global config */
import { createSelector } from 'reselect'
import { List } from 'immutable'
import { groupBy, getMin, getSum } from 'core/utils/functions'
import { jsonToFormattedRoom } from '../types'
import { ROOM_STORE_NAME } from '../constants'
/**
* Direct selector to the tripAdvisor state domain
*/
const se... |
var AjaxForm = React.createClass({
dirtyProps: {},
getInitialState: function() {
return {"volume": 0, "playIndex": 0, "numChannels": 10, "maxVolume": 16, "connected": false,
"programText": "", "channelName": "", "playStatus": "", "channelsMap": {}}
},
componentDidMount: function() {
... |
var ctx = require('../../../context');
var express = require('express');
var router = express.Router();
var path = require('path');
var fs = require('fs');
var async = require('async');
var Worker = require("tiny-worker");
var cfg = ctx.config;
var storage_cfg = cfg.storage;
var response = ctx.getLib('lib/ws/response... |
/*
Selfish Mining Attack Simulation
*/
var net = require("./network"),
peermgr = require("./peermgr"),
btc = require("./btc"),
client = new net.Client()
client.use(peermgr)
client.use(btc)
var selfishHashrate = 0.3;
client.init(function() {
if (this.id == 0) { // node 0 is the selfish miner
//if (false)... |
import { React, useState } from "react";
import { Button, TextField, Grid, Typography } from "@material-ui/core";
import { makeStyles } from "@material-ui/core/styles";
import Table from "../Table";
import API from "../api";
const math = require("mathjs");
const useStyles = makeStyles({
root: {
minWidth: 275,
}... |
/* eslint-disable no-param-reassign */
const core = require('@actions/core');
const fs = require('fs');
const path = require('path');
const glob = require('glob');
const { integrationFolder, testFiles } = require('../../config/cypress.json');
const findImports = require('find-imports');
const IS_MASTER_BUILD = process... |
/*
* Copyright Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" ... |
const { BrowserWindow } = require('electron')
const path = require('path')
const url = require('url')
const events = require('./events')
var windows = {};
var window = function (name, title, initView, initViewData) {
this.name = name;
this.initView = initView;
this.viewData = initViewData;
this.params... |
import React, { useState, useEffect } from "react";
import { connect } from "react-redux";
import arrow from "../assets/images/arrow.svg";
import { getShoppingItems, getEventTodoList } from "../actions";
import EventMenu from "./EventMenu";
import ProgressBar from "./ProgressBar";
import { Button } from "semantic-ui-re... |
'use strict';
exports.__esModule = true;
var _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; };
var _createClass =... |
/**
* @author <NAME>
* @date Juil 2020
* @fileoverview Display the list of the public symptom tracking reports
*/
getReportingSymptom(url, id, link);
/**
* @function getReportingSymptom
* @description Read the Json file and call the main function whith the good data
* @param {String} url - of the file we propose... |
/*
* Copyright (c) 2021 Huawei Device Co., Ltd.
* 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 ... |
import { faCalendar, faCheckCircle, faPen, faTrash } from '@fortawesome/free-solid-svg-icons';
import { FontAwesomeIcon as Icon } from '@fortawesome/react-fontawesome';
import { loadPaper } from 'actions/viewPaper';
import AuthorBadges from 'components/Badges/AuthorBadges/AuthorBadges';
import ResearchFieldBadge from '... |
// import { formatWinningOutcome } from './utils'
import { logInfo, logWarn, logError } from './../utils/log'
import { MARKET_STAGES } from './../utils/constants'
import { capitalizeFirstLetter } from './../utils/string'
import { getTransactionCost } from './../utils/ethereum'
import { claimRewards } from './../utils/r... |
// require
// require('./globals');
// require('./updater');
// const classes = require('./classes');
// let { checkCells, checkPlayers, checkEnemies } = require('./entities');
castle = new Castle();
let nightCount = 0;
const modeInterval = {
easy: {
firstNight: 10e3,
whenBoss: 30e3,
regul... |
$(document)
.ready(
function () {
$('#btnSearch').click(function() {
var isValid = false;
$('#buildingPlanScrutinyReport').find(':input',':select',':textarea').each(function() {
if($(this).val()) {
isValid =true;
... |
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
______ ______ ______ __ __ __ ______
/\ == \ /\ __ \ /\__ _\ /\ \/ / /\ \ /\__ _\
\ \ __< \ \ \/\ \ \/_/\ \/ \ \ _"-. \ \ \ \/_/\ \/
\ \_____\ \ \_____\ \ \_\ \ \_\ \_\ \ \_\ \ \_\
\/_____/ \/_____/ ... |
require('regenerator-runtime/runtime');
const path = require('path');
const {
HandleMusicRequestById,
HandleAlbumRequestById,
HandleArtistRequestById,
GetMusicFilePath,
IncrementLikeCount,
} = require('./DBHandler');
const {
connect,
clearDatabase,
closeDatabase,
} = require('../../Tests/DbHandler');
const {... |
const BASE = "UAH";
const CURRENCIES = ["USD", "EUR", "PLN"];
const curreciesDataPromises = getDataPromises(CURRENCIES, BASE);
console.log(curreciesDataPromises)
function getDataPromises(currencies, base){
const promises = [];
for(let currency of currencies){
const temp = getHistoricalDataForCurrency(c... |
import React, { PureComponent } from 'react';
import { connect } from 'react-redux';
import { withTranslation } from 'react-i18next';
import { compose } from 'redux';
import PropTypes from 'prop-types';
import { FaLock } from 'react-icons/fa';
import LayerTree from 'react-spatial/components/LayerTree';
import Select fr... |
/******************************************************************************
*
* Copyright (c) 2017, the Perspective Authors.
*
* This file is part of the Perspective library, distributed under the terms of
* the Apache License 2.0. The full license can be found in the LICENSE file.
*
*/
import * as d3 from... |
$(document).ready(function() {
//setDateFields();
});
function getSelectedSubscriber() {
var subscriber = $("#subscriber").val();
// alert(subscriber);
if (subscriber.trim() != "__ALL__") {
var action = "getAppsBySubscriber";
jagg.post("/site/blocks/operator-wise-traffic/ajax/operator-wise-traffic.jag", {
... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.derivePath = exports.isValidPath = exports.getPublicKey = exports.getMasterKeyFromSeed = void 0;
const createHmac = require("create-hmac");
const nacl = require("tweetnacl");
const bs58check = require("bs58check");
const crypto = requi... |
'use strict';
let os = require('os'),
fs = require('fs'),
path = require('path'),
yargs = require('yargs'),
clipboardy = require('clipboardy'),
cwd = process.cwd(),
existsSync = fs.existsSync || path.existsSync,
jsonToy = require('../index'),
dir2Json = require('../lib/cli/walk-dir'),
... |
const mongoose = require('mongoose');
const fuzzySearch = require('../helpers/fuzzySearch');
const aggregateHelper = require('../helpers/aggregators');
const constants = require('../helpers/constants').schemaTypes;
/**
* Create an aggregation that sets the matching criteria for search.
*
* @param {string} schemaNam... |
// get the necessary html elements for later shopping cart item display
let cartContainer = document.getElementsByClassName("shopping-cart")[0];
let cartEmptyMessage = document.getElementsByClassName("cart-empty-message")[0];
let checkoutButton = document.getElementsByClassName("shopping-cart-checkout-button")[0];
let ... |
const hiragana = {
"あ": "a",
"い": "i",
"う": "u",
"え": "e",
"お": "o",
"か": "ka",
"き": "ki",
"く": "ku",
"け": "ke",
"こ": "ko",
"きゃ": "kya",
"きゅ": "kyu",
"きょ": "kyo",
"さ": "sa",
"し": "shi",
"す": "su",
"せ": "se",
"そ": "so",
"しゃ": "sha",
"しゅ": "shu",
"しょ": "sho",
"た": "ta",
"ち": ... |
/*
* Tile
* Object for storing a single tile. Allows for collecing its own state information, marking, clearing, etc.
* (c) 2014 Q42
* http://q42.com | @q42
* Written by <NAME>
* <EMAIL> | @mrtnkl
*/
function Tile(value, grid, index) {
var self = this,
x = this.x = index % grid.width,
y = this.y =... |
const {Pai, decomp} = require('@hakatashi/riichi-core');
const Agari = require('@hakatashi/riichi-core/src/agari');
const tenhou6 = require('@hakatashi/riichi-core/src/tenhou6');
const paiIndices = [
'1z', '2z', '3z', '4z', '7z', '6z', '5z',
'1m', '2m', '3m', '4m', '5m', '6m', '7m', '8m', '9m',
'1s', '2s', '... |
/**
* const prefixCls = 'style-195450';
* const images = '/static/images/src/bbs/Article/_Vote';
* @Author: czy0729
* @Date: 2018-10-10 16:56:17
* @Last Modified by: czy0729
* @Last Modified time: 2018-10-11 17:32:28
* @Path m.benting.com.cn /src/bbs/Article/_Vote/_Detail.js
*/
import React from 'react';
import... |
import React, { Component, Fragment } from 'react'
import { Form, Input, message, Modal, Pagination, Table, Row, Col, Button } from 'antd'
import { TableList } from '../upload/node_modules/@api/common'
import requesturl from '../upload/node_modules/@api/requesturl'
import PropTypes from 'prop-types'
import TableBa... |
//Requires
const os = require('os');
const axios = require("axios");
const bytes = require('bytes');
const pidusageTree = require('pidusage-tree');
const { dir, log, logOk, logWarn, logError, cleanTerminal } = require('../extras/console');
const webUtils = require('./webUtils.js');
const Cache = require('../extras/data... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.