text stringlengths 5.97k 41.2k |
|---|
var botones2 = [];
var columnas = [];
//FUNCION DEL INICIO
var esNuevo = true;
var indice = 0;
// Define your global object
var myObj = {};
// Add property (variable) to it
myObj.indice = 0;
myObj.isNuevo = true;
// Add method to it
myObj.myFunctions = function() {
// Do cool s... |
const fs = require('fs');
const mm = require('moment');
const xlsx = require('xlsx');
const logger = require('./config/logger.js');
const { checkDir } = require('./utils/util');
const { setUser, getUsers, getReg, getRegs, setRegs } = require('./db/firestore');
// TODO config file
const logDir = './log/';
const exportD... |
const navProject = document.querySelector('#nav-project');
const navRun = document.querySelector('#nav-run');
const navStatus = document.querySelector('#nav-status');
const mainConfig = document.querySelector('#main-config');
const mainRecord = document.querySelector('#main-record');
const mainPreview = document.queryS... |
const child_process = require('child_process');
const path = require('path');
const crypto = require('crypto');
const fs = require('fs');
const fse = require('fs-extra');
const os = require('os');
const request = require('request');
const progress = require('request-progress');
const glob = require('glob');
co... |
//additional code for iclaw
//set variables
//not functional until the server is moved and updated
//var urlPath = 'http://latincanon.spencerschmalz.com/wordcount/inc/api.php';
var urlFacet = 'http://s-lib024.lib.uiowa.edu/greekandlatincanons/latin/search_function/inc/api.php';
var clicked = ""
var clickedrow = ""
va... |
import 'plugins/index.js';
import config from 'config/client.js';
import clientFactory from 'client/clientFactory.js';
import popup from 'components/popup.js';
import copy from 'components/copy.js';
import share from 'components/share.js';
// We will be fetching the updates games list from the server on this interval
... |
const fs = require('fs');
module.exports = {
gethtml,
gettemplatehtml
}
const createFooter = (footer, document, branch) => `
${regexrep(footer, document, branch)}
`
const createHeader = (header, document, branch) => `
${regexrep(header, document, branch)}
`
/**
* Take an object which has the ... |
import CryptoJS from 'crypto-js';
import moment from 'moment';
import uaParser from 'ua-parser-js';
import dateTimeConstants from '../consts/datetime.js';
import accountConstants from '../consts/account.js';
import settings from './settings.js';
function isFunction(val) {
return typeof(val) === 'function';
}
fun... |
import React, { useState, useEffect, useRef } from 'react';
import styles from './tip-dashboard.module.scss';
import Logo from '../images/Betsmart-Logo.png';
import Notifications, {notify} from 'react-notify-toast';
import { getCurrentUser, logout, setUser } from '../utils/auth';
import { CognitoUserAttribute } from 'a... |
// Copyright 2014-2015 <NAME>
// MIT licensed (see LICENSE for details)
var sln = exports;
var crypto = require("crypto");
var fs = require("fs");
var http = require("http");
var https = require("https");
var qs = require("querystring");
var PassThroughStream = require("stream").PassThrough;
var urlmodule = require(... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
// dep modules
var Notation = require("notation");
var enums_1 = require("./enums");
var core_1 = require("./core");
var RESERVED_KEYWORDS = ['*', '!', '$', '$extend'];
exports.RESERVED_KEYWORDS = RESERVED_KEYWORDS;
var ERR_LOCK = 'Cannot al... |
//Code for BLE connection from: https://itpnyu.github.io/p5ble-website/docs/getstarted
//Variables for BLE connection
const serviceUuid = "e098a7b1-9074-4e8f-bb89-2a8e84a1a271"; //should match with the serviceUuid from the Arduino code
let isConnected = false;
var connectButton;
var disconnectButton;
//Variables for... |
/*
The MIT License (MIT)
Copyright (c) 2014-2018 <NAME> and the Krestianstvo.org project contributors. (https://github.com/NikolaySuslov/livecodingspace/blob/master/LICENSE.md)
Virtual World Framework Apache 2.0 license (https://github.com/NikolaySuslov/livecodingspace/blob/master/licenses/LICENSE_VWF.md)
*/
class H... |
/*
* Copyright (C) 2017 <NAME>
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
"use strict";
const RESULT_OK = 0;
const RESULT_ERROR = 1;
const SCREEN_WIDTH = 160;
const SCREEN_HEIGHT = 144;
const AUDIO_FRAMES = 4096;
const AUDIO_LATENC... |
'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 ("... |
export var MeasurmentUtils = {};
MeasurmentUtils.MeasureLine = L.Polyline.extend({
options: {
className: 'leaflet-interactive measurment-line'
}
});
MeasurmentUtils.MeasurePolygon = L.Polygon.extend({
options: {
className: 'leaflet-interactive measurment-polygon'
}
});
MeasurmentUtils.... |
import React, { useState, useEffect } from 'react'
import { Link } from 'react-router-dom'
import { useMedia } from 'react-use'
import ReactTooltip from 'react-tooltip'
import BigNumber from 'bignumber.js'
import fetchConverters from '../../bancor/converters'
import { Box, Flex, Text } from 'rebass'
import PropTypes fr... |
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... |
/**
* Main JS file for project.
*/
/**
* Define globals that are added through the js.globals in
* the config.json file, here, mostly so linting won't get triggered
* and its a good queue of what is available:
*/
// /* global $, _ */
/**
* Adding dependencies
* ---------------------------------
* Import loca... |
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... |
import React from 'react'
import PropTypes from 'prop-types'
import styled from 'styled-components'
import Key from './Key'
const Wrapper = styled.div`
position: relative;
transition: all 1s;
z-index: 20;
margin: 0 auto 20px;
width: 800px;
height: 315px;
background: #bbb;
background: linear-gradient(
... |
// ----------------------------------------------------------------------------
// Validation - A simple validation library that requires jQuery and Bootstrap Modal (2.3.3+)
// v1.5.4 - released 2021-08-26 23:20
// Added Bootstrap 5 and FontAwesome 5 support
// Licensed under the MIT license.
// https://github.c... |
import React, { Component } from 'react';
import { Button, Col, Row, Input,
Table, Pagination, PaginationItem, PaginationLink, Badge } from 'reactstrap';
import Switch from "../Switch/Switch";
import ImageModal from '../Modal/ImageModal';
import Popup from "reactjs-popup";
import ProductFamilyModal from '../Modal/Pr... |
const base128Length = require("../../dist/node/utils/base128Length.js").default;
const base256Length = require("../../dist/node/utils/base256Length.js").default;
const decodeBase128 = require("../../dist/node/utils/decodeBase128.js").default;
const decodeIEEE754DoublePrecisionFloat = require("../../dist/node/utils/d... |
var MySessID;
function page_options() {
document.getElementById('app').innerHTML = `
<!-- Блок Каталог -->
<div class="OptionsBlock">
<!-- Блок Аккаунта -->
<div id="login_profile" style="display:none;">
<div class="OptionsAccount">
<div class="OptionsAccountLogo" id="my_profile_img"> </div>
<d... |
var assert = require('assert');
var DocMeasure = require('../src/docMeasure');
var StyleContextStack = require('../src/styleContextStack');
var sampleTestProvider = {
provideFont: function(familyName, bold, italics) {
return {
widthOfString: function(text, size) {
return text.length * size * (bold ? 1.5 : 1... |
import angular from 'angular';
import dom_node from 'cytoscape-dom-node';
import {formatColor} from '../../../../modules/render/heatmap/color-scheme/helpers';
const Cytoscape = require('cytoscape');
const graphml = require('cytoscape-graphml');
const sbgnStylesheet = require('cytoscape-sbgn-stylesheet');
const $ = req... |
/* */
"format cjs";
/*!
* AngularJS Material Design
* https://github.com/angular/material
* @license MIT
* v1.1.4-master-75237c6
*/
goog.provide('ngmaterial.components.sidenav');
goog.require('ngmaterial.components.backdrop');
goog.require('ngmaterial.core');
/**
* @ngdoc module
* @name material.components.side... |
import CoreUtils from '../modules/CoreUtils'
import Bar from './Bar'
import Graphics from '../modules/Graphics'
import Utils from '../utils/Utils'
/**
* ApexCharts BarStacked Class responsible for drawing both Stacked Columns and Bars.
*
* @module BarStacked
* The whole calculation for stacked bar/column is differ... |
"use strict";
// System libraries
var EventEmitter = require('events').EventEmitter;
var http = require('http');
var net = require('net');
var urlParse = require('url').parse;
var inherits = require('util').inherits;
// Third-party libraries
var ethereumTx = require('ethereumjs-tx');
var ethereumUtil = require('ether... |
/* eslint-disable */
// TODO: Remove previous line and work through linting issues at next edit
'use strict';
var _ = require('lodash');
var $ = require('./util/preconditions');
var BN = require('./crypto/bn');
var Base58 = require('./encoding/base58');
var Base58Check = require('./encoding/base58check');
var Hash =... |
var routest_code_typeahead_key_arr = new Array();
var routest_code_typeahead_val_arr = new Array();
var bodysite_codes_typeahead_key_arr = new Array();
var bodysite_codes_typeahead_val_arr = new Array();
var vfc_codes_typeahead_key_arr = new Array();
var vfc_codes_typeahead_val_arr = new Array();
var nip1_txt... |
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE_AFL.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not recei... |
var http = require('http'),
https = require('https'),
parseString = require('xml2js').parseString,
urlParser = require('url'),
util = require("util"),
events = require("events"),
zlib = require("zlib"),
node_debug = require("debug")("NRC");
exports.Client = function (options){
var self = this;
se... |
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
})... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
'use strict';
var EverythingME = {
activated: false,
pendingEvent: undefined,
gridPage: null,
init: function EverythingME_init(config) {
this.debug = !!config.debug;
var self = this;
LazyLoader.load(['shared/js/settings_listener.js'],
function loaded() {
SettingsListener.observe('r... |
import React, {Component} from 'react'
import Wad from 'web-audio-daw'
import {connect} from 'react-redux'
import {getSingScore} from '../../store/bubble'
import Pointer from './Pointer'
import {EndModal} from '../menu/end-modal'
import {setLyrics, setPitch} from './utils'
class Sing extends Component {
constructor(... |
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
__.prototype = b.prototype;
d.prototype = new __();
};
var BABYLON;
(function (BABYLON) {
var eventPrefix = BABYLON.Tools.GetPointerPrefix();
... |
'use strict';
const nameReplicant = nodecg.Replicant('name');
const socialReplicant = nodecg.Replicant('social');
const socialIconsReplicant = nodecg.Replicant('socialIcons');
const socialAssetsReplicant = nodecg.Replicant('assets:social-icons');
var socialIcons = {}
NodeCG.waitForReplicants(socialIconsReplicant).the... |
/**
* This is the api to be used when optionally handling the integration with the web page, instead of using the default integration provided by mermaid.js.
*
* The core of this api is the [**render**](https://github.com/knsv/mermaid/blob/master/docs/mermaidAPI.md#render) function which, given a graph
* definition... |
"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;
... |
const Map = require("./entities/map");
/**
* @typedef {object} Block
* @property {number} type
* @property {number} header_length
* @property {number} data_length
* @property {Buffer=} view
*/
const BlockTypes = {
"CHARGER_LOCATION": 1,
"IMAGE": 2,
"PATH": 3,
"GOTO_PATH": 4,
"GOTO_PREDICTED_... |
const mec2Elements = document.getElementsByTagName('mec-2');
function mec2Deepmech() {
// Helper to switch nodes
function swapNodes(a, b) {
const aParent = a.parentNode;
const bParent = b.parentNode;
const aHolder = document.createElement("div");
const bHolder = document.createE... |
// jshint esversion: 6
import React from "react";
import * as d3 from "d3";
import { connect } from "react-redux";
import { mat3, vec2 } from "gl-matrix";
import _regl from "regl";
import memoize from "memoize-one";
import * as globals from "../../globals";
import setupSVGandBrushElements from "./setupSVGandBrush";
im... |
console.log('WebNPM starting');
var consoleWidget = require('console-widget')();
var ansi = require('ansi-to-html');
var asarray = require('asarray');
var shellasync = require('shellasync/global'); // adds ls(), cat(), etc. to global
consoleWidget.open();
var logConsole = function(args) {
var array = asarray(args... |
'use strict';
const config = require('../config/config');
const requestPromise = require('request-promise-native');
const util = require('util');
const _ = require('lodash');
const http = require('http');
const redis = require('redis');
const dbcfg = require('./common/dbConfig');
const dblib = require('./common/dbLib... |
/**
* Copyright 2017 Tierion
* 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 in writing, ... |
/**
* Interactive Web Physics 5 - Javascript SVG Animation Implementation
* <NAME>, <NAME> 2016 - Version 5.0 Initial Port to HTML + SVG
* <NAME>, <NAME> 2018 - Version 5.1 Added Graphing and D3
*/
$(function() {
graphInit();
})
// Global container, re-populated on initialization with every object, the plottin... |
import React from "react"
import { Tabs } from "@yazanaabed/react-tabs"
import List from "../components/list"
const juniorItems = [
// Core
{ name: "I have broad knowledge of core iOS concepts.", level: 1, comment: "I know how to setup a basic project, I know how to interact with a button from the storyboard" ... |
/*
* (C) Copyright 2016 Kurento (http://kurento.org/)
*
* 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 applicab... |
import Nipple from './nipple';
import Super from './super';
import * as u from './utils';
///////////////////////////
/// THE COLLECTION ///
///////////////////////////
function Collection (manager, options) {
var self = this;
self.nipples = [];
self.idles = [];
self.actives = [];
self.ids = ... |
var app = require('../index');
var bandit = require('../bandit');
var request = require('request');
var Promise = require("bluebird");
var expect = require('expect.js');
var realApp;
//Things to test
// create two versions of a url, with img, title
// request JS for url 20 times, and confirm that it returns more ... |
const Discord = require("discord.js");
const client = new Discord.Client();
const fs = require("fs");
const moment = require("moment");
const Jimp = require("jimp");
const ayarlar = require("./ayarlar.json");
require("./util/eventLoader")(client);
const db = require("quick.db");
const express = require("express");
cons... |
/*
This module handles graph related content, such as
- Graphs
- Vertices
- Edges
- Paths
The graph data used by this program follows two criteria:
- The graph is antireflexive: There exists no such Edge e and Vertex v such that e maps v to v. In lay terms, no vertex is connected to itself.
- the graph is symetric: fo... |
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
import musicalScaleColors from 'musical-scale-colors';
import * as pixi from 'pixi.js';
import * as teoria from 'teoria';
pixi.utils._saidHello = true;
/**
* JavaScript 2D WebGL / Canvas animated piano roll
* @module pixiPianoRoll
* @author <NAME... |
// call the backend api
function callAPI(ep, req, fn, errFn) {
const http = new XMLHttpRequest();
const url = "/api/" + ep;
// when there is a change
http.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
var data = JSON.parse(this.responseText);
fn(data);
} else if (th... |
import G6 from '@antv/g6';
import insertCss from 'insert-css';
insertCss(`
.g6-component-tooltip {
background-color: rgba(0,0,0, 0.65);
padding: 10px;
box-shadow: rgb(174, 174, 174) 0px 0px 10px;
width: fit-content;
color: #fff;
border-radius = 4px;
}
`);
// mocked data
const mockData = ... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = undefined;
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... |
if (typeof console === 'undefined') {
var dummy = function() {};
this.console = {info:dummy, log:dummy, warn:dummy, error:dummy};
}
// simple hint / watermarks for textareas
(function($) {
function onfocus() {
var $this = $(this);
if ($this.val() == $this.attr('title')) {
$this.removeClass(... |
// Simulation modes
var MAKE_IS = 0;
var MAKE_IS_PATHS = 1;
var CREATE_RAYS = 2;
var CREATE_BRDFS = 3;
var ART = 4;
var BEM = 5;
// Visualization modes
var WAVE_FRONTS = 0;
var FULL_RAYS = 1;
var BEAMS = 2;
var RAY_EXTENSIONS = 3;
var RAY_SEGMENTS = 4;
var RAY_EMISSION = 5;
var BRDF_SLOTS = 6;
var RADIANCE = 7;
var SH... |
'use strict';
/* global process */
/* global __dirname */
/*******************************************************************************
* Copyright (c) 2016 IBM Corp.
*
* All rights reserved.
*
* Created by the Financial Services Sector of the IBM Global Solutions Center
* Based on the original work of <NAME... |
class GameEngine{
constructor(){
this.Person = [];
this.Session = [];
this.sessionnumber = 0
this.score = 0;
this.cardinhand = 0;
this.doule = false;
this.acedouble = false;
this.wallet = 1000;
this.amount = 0;
this.split = false;
... |
import { __rest } from "tslib";
import * as React from 'react';
import styles from '@patternfly/react-styles/css/components/Select/select';
import badgeStyles from '@patternfly/react-styles/css/components/Badge/badge';
import formStyles from '@patternfly/react-styles/css/components/FormControl/form-control';
import but... |
const EventTarget = window.classes.EventTarget;
const Storage = window.classes.Storage;
const StickerSet = require('./StickerSet.js');
const MessageSticker = require('./MessageSticker.js');
class Stickers extends EventTarget {
constructor(params = {}) {
super();
this._app = params.app;
this._storage = param... |
// eslint-disable-next-line no-unused-vars
const Util = require('./util')
const ONEConstants = require('./constants')
const BN = require('bn.js')
const AES = require('aes-js')
const abi = require('web3-eth-abi')
const { hexString, genOTP, hexStringToBytes, keccak, bytesEqual, sha256: fastSHA256, sha256Interlaced, sha25... |
/*eslint-disable*/
import React, { Component, Fragment } from 'react';
import { connect } from 'dva';
import { Card, Icon, Button, Popover, Form, Input, Checkbox, Modal, Select, message } from 'antd';
import styles from './style.less';
import { swapItems, isfalse } from '../../Tools/util_tools';
import { SectionToChine... |
/**
* DevExtreme (ui/scheduler/ui.scheduler.resource_manager.js)
* Version: 20.2.3
* Build date: Tue Oct 20 2020
*
* Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED
* Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
*/
"use strict";
exports.default = void 0;
var _ar... |
import Vue from 'vue/dist/vue.js'
import Vuex from 'vuex'
import axios from 'axios'
import optionListener from './../components/utils/optionMenuListener';
Vue.use(Vuex)
import getIndexes from './helpers/getIndexes';
import 'babel-polyfill'
import {Socket , Presence} from 'phoenix'
import moment from 'moment'
/***
* ... |
var mouseMoveTimeout = 3000; // Time for lack of mouse movement to 'release' grip on cloth
var mouseMovingTimer = mouseMoveTimeout;
var mouseAffectsCloth = true;
var accuracy = 1;
var gravity = 40; // Amount of force pulling the lattice back to its original structure
var distortWidth = Math.sin(Math.PI / 3);
var tearDi... |
import { Meteor } from 'meteor/meteor';
import { Accounts } from 'meteor/accounts-base';
import { check } from 'meteor/check';
import { Email } from 'meteor/email';
import { TAPi18n } from 'meteor/tap:i18n';
import { ServiceConfiguration } from 'meteor/service-configuration';
import { genesisTransaction, loadExternalC... |
var form = {
init:function(){
$('form').attr('autocomplete', 'off');
$.validator.addMethod("lettersonly", function(value, element) {
return this.optional(element) || /^[a-z]+$/i.test(value);
}, "Letters only please");
$.validator.addMethod("regexp", function(value, element, regexpr) {
return regexpr.t... |
/*
Plot Module (PLOT).
This is trying to be a suckless plotting library. I think I've accomplished that? From an eagle-eye view this is what you do:
- Make a svg element of the appropriate structure in your HTML file
- Define all the styles and pretty stuff you want there. This library does NOTHING AESTETHIC. It's all... |
jQuery(document).ready(function($) {
now = new Date();
var times = getJoeyTime();
$(".campustime").text(parseTime(times[0]));
$(".davistime").text(parseTime(times[1]));
$(".olintime").text(parseTime(times[2]));
if(localStorage.getItem("hazIntro") == "true"){
$('#intro').hide();
}
refreshArtwork();
checkLocat... |
/*
Copyright 2019 Adobe. All rights reserved.
This file is licensed to you under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. You may obtain a copy
of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... |
"use strict";
import snabbdom from 'snabbdom';
import h from 'snabbdom/h';
import cow from './cow.js';
const patch = snabbdom.init([
require('snabbdom/modules/class'), // makes it easy to toggle classes
require('snabbdom/modules/props'), // for setting properties on DOM elements
require('snabbd... |
// To setup the template, change the variables below
// Follow instructions in code comments or see documentation for more detail
// 1. Configurations or Settings
// 2. Navigation on click/ on load / on hasch chage scroll to
// 3. Menu / Internal / Exteranl links
// 4. General Sections
// 5. Contact Form Start
/... |
import { value, number, transform, compute, observable_property } from '@hyper/dom/observable'
import { prompter } from '@hyper/dom/observable-logic'
import ObservableArray from '@hyper/dom/observable-array'
import { rankHandInt } from './rank-hand'
import { shuffled_deck } from './deck'
import round from '@lodash/roun... |
import React, { Component } from "react";
import PropTypes from "prop-types";
import { bindActionCreators } from "redux";
import moment from "moment";
import { isNil, isEmpty, trim } from "lodash";
import { Descriptions, Badge, Row, Col, Steps, Popover, Button } from "antd";
import { connect } from "react-redux";
impor... |
'use strict';
const { classes: Cc, interfaces: Ci, utils: Cu, results: Cr } = Components;
const EVENTS = {
NETWORK_EVENT: 'networkEvent',
NETWORK_EVENT_UPDATE: 'networkEventUpdate',
BEACONMONITOR_STARTED: 'GADebugger:BeaconMonitorStarted',
BEACONMONITOR_STOPPED: 'GADebugger:BeaconMonitorStopped',
BEACONMONI... |
import React, { useState, useEffect, useRef, Fragment } from "react";
import {
Button,
Card,
CardBody,
CardHeader,
Col,
Row,
Modal,
ModalBody,
ModalFooter,
ModalHeader,
FormGroup,
Label,
Input,
FormFeedback,
Form,
InputGroup,
InputGroupAddon,
Spinn... |
// handy constants
const INF = Number.POSITIVE_INFINITY;
const NINF = Number.NEGATIVE_INFINITY;
// Axis-aligned bounding box (2D)
class AABB {
constructor(min, max) {
if (min == null) { min = {x:INF,y:INF}; }
if (max == null) { max = {x:NINF,y:NINF}; }
this.min = clone_pt(min);
this.max = clone_pt(ma... |
/* eslint-disable func-names */
import * as _ from 'lodash';
import $ from 'jquery';
import UUIDv4 from 'uuid/v4';
import echartsTemplate from './echarts.html';
import echartsEditorTemplate from './echarts-editor.html';
import { defaultPieChartOptions, parseChartType, getChartType, setThemeColor, getRadius, } from './... |
const Countrycodeoptions = [
{label: 'UK (+44)', value: '44'},
{label: 'USA (+1)', value: '1'},
{label: 'Algeria (+213)', value: '213'},
{label: 'Andorra (+376)', value: '376'},
{label: 'Angola (+244)', value: '244'},
{label: 'Anguilla (+1264)', value: '1264'},
{label: 'Antigua & Barbuda (+1... |
import React, { PropTypes } from "react";
import ReactDOM from "react-dom";
import * as toastr from '../../../../utils/toastr';
import { browserHistory } from 'react-router';
import debounceHelper from "../../../../utils/debounceHelper";
import ItemsDisplayPerPage from "../../../elements/ItemsDisplayPerPage";
import {
... |
// No name append needed for functions in base
// Toggle the display of the menu
function toggleMobileMenuDisplay() {
var navElements = document.getElementsByClassName('nav-item');
// menu is closed
if(!navElements[1].classList.contains('mobile-visible')) {
for(var i = 1; i < navElements.length; i++) {
navElem... |
/**
* Copyright 2013-2021 BigML
*
* 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 ... |
// Github: https://github.com/shdwjk/Roll20API/blob/master/AddCustomTurn/AddCustomTurn.js
// By: <NAME>, <NAME>
// Contact: https://app.roll20.net/users/104025/the-aaron
var API_Meta = API_Meta||{}; //eslint-disable-line no-var
API_Meta.AddCustomTurn={offset:Number.MAX_SAFE_INTEGER,lineCount:-1};
{try{throw ne... |
"use strict";
exports.__esModule = true;
exports.default = _default;
var _tdz = require("./tdz");
var _values = _interopRequireDefault(require("lodash/values"));
var _extend = _interopRequireDefault(require("lodash/extend"));
var _core = require("@babel/core");
function _interopRequireDefault(obj) { return obj &&... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = languramaLog;
exports.error = error;
exports.warn = warn;
exports.info = info;
exports.debug = debug;
exports.trace = trace;
exports.logLevels = exports.defaultFileConfiguration = exports.defaultTerminalConfiguration = voi... |
"use strict";
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
// See LICENSE in the project root for license information.
Object.defineProperty(exports, "__esModule", { value: true });
const colors = require("colors");
const fsx = require("fs-extra");
const os = require("os"... |
import * as React from 'react';
import {Map as ImmutableMap, List as ImmutableList, Set as ImmutableSet} from 'immutable';
import {
BreakpointFunction,
pyHash,
computeIdx,
computePerturb,
perturbShift,
nextIdxPerturb,
displayStr,
} from './hash_impl_common';
import {isDefinedSmallBoxScreen}... |
import _ from 'lodash'
import bluebird from 'bluebird'
import path from 'path'
import rp from 'request-promise'
import fs from 'fs'
import {
TwitterHelper,
} from './twitter'
import {
ChangeMessage,
} from './helpers'
import GithubHelper from './github'
import {
createTimeObj,
getTime,
nativeClone,
extractA... |
var events = require("events"),
util = require("util"),
colors = require("colors"),
Firmata = require("firmata").Board,
_ = require("lodash"),
__ = require("../lib/fn.js"),
Repl = require("../lib/repl.js"),
serialport = require("serialport"),
board,
boards,
rport,
Serial;
b... |
require('dotenv').config();
let exceptionAttempts = 0;
const accountSid = process.env.TWILIO_ACCOUNT_SID;
const authToken = process.env.TWILIO_AUTH_TOKEN;
const client = require('twilio')(accountSid, authToken);
const fs = require('fs')
const querystring = require('querystring')
const simpleGit = require('simple-gi... |
var TKN = TKN || {};
TKN.IPSN = TKN.IPSN || {};
var dataTable;
var dataTable1;
var dataTable2;
TKN.IPSN.ranking = {
config: {
updateInterval: 3000000,
databases: [
{label: 'Scenario 1', url: 'http://ebp.evarilos.eu:5009/evarilos/metrics/v1.0/database/experiment_1/experiment'},
... |
import "~/src/scenes/Scene.css";
import "~/src/components/App.css";
import "~/src/components/Body.css";
import * as React from "react";
import * as Utilities from "~/src/common/utilities";
import * as SVG from "~/src/components/SVG.js";
import * as Constants from "~/src/common/constants";
import { FilecoinNumber } fr... |
const PREC = {
OR: 0,
AND: 1,
COMPARE: 3,
CONCAT: 5,
PLUS: 6,
MINUS: 6,
MUL: 7,
SHIFT: 8,
TYPE: 101,
LET: 100,
};
const OPS = [
['+', PREC.PLUS],
['-', PREC.MINUS],
['mod', PREC.MUL],
['/', PREC.MUL],
['*', PREC.MUL],
['land', PREC.MUL],
['lor', PREC.MUL],
['lxor', PREC.MUL],
['ls... |
//const { shift } = require('cli-table');
const { Dexie } = require('dexie');
const status = require('../../assets/status-box')
const index = require('../../bot-functions/index')
const notiBox = require('../../assets/notiBox')
const { ipcRenderer } = require('electron')
// setup db
var db = new Dexie("tbb_database")... |
//babel --watch babel.persistent.js --out-file persistent.js
/**
* Hack in support for Function.name for browsers that don't support it.
* IE, I'm looking at you.
**/
"use strict";
var _bind = Function.prototype.bind;
var _slice = Array.prototype.slice;
var _get = function get(_x2, _x3, _x4) { var _again = true; _... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.