text stringlengths 3.22k 29.5k |
|---|
import React, { Component } from 'react';
import LandContract from "../artifacts/Land.json";
import getWeb3 from "../getWeb3";
import ipfs from '../ipfs';
import {
Button,
Card,
CardHeader,
CardBody,
CardFooter,
CardText,
FormGroup,
Form,
Input,
Row,
Col,
} from "reactstrap";
im... |
function updateDisplay(marker) {
document.getElementById(`gallery-${marker.id}`).innerHTML = "";
marker.display_array.forEach(file => {
handleMedia(file, marker);
});
}
function handleMedia(file, marker) {
let media_type = classify_media(file);
switch(media_type) {
case 'image':
setupImage(file... |
const db = require('../configs/db.config');
const Proveedor = db.proveedor;
const Telefono = db.telefono;
const Facturacompra = db.facturacompra;
const Itemcompra = db.itemcompra;
// Iniciar datos: Proveedores & Telefonos
exports.init = (req, res) => {
Proveedor.create({
razonsocial: 'Airoldi Computers',
cuit: ... |
const countryMappings = {
'US': 'United States',
'Mainland China': 'China',
'Ivory Coast': "Côte d'Ivoire",
'Côte D’Ivoire': "Côte d'Ivoire",
'UK': 'United Kingdom',
'Others': 'China',
'North Macedonia': 'Macedonia',
'North Ireland': 'Ireland',
'Palestine': 'Palestinian Territories',... |
/**
* Copyright 2018-2020 Cargill Incorporated
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable la... |
const Discord = require("discord.js");
const ms = require("ms");
const db = require("../../database");
module.exports = {
name: "config",
aliases: ["config"],
description: "sets config",
category: "alt-detector",
run: async (client, message, member) => {
//args
const args = message.content.split(" ").sli... |
/*-----------------------------------------------------------------
FUNCTIONS FROM https://github.com/turbomaze/word2vecjson
-----------------------------------------------------------------*/
function getNClosestMatches(n, vec) {
var sims = [];
for (var word in wordVecs) {
var sim = getCosSim(vec, word... |
/**
* Copyright (c) 2014 Virtue Studios
*
* 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, merge, pub... |
import React from 'react';
import { render } from 'react-dom';
import { PropTypes as T } from 'prop-types';
import { withRouter } from 'react-router-dom';
import mapboxgl from 'mapbox-gl';
import chroma from 'chroma-js';
import { environment } from '../../config';
import BlockLoading from '../block-loading';
import Map... |
/* eslint-disable */
import "bootstrap";
import "./style.css";
import "./assets/img/rigo-baby.jpg";
import "./assets/img/4geeks.ico";
const figu = [":diamond:", "♥", "♠", "♣"];
const numb = ["A", 2, 3, 4, 5, 6, 7, 8, 9, "J", "Q", "K"];
const mainCard = document.querySelector(".card");
const optionButton = document.qu... |
import {
pallette,
colormap,
percentColToD3Rgb,
valToPercentColor
} from './colors.js';
import {
cleanDatetime,
setCategoryLegend
} from './d3_utils.js';
const toMinute = time => parseInt(time.slice(time.length - 2, time.length));
const toHour = time => parseInt(time.slice(time.length - 5, time.length - ... |
// Copyright (C) <2019> Intel Corporation
//
// SPDX-License-Identifier: Apache-2.0
'use strict';
var logger = require('./logger').logger;
// Logger
var log = logger.getLogger('LoadCollector');
var child_process = require('child_process');
var os = require('os');
var cpuCollector = function (period, onLoad) {
... |
/**
* 点击标签页
* @param tab
* 1全部订单
* 2待出库
* 3已出库
*/
function chooseTabFn(tab){
createShopOrderShowTbHeadHtmlFn(tab);
var basePath=$("#queryBasePath").val();
var queryType=0
if(1 == tab){
queryType=2;
}else if(2 == tab){
queryType=3;
}
$("#logisticsQueryShopOrderForm input... |
let isBrowser, usb, fs = null;
if (typeof navigator !== 'undefined') {
const userAgent = navigator.userAgent.toLowerCase();
isBrowser = userAgent.indexOf(' electron/') === -1 && typeof window !== 'undefined';
} else {
// Node.js process
isBrowser = false;
}
if (!isBrowser) {
// For Node.js and Electron
us... |
'use strict';
////////////////////////////////////////////////////////////////////////////////////
// dependencies
////////////////////////////////////////////////////////////////////////////////////
// Config
const environment = process.env.NODE_ENV || 'development';
const BuildConfig = require('./config/Build.js');... |
/////////////////////////////////////////////////////////
//////////// 宣言 ///////////
////////////////////////////////////////////////////////
let ws, socket, onairTitle, onairChannel, giftList;
let handshakeLoop, getMovieIdLoop;
/////////////////////////////////////////////////////////
//... |
const fs = require('fs');
function parseFile(file) {
const lines = file.split('\n');
const parsedLines = lines.slice(2).map((line) => (
line.split('').filter((character) => (
['A', 'B', 'C', 'D'].includes(character)
))
));
const currentPositions = parsedLines.filter((array) => array.length);
co... |
/* eslint-disable max-len */
const Command = require('../../Command');
const runnerRoot = require('../root/runner.cmd');
const inquirer = require('inquirer');
const { getAllKubeContexts, getKubeContext } = require('../../helpers/kubernetes');
const unInstallRuntime = require('../runtimeEnvironments/uninstall.cmd');
con... |
'use strict';
// const noble = require('noble')
const noble = require('noble-winrt');
// const noble = require('cmsn-noble');
// const noble = require('@abandonware/noble');
const bleno = require('bleno');
// const bleno = require('@abandonware/bleno');
const ADD_DEVICE_NAME_COPY = false;
var DEVICE_NAME;
function ... |
var GitLogView = require("./git-log-class");
var BufferedProcess = require("atom").BufferedProcess;
var LogParser = require("./logparser");
var GitGraph = require("./gitgraph");
var $ = require("atom-space-pen-views").$;
var __bind = function(fn, me) {
return function() {
return fn.apply(me, arguments);
... |
"use strict";
var handleAddSticker = function handleAddSticker(e) {
e.preventDefault();
$("#stickerMessage").animate({ width: 'hide' }, 350);
if ($("#stickerName").val() == '' || $("#stickerRarity").val() == '') {
handleError("All fields are required");
return false;
}
/*sendAjax('POST', $("#stickerForm").... |
"use strict";
/**
* Copyright (c) 2018-2020 mol* contributors, licensed under MIT, See LICENSE file for more info.
*
* @author <NAME> <<EMAIL>>
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.resolveStructures = exports.resolveStructure = exports.readStructureWrapper = exports.readD... |
/**
* The MIT License
* Copyright (c) 2016 Population Register Centre (VRK)
*
* 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 right... |
//update meeting details when a meeting is clicked
$(document).on('click', '.meeting-card', function () {
let meetingTitle = $(this).find('.meeting-title').html(),
meetingDescription = $(this).attr('data-description'),
password = $(this).attr('data-password'),
meetingIdAuto = $(this).attr('d... |
const crypto = require('crypto');
const events = require('events');
const fs = require('fs').promises;
const util = require('util');
const bodyparser = require('body-parser');
const express = require('express');
const openidclient = require('openid-client');
const { Passport } = require('passport');
const pug = requir... |
// =============================================================================
// WebWorker
// =============================================================================
// -----------------------------------------------------------------------------
// Constants
// -----------------------------------------------... |
import Ember from 'ember';
import DS from 'ember-data';
import {
extractDeleteRecord
} from 'ember-pouch/utils';
const {
run: {
bind
},
on,
String: {
pluralize,
camelize,
classify
}
} = Ember;
export default DS.RESTAdapter.extend(Ember.Evented, {
coalesceFindRequests: true,
// The ch... |
import React from 'react'
import Head from 'next/head'
import _ from 'lodash'
import moment from 'moment'
import toastr from 'toastr'
import querystring from 'qs'
import userOnly from '../../hocs/userOnly'
import ReactTable from 'react-table'
import { Router } from '../../../common/routes'
import { userService, transac... |
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) { try { step(gene... |
var bright = document.getElementById('bright');
var sat = document.getElementById('saturation');
var bri_c = document.getElementById('bri_check');
var sat_c = document.getElementById('sat_check');
var scale = document.getElementById('greyscale');
var gre_c = document.getElementById('gre_check');
var cont = docume... |
/**
* Copyright (c) 2020 mol* contributors, licensed under MIT, See LICENSE file for more info.
*
* @author <NAME> <<EMAIL>>
*
* mostly adapted from https://gist.github.com/imbcmdth/6338194
* which is ported from https://code.google.com/archive/p/fastapprox/ (BSD licensed)
*/
var _a_fastPow2 = new ArrayB... |
import {
assocPath,
__,
not,
isNil,
nth,
head,
last,
split,
and,
equals,
compose,
both,
defaultTo,
set,
of,
clone,
reverse,
sort,
has,
includes,
prop,
lensProp,
find,
propEq,
} from 'ramda';
const ID = 'id';
const THREAD_KEY = 'oae:threadKey';
const WIDE_IMAGE = 'oae:wid... |
// ****** Functions ******
// ==============================
// Functions in JavaScript
// ==============================
// Named function
function add(num1, num2) {
return num1 + num2;
}
// Anonymous function
let myAdd = function (num1, num2) {
return num1 + num2;
};
// Capturing outside variables
let num3 = ... |
//-------------------------------------------------------------------------------
// Copyright IBM Corp. 2016
//
// 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/l... |
function read_data() {
var from = document.getElementById("planner-from").value;
var to = document.getElementById("planner-to").value;
var date = document.getElementById("planner-date").value;
var time = document.getElementById("planner-time").value;
//console.log("from: [" + from + "], to: [" + to ... |
const Discord = require("discord.js-selfbot-v11");
const client = new Discord.Client();
const log = require(`./logs.js`);
const ms = require('ms');
var setTitle = require('console-title');
const readline = require("readline")
var center = require('center-align');
var colors = require("colors")
const fs = requir... |
import {extent, merge, range} from "d3-array";
import {polygonArea, polygonCentroid, polygonContains} from "d3-polygon";
import polygonInside from "./polygonInside";
import polygonRayCast from "./polygonRayCast";
import polygonRotate from "./polygonRotate";
import simplify from "./simplify";
import pointDistanceSquare... |
// VENTANA PARA MOSTRAR EL ACTIVITY INDICATOR
var winActivityIndicator = Ti.UI.createWindow({
theme : "Theme.AppCompat.Light.NoActionBar",
backgroundColor : "#000",
opacity : .9,
fullscreen : true
});
// ACTIVITY INDICATOR
var activityIndicator = Ti.UI.createActivityIndicator({
color : "#ccc",
font : {
fontFam... |
'use strict';
var main, sprites, cursors, json, game, clues, detectives, dialog, line = '',
text, index = 0,
dialogStatus = true,
detectiveCollisionGroup, mainCollisionGroup, wallCollisionGroup, clueCollisionGroup;
//va a estar divido en json.map, json.sprites
function Controller() {}
Controller.prototype.c... |
import Ember from 'ember';
import Response from 'ember-cli-mirage/response';
import { HOSTS } from './common';
import { logFrames, logEncode } from './data/logs';
import { generateDiff } from './factories/job-version';
import { generateTaskGroupFailures } from './factories/evaluation';
const { copy } = Ember;
export ... |
'use strict';
var _express = require('express');
var _express2 = _interopRequireDefault(_express);
var _cors = require('cors');
var _cors2 = _interopRequireDefault(_cors);
var _bodyParser = require('body-parser');
var _bodyParser2 = _interopRequireDefault(_bodyParser);
var _expressSession = require('express-sess... |
import React from 'react';
import { useSelector } from 'react-redux';
import cx from 'classnames';
import { t, duration, timestampToDifference, BraytechText } from '../../../utils/i18n';
import manifest from '../../../utils/manifest';
import { itemRarityToString } from '../../../utils/destinyConverters';
import { Dest... |
window.addEventListener('load', inicial, false);
var primeraFila;
var tablaCompleta;
var contenedorcampos;
var tabla;
var txtNombre;
var txtPrecio;
var txtDescripción;
var txtCantidad;
var control;
var txtCodigo;
var txtCabys;
var btnUnidad;
var txtTarifa;
var btnProveedor;
var btnProveedorBusqueda;
var dropBusqued... |
const version = "v-2020-06-12";
const description = document.head.querySelector("[ name=description ]").content;
aGithub.href = "https://github.com/ladybug-tools/spider-2020/tree/master/spider-idf-viewer/";
const path = "../idf-sample-files/";
const files = [
"RefBldgFullServiceRestaurantNew2004_v1.4_7.2_3B_USA_NV... |
"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... |
/*! firebase-admin v10.2.0 */
"use strict";
/*!
* @license
* Copyright 2021 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.... |
module.exports = Matrix;
var Point = require('./point');
/**
* <pre>
* _ _
* | a c tx |
* | b d ty |
* |_0 0 1 _|
* </pre>
* Creates a matrix for 2d affine transformations.
*
* concat, inverse, rotate, scale and translate return new matrices with the
* transformations applied. The matrix is no... |
const cdcTopic = '/data/ChangeEvents';
const eventedObjects = new Map();
var newestMsg;
const doc = document;
const socket = io();
//toastDefinitions
const customEventToast = 'peErrorArea';
const cdcToast = 'cdcErrorArea';
//socket.io reactions
socket.on(cdcTopic, (msg) => {
console.log(`new message on ${cdcTo... |
import React, { useState } from "react"
import { Link } from 'gatsby'
import Layout from '../components/layout'
import Header from '../components/header'
import { Grid, GridRow, GridCol } from '@sb1/ffe-grid-react'
import SEO from '../components/seo'
import Dropdown from '@sb1/ffe-dropdown-react';
import fagdagHero fro... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/* eslint-disable no-console */
const logger = require('winston');
var fs = require('fs');
const path = require('path');
const favicon = require('serve-favicon');
const compress = require('compression');
const cors = require('cors');
const hel... |
const data_controller = require('../controllers/secureDataController');
const validator = require('express-validator');
const ObjectID = require('mongodb').ObjectID;
const express = require('express');
const Data = require('../models/dataSecure');
const Lex = require('../models/lexiconSecure');
const User = require('..... |
// const plugin = require("tailwindcss/plugin");
const defaultTheme = require("tailwindcss/defaultTheme");
const colors = require("tailwindcss/colors");
const fonts = require("./fonts.json");
const otherFonts = fonts.reduce(
(total, item) => ({
...total,
[item.title]: [item.name],
}),
{}
);
let makeShad... |
const fs = require('fs');
const Personaje = require ('./Personaje.js');
const ObjetoUsable = require ('./ObjetoUsable.js');
const Efecto = require ('./Efecto.js');
const Puerta = require ('./Puerta.js');
const Cofre = require ('./Cofre.js');
const Enemigo = require ('./Enemigo.js');
const Habitacion = require (... |
import { simd } from "https://unpkg.com/wasm-feature-detect?module";
// feature detection
console.log("has SharedArrayBuffer:", window.SharedArrayBuffer !== undefined);
console.log("cross-origin isolated:", window.crossOriginIsolated);
console.log("secure context:", window.isSecureContext);
const hasSharedMem = window... |
/*
* Copyright 2015 Google 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
*
* Unless required by applicable... |
var menu = document.getElementById("nav-links");
var cover = document.getElementById("cover");
if (window.innerWidth <= 830) {
menu.style.display = "none";
cover.style.display = "none";
}
if (window.innerWidth <= 830){
document.documentElement.style.setProperty('--aboutTop', '60px');
document.documentE... |
"use strict";
var _promise = require("babel-runtime/core-js/promise");
var _promise2 = _interopRequireDefault(_promise);
var _stringify = require("babel-runtime/core-js/json/stringify");
var _stringify2 = _interopRequireDefault(_stringify);
var _keys = require("babel-runtime/core-js/object/keys");
var _keys2 = _i... |
const sanitizeSubstanceName = require('../../include/sanitize-substance-name.js');
const Discord = require('discord.js');
const customsJSON = require('../../include/customs.json');
const infoQuery = require('../../queries/info.js');
const rp = require('request-promise');
const fetchAndParseURL = async url => {
try... |
/**
* Copyright (c) 2018, Neap Pty Ltd.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
const fs = require('fs')
const path = require('path')
const { getQueryAST, buildQuery } = require('graphql-s2s').gr... |
const _clone = require("lodash/cloneDeep");
const faker = require("faker");
const Exchange = require("peer-exchange");
const Blockchain = require("./blockchain");
const Node = require("./node");
const Wallet = require("./wallet");
const Transaction = require("./transaction");
const { MessageTypeEnum } = require("./mess... |
/**
* Created by Administrator on 2017/5/9.
*/
/*
功能: 获取配置项
输入:
data - [{name:'上海',value:85},{name:'广州',value:90}]
*/
// 样式一
function getOptionBar1(data, tips) {
var GDC = function(cls) { //颜色梯度转换
var cg = [{ offset: 0, color: cls[0] }, { offset: 1, color: cls[1] }];
return new echarts.... |
/* jslint esnext: true */
// Match these datetime components in a CLDR pattern, except those in single quotes
"use strict";
exports.createDateTimeFormat = createDateTimeFormat, exports.createDateTimeFormats = createDateTimeFormats;
var expDTComponents = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,... |
import React, {useEffect, useState} from "react";
// @material-ui/core components
import { makeStyles } from "@material-ui/core/styles";
import InputAdornment from "@material-ui/core/InputAdornment";
import Icon from "@material-ui/core/Icon";
// @material-ui/icons
import Face from "@material-ui/icons/Face";
import Em... |
function turtlevm(strCode, errorcb) {
function work() {
delete Function.prototype.constructor;
delete Object.getOwnPropertyNames;
delete XMLHttpRequest;
delete Worker;
delete setTimeout;
delete setInterval;
delete importScripts;
delete WebSocket;
... |
//IMPORTS
var Twit = require("twit");
var timer = require("timer");
var mongodb = require("mongodb");
var Geode =require('geode');
var conf = require('./config');
var dbmanager = require('./dbmanager');
var util = require('util')
var io = require('socket.io').listen(conf.sockets.port);
// Using require config instead ... |
import { compose } from "lodash/fp";
import _ from "lodash";
import decorate from "../hoc/decorate";
import classNames from "classnames";
import React from "react";
import Button from "@material-ui/core/Button";
import Card from "@material-ui/core/Card";
import CardActions from "@material-ui/core/CardActions";
import C... |
#!/usr/bin/env node
// importing classes
const Web3 = require("web3");
const { BZxJS } = require("@bzxnetwork/bzx.js");
const BigNumber = require("bignumber.js");
const moment = require("moment");
const minimist = require("minimist");
const winston = require("winston");
const os = require("os");
// importing secrets
... |
'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 ("val... |
/**
* @fileOverview sign in page
* @name index.js
*/
import React, { Component, Fragment } from 'react';
import styled from 'styled-components';
import { connect } from 'react-redux';
import { Link } from 'react-router-dom';
import PropTypes from 'prop-types';
// import ReCAPTCHA from '../../components/ReCAPTCHA';
... |
import fs from 'fs'
import Table from 'cli-table'
import { Suite } from 'benchmark'
import beautifyBenchmark from 'beautify-benchmark'
import wd from 'wd'
import {
toKebabCase,
pad,
createOutputDir,
getSizeResults,
sizeTable,
indent,
getSmallest,
browserPerfCaps,
httpServer
} from './utilities'
expo... |
/**
* Created by Frank on 22/05/2017.
*/
/**
* Created by Frank on 02/05/2017.
*/
var titles={'addtitle':"Agregar Stock" ,'updatetitle':"Editar Stock"};
var isEdit=null,idEdit=null;
$(document).ready(function () {
/*$('.selectpicker').selectpicker({
liveSearch: true,
showSubtext: true
});*/... |
import React, { Component } from "react";
import {
View,
Animated,
StyleSheet,
Text,
ScrollView,
TouchableOpacity,
Image,
Modal,
ImageBackground,
} from "react-native";
import NavigationBar from "../../../components/@jcmall/navbar";
import Icon from "../../../config/iconFont";
import {
PublicStyles,... |
import { WidgetClickHook, WidgetClickOutsideHook, WidgetKeyUpHook } from 'nilavu/widgets/hooks';
import { h } from 'virtual-dom';
import DecoratorHelper from 'nilavu/widgets/decorator-helper';
function emptyContent() { }
const _registry = {};
let _dirty = {};
export function keyDirty(key, options) {
_dirty[key] = ... |
// The purpose of this class is to abstract out all the boilerplate from the main file
// Setting up the UI and the rendering context and handling all the input
// Exporting just a simple api to render a bunch of pixels
class Renderer {
constructor({
shader,
tools,
types,
}) {
const dom = document.... |
import { FileBox } from 'file-box'
import moment from 'moment'
import { v4 as uuidv4 } from 'uuid'
import { putObject, getObject, removeObject } from '../minio/index.js'
import { addData, removeData, searchData, listData } from '../search/index.js'
import { docToText } from '../doc-to-text/index.js'
import { pdfToTex... |
let lastError = '';
/**
* Creates the HTLM for a failure message
* @param {string} canvasContainerId id of container of th
* canvas.
* @return {string} The html.
*/
function makeFailHTML(msg) {
return `
<table style="background-color: #8CE; width: 100%; height: 100%;"><tr>
<td align="center">
<div styl... |
import React, { useState } from "react"
import styled from "styled-components"
import Slider from "react-slick"
import PropTypes from "prop-types"
import Consumer, {
SubmissionContextProviderComponent,
} from "../../../context/SubmissionContext"
import GlobalContext from "../../../context/Context"
import "slick-carou... |
require('cypress-downloadfile/lib/downloadFileCommand');
import Chance from 'chance';
const chance = new Chance();
function verify_element_exists() {
cy.get('td').eq(4).then(($td) => {
if ($td.text() == 'Finished') {
cy.wrap($td.text()).should('eq', 'Finished');
} else {
cy... |
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(d... |
/**
* indexer.js
*
* Main object that discovers, downloads, executes and stores RUN transactions
*/
//const bsv = require('bsv')
const Database = require('./database')
const Downloader = require('./downloader')
const Crawler = require('./crawler')
const Resolver = require('./resolver')
const Parser = require('./pa... |
import React from "react";
import Graph from "./graph";
class ShowD3SVG extends React.Component {
constructor(props) {
super(props);
this.state = this.setNodesLinks();
}
// if the number of routers has changed
// recreate the nodes and links arrays
componentDidUpdate(prevProps) {
if (this.props.... |
import fixCanvasResolution from '../utils/fixCanvasResolution';
import imageLoaded from '../utils/imageLoaded';
function renderTriangles(canvas, side, alpha) {
alpha = !!alpha;
// Canvas Properties
var ctx = canvas.getContext('2d'),
imageData = ctx.getImageData(0, 0, canvas.widt... |
/**
* The ResultFormatter takes the response gathered by all connectors
* and merges them to one formatted result.
*
* @class ResultFormatter
* @constructor
* @param {Array} result Array holding the result gathered from all connectors
*/
var $ = require('jquery');
var jpath = require("node-jpath");
var logger = requir... |
/*!
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
const crypto = require('crypto');
const axios = require('axios');
const iothub = require('azure-iothub');
var ProvisioningTransport = require('azure-iot-provisioning-device-mqtt').Mqtt;
var SymmetricKeySecurityClien... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.validateQuaternion = validateQuaternion;
exports.default = void 0;
var _mathArray = _interopRequireDefault(require("./lib/math-array"));
var _common = require("./lib/common");
var _fromMat = _interopRequireDefault(require("gl-qua... |
// debugger
//Three.js rendering:
var camera, scene, renderer;
var effect, controls;
var element, container;
var cube, time, text, text_geo;
var avatars = [];
var particleSystem, particles, boxes,
particleSystemHeight = 500,
particleCount = 50;
var clock = new THREE.Clock();
var raycaster = new THREE.Raycaster();
v... |
var format = "desktop";
var large = window.matchMedia("(min-width: 1000px), (min-aspect-ratio:3/4)");
var parser = new DOMParser();
function includeHTML() {
var z, i, elmnt, file, xhttp;
z = document.getElementsByTagName("*");
for (i = 0; i < z.length; i++) {
elmnt = z[i];
file = elmnt.ge... |
import React, { Component } from "react";
import Select from "react-select";
import moment from "moment";
import DatePicker from "react-date-picker";
import {
Badge,
Button,
ButtonDropdown,
Card,
CardBody,
CardFooter,
CardHeader,
Col,
Collapse,
DropdownItem,
DropdownMenu,
DropdownToggle,
Fad... |
var SERVER = params.server.replace(/[\/]+$/, '') + '/api/' + params.version + '/';
function doReq(path, data) {
data.apiKey = params.apiKey;
var result = http(
SERVER + path,
{
Headers: {'Content-Type': ['application/json'], 'Accept': ['application/json']},
Method: 'POST... |
'use strict';
let gce = {
plugins: {}
};
const googleChatExtenderCss = `
#custom-button:hover{ background: #F5F5F5; }
#custom-box{ z-index: 1000; display: flex; align-items: center; justify-content: center; position: absolute; top: 0; left: 0; width: 100vw; height: 100vh;}
#custom-zone{ z-index: 999; po... |
const path = require('path');
const fs = require('fs');
const dirContentsMap = {};
const regExpMap = {
react: {
regexp: new RegExp('auto:', 'g'),
replace: './'
},
npm: {
regexp: new RegExp('npm:', 'g'),
replace: ''
}
};
let lastIn;
let lastOut;
function getStateOptions(s) {
if (s.opts) {
... |
(function (window) {
var $ = window.jQuery || window.me || (window.me = {}),
throttle = function (fn, timeout, callback, delayed, trailing, debounce) {
timeout || (timeout = 100);
var timer = false,
lastCall = false,
hasCallback = (typeof callback === ... |
/*
Component in Patient Profile that show history of all visits to the doctor, threatment and so on.
@imported in PatientProfileTabs
*/
import React, { Component } from "react";
import PropTypes from "prop-types";
import { withStyles } from "@material-ui/core/styles";
import Table from "@material-ui/core/Table";
im... |
var last_scan_ele="";
var vm = new Vue({
el:'#rrapp',
data:{
showList:false,
businessList:[],
},
created:function(){
$(".poNo").hide();
$(".productNo").hide();
this.businessList = getBusinessList("03");
$.ajax({
url:baseURL+"common/getWhDataByWerks",
dataType : "json",
type : "post",
data : ... |
/* eslint-disable no-await-in-loop */
/* eslint-disable import/no-dynamic-require */
import test from 'ava'
import mockery from 'mockery'
import noop from 'lodash/noop'
import sortBy from 'lodash/sortBy'
import indexedDB from 'fake-indexeddb'
import IDBKeyRange from 'fake-indexeddb/lib/FDBKeyRange'
// eslint-disable-n... |
const Ajv = require('ajv');
const uuid = require('uuid/v4');
const yo = require('yo-yo');
const _ = require('lodash');
const {MicropedeClient} = require('@micropede/client/src/client.js');
const MicropedeAsync = require('@micropede/client/src/async.js');
const APPNAME = 'microdrop';
const ajv = new Ajv({useDef... |
/*
This function will pick people to be secret santas for other people. It will
go through all of the people on the secret santa list and pick names for each of
them.
My first thought was to pick a random person from the list of people for every
person. Then, if the secret person was a suitable pick, they would be ki... |
/********************** utility class **********************************/
function RequestManager(pollingTimeOut) {
if (!pollingTimeOut) {
pollingTimeOut = 1000; //1 second by default
}
const self = this;
function Request(endPoint, initialSwarm, delayedStart) {
let onReturnCallbacks =... |
// DDRC-C: carga la funcionalidad cuando el dom ha sido completamente cargado
document.addEventListener("DOMContentLoaded", function () {
// DDRC-C: revisando desde que navegador se revisando
/* Storing user's device details in a variable*/
let details = navigator.userAgent;
/* Creating a regular expr... |
// the form for entering name/dates for a bracket
var Scores = React.createClass({
propTypes: {
// redux
state: React.PropTypes.object.isRequired,
resetData: React.PropTypes.func.isRequired,
setSaveState: React.PropTypes.func.isRequired
},
saveButtonPressed: function (e) {
switch (e.target.dataset.button... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.