text
stringlengths
5.97k
41.2k
'use strict'; // View model var qmcc = {}; qmcc.params = []; qmcc.modelTypes = [ "CTMC", "DTMC", "MA", "MDP", "PTA" ]; qmcc.originals = ko.observableArray(); qmcc.propertyTypes = [ "P", "Pb", "E", "Eb", "Ei", "S" ]; qmcc.models = ko.observableArray(); qmcc.filter = { name: ko.observable(""), type: ko.observable(undef...
import React, { useEffect } from "react"; import StokBarangHelper from "./modules/StokBarangHelper"; import CurrencyFormat from "react-currency-format"; import TextField from "@material-ui/core/TextField"; import Autocomplete from "@material-ui/lab/Autocomplete"; import { FontAwesomeIcon } from "@fortawesome/react-font...
const _ = require('lodash'); const mongo = require('mongodb'); const fs = require('fs'); const argv = require('boring')(); const quote = require('shell-quote').quote; const Promise = require('bluebird'); module.exports = async function(options) { let self = {}; // apos objects by site _id const aposes = {}; /...
// start // 331 lines //Refactor 1 //526 lines //page speed -> 59 mobile //refactor2 class App { constructor(){ this.activeItems = []; this.maxItems = 7498; //todo this should be a function } screenSize(){ const width = $(window).width(); if( width >= 576.98 && width < ...
const strings = { "navbar": { "studentsArea": "Schülerbereich", "project": "Projekt", "news": "Neuigkeiten" }, "home": { "title": "Webseite der Schüler des Französisches Gymnasium Berlins", "soon": "Bientôt", "mySA": "Meinen Schülerbereich", "mySATomorrow": { "testDst": "Test ode...
var languageInfo = { "en": { "delete_file_question": "Do you really want to remove this file?", "delete_dialog_title": "Remove file" }, "fr": { "delete_file_question": "Voulez-vous vraiment enlever ce fichier?", "delete_dialog_title": "Enlever le fichier" } } // Set the ...
/*file chiron src/struct.js */ /** Provides the `pack`, `unpack`, and `calcSize` routines with most of the same format specifiers as Python. Also provides the functions `ord` and `chr` that are provided by Python as builtins but don't warrant inclusion in a JavaScript base library. .. table:: Fo...
const db = firebase.firestore(); const auth = firebase.auth(); const storage = firebase.storage(); // //////////////////////////////////////////// // UI let empStatusDrop = new Choices("#employmentStatus", { removeItemButton: true, maxItemCount: 100, searchResultLimit: 100, renderChoiceLimit: 100, }).disable(...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _react = _interopRequireDefault(require("react")); var _propTypes = _interopRequireDefault(require("prop-types")); var _LoginCardInput = _interopRequireDefault(require("./LoginCardInput")); var _helpers ...
//have list of me-generated news posts, and maybe let the AuthorBot say some shit too. //have a route for her to get a random session to parse. //make her all arrogant and bragging about how many sessions she's parsing. //why are AIs so awesome? //i'm on left, she's on right. var session_data = null; var simulationMode...
import React, { Component } from 'react'; import { TweetBody } from './components/tweet.js' import {PullToRefresh, PullDownContent, ReleaseContent, RefreshContent} from "react-js-pull-to-refresh"; import './App.css'; import firebase from '././Firebase.js' import { Nav, Navbar, Form, Button, FormControl, Jumbotron, Cont...
const Account = require('../schemas/account.schema'); const ActivityDefinition = require('../schemas/activitydefinition.schema'); const AdverseEvent = require('../schemas/adverseevent.schema'); const AllergyIntolerance = require('../schemas/allergyintolerance.schema'); const Appointment = require('../schemas/appointmen...
var locale = { firstDayOfWeek: 1, weekdays: { shorthand: ['Do', 'Lu', 'Ma', 'Mi', 'Ju', 'Vi', 'Sa'], longhand: ['Domingo', 'Lunes', 'Martes', 'Miércoles', 'Jueves', 'Viernes', 'Sábado'], }, months: { shorthand: ['Ene', 'Feb', 'Mar', 'Abr', 'May', 'Jun', 'Jul', 'Ago', 'Sep', 'Оct', 'Nov', 'Dic'], longhand: [...
"use strict"; let structure = null, tightBondCount = 0; let atomicMasses = {}; let xhr = new XMLHttpRequest(); xhr.open("GET", "../lib.json", true); xhr.addEventListener("load", () => { if (xhr.status === 200) { let lib = JSON.parse(xhr.responseText); atomicMasses = lib.atomicMasses; ...
'use strict' const version = 0.9 const versionURL = 'https://raw.githubusercontent.com/186c0/JSBox-Scripts/master/Pixiv/version' const updateURL = `jsbox://install?url=${encodeURI('https://raw.githubusercontent.com/186c0/JSBox-Scripts/master/Pixiv/Pixiv.js')}` const imgSearchURL = 'https://saucenao.com/search.php?db=99...
"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { desc = { enumerable: true...
import React, {PureComponent} from 'react'; import PropTypes from 'prop-types'; import {connect} from 'react-redux'; import {createSelector} from 'reselect'; import cs from 'classnames'; import Joyride from 'react-joyride'; import series from 'async/series'; import {cloneDeep} from 'lodash'; import userStorage from '.....
/** * Created by Sugar on 2020/5/26. */ const {invertTransform, transformPoint, loadImage} = require('./utils/misc') const PointClass = require('point.class') const ImageClass = require('./shapes/image.class') class CanvasClass { constructor(options) { let canvas = options.canvas let ctx = canvas ? canvas....
#!/usr/bin/env node 'use strict'; // this file makes it possible to create conversation viewer and candidate-recorder link pairs by combining information from a spreadsheet file, and an object template (below) // the csv file lists the election Race names, and links to the viewer and recorder for that race - if they e...
import React, { Component } from "react"; import Button from "@material-ui/core/Button"; import TextField from "@material-ui/core/TextField"; import Input from "@material-ui/core/Input"; import Grid from "@material-ui/core/Grid"; import GuiTheme from "../../app/gui-theme"; import { withStyles } from "@material-ui/style...
Blackprint.Engine = class Engine extends CustomEvent { constructor(){ super(); this.ifaceList = []; // IFace this.variables = {}; // { category => { name, value, type, childs:{ category } } } this.functions = {}; // { category => { name, variables, input, output, used: [], node, description, childs:{ category...
/** * Copyright (c) 2015-present, Zippy Technologies * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import cleanProps from '../../common/cleanProps'; imp...
/** @typedef {string | number} ImgPoint */ /** @typedef {'·'|'←'|'↖'|'↑'|'↗'|'→'|'↘'|'↓'|'↙'} AniPoint */ /** @typedef {{from:number, to:number, point?:AniPoint, width?: ImgPoint, height?: ImgPoint, x?: ImgPoint, y?: ImgPoint}} Ani */ /** @typedef {{type: 'animation', name:string, outname?:string, filename?: string, gr...
var connection = require('./database'); var socketIo = require('socket.io'); var http = require('http'); var server = http.createServer((req, res) => { var headers = {}; headers["Content-Type"] = "application/json"; headers["charset"] = "utf-8"; headers["Access-Control-Allow-Origin"] = "*"; headers...
var user = ""; var useruuid = ""; var user_voting = ""; var answer = ""; var question = ""; var savebtn ; var polls_data_first; var polls_is_candidate_first; var polls_data_last; var polls_is_candidate_last; var question_text = ""; var login_face = window.login_face; var voting_text = window.voting_text; var voting_tex...
/* * File : utility.js * Create : 2018-02-09 */ 'use strict'; Array.prototype.forEachAsync = Array.prototype.mapAsync = async function (fn) { return Promise.all(this.map(fn)); }; Array.prototype.filterAsync = async function (fn) { let a = await this.mapAsync(fn); return this.filter((x, i) => a[i]); }; glo...
export const Service14 = require('./service14.jpg'); export const Service15 = require('./service15.jpg'); export const Service16 = require('./service16.jpg'); export const Service17 = require('./service17.jpg'); export const Service18 = require('./service18.jpg'); export const Service19 = require('./service19.jpg'); ex...
import React, {PureComponent} from 'react'; import PropTypes from 'prop-types'; import { Text, View, Modal, Image, FlatList, Platform, StyleSheet, TouchableOpacity, I18nManager, TextInput, TouchableWithoutFeedback, } from 'react-native'; import {CheckBox} from 'react-native-elements'; import {Butt...
var getCookie = (cname) => { var name = cname + "="; var decodedCookie = decodeURIComponent(document.cookie); var ca = decodedCookie.split(';'); for(var i = 0; i <ca.length; i++) { var c = ca[i]; while (c.charAt(0) === ' ') { c = c.substring(1); } if (c.indexOf(name) === 0) { return c.substring(name.l...
/** @jsx React.DOM */ /** @jsx React.DOM */ var DynamicSearch = React.createClass({ // sets initial state getInitialState: function(){ return { searchString: '' }; }, // sets state, triggers render method handleChange: function(event){ // grab value form input box this.setState({searchStrin...
console.log('%cUo Poko game','color:#ff0000;font-family:Comic Sans MS;'); /* Table of Contents * Constants and settings * Actual physics objects * Functions * Lifecycle events * Rendering */ /* * Constants and settings */ let hiscore_global = 0; if( window.localStorage.getItem('uopokoScore') ){ hiscore...
import Arweave from 'arweave'; import { createContractFromTx, selectWeightedPstHolder, readContract, } from 'smartweave'; import { nanoid } from 'nanoid'; import Geohash from '@geonet/geohash'; import { and, or, equals } from 'arql-ops'; import React from 'react'; import { KeyfileLogin } from './KeyfileLogi...
const Observable = require("tns-core-modules/data/observable").Observable; const observableModule = require("tns-core-modules/data/observable"); const app = require("tns-core-modules/application"); const ObservableArray = require("tns-core-modules/data/observable-array").ObservableArray; const dialogs = require("tns-co...
const TargetCanvas = "threeCanvas"; const threeCanvasHeight = 1024; const threeCanvasWidth = 1024 / 2; if (WEBGL.isWebGLAvailable() === false) { document.body.appendChild(WEBGL.getWebGLErrorMessage()); } var VAUTA = VAUTA || {}; (function (global) { //ファイルを読み込む //TODO:複数ファイルに対応する(テクスチャなど) VAUTA.hand...
// ugly hack var MAXDIST = 1e10; var EPS = 1e-10; var th = THREE; var parent, renderer, scene, camera, controls, pivot1, pivot2, pivot3, stats, gui; var line,sphere,refdir,refplane,orbit,parentbody; var matu = {type:'f', value:0 } var tubemat = new th.ShaderMaterial({ uniforms: { amplitude: matu ,color: {typ...
const express = require('express'); var router = express.Router(); const helpers = require(app_root + '/routes/helpers/helpers'); const C = require(app_root + '/public/constants'); const CFG = require(app_root + '/config/config'); const path = require('path'); const fs = require('fs-extra'); /* GET Portals page. */...
function enactDelta(delta) { if (Array.isArray(delta)) { for (let d of delta) { enactDelta(d); } } else { // console.log("enacting", delta.op) switch(delta.op) { case "propchange": { switch(delta.name) { case "pos": { ...
import PropTypes from 'prop-types'; import { createElement, PureComponent } from 'react'; import cx from 'classnames'; import escaper from 'escape-string-regexp'; import Input from 'boundless-input'; import extractChildProps from 'boundless-utils-object-intersection'; import omit from 'boundless-utils-omit-keys'; impo...
// helper - flag vars debugging = true; let loggedWith; let flagSavingtoDB; const amountSteps = 4; //steps the user has to do to select an appointment // DOM elements const pageContainerDOM = document.querySelector('.page-container'); const mainCardDOM = document.querySelector('.main-card'); const loadDOM = document.ge...
import { ActionButton, AssetDropdownMenuItem } from 'styles/Styles'; import { history } from 'redux/configureStore'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { Instruction, MyModal, Section, TextPopupTitle, } from 'modals/styles/Styles'; import { REGISTERING, updateAccount } fro...
const config = require('../cubeConfig'); const Helpers = require('./cubeWebRTCHelpers'); const SessionConnectionState = require('./cubeWebRTCConstants').SessionConnectionState const RTCPeerConnection = require('../cubeDependencies').RTCPeerConnection; const RTCSessionDescription = require('../cubeDependencies').RTCSess...
import React from 'react'; import PropTypes from 'prop-types'; import style from './MultiSelect.css'; import { formatValue , bind , getSelectedValue } from '../common'; import { deepEqualObject } from '../../../utils/objectUtils'; import validator from '../../../utils/validator'; import Popup from '../Popup'; import ...
/** * Copyright 2011 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.0 * * Unless required by applicable law or agreed t...
const LOCAL_STORAGE_KEY = "wenyang-ide"; const TITLE = " - 文言 Wenyan Online IDE"; const DEFAULT_STATE = () => ({ config: { romanizeIdentifiers: "none", dark: false, enablePackages: true, outputHanzi: true, hideImported: true }, files: {}, wyg: { packages: [], last_updated: -Infinity ...
const async = require('async'); const sql_pojo = require('../consts/sql_pojo'), sql_fields = sql_pojo.fields, sql_tables = sql_pojo.tables; const table_def = require('../consts/table_def'); const keyTypeDef = require('../consts/keyTypeDef'), AccountDefault = keyTypeDef.AccountDef, AccountOtherDef = keyT...
'use strict'; if (localStorage.busMallCatalogue){ localStorage.getItem('busMallCatalogue'); JSON.parse(localStorage.busMallCatalogue); console.log('parsed data ', JSON.parse(localStorage.busMallCatalogue)); } // else{ // localStorage.busMallCatalogue = JSON.stringify(fullCatalogue); // console.log('stringif...
// ============================================================================================ // --- BREAKOUT GARDENER :: MODULES :: VCNL4010 --- // (c) 2018-2019 <NAME> - breakouts*xoblite.net - http://breakouts.xoblite.net/ // ======================================================================================...
import { Receipt } from 'poker-helper'; import ethUtil from 'ethereumjs-util'; import BigNumber from 'bignumber.js'; var Token = artifacts.require('../contracts/ERC223BasicToken.sol'); var Table = artifacts.require('../contracts/Table.sol'); const assertJump = require('./helpers/assertJump'); const NTZ_DECIMALS = new B...
var TUNNEL_SECTION_LENGTH = 3 var wantedBlocks = ["emerald_ore", "diamond_ore", "gold_ore", "iron_ore", "coal_ore", "redstone_ore", "lapis_ore"]; /** * Get the name of the direction * @param dx x direction; positive is east; negative is west * @param dz z direction; positive is south; negative is north * @returns ...
/**数据项交互控件 * 主要功能: * 数据绑定 * 控件加载 * 权限控制 * 依赖: * mpRuntimeLibrary.js * @module mpCore * @module mpDataNodes * @module mpCodeEditor * * 标签属性:{ * id: mpWidget, * widgetType: 'data'|'code', // 数据项(默认)|代码项 * mpObject: 数据项的引用 * } */ import { MPPrototype, MP...
const { callbackify } = require('util'); const path = require('path'); const { writeFileSync, readFileSync } = require('fs'); const EventEmitter = require('events'); const gulp = require('gulp'); const watch = require('gulp-watch'); const source = require('vinyl-source-stream'); const buffer = require('vinyl-buffer'); ...
/* * * This is an adaptation of https://github.com/phoboslab/WebGLImageFilter * - Removed color filters and other parts not needed * - Partially updated syntax to ES6 * - Updated code to run convolutions of arbitrary kernel size * - A few speed improvements * - Added Scale 3X filter * * -----------------------...
/* Patient Offsite Signup Page ================================================================================ */ /* Imports ------------------------------------------------------------ */ // libs import React from 'react'; import Modal from 'react-bootstrap/lib/Modal'; import Popover from 'react-bootstrap/lib/Popove...
// clear previous values function clearFields() { $('#title').val(''); $('#id').val(''); $('#allDay').prop('checked', false); } dirname = function(path) { return path.replace(/\\/g, '/').replace(/\/[^\/]*\/?$/, ''); } // build the full path up to the calendar resource // granularity: year/month/day/ f...
const r=(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];retu...
'use strict'; /* global process */ /* global __dirname */ /******************************************************************************* * Copyright (c) 2015 IBM Corp. * * All rights reserved. * * Contributors: * <NAME> - Initial implementation ***************************************************************...
"use strict"; // Variables var i = 0; var jump = 0; var foodSpawn = 0; var fruitSpawn = randomIntFromInterval(130, 20); // Range from max - min, max/min aren't included; var enemySpawn = 30; var powerupSpawn = randomIntFromInterval(180, 60); var invincible = 0; var timeLeft = 5; var playerPos = 0; // Po...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.styles = undefined; var _defineProperty2 = require('babel-runtime/helpers/defineProperty'); var _defineProperty3 = _interopRequireDefault(_defineProperty2); var _keys = require('babel-runtime/core-js/object/keys'); var _keys2 = ...
"use strict"; // The MIT License (MIT) // // Copyright (c) 2022 Firebase // // 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 // ...
/* * Copyright 2005 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.0 * * Unless required by applicable law or agreed to ...
import React from "react"; import Link from "gatsby-link"; import Header from "../components/Header"; import IPhone from "../img/iphoneFilipinas.png" import FaLongArrowDown from 'react-icons/lib/fa/long-arrow-down' import FaShield from 'react-icons/lib/fa/shield' import FaDollar from 'react-icons/lib/fa/dollar' import ...
/** * Data API. * * Site Kit by Google, 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 req...
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnPrope...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const vscode = require("vscode"); const path = require("path"); const util_1 = require("./util"); const getHtml_1 = require("./getHtml"); const instanceManager_1 = require("./instanceManager"); const configurationHelper_1 = require("./configur...
var fs = require("file-system"); var NSXMLParser = require("mio-foundation-node").NSXMLParser; //GLOBAL VARIABLES var currentFileName = null; var currentFileContent = null; var elementsStack = []; var currentElement = null; var outletsStack = []; function parseDocument(xmlString) { console.log('Entering Document');...
// Load custom shapes into CanvasRenderingContext2D import './shapes'; import Emitter from 'component-emitter'; import * as util from 'vis-util'; import dotparser from './dotparser'; import * as gephiParser from './gephiParser'; import Activator from '../shared/Activator'; import locales from './locales'; import Imag...
function selectByLimit(){ $("#page").val("1"); queryList(); } function queryList(n) { getScenicName(); $("#list").html(""); var page = $("#page").val(); var sceneryName = $("#sceneryName").val(); var limit = $("#limit").val(); $ .ajax({ url : "../scenerySpot/scenery/list", datatype : "json", he...
var acceso_desbloqueado=true; //EJEMPLO JSON /* var emple={"employees":[ {"firstName":"John", "lastName":"Doe"}, {"firstName":"Anna", "lastName":"Smith"}, {"firstName":"Peter", "lastName":"Jones"} ]}; */ //HASTA QUE NO SE CARGA EL DOCUMENTO NO CARGA ESTAS FUNCIONES $(docu...
/* * Copyright 2017-2020 EPAM Systems, Inc. (https://www.epam.com/) * * 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 requ...
function fn_edita_usuario(tipo_us,usuario_estado){ var parametros = {hacer : 'actualizar_us', correo : $('#edit_correo_usuario').val(), nombre_usuario : $('#input_edit_usuario').val().toUpperCase(), f_vencimiento: $('#f_vencimiento_edit').val(), usuario_estado: usuario_estado, tipo_us: tipo_us }; // ale...
const p = require('path') const { EventEmitter } = require('events') const mkdirp = require('mkdirp') const sub = require('subleveldown') const grpc = require('@grpc/grpc-js') const bjson = require('buffer-json-encoding') const processTop = require('process-top') const varint = require('varint') const Corestore = requ...
var host = window.document.location.host.replace(/:.*/, ''); var autoScroll = 0; var client = new Colyseus.Client(location.protocol.replace("http", "ws") + "//" + host + (location.port ? ':'+location.port : '')); client.joinOrCreate("chat").then(room => { room.onStateChange.once(function(...
import React from "react"; import ReactMarkdown from "react-markdown"; import rehypeRaw from "rehype-raw"; import { withStyles } from "@material-ui/core"; import gfm from "remark-gfm"; import FeaturePropFilters from "./FeaturePropsFilters"; import { Divider, Link, Table, TableBody, TableCell, TableContainer...
import { config, simDB} from "../interact.js"; import { isInt, wrap_fast } from "../core/util.js"; import { WaveTable } from "./WaveTable.js"; /* index definitions for render data */ const WAVEARRAY = 0; const IDX = 1; export class Wave { constructor(waveTable) { /** @type {WaveTable} */ this.waveTable = w...
import { observable, action, toJS, //intercept, autorun } from 'mobx'; import _ from 'underscore'; import { getGene, getProtein } from '../utils/gene_protein'; import { queryReferenceSequence } from '../utils/reference'; import { getLocationByNameAndLevel } from '../utils/location'; import { COLOR_MODES, ...
function __processArg(obj, key) { var arg = null; if (obj) { arg = obj[key] || null; delete obj[key]; } return arg; } function Controller() { function fetchingData(type) { eval("var " + type + " = Alloy.Collections.instance(type);"); eval(type + ".fetch();"); ...
function ParticleSlider(a) { var b = this; b.sliderId = "particle-slider", b.color = "#fff", b.hoverColor = "#88f", b.width = 0, b.height = 0, b.ptlGap = 0, b.ptlSize = 1, b.slideDelay = 10, b.arrowPadding = 10, b.showArrowControls = !0, b.onNextSlide = null, b.onWidt...
/** * DataFormsJS <image-gallery> Web Component * * This class provides a simple image gallery/viewer that * can be used by an app to display a list of thumbnail images * with the following features: * - Shows Overlay with large Image for Thumbnails. * - Minimal UI so the focus is on the Content. * - E...
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) { if (kind === "m") throw new TypeError("Private method is not writable"); if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); if (typeof state === "func...
const { EventEmitter } = require('events'); const kafka = require('node-rdkafka'); const assert = require('assert'); const async = require('async'); const joi = require('joi'); const Logger = require('werelogs').Logger; const zookeeper = require('node-zookeeper-client'); const zookeeperHelper = require('./clients/zook...
import PartyBot from 'partybot-http-client'; // Bots http client import React, { PropTypes, Component } from 'react'; import cssModules from 'react-css-modules'; import styles from './index.module.scss'; import Heading from 'grommet/components/Heading'; import Box from 'grommet/components/Box'; import Footer from 'grom...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _extends2 = require('babel-runtime/helpers/extends'); var _extends3 = _interopRequireDefault(_extends2); var _objectWithoutProperties2 = require('babel-runtime/helpers/objectWithoutProperties'); var _objectWithoutProperties3 = _inte...
'use strict'; const express = require('express'); const router = express.Router(); const winston = require('winston'); const async = require('async'); const request = require('request'); const axios = require('axios'); const fs = require('fs'); const config = require('../config'); const logger = winston.createLogger(...
import md5 from 'md5'; import dayjs from 'dayjs'; import relativeTime from 'dayjs/plugin/relativeTime'; import { h } from 'snabbdom/build/package/h'; import { init } from 'snabbdom/build/package/init'; import { propsModule } from 'snabbdom/build/package/modules/props'; import { styleModule } from 'snabbdom/build/packag...
// variables var headerHeight = 0, scroll = 0, counter = 1, ctx = pie.getContext('2d'), isChartRendered = false; // generate date var now = new Date(); var month = now.getMonth() + 1; var currentDate = now.getDate(); var year = now.getFullYear(); var todaysDate ...
/* LICENSE _This file is Copyright 2018 by the Image Processing and Analysis Group (BioImage Suite Team). Dept. of Radiology & Biomedical Imaging, Yale School of Medicine._ BioImage Suite Web is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this software except in com...
// Copyright (c) 2019 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved. // SPDX-License-Identifier: Apache-2.0 var jQuery = (typeof (window) != 'undefined') ? window.jQuery : require('jquery'); // Sphinx theme nav state function ThemeNav() { var nav = { navBar: null, wi...
'use strict'; // libraries const bs58 = require('bs58'); const AbortController = require('abort-controller'); // modules const dataUtil = require('./data-util.js'); // constants // variables /* eslint-disable no-unused-vars */ let config; let loggingUtil; /* eslint-enable no-unused-vars */ // functions const init =...
// Copyright (c) 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. /** * @fileoverview The section of the history page that shows tabs from sessions on other devices. */ ///////////////////////////...
// import { merge, isArray, isElement, isFunction, isNumber } from 'lodash-es'; import merge from 'lodash/merge'; import isArray from 'lodash/isArray'; import isElement from 'lodash/isElement'; import isFunction from 'lodash/isFunction'; import isNumber from 'lodash/isNumber'; import Util from './Util'; import S...
#!/usr/bin/env node require("colors"); const request = require("request"); const jwt = require("jsonwebtoken"); const crypto = require("crypto"); const fs = require("fs"); const Path = require("path"); const express = require("express"); const Url = require("url"); ...
var Attribute = require('./attribute.js').Attribute; var Actions = require('./actions.js').Actions; var CENUMS = require('./enums.js').Enums; //init client enums var expEnums = { SLOW: 'slow', //1 MSLOW: 'mslow', //2 MFAST: 'mfast', //3 FAST: 'fast', //4 FLUC: 'fluctuating', //5 ERRATIC: 'errat...
/* * * (c) Copyright Ascensio System Limited 2010-2016 * * This program is freeware. You can redistribute it and/or modify it under the terms of the GNU * General Public License (GPL) version 3 as published by the Free Software Foundation (https://www.gnu.org/copyleft/gpl.html). * In accordance with Section 7(...
import React from "react"; import { Button, Table, ModalBody, ModalFooter, ModalHeader, Input, Label, Form, FormGroup, Modal, Row, CardBody, Col, InputGroup, InputGroupAddon } from 'reactstrap'; import { MdAutorenew, MdLoyalty, MdDelete } from 'react-icons/md'; import * as myUrl from '../urlLink' import...
import React from "react"; import { connect } from "react-redux"; import { Link } from "react-router-dom"; import ErrorPage from "./../Errors/ErrorPage"; import LoadingCircle from "../../Shared/LoadingCircle"; import { apiCall } from "../../../api/functions"; import { reduxAddToDone, reduxAddToTodo, reduxMoveToDo...
'use strict' const fs = require('fs'); const path = require('path'); let _; const avro = require('avsc'); const snappy = require('snappyjs'); const jsonSchemaAdapter = require('./helpers/adaptJsonSchema'); const DEFAULT_FIELD_NAME = 'New_field'; let stateExtension = null; const { setDependencies, dependencies } = requ...
// Here, we use vanilla JavaScript for recurring operations that together take up a lot of time. import cd from './cd'; import { ElementsAndTextTreeWalker, ElementsTreeWalker } from './treeWalker'; import { defined, firstCharToUpperCase, flat, isInline, underlinesToSpaces } from './util'; import { generateCommentAnc...
//@ts-check "use strict"; // @ts-ignore const fs = require("fs"); const Victor = require("victor"); const Player = require("./player"); const Unit = require("./unit"); const Factory = require("./factory"); const ControlPoint = require("./controlpoint"); const { calcCost, randomBetween, generateFriendlyID } = require("...
const http = require('http'); const axios = require('axios'); const polka = require('../packages/polka'); const { test, sleep, listen } = require('./util'); const METHODS = ['GET', 'POST', 'PUT', 'DELETE']; test('polka', t => { t.is(typeof polka, 'function', 'exports a function'); t.end(); }); test('polka::interna...
/* needed functions : 1) Encoding a File To Base64 ✔ 2) Requesting Public Key of Recipient from AWS ✔ 3) Encrypting the file using an AES256 Bit Key ✔ 4) Encrypting the AES Key using the RSA Public Key ✔ 5) Uploading the File and the Encrypted Key to AWS 6) Generating Public+Private Keypair ✔ 7) Sending Public Key t...