text
stringlengths
5.97k
41.2k
import { getKeys } from "./helpers"; // todo: // improve relability of moving elements around // global config const color = '#000000'; const saveChart = renderedNodes => { // find initial nodes (triggers); const triggers = renderedNodes.filter(node => node.inputs.length === 0); // for each initial node...
/** * Created by abradley on 14/03/2018. */ import { Grid, Chip, Tooltip, makeStyles, CircularProgress, Divider, Typography, IconButton, ButtonGroup } from '@material-ui/core'; import React, { useState, useEffect, memo, useRef, useContext, useCallback } from 'react'; import { useDispatch, useSelecto...
const canvas = document.getElementById('space'); // space canvas const BG = document.getElementById('BG'); // space canvas const ctx = canvas.getContext('2d'); const ctxBG = BG.getContext('2d'); const canW = canvas.offsetWidth; // 800 const canH = canvas.offsetHeight; // 600 let roSpeed = 0.0, maxRoSpd = 0...
import React from 'react'; class Mttf extends React.Component{ componentDidMount(){ //set styles var allLines = document.getElementById('svg-container').getElementsByTagName('line'); for(var t of allLines){ t.setAttribute('stroke',"#2975d9"); t.setAttribute('str...
const log = require("../utils/log"); const calc = require("../utils/calc"); const { DerivativeProviders, ethToken, DerivativeStatus, DerivativeType } = require("../utils/constants"); const Fund = artifacts.require("OlympusTutorialFundStub"); const AsyncWithdraw = artifacts.require("components/widrwaw/AsyncWithdraw"); c...
import Vue from 'vue'; const isBrowser = typeof window !== 'undefined' && typeof window !== 'undefined'; // Emit the 3x favicon for OG icon if(isBrowser) try { // eslint-disable-next-line import/no-webpack-loader-syntax require('!!file-loader!./assets/favicon@3x.png'); } catch(e) { // Will occur on SS...
$(".consoleBody").height($(window).height() - 120 + 'px') var logLevels = { trace: 'default', debug: 'primary', info: 'info', warn: 'warning', error: 'danger', fatal: 'success', off: 'default', all: 'default' }; var commandsList = []; var scriptTerminal = null; var codeEditor = null; ...
"use strict"; var _interopRequireWildcard = function (obj) { return obj && obj.__esModule ? obj : { "default": obj }; }; var _interopRequire = function (obj) { return obj && obj.__esModule ? obj["default"] : obj; }; var _slicedToArray = function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iter...
/* KeeFox - Allows Firefox to communicate with KeePass (via the KeePassRPC KeePass plugin) Copyright 2015 <NAME> <<EMAIL>> This contains code related to the handling of submitted forms. It runs in a tab scope so has direct access to the DOM of the current site. Little bits of the code is based ...
'use strict'; var express = require('express'); var request = require('request'); var cheerio = require('cheerio'); var assert = require('assert'); var app = express(); var Q = require('q'); var stockObject = require('stockHistoricalData'); var parseCredentials = require('parseCredentials'); // Parse library var Pars...
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...
"use strict"; const elementWrapperCache = new WeakMap(); const wrapperSymbol = Symbol(); const Jel = function Jel(type, spec = {}) { spec = { ...spec }; if (type === undefined) throw new Error("Entity type is undefined"); const eventHandlers = {}; const triggerEvent = (name, data) => { if (eventHandlers[name])...
const { Language } = require("klasa"); /* For use in Klasa System - Margarine Style responses, msg is required but * will be mimiced so that speechHelper doesn't error out. */ const falseMsg = { //No client as each message use with this will use func-* guild: { settings: { prefix: "m~", //Use default global ...
/* Created by Freshek on 31.10.2017 */ function saveOptions(e) { e.preventDefault(); var elements = getElements(); chrome.storage.local.set(elements); } function downloadProfile(e) { e.preventDefault(); var elements = getElements(); download("profile.json", JSON.stringify(elements)); } function download(filen...
const layerIDs = []; const forecastGrid = new ForecastGrid( hikes, isMobile ); function resizeMap(map) { const root = document.documentElement; const switchBtnPosition = window.innerHeight - 110 root.style.setProperty( '--clusterMapHeight', window.innerHeight + "px" ); document.getEl...
import React, { useState, useEffect } from 'react' import { useLocation, useParams } from 'react-router-dom' import Twitch from '../styles/imgs/icons8-twitch-64.png' import axios from 'axios' import { connect } from 'react-redux' import { addAgent, deleteAgent, addYtlink, deleteYtlink, addCreator, deleteCreator, addOth...
// 領域全体の情報 class RegionInfo { constructor(canvasWidth, canvasHeight) { // キャンバスのサイズ this.canvasWidth = 0; this.canvasHeight = 0; // 領域を構成するパス this.pathSegments = null; // 塗りつぶしの基準となるエッジ情報(一次元目の要素数はcanvasHeightと一致、二次元目は可変) this.edgeInfos = null; ...
/** * script runner work queue * Script is run by a worker thread in a separate child_process. * * Copyright (C) 2017-2018 <NAME> * Licensed under the Apache License, Version 2.0 * * 2017-03-28 - AR. * 2017-10-23 - rewrite. */ 'use strict'; if (process.env.NODE_QWORKER) { // qworker mode, start the work...
// This file is required by the index.html file and will // be executed in the renderer process for that window. // All of the Node.js APIs are available in this process. var THREE = require('three'); var STLLoader = require('three-stl-loader')(THREE) var OrbitControls = require('three-orbit-controls')(THREE) var Mesh...
var media_browser_called = false; var media_browser_url = site_url + 'media/'; var media_browser_path = '/'; var media_browser_view_type = 'list'; var media_browser_popup_ = 'single'; var media_browser_frame_item; var media_browser_frame_choose = 'single'; $(document).ready(function () { mediaBrowserFrame(); }); ...
var path = require('path'), fs = require('fs'), et = require('elementtree'), n = require('ncallbacks'), action_stack = require('./util/action-stack'), shell = require('shelljs'), semver = require('semver'), config_changes = require('./util/config-changes'), xml_helpers = require('...
"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(gene...
/**! * LibreMoney Peer 0.2 * Copyright (c) LibreMoney Team <<EMAIL>> * CC0 license */ if (typeof module !== "undefined") { //BlockchainProcessor //Constants //Convert //Logger //Peers } var defaultPort = 1400; function Peer(peerAddress, announcedAddress, services) { /*host, port*/ if (typeof peerAddress ...
// a 32x24 block map var map = [ [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1], [1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1], [1,0,0,3,3,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1], [1,0,0,3,0,3,0,0,1,1,1,2,1,1,1,1,1,2,1,1,1,2,1,0,0,0,0,0,0,0,0,1], [1,0,0,3...
var sigGen1 = [ {"x": 2.02, "y": 10.98, "room": "FT236", "rssi": [-72, -72, -74, -69, -69, -74, -74, -74, -74, -75, -75, -75, -75, -74, -74, -75, -74, -74, -71, -74], "mean": -73.4, "variance": 3.24}, {"x": 2.17, "y": 4.98, "room": "FT222", "rssi": [-80, -80, -80, -80, -81, -81, -81, -81, -83, -81, -81, -82, -8...
/** * Task * * @module :: Model * @description :: Model represents single task on taskboard. Tasks are attached to specified user story, phase, * type and user. * @docs :: http://sailsjs.org/#!documentation/models */ "use strict"; var async = require("async"); var moment = requir...
const question = document.querySelector('#question'); const choices = Array.from(document.querySelectorAll('.choice-text')); const progressText = document.querySelector('#progressText'); const scoreText = document.querySelector('#score'); const progressBarFull = document.querySelector('#progressBarFull'); let currentQ...
//var DataSetManagement=(function(){ // var Data={ // inc :[], // exp:[], // TIncomes:0, // TExpenses:0, // Budget:0, // TEPercentage:-1 // } // var addDataItem=function(id,desc,val){ // this.id=id; // this.desc=desc; // this.val=val; // } // ...
const initialInnerWidth = innerWidth; const refreshOnResize = () => { if(innerWidth !== initialInnerWidth) { window.history.go(0) } }; window.addEventListener("resize", refreshOnResize); const combinations = [{0: ["Köpek", "Köpek", "Köpek", "Köpek"], 1: ["Kedi", "Köpek", "Köpek",...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.calc_relative_risk = exports.calc_default_multiplicative_risks = exports.ethnicity2study = exports.list_ethnicities = exports.pos_in_range = exports.place_in_array = exports.risks_from_study = exports.combined_risk = exports.familial_r...
/*global declare, it, describe, beforeEach, afterEach,System,xit*/ import { expect } from "mocha-es6"; import { promise } from "lively.lang"; import { pt, Color } from "lively.graphics"; import { morph, World, show } from "../index.js"; import { createDOMEnvironment } from "../rendering/dom-helper.js"; import { Morphic...
import { LitElement, html, css, svg } from "../web_modules/lit-element.js"; import "../web_modules/@material/mwc-icon.js"; import "../web_modules/@material/mwc-icon-button.js"; import "../web_modules/@material/mwc-button.js"; import "../web_modules/@material/mwc-dialog.js"; import "../web_modules/@material/mwc-snackba...
import React, { PureComponent } from "react"; import { connect } from "dva"; import { Form, Input, DatePicker, Select, Button, Card, Modal, Radio, Cascader, Upload, Icon } from "antd"; import moment from "moment"; import { Map, Marker } from "react-amap"; import PageHeaderLayout from "../../layout...
var $ = require('jquery'); var Web3 = require('web3'); var THREE = require('three'); var truffle_contract = require('truffle-contract'); var ROSLIB = require('roslib'); //var triggerTask = require('./deployTask.js'); var contracts = {}; var myToken = null; const nullAddress = "0x000000000000000000000000000000000000000...
import React, {Component} from 'react'; import {Title,Share,TextInput,Alert,BackHandler,Text,View,Image,StyleSheet,KeyboardAvoidingView,ScrollView,TouchableOpacity,TouchableHighlight,AsyncStorage,Dimensions} from 'react-native'; import { LinearGradient } from 'expo'; import jwt_decode from 'jwt-decode'; import { delete...
/*** EXTENSION TO THE SVG-RENDERER TO ENABLE 3D SHAPES ***/ ////// HELPER METHODS ////// var dFactor = (4 * (Math.sqrt(2) - 1) / 3) / (PI / 2); function defined(obj) { return obj !== undefined && obj !== null; } //Shoelace algorithm -- http://en.wikipedia.org/wiki/Shoelace_formula function shapeArea(vertexes) { ...
define(['xml'], function(xml){ var file_input, file_form; var flag = true,f_flag = true; //绑定drop事件(drop 不支持jq的bind和on ) $.fn.listen = function (type, fn) { return this.each(function () { $(this)[0].addEventListener(type, function (e) { if(!fn.call($(this),e)){ e.stopPropagation(); ...
'use strict'; var _interopRequireDefault = require('@babel/runtime/helpers/interopRequireDefault'); var _typeof = require('@babel/runtime/helpers/typeof'); Object.defineProperty(exports, '__esModule', { value: true }); exports['default'] = MTableBodyRow; var _toConsumableArray2 = _interopRequireDefault( require...
/* suyat.js Translator for Philippine indigenous scripts (aka "suyat") including: * Baybayin (Tagalog) * Buhid (Mindoro) * Hanunoo-Mangyan (Mindoro) * Tagbanwa (Palawan) Supports batch (process a text file) and live (as you type) translation. More info on https://github.com/benbon...
'use strict' import dfpUnitId from './dfpUnit.js' export const MARKETING_CATGORY_ID = '57fca2f5c9b7a70e004e6df9' export const SECTION_MAP = { // news '57e1e0e5ee85930e00cad4e9': { 'sectionName': 'news', 'bgcolor': '#30bac8', 'latestNewsOrder': 1 }, // entertainment '57e1e11cee85930e00cad4ea': { 'sectionName': ...
// Local imports import { firebase, firestore, } from 'helpers/firebase'; import * as twitch from 'helpers/twitch' import {UnauthorizedError} from 'helpers/twitch'; import {HTTPError} from "got"; let http = require('http'); let currentlyModifying = {}; let listeningRewards = {}; // Wrap it all in an `async` IIFE s...
const Psc = require("pocketsphinx-continuous"); const fs = require("fs"); const exec = require("child_process").exec; const lmtool = require("lmtool"); const bytes = require("./Bytes.js"); const NodeHelper = require("node_helper"); // import for new function of checkCommands() function readTextFile(file, callback) { ...
import { Control, DomUtil, DomEvent, Util } from '@/core' import { toPng as DomToPng } from 'dom-to-image' import fileSaver from 'file-saver' const OUTPUT_MODE = { DOWNLOAD: 'download', PRINT: 'print', EXPORT: 'export' } const SIZE_MODE = { CURRENT_SIZE: 'CurrentSize', A4_LANDSCAPE: 'A4Landscape', A4_POR...
import React, { Component } from 'react'; import { connect } from 'dva'; import { Input, Tag, Divider, Tooltip, Avatar } from 'antd'; import { formatMessage, FormattedMessage } from 'umi/locale'; import router from 'umi/router'; import cs from 'classnames'; import { sendM } from "@/utils/instructions"; import Modal fro...
var express = require('express'); var app = express(); var http = require('http').createServer(app); var io = require('socket.io').listen(http); player = 0;//Player count http.listen(8080);//Port gameEnd = false;//Game end or not io.set('log level', 1);//Off socket.io logs // Functions //Function f(getRandom) gatti...
// OrbitUnlimitedControls, a camera controller for THREE.js that addresses some limitations of // some other, widely used controllers: // https://threejs.org/docs/#examples/en/controls/OrbitControls // https://threejs.org/docs/#examples/en/controls/TrackballControls // // For looking around a scene, OrbitControls is a ...
// Enter your account cookies below. // Or comment out those, then add them into CloudFlare Environment Variables. const BDUSS = '' const STOKEN = '' // Keep default for now. const USER_AGENT = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.514.1919.810 Safari/537.36' con...
var paymentHtml = ` <div id="payment" class="page-container"> <h6>Select Node:</h6> <div class="form-group" id="selectNodeRadio"></div> <h6 class="card-title">Invoice:</h6> <textarea type="text" class="form-control" id="invoice" rows="5" tabindex="8"></textarea> <div class="form-control mt-4 pay-d...
var smjq = jQuery; var _typei = 0; var weichuncai_text = ''; smjq(document).ready(function(){ var getwidth = getCookie("historywidth"); var getheight = getCookie("historyheight"); if(getwidth != null && getheight != null){ var width = getwidth; var height = getheight; }else{ var width = document.docume...
// lr.js function set_is_equal(setA, setB){ if((Object.keys(setA)).length !== (Object.keys(setB)).length) return false; for(var k of Object.keys(setA)){ if(k in setB){ // pass }else{ return false; } } return true; } function set_union(setA, setB){ va...
'use strict'; /*! docs.js - v0.1.1 * http://admindesigns.com/ * Copyright (c) 2015 <NAME>;*/ /* Core Documentation functions required for * most of the themes vital functionality */ var Docs = function(options) { // Variables var Body = $('body'); // Form related Functions var runCore= function(optio...
import { scriptLoad, isBrowser, isWorker, global, cjsRequireRegEx, addToError, loadNodeModule, warn, CONFIG, METADATA, emptyModule, protectedCreateNamespace, resolvedPromise, preloadScript, checkInstantiateWasm } from './common.js'; import { evaluate } from './evaluate.js'; import fetch from './fetch.js'; import { ...
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ /* LocationId encoding/decoding and associated functions (c) <NAME> 2019 / MIT Licence */ /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ "use strict"; const https...
import path from 'path'; import nconf from 'nconf'; import pkg from '../package.json'; const ENV = process.env.NODE_ENV || 'production'; nconf.argv().env(); nconf.file('default', path.join('config', path.sep, `${ENV}.json`)); nconf.set('base_dir', __dirname); nconf.defaults({ server: { port: 3002, api_url: 'http...
"use strict"; var class2type = require("../var/class2type"); var getProto = require("../var/getPrototypeOf"); var hasOwn = require("../var/hasOwnPrototype"); var array = require("../var/array"); var push = require("../var/push"); var indexOf = require("../var/indexOf"); var fnToString = require("../var/fnToString"); va...
var Board = require("./board"); var EVS = require("./evshield"); var within = require("./mixins/within"); var Fn = require("./fn"); var Emitter = require("events").EventEmitter; var util = require("util"); var priv = new Map(); // var int16 = Fn.int16; var uint16 = Fn.uint16; var toFixed = Fn.toFixed; var Controllers ...
var irc = (function(socket, context) { var i = '', o = [], nickname = context.me.name; function raw(cmd) { socket.write(cmd.replace(/[\r\n]/g, ' ') .replace(/ +/g,' ') .substr(0,510) + '\r\n'); } function msg(destination, message) { raw(`PRIVMSG ${destination} :${message}`);...
var exports = module.exports = {}; var yallist = require('yallist'); var MO = {}; MO.drawsAccVectors = false; MO.traceCt = 300; // the number of traces to save, 300 should be the default MO.agarLike = false; MO.dt = 1; // time interval for each frame MO.toInfinity = false; // if true, then things go off into infinity...
var map = null; var markers = []; var circles = []; var restaurants = []; var places = []; var directionsDisplay; var directionsService; var currentIndex = 0; var cebu = { lat: 10.3157, lng: 123.8854 }; var myCurrentLocation; function initMap() { directionsDisplay = new google.maps.DirectionsRenderer; ...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
var bouncerActive = false; var thirdParties = {}; var mainHosts = {}; var mainUrls = {}; var helperAnchor = document.createElement( 'a' ); var active = false; var blockHosts = new Array(); var whiteList = new Array(); var detected_spof = {}; var blocked = {}; var badges = {}; var tab_icons = {}; var tab_text = {}; va...
// Copyright 2019 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
$(document).ready(function(){ listar(); registrar_servicio(); actualizar_servicio(); decimalesInput('.precio'); orderSelectAlpha("#tipo_serv_registrar"); orderSelectAlpha("#categorias_registrar"); orderSelectAlpha("#tipo_registrar"); }); /* ----------------------------------------------------------------------...
var isSupportTouch = "ontouchend" in document ? true : false; var processbar1=$("#processbar1"); var processbar2=$("#processbar2"); var tabs = $('div[data-tab]'); var keyActionTimer = null; var curKeyState = 0; var curKeyCode = ""; var curPath = ""; var selectedPaths = []; var selectedPathId = 0; var fileOper...
import React from 'react' import PropTypes from 'prop-types' import XDate from 'xdate' import { Typography, Button, Grid, Divider, List, ListItem, ListItemText, Chip, Paper, ListItemAvatar, Avatar } from '@krowdy-ui/core' import BusinessIcon from '@material-ui/icons/Business' import { withStyles } from '@krowdy-ui/styl...
/** * @license Apache-2.0 * Copyright 2018 <NAME> * * 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...
"use strict"; const moment = require("moment"); const _ = require("lodash"); const async = require("async"); const BITSTAMP = require('bitstamp'); const util = require("./util"); //custom functions function Bitstamp (options) { const self = this; let bitstampPublic, bitstampPrivate; self["options"] = op...
const fs = require('fs') const fetch = require('node-fetch'); const util = require('util'); const cheerio = require('cheerio') ; const ytSearch = require('yt-search'); const googleSearch = require('google-it') const FileType = require('file-type'); const spin = require('spinnies'); const axios = require('axios'); const...
//import Vue from 'vue'; import Store from './store'; // import Cookier from '~script/cookier'; import LocalStore from './localStore'; import Ajax from '~script/http'; import Api from '~script/api'; import Global from '~script/global'; import Dialog from '~components/compDialog/index.js'; import dater from "~script/da...
function getRandomIntInclusive(min, max) { min = Math.ceil(min); max = Math.floor(max); return Math.floor(Math.random() * (max - min + 1)) + min; //The maximum is inclusive and the minimum is inclusive } function getRandomNumberBetween(min, max) { return Math.floor(Math.random()*(max-min+1)+min); } /...
let options = { name: 'breadthfirst', fit: true, // whether to fit the viewport to the graph directed: true, // whether the tree is directed downwards (or edges can point in any direction if false) padding: 30, // padding on fit circle: false, // put depths in concentric circles if true, put depths top down...
import React from "react"; import logo from "./logo.svg"; import "./App.css"; import { makeStyles, useTheme } from "@material-ui/core/styles"; import { TextField, Grid, Paper, Button, Typography, Table, TableBody, TableHead, TableRow, TableCell, CircularProgress, Modal, IconButton, Snackbar,...
// @ts-check import '@agoric/zoe/exported.js'; import { E } from '@agoric/eventual-send'; import { assertProposalShape, getAmountOut, makeRatioFromAmounts, ceilMultiplyBy, floorMultiplyBy, floorDivideBy, } from '@agoric/zoe/src/contractSupport/index.js'; import { makeNotifierKit, observeNotifier } from '@a...
import * as maptalks from 'maptalks' import rbush from 'geojson-rbush' import isEqual from 'lodash.isequal' import differenceWith from 'lodash.differencewith' import findIndex from 'lodash.findindex' import includes from 'lodash.includes' import flattenDeep from 'lodash.flattendeep' const options = { mode: 'auto',...
import React, { useState, useEffect } from 'react'; import { useDispatch, useSelector } from 'react-redux'; import axios from 'axios'; import { Formik } from 'formik'; import { Modal, Button, Form, Col, InputGroup } from 'react-bootstrap'; import yup from 'yup'; import { props } from 'bluebird'; import FileUpload from ...
"use strict"; exports.__esModule = true; var electron_1 = require("electron"); var path = require("path"); var url = require("url"); var os = require("os"); var log = require('electron-log'); var autoUpdater = require('electron-updater').autoUpdater; var fs = require('fs'); var readChunk = require('read-chunk'...
import { generateNamesAndIds } from 'api/templates/utils'; import ID from 'shared/uniqueID'; import date from 'api/utils/date.js'; import relationships from 'api/relationships/relationships'; import createError from 'api/utils/Error'; import search from 'api/search/search'; import templates from 'api/templates/template...
var width = 640; var height = 480; var padding = 40; // the vertical axis is a time scale that runs from 00:00 - 23:59 // the horizontal axis is a time scale that runs from the 2016-01-01 to 2016-12-31 var y = d3.time.scale().domain([new Date(2016, 0, 1), new Date(2016, 0, 1, 23, 59)]).range([0, height]); var...
import React, { Component } from 'react'; import Link from 'gatsby-link'; import ReactPlayer from 'react-player'; import './music.css'; import '../assets/range.css'; import '../assets/fontawesome-all.min.js'; import luc2 from '../assets/luc2.png'; import mll from '../assets/mll.png'; import trap from '../assets/trapn...
var pagination_above; var pagination_bellow; var package_size = 10; var selected_page = 1; var staff_added = false; var added_staff_id; $(document).ready(function () { toastr.options = { "closeButton": true, "positionClass": "toast-top-center", "timeOut": "2000" }; pagination_a...
require("dotenv").config(); var fs = require('fs'); const Discord = require('discord.js'); const client = new Discord.Client(); const axios = require('axios'); const date = new Date(); const queue = new Map(); //const ffmpeg = require("ffmpeg"); const channelTwoID = process.env.GENERAL_TWOID; const channelOneID = proc...
import ds from '@wq/store'; import deepcopy from 'deepcopy'; import { Model as ORMModel, ORM, attr, fk, ForeignKey } from 'redux-orm/src/index.js'; function model(config) { return new Model(config); } const _orms = {}; const CREATE = 'CREATE', UPDATE = 'UPDATE', SUCCESS = 'SUCCESS', ...
var { cardsColors } = require("mtga") var { Router } = require('electron-routes'); var path = require("path") var Datastore = require('nedb') Datastore.prototype.save = function(doc, callback) { let query = {_id: doc._id} this.update(query, doc, {upsert: true}, (err, replaced) => { if(callback) { callba...
"use strict";var _interopRequireDefault = require("@babel/runtime-corejs2/helpers/interopRequireDefault");var _assign = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/object/assign"));var _regenerator = _interopRequireDefault(require("@babel/runtime-corejs2/regenerator"));var _asyncToGenerator2 = _inter...
/** * Creates extruded geometry from a path shape. * * parameters = { * * curveSegments: <int>, // number of points on the curves * steps: <int>, // number of points for z-side extrusions / used for subdividing segments of extrude spline too * depth: <float>, // Depth to extrude the shape * * bevelEnabled:...
/** * @version 0.43 * @author yura */ import React from 'react' import { connect } from 'react-redux' import { Platform, RefreshControl, Text, TouchableOpacity, View, FlatList, } from 'react-native' import LottieView from 'lottie-react-native' import GradientView from '@app/components/elem...
import React, { useState } from "react"; import "./App.css"; import { create } from 'ipfs-http-client' import Web3 from 'web3' import {SIMP_STORAGE_ADDRESS, SIMP_STORAGE_ABI} from './config.js' const client = create('https://ipfs.infura.io:5001/api/v0') class Tabs extends React.Component { constructor(pr...
/* ** custom stores */ var serial var portName = '/dev/cu.usbmodem144201' var store = { currentState: 'sleeping', prevSoundFile: '', counter: 0, lastTime: 0, uploadLastTime: 0, showSequence: false, seqLastTime: 0, //for blinking deactivating sequence seqLit: false } var flags = { startSession: false...
const proxyquire = require( 'proxyquire' ); const uuid = require( 'uuid' ); const faker = require( 'faker' ); const modulePath = './find-a-barrier'; const OPEN = 2; const RESOLVED = 4; const HIBERNATED = 5; describe( 'Find a barrier view model', () => { let metadata; let viewModel; let mockSector; let mockCountr...
// Copyright (C) 2011 - Texas Instruments, <NAME> // // var fs = require('fs'); var child_process = require('child_process'); var winston = require('winston'); var os = require('os'); var hw_oldkernel = require('./hw_oldkernel'); var hw_capemgr = require('./hw_capemgr'); var hw_universal = require('./hw_universal'); va...
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
import { Ship, BattleShips, Field } from "../modules/classes.js"; //DOM Selectors const playerBoard = document.querySelector(".playerBoard"); const shipsBoard = document.querySelector(".shipsBoard"); const start = document.getElementById("start"); const randomBtn = document.getElementById("randomizer"); const fireBtn ...
// Copyright 2014 Google Inc. All rights reserved // // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file or at // https://developers.google.com/open-source/licenses/bsd /** * @fileoverview Implements a low-level gnubby driver based on chrome.usb. */ 'use strict'; /...
/*Global vars declaration*/ var startTimestamp = new Date("October 13, 2014 11:13:00"); var endTimestamp = new Date("October 13, 2014 11:13:00"); var interval=0, intervalStr=''; //set deafult to 30 mins var format = d3.time.format("%Y-%m-%d %X"); function setDivision(inter,interStr){ interval=inter; ...
/* * PEG <-> PEGJS CONVERTER * * USAGE: $ nodejs pegjs_conv FILEPATH * Example: $ nodejs pegjs_conv camxes.js.peg * * • If the input file name ends with ".js.peg" or ".pegjs", it is considered to * be of the PEGJS format (i.e. "=" instead of the standard PEG "<-" operator, * JS-style comments, and inline Java...
const { ipcRenderer: ipc, remote, Menu, MenuItem, BrowserWindow, ipcRenderer } = require('electron'); const fs = require('fs'); const path = require('path'); const { fork } = require("child_process") const uuidv1 = require('uuid/v1'); const { dialog } = require('electron').remote const slash = require('slash') const os...
const childProcess = require('child_process'); const execFile = childProcess.execFile; const spawn = childProcess.spawn; const path = require('path'); const svcRequest = require('./svc_request.js'); const uiUpdater = require('./ui_updater.js'); const Store = require('electron-store'); const settings = new Store({name: ...
/** * SAHARA Web Interface * * User interface to Sahara Remote Laboratory system. * * @license See LICENSE in the top level directory for complete license terms. * * Copyright (c) 2010, University of Technology, Sydney * All rights reserved. * * Redistribution and use in source and binary forms, with or witho...
// Number of blocks in the past to look at var numLookBackBlocks; // First block considered searching for messages var startBlockNo; // Block number when a connection to a contact was made var connectBlockNo; // Logged in address var myaddress; // Address of connected contact var targetaddress; //...
var layout = require('dagre').layout; var d3; try { d3 = require('d3'); } catch (_) { d3 = window.d3; } module.exports = Renderer; function Renderer() { // Set up defaults... this._layout = layout(); this.drawNodes(defaultDrawNodes); this.drawEdgeLabels(defaultDrawEdgeLabels); this.drawEdgePaths(defaultDr...