text stringlengths 3.22k 29.5k |
|---|
HIVE_APPS = {
// blogging
ecency: {id: 'ecency', name: 'Ecency', icon: '', url: 'https://ecency.com/', description: ''},
'hive.blog': {id: 'hive.blog', name: 'Hive.blog', icon: '', url: 'https://hive.blog/', description: ''},
leofinance: {id: 'leofinance', name: 'LeoFinance', icon: '', url: 'h... |
"use strict";
var $util = require("./util");
function isPure(scope, expression) {
return $util.isPure(expression, false) || isPureNew(scope, expression);
}
// TODO move this into the $util.isPure function ?
function isPureNew(scope, expression) {
if (expression.type === "NewExpression") {
if (expression.ca... |
/**
* @overview
* API event action names and paths
*
* @since 0.1.0
*/
import { Map } from 'immutable';
export const ApiEvents = {
INITIALIZE_GAME: 'INITIALIZE_GAME',
GET_PLAYER_BASE_DATA: 'GET_PLAYER_BASE_DATA',
GET_PROFILE_DATA: 'GET_PROFILE_DATA',
GET_FURNITURE: 'GET_FURNITURE',
GET_BASE_DATA: 'GET_... |
import React, { useState, useEffect } from "react";
import { Layout, Divider } from "antd";
import ButtonPrimary from "../../components/UI/ButtonPrimary/ButtonPrimary";
import { useHistory, withRouter } from "react-router-dom";
import ProductBox from "../../components/Product/ProductBox";
import services from "../../ap... |
import chai, { expect } from 'chai';
import sinon from 'sinon';
import chaiAsPromised from 'chai-as-promised';
import sinonChai from 'sinon-chai';
import vtkITKHelper from 'vtk.js/Sources/Common/DataModel/ITKHelper';
import dicom, { imageCacheMultiKey } from '@/src/store/dicom';
import DicomIO from '@/src/io/dicom';
... |
//Todo:
// Add support for different things than numbers (like text, audio, image/video, etc.)
const activationFunctions = {
SIGMOID: 1,
TANH: 2,
RELU: 3
};
class neuron {
constructor(layernr, neuronnr) {
this.layer = parseInt(layernr);
this.neuron = parseInt(neuronnr);
this.weight = [];
this.... |
import React, { Component } from 'react';
import { Modal, Form, Upload, Icon, message, Select } from 'antd';
import styles from './index.less';
import { connect } from 'dva';
@connect(({ imageplugin, global }) => ({
cdnUrl: global.oemInfo.cdnUrl,
imageplugin,
}))
class UploadImage extends Component {
constructor... |
// --------------------------------------------------
// APP.JS
// --------------------------------------------------
//
// Initialize Foundation
// --------------------------------------------------
$(document).foundation();
//
// Custom JS
// --------------------------------------------------
if (!cf){
var cf =... |
function mparse__defs(modelsDefs) {
for(var modelName in modelsDefs) {
if(modelsDefs.hasOwnProperty(modelName)) {
var modelDef = __mparse__validateDef(modelsDefs, modelName),
pks = __mparse__validatePks(modelName, modelDef),
fks = __mparse__extractFks(modelName, modelDef)
models__set(m... |
let config,
map,
projection,
path,
width,
height,
hasBase = false,
dataLayer = false,
navContent,
navLabels = [],
navMap,
legend,
datas = {},
state = {
content:0,
map:2,
overlay: 0
},
lang = 0;
d3.json("config.json")
.then((_config) => {
config = _config;
// Position elemen... |
//const {Console} = require("console");
// let direccion = "http://127.0.0.1:5000"
// let direccion = "http://192.168.1.101:5000"
// let direccion = "http://192.168.1.199"
let direccion = "https://chat.shinchat.de/"
function addMessages(msg_id, v) {
function getHumantime() {
const dateObject = new Date(d... |
$("#reset").hide();
$("#ttt").hide();
$("#msg").html("X or O?");
$("#pc,#you").hide();
$("body").css("background-color","#57bc90");
$(".jumbotron").css("color","#57bc90");
var b=2;
var x,o;
var user='';
var pc='';
var board=[b,b,b,b,b,b,b,b,b];
function choose(par){
$("#ttt").css("pointer-events","auto");
$("#x,#o... |
'use strict';
var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = ... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototy... |
var datetimepicker_i18n = {
de_CH: {
dayOfWeekStart: 1, // Monday
dateformat: 'd.m.Y',
dateformat_momentjs: 'DD.MM.YYYY',
datetimeformat: 'd.m.Y H:i',
datetimeformat_momentjs: 'DD.MM.YYYY HH:mm',
placeholder_date: 'TT.MM.JJJJ',
placeholder_datetime: 'TT.MM.JJJ... |
'use strict'
var config = require('../gulpfile.config')
var glob = require('glob')
var gulp = require('gulp')
var gulpif = require('gulp-if')
var del = require('del')
var sass = require('gulp-sass')
var sourcemaps = require('gulp-sourcemaps')
var autoprefixer = require('gulp-autoprefixer')
var inject = require('gul... |
var socket = io('', {
path: document.getElementById('ioPath').getAttribute('value'),
query: 'r_var='+window.location.pathname
})
// conf
let ALLOW_CMD_DELAY = 150 // ms
// Default values, equal to server default values
let Conf = null
let ConfGM = null
let isGM = false
// misc
let stateTimeout = null
let ALLOW_CM... |
/**
* DevExtreme (ui/file_manager/ui.file_manager.notification.js)
* Version: 19.2.4
* Build date: Tue Nov 19 2019
*
* Copyright (c) 2012 - 2019 Developer Express Inc. ALL RIGHTS RESERVED
* Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
*/
"use strict";
Object.defineProperty(exports, ... |
const board = document.querySelector('.board');
const underBoard = document.querySelector('.under-board');
var inputs = [];
var line = document.createElement('div')
line.classList.add('line');
//var lines = 1;
//line.classList.add(0);
for (let i = 1; i <= 81; i++) {
var input = document.createElement('input... |
// Copyright (C) 2013-2014, 2018 BrandsEye (PTY) LTD
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, copy, modify,
/... |
export const RESTART_ON_REMOUNT = '@@saga-injector/restart-on-remount';
export const DAEMON = '@@saga-injector/daemon';
export const ONCE_TILL_UNMOUNT = '@@saga-injector/once-till-unmount';
export const colorMap = [
'#ffffe0',
'#fffddb',
'#fffad7',
'#fff7d1',
'#fff5cd',
'#fff2c8',
'#fff0c4',
'#ffedbf',... |
//#######################################格式化日期时间############################################
/*
//使用方法
var now = new Date();
var nowStr = now.format("yyyy-MM-dd hh:mm:ss");
//使用方法2:
var testDate = new Date();
var testStr = testDate.format("YYYY年MM月dd日hh小时mm分ss秒");
alert(testStr);
//示例:
alert(new Dat... |
const Discord = require("discord.js");
const lastfmSite = "https://www.last.fm";
module.exports = (bot = Discord.Client) => {
//Help command for Notifications
notifyHelp = function notifyHelp(prefix, embed) {
embed.setTitle(":round_pushpin: Notifications");
embed.setColor("#b19cd9");
embed.addField(`${prefix}... |
// material
// import { Box, Grid, Container, Typography } from '@material-ui/core';
// components
import Page from '../components/Page';
import {
// AppTasks,
// AppNewUsers,
// AppBugReports,
// AppItemOrders,
// AppNewsUpdate,
// AppWeeklySales,
// AppOrderTimeline,
// AppCurrentVisits,
// AppWebsi... |
/**
stats.js
--------
<NAME>
Handles creations of Stats objects on the analysis tab
Based on "Collapsible Indented Tree" by <NAME>
Original: <http://bl.ocks.org/mbostock/1093025>; released under the GNU General Public License, version 3 <https://opensource.org/licenses/GPL-3.0>
**/
var statsVerticalShift = 10;
/*... |
'use strict';
var config = require('../config.js');
var configInv = require('../config/specific/invoice_template_columns.js');
var configUser = require('../config/specific/user_template_columns.js');
var helper = require('../config/helpers/helper.js');
var msgConfig = require('../config/global/messages.js');
functio... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.levels = undefined;
var _toConsumableArray2 = require('babel-runtime/helpers/toConsumableArray');
var _toConsumableArray3 = _interopRequireDefault(_toConsumableArray2);
var _deleteProperty = require('babel-runtime/core-js/reflect... |
import { calculateJointCoordinates } from './lib/calculate-joint-coordinates.js';
import { calculateForceAngle } from './lib/calculate-force-angle.js';
import { drawJoint } from './lib/draw-joint.js';
import { drawMember } from './lib/draw-member.js';
import { drawSupportXYR } from './lib/draw-support-XYR.js';
import {... |
// import XLSX from 'xlsx'
// import toGeoJSON from 'togeojson'
// import wellknown from 'wellknown'
// import polyline from 'polyline'
// import csv2geojson from 'csv2geojson'
// import { get, isArray, includes, head, omit, map, zipObject, values, mapKeys, invert, mapValues } from 'lodash'
// import shp from "shpjs"
/... |
"use strict";
$(function () {
const byId = {};
let currentLocalSet = [];
for (const element of document.querySelectorAll(".local-variable")) {
const id = element.getAttribute("data-local-variable");
let l = byId[id];
if (l === undefined) {
byId[id] = l = [];
}
... |
import Phaser from "phaser";
// CONSTANT VARIABLES
const gameWidth = 800;
const gameHeight = 600;
const GROUND = "ground";
const BACKGROUND = "background";
const BIRD = "bird";
const SKY = "sky";
const FLAP = "flap";
const GLIDE = "glide";
const FRAME_RATE = 10;
const BIRD_VELOCITY = -250;
const GROUND_VELOCITY = 2.5;... |
import React, { useState, useEffect, useCallback, useMemo, useRef } from 'react'
import styled from 'styled-components'
import { useAuth0 } from '@auth0/auth0-react'
import { saveAs } from 'file-saver'
import { Table, Button } from '../components'
import {
AddItemForm,
EditItemForm,
EditHeaderForm,
AddHeaderF... |
import { REACT_ELEMENT_TYPE, REACT_FRAGMENT_TYPE} from '../../shared/ReactSymbols'
import { Placement } from '../../shared/ReactSideEffectTags'
import {
createFiberFromElement,
createFiberFromText,
createWorkInProgress
} from './ReactFiber'
import {
HostText,
Fragment
} from '../../shared/ReactWor... |
require("dotenv").config();
const fs = require("fs");
const path = require("path");
const logger = require("consola").withScope("@lihbr/lihbr-apex.core");
const ci = require("@lihbr/utils-netlify.ci");
const envConfig = require("@lihbr/utils-nuxt.env");
const datalayer = require("@lihbr/lihbr-apex.datalayer");
const ... |
'use strict';
const Firmware = require('mongoose').model('Firmware');
const Team = require('mongoose').model('Team');
const Statistics = require('mongoose').model('Statistics');
const User = require('mongoose').model('User');
const fs = require('fs');
const crypto = require('crypto');
const config = require('../../con... |
import React from 'react'
import Head from 'next/head'
import _ from 'lodash'
// import moment from 'moment'
import ReactTable from 'react-table'
import toastr from 'toastr'
import querystring from 'qs'
import userOnly from '../../hocs/userOnly'
import { userService } from '../../services'
import { Link, Router } from ... |
'use strict';
var isStarted = true;
var turnReady;
let serverShutdown = false;
let localStream;
const shouldMute = true;
//TODO make it work with TURN server
const pcConfig = null;
// const pcConfig = {
// 'iceServers': [
// {
// 'urls': 'turn:localhost:3478',
// 'username': "test",
// 'cred... |
// STEP 1: FIND ALL ELEMENTS IN DOCUMENT TO SYNC TO FORM
const getItemsToSyncFromDoc = () => {
let itemsToSync = [];
// In the document, section headers are heading 2
const isFormSectionHeader = (element) => {
return (
element.getType() === DocumentApp.ElementType.PARAGRAPH &&
element.getHeading... |
/**
* Copyright 2015-present 650 Industries. All rights reserved.
*
* @providesModule MenuView
*/
'use strict';
import React, { PropTypes } from 'react';
import {
Animated,
Alert,
Clipboard,
Dimensions,
Easing,
Image,
NativeModules,
Platform,
PixelRatio,
ScrollView,
StatusBar,
StyleSheet,
... |
let Spinner = require('spin.js')
const SPEED = 300 /* keep in sync with CSS */
const KEY_CODE_MAP = {
27: 'esc',
13: 'enter',
8: 'delete'
}
let defaultSettings = require('./settings');
module.exports = Backbone.View.extend({
className: 'md-modal flex',
events: {
'click .md-close': 'close'
},
initialize:... |
const controller = require('./controller')
const advModel = require('./advMockModel.js')
const caseModel = require('./caseModel.js')
const yapi = require('yapi.js')
const mongoose = require('mongoose')
const _ = require('underscore')
const path = require('path')
const lib = require(path.resolve(yapi.WEBROOT, 'common/li... |
"use strict";
/**
* @license MIT
* @name ChunksWebpackPlugin
* @version 7.0.3
* @author: Yoriiis aka <NAME> <<EMAIL>>
* @description: ChunksWebpackPlugin create HTML files to serve your webpack bundles. It is very convenient with multiple entrypoints and it works without configuration.
* {@link https://github.com... |
/* eslint-disable no-useless-return */
/* eslint-disable no-lonely-if */
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Stage } from 'react-konva';
import Triangle from '../triangle/Triangle';
import Points from '../points/Points';
import Liner from '../axes/Liner';
// import Axe... |
/**
* @fileoverview Utilities for parsing ALPS documents
*
*/
var RSVP = require('rsvp');
var xml2js = require('xml2js');
var http = require('http');
/**
* TBD
* @param {string} format -
*/
var parseDocument = function( format, document, callback) {
if( format === 'json' ) {
parseJSON(document, tr... |
import React, { PureComponent } from 'react';
import {
Animated,
Image,
StyleSheet,
PanResponder,
View,
Easing,
ViewPropTypes,
I18nManager
} from 'react-native';
import PropTypes from 'prop-types';
const TRACK_SIZE = 40;
const THUMB_SIZE = 40;
const DEFAULT_ANIMATION_CONFIGS = {
spring: {
fric... |
import React, { useEffect, useState } from 'react'
import { connect, useDispatch, useSelector } from 'react-redux'
import { Link } from 'react-router-dom'
/////////////// STORE /////////////////
import { closeTrip, getAdminTrips, addUserDebt } from '../../store'
/////////////// COMPONENTS /////////////////
import Cir... |
'use strict';
const http = require('http');
const path = require('path');
const compression = require('compression')
const express = require('express');
const basicAuth = require('express-basic-auth');
const bodyParser = require('body-parser');
const mysql = require('mysql');
const moment = require('moment');
const as... |
var open = require('random-access-open')
var crypto = require('crypto')
var equals = require('buffer-equals')
var stream = require('readable-stream')
var thunky = require('thunky')
var fs = require('fs')
var util = require('util')
var MAX_PROBES = 64
module.exports = SmallTable
function SmallTable (filename, opts) {... |
var express = require("express");
var router = express.Router();
// const pay = require('paypercall')({ chargeToken: '<PASSWORD>' })
const async = require("async");
const uuidv4 = require("uuid/v4");
// Bitcoin
const bip32 = require('bip32')
const bip39 = require('bip39')
// Paypercall
// const pay = require('paype... |
'use strict';
/*
TODO:
- browser support
- documentation
- express request and response routing (express-winston-2)
- http or ws logging (winstond, winston-tagged-http-logger?)
- loggly
- mail (winston-mail)
- file
-
*/
var winston = require('winston');
var _ = require('lodash');
var color = require('cli-co... |
function audios(list){
(function(root) {
const doc = document;
const addEventListener = root.addEventListener;
const removeEventListener = root.removeEventListener;
const tools = {
// 节点创建
createEle: function(className, tag) {
tag = tag || 'div';
const node = doc.createElement(tag);
... |
/*
a script to display user's profile data
from the url full path: `#user_id`
Author: charmful0x
*/
const arweave = Arweave.init({
host: "arweave.net",
protocol: "https",
});
const readState = smartweave.readContract;
const Arverify = arverify.getVerification;
const userAddress = window.location.hash.subs... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var application = require("tns-core-modules/application");
var utils = require("tns-core-modules/utils/utils");
var mlkit_cameraview_common_1 = require("./mlkit-cameraview-common");
var CAMERA_PERMISSION_REQUEST_CODE = 502;
var SizePair = /** ... |
import React, { Fragment, useEffect, useMemo, useRef, useState } from "react";
import Button from "@material-ui/core/Button";
import Dialog from "@material-ui/core/Dialog";
import DialogActions from "@material-ui/core/DialogActions";
import DialogContent from "@material-ui/core/DialogContent";
import DialogTitle from "... |
// ==UserScript==
// @name BankWithdraw
// @namespace https://www.demo.jumbolotto.com/
// @description Fills in bank account details to allow a withdraw request
// @include https://*/bank_withdraw/*
// @include http://*/bank_withdraw/*
// @include https://*/my-account/bank_withdraw*
// @include http://*/my-account/bank... |
const Discord = require('discord.js');
const fs = require('fs');
require('dotenv').config();
const request = require('request');
const {prefix} = require('./config.json');
const client = new Discord.Client();
client.commands = new Discord.Collection();
const cooldowns = new Discord.Collection();
const commandFiles = fs... |
import { setRoute } from "egov-ui-framework/ui-redux/app/actions";
import {
prepareFinalObject,
toggleSnackbar
} from "egov-ui-framework/ui-redux/screen-configuration/actions";
import get from "lodash/get";
import set from "lodash/set";
import {
createMaterial,
getMaterialMasterSearchResults,
updateMaterial,
... |
// ===================================================================
// formform core module 'calc'
// -- since 2018, by <NAME> (formsandlines.eu)
// ===================================================================
/**
* FORM arithmetic for commutative relation: x y
*
* * verified
*/
export function ... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
* OddsCalculator
*
*/
const _ = require("lodash");
const Card_1 = require("./Card");
const CardGroup_1 = require("./CardGroup");
const Game_1 = require("./Game");
const HandRank_1 = require("./HandRank");
const DuplicationLog_1 = requir... |
const ScriptModel = require('../models/automatedScripts');
const ScriptModelLog = require('../models/automationScriptsLog');
const { postApi } = require('../utils/api');
const getSlug = require('../utils/getSlug');
const scriptBaseUrl = process.env['SCRIPT_RUNNER_URL'];
const handleSelect = require('../utils/select');
... |
const path = require('path');
const fs = require('fs');
const stream = require('stream');
/** @type "saxes" | "sax-wasm" | "json" */
const defaultParserType = 'sax-wasm';
var parserType;
var defaultParser;
/**
* set the default parser engine (and loads the default parser if necessary)
*
* @param {"sa... |
import Vue from 'vue'
import Router from 'vue-router'
const _import = require('./_import_' + process.env.NODE_ENV)
// in development-env not use lazy-loading, because lazy-loading too many pages will cause webpack hot update too slow. so only in production use lazy-loading;
// detail: https://panjiachen.github.io/vue-e... |
import "babel/polyfill";
import Must from "assert";
import {
encode as encodeHtmlEntities,
decode as decodeHtmlEntities
} from "he";
import log from "./logger";
import * as functionRegistry from "./functionRegistry";
class Boundary {
constructor(value) {
this.value = value;
this.name = this... |
import React from 'react'
import Img from 'gatsby-image'
import Carousel from 'react-bootstrap/Carousel'
import { StaticQuery, graphql } from 'gatsby'
import {
Wrapper,
WordWithLine,
ArticleHeader,
ArticleDescription,
ArticleAuthor,
StyledAnchor,
RedSectionHeader,
} from './shared'
import DividerLine fro... |
/**
* Copyright 2021 Google 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 law or agreed to... |
/**
* AnimaScroll
* Create animate anchor in an easy way.
*
* Copyright 2019 - <NAME>
* MIT License
*
*/
"use strict";
/**
* Animation Class.
* @class
* @constructor
* @param {number} fromValue - The starting scroll position.
* @param {number} toValue - The ending scroll position.
* @param {number} durat... |
// SPDX-License-Identifier: MIT
/*
* (C) Copyright 2020
* Diversifying Talent in Quantum Computing, Geering Up, UBC
*/
import React from 'react'
// import PropTypes from 'prop-types'
// import latticeSolveRequest from './latticeSolveRequest'
// import HexGrid from './HexGrid'
import Button from '../../CustomButto... |
const DomainResource = require('./DomainResource');
const DateTimeScalar = require('./scalars/DateTime.scalar');
class MedicationOrder extends DomainResource {
constructor ( opt ) {
super( opt );
this.__resourceType = 'MedicationOrder';
Object.assign(this, opt);
}
// This is a MedicationOrder reso... |
/* Exercise */
var studentsArray = getStudents();
var source = Rx.Observable.fromArray(studentsArray);
var subscription = source.subscribe(
function (x) {
console.log('Next: ' + x);
},
function (err) {
console.log('Error: ' + err);
},
function () {
console.log('Complete... |
import React from 'react'
import { Link, graphql } from 'gatsby'
import Helmet from 'react-helmet'
import Layout from '../components/layout'
import Banner from '../components/Banner'
import Calendar from "react-big-calendar";
import moment from "moment";
import * as emailjs from 'emailjs-com'
import toastr from 'toastr... |
// @ts-check
const dree = require('dree');
const fs = require('fs').promises;
/** @typedef {{name: string, searchToken: string}} Author */
/** @typedef {{name: string, searchToken: string}} License */
/** @typedef {import('dree').Dree} Dree */
/** @typedef {{tags: String[], authors: string[], license: string, allAutho... |
const inputPixelSize = 20
const inputWidth = 300
const inputHeight = 300
const outputPixelSize = 4
const colorMap = {
'white': '#ffffff',
'black': '#222222',
'red': '#ce4a4a',
'yellow': '#eaaf41',
'green': '#48a56a',
'blue': '#6688c3',
'purple': '#b25da6',
};
let activeColor = null;
let currentRequestVer... |
var oldDataSeries = [];
var dataSeries = [];
/*
* getData(prop)
*
* Description: this is a wrapper that receives a of properties
* to construct a chart and an optional table.
*
* Arguments:
* {
* "type": type of request (rdtype, zone, site, etc.)
* must match a /data/type AJAX request
*
* "resolution":... |
/// <reference path="typings/jquery/jquery.d.ts" />
/// <reference path="typings/jquery.cookie/jquery.cookie.d.ts" />
var CookieConsent = (function () {
function CookieConsent() {
var _this = this;
this.init = function (settings, service) {
var self = _this;
if (!settings.app... |
//Calls filtereRaw and adds the results to the respective tables in the UI
//Lists are sorted at end
function addFilteredFiles(){
//Make an array of relevant file objects using the filter function
var filteredProts = filterRaw($$('protNom').getValue(), $$('procInTable'));
//Loop through the array to add ea... |
var firstFrame = true;
var bgCanvas;
var timesVisited = JSON.parse(window.localStorage.getItem("guideDeathCount"));
var sizeRef = 20; //charimage will be this, bg will be twice this
//if this is slow we can have a queue of different images we want to have displayed
//once we have an image at all we can fire up anothe... |
import React from 'react';
import roundTo from 'round-to';
import Modal from 'components/Modal';
import Button from 'components/Button';
import Input from 'components/Input';
import appContainer from 'containers/App';
import CopiedIcon from 'icons/Copied';
import dashboardContainer from 'containers/Dashboard';
import C... |
import React, { useState, useRef } from "react";
import PropTypes from "prop-types";
import { makeStyles, useTheme } from "@material-ui/core/styles";
import {
TableHead,
IconButton,
TableSortLabel,
Table,
TableBody,
TableCell,
TableContainer,
TableFooter,
TablePagination,
TableRow,
Button
} from "... |
'use strict';
const mongoose = require('mongoose');
const Location = mongoose.model('Location');
const Circle = mongoose.model('Circle');
const _ = require('lodash');
var emulator = require('../services/emulation');
function getRandomColor(){
var color = "#" + (Math.random() * 0xFFFFFF << 0).toString(16);
retur... |
import 'aframe';
import 'aframe-animation-component';
import 'aframe-particle-system-component';
import 'babel-polyfill';
import {Entity, Scene } from 'aframe-react';
import './components/event-proxy';
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider, connect} from 'react-redux';
import {... |
/**
* AudioPlayer Component
* @author chzng
* Web https://github.com/missra-kit
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import './style.css';
class AudioPlayer extends Component {
constructor(props) {
super(props);
this.state = {
isPlay: false,
curren... |
var Promise = require("bluebird"),
_ = require('lodash'),
util = require('util'),
models = require('./db/models'),
cache = require('./cache'),
history = require('./history'),
logger = require('../lib/logger'),
validator = require('../lib/validator'),
errors = require('../lib/errors'),
... |
import moment from 'moment';
import { parse, stringify } from 'qs';
import MD5 from './md5.js';
import snakeCase from 'lodash.snakecase';
import jsonp from './jsonp.js';
export function fixedZero(val) {
return val * 1 < 10 ? `0${val}` : val;
}
export function getTimeDistance(type) {
const now = new Date();
cons... |
/**
* Created by vyouyou on 18-2-2.
*/
import { getLabelStyle, getPointSvg } from "@/util/mapUtils.js";
import location from "@/generated/location.json";
import dict, { LOCATION_TYPE, COVERAGE_RADIUSENUM } from "@/net/dict.js";
import AMap from "AMap";
const radiusToZoom = [
{ radius: 0.5, zoom: 16 },
{ radi... |
/**
* audioMotion.js file explorer module
* https://github.com/hvianna/audioMotion.js
* Copyright (C) 2019-2021 <NAME> <<EMAIL>>
*/
var mounts = [],
currentPath = [],
nodeServer = false,
defaultRoot = '/music',
ui_path,
ui_files,
// enterDirCallback,
dblClickCallback;
/**
* Updates the file explorer user i... |
let result = [];
let generalSubtotal = 0;
let totalDiscount = 0;
let totalSale = 0;
let totalSaleUSD = 0;
let discountWarning = false;
let notificationsCount = 0;
$('#divabono').hide();
$('#payment_type').change( function() {
console.log("Tipo de pago seleccionado ="+$(this).val());
if ($('#payment_type').va... |
Object.defineProperty(exports, "__esModule", { value: true });
const { dumpObject, wrapError } = require("./wrapError");
/**
* Recursively updates the *target* with the changes described in *patch*
* using customized rules and callbacks of *options*: {
* spreaderKey: string = "...",
* preExtend: (tgt, patch, ... |
"use strict";
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _defineProperty2 = _interopRequir... |
/**
* Copyright (c) 2015-present, CWB SAS
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/* global opla */
import Api from "./api";
import AuthService from "./services/authService";
import MessengerContainer from "./components/messe... |
/* eslint-disable no-param-reassign */
import { load as loadPage } from "cheerio";
import dJSON from "dirty-json";
import fetch from "node-fetch";
import { URL } from "url";
import { siteCountries } from "./data/audible-search-fields";
import { getLanguageByName } from "./utils/language";
import {
cleanDescription,
... |
import {min} from "d3-array";
import {arc} from "d3-shape";
import {accessor, assign, configPrep, constant, elem} from "d3plus-common";
import {Path} from "d3plus-shape";
import {TextBox} from "d3plus-text";
import {Viz} from "d3plus-viz";
import getProp from "./helpers/getProp";
import prepData from "./helpers/prepDat... |
import Button from '../../../../Button';
import {withConfig} from './utils';
const ButtonTests = [
<Button>Click me</Button>,
<Button icon="home" iconPosition="after" selected>Click me</Button>,
<Button highlighted size="small">Not Selected. Lorem ipsum dolor sit amet, consectetur adipiscing elit.</Button>,
<Butt... |
const DEFAULT_HIGHLIGHT_COLOR = 'red' // If no color is specified, use red.
const DEFAULT_HIGHLIGHT_COLOR_PARAM = 'DEFAULT_HIGHLIGHT_COLOR_PARAM'
const NO_DASH_START_REGEX = /^[^\-].*$/ // Text that does not start with a dash.
const DASH_START_REGEX = /^-.*$/
const ansi = require('ansi-styles')
const pjson = require(... |
var db = new WebSqlDB(sucesso, erro);
function sucesso() {
console.log("sucesso DV");
}
function erro(error) {
console.log("Erro de DB: " + error);
}
var padAssinatura;
/*jshint browser:true */
/*global $ */
(function () {
"use strict";
/*
hook up event handlers
*/
function register_e... |
/**
* DataFormsJS React Component <JsonData>
*
* <JsonData> allows a page or elements on a page to use JSON web services quickly
* and easily in a dynamic manner and depending on the state of the web service
* will show or hide components from [isLoading, isLoaded, hasError].
*
* Example Usage:
* function S... |
require('normalize.css/normalize.css');
require('styles/App.scss');
import React from 'react';
import ReactDOM from 'react-dom';
//get the images data
let imageDatas = require('../sources/imageDatas.json');
imageDatas = (function genImageURL(imageDatasArr){
for(let i = 0 ; i < imageDatasArr.length; i++){
var si... |
function APP(){};
var app = new APP();
var second = seconds = 1000;
var minute = minutes = 60 * seconds;
window.SpeechRecognition = window.SpeechRecognition || window.webkitSpeechRecognition;
watered = {
returnDate: function(){
return watered.interpretDate( localStorage["lastWatered"] );
},
interpretDate: functi... |
import React, {Component} from 'react';
import Drawer from '@material-ui/core/Drawer';
import IconButton from '@material-ui/core/IconButton';
import Checkbox from '@material-ui/core/Checkbox';
import {connect} from 'react-redux';
import Button from '@material-ui/core/Button';
import Snackbar from '@material-ui/core/Sna... |
import React from 'react';
import { useState, useEffect } from 'react';
import { useQuery } from '@apollo/client';
import ScholarshipCard from '../ScholarshipCard';
import Container from 'react-bootstrap/Container';
import Row from 'react-bootstrap/Row';
import Col from 'react-bootstrap/Col';
import Form from 'react-bo... |
'use strict'
$app.tips('使用本工具时请暂时关闭代理,否则可能无法Ping通')
$network.stopPinging()
const {scale, width, height} = $device.info.screen
let offsets = [0, 0.25, 0.5]
let W, H, base, drawRange
let period = 0.2
let timeout = 2.0
let ratio = 10
let hostIp = void 0
let rtts = []
let x = 0
let avg = 0
let min = 0
let max = 0
let send... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.