text
stringlengths
2
1.04M
/** * https://en.wikipedia.org/wiki/TSL_color_space * http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.86.6037&rep=rep1&type=pdf * * Tint, Saturation, Lightness * * @module color-space/tsl */ 'use strict' var rgb = require('./rgb'); var tsl = module.exports = { name: 'tsl', min: [0,0,0], max: [1, 1...
// Copyright 2018-2021, University of Colorado Boulder /** * Tests for Enumeration * * @author Jonathan Olson <jonathan.olson@colorado.edu> */ import Enumeration from './Enumeration.js'; QUnit.module( 'Enumeration' ); QUnit.test( 'Basic enumeration', assert => { const CardinalDirection = Enumeration.byKeys( [...
import React from 'react' const Loading = () => { return <div>Loading Results..</div> } export default Loading
import test, { afterEach, beforeEach } from 'ava'; import mockRequire from 'mock-require'; import Log from '../../src/Log.js'; import Mix from '../../src/Mix.js'; import VueVersion from '../../src/VueVersion.js'; let mix = new Mix(); let vueVersion = new VueVersion(mix); beforeEach(() => mix.resolver.clear()); after...
/** * @module CliTestHelpers * @private */ 'use strict' var program = require('commander') var inherits = require('inherits') var stream = require('stream') var cli = require('../../lib/_cli') var CLI_OUTPUT_VERBOSITY = 0 /** * @classdesc Readable stream which replaces process.stdin with itself. Each * time a ...
import VueFullPageHorzScroller from './src/components/VueFullPageHorzScroller.vue' // Export components const Components = { VueFullPageHorzScroller } const VueFullPageHorzScrollerPlugin = { install (Vue) { Object.keys(Components).forEach((name) => { Vue.component(name, Components[name]) }) } } /...
import React from 'react'; import { BrowserRouter as Router, Route, Redirect } from "react-router-dom"; import './App.css'; import PrivateRoute from './utils/PrivateRoute'; import LoggedInRoute from './utils/LoggedInRoute'; import Navigation from './components/Navigation'; import Login from './components/LoginCo...
module.exports.createError = (res, text, evt) => { console.error({text, evt}); Object.assign(res, {statusCode: 500}); res.setHeader('Content-Type', 'application/json'); res.end(JSON.stringify({error: text})); }; module.exports.streamBodyParser = request => { return new Promise((resolve, reject) => ...
import React, { Component, PropTypes } from 'react'; import { AppRegistry, StyleSheet, Text, TouchableOpacity, View, StatusBar, } from 'react-native'; import 'exponent'; import { NavigationProvider, StackNavigation, SharedElementOverlay, } from '@exponent/ex-navigation'; import AppRouter from 'AppR...
var _ = require('lodash'); var keystone = require('keystone'); var moment = require('moment'); var Types = keystone.Field.Types; /** * Meetups Model * ============= */ var Meetup = new keystone.List('Meetup', { track: true, autokey: { path: 'key', from: 'name', unique: true } }); Meetup.add({ name: { type: Str...
/* Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'smiley', 'fr-ca', { options: 'Options d\'émoticônes', title: 'Insérer un émoticône', toolbar: 'Émoticône' } );
const eleventyRemark = require('@fec/eleventy-plugin-remark'); const path = require('path'); module.exports = (eleventyConfig) => { eleventyConfig.addPlugin(eleventyRemark, { plugins: [ { plugin: require('../../dist/remark-images.cjs'), options: { srcDir: __dirname, targ...
import { __assign } from "tslib"; import * as React from 'react'; import { StyledIconBase } from '@styled-icons/styled-icon'; export var ExternalLink = React.forwardRef(function (props, ref) { var attrs = { "fill": "currentColor", "xmlns": "http://www.w3.org/2000/svg", }; return (React.creat...
import React, { Component, Fragment } from 'react'; import PropTypes from 'prop-types'; import SvgIcon from '@material-ui/core/SvgIcon'; import Button from '@material-ui/core/Button'; import green from '@material-ui/core/colors/green'; import amber from '@material-ui/core/colors/amber'; import IconButton from '@materia...
/** * System configuration for Angular samples * Adjust as necessary for your application needs. */ (function (global) { System.config({ paths: { // paths serve as alias 'npm:': 'node_modules/' }, // map tells the System loader where to look for things map: { // our app is within ...
goog.provide('ol.interaction.PinchRotate'); goog.require('goog.asserts'); goog.require('ol'); goog.require('ol.functions'); goog.require('ol.ViewHint'); goog.require('ol.interaction.Interaction'); goog.require('ol.interaction.Pointer'); /** * @classdesc * Allows the user to rotate the map by twisting with two fing...
/******************************************** * REVOLUTION 5.0 EXTENSION - LAYER ANIMATION * @version: 1.4 (15.12.2015) * @requires jquery.themepunch.revolution.js * @author ThemePunch *********************************************/
(function(){var e={months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort...
import { defaultValue, Cartesian2, Cartesian3, Cartesian4, Matrix2, Matrix3, MetadataClassProperty, MetadataComponentType, MetadataTableProperty, } from "../../Source/Cesium.js"; import MetadataTester from "../MetadataTester.js"; describe("Scene/MetadataTableProperty", function () { if (!MetadataTe...
export default class Formatter{ capitalize = (str) => { return str.charAt(0).toUpperCase() + str.slice(1); }; };
const { article: ArticleModel, tag: TagModel, category: CategoryModel, comment: CommentModel, reply: ReplyModel, user: UserModel, sequelize } = require('../models') const { checkAuth } = require('../lib/token') module.exports = { // 创建文章 async create(ctx) { const isAuth = checkAuth(ctx) if (...
(()=>{var e={};function o(e){return+e+""===e}function n(o){chrome.tabs.executeScript(o,{file:"/build/proxy.js"},(function(n){n?console.log("injected proxy to tab "+o):e[o].devtools.postMessage("proxy-fail")}))}function t(o,n,t){function s(e){if("log"===e.event)return console.log("tab "+o,e.payload);console.log("devtool...
var a = [1, 1, 2, 2]; var b = [...new Set(a)]; console.log(b); // [ 1, 2 ] s.add(1).add(2).add(2); // 注意2被加入了两次 s.size; // 2 s.has(1); // true s.has(2); ...
'use strict'; const db = uniCloud.database() const dbCmd = db.command exports.main = async (event, context) => { const { email, password, resetEmailId } = event //validetor if (!email || !password || !resetEmailId) { return { code: 401, msg: '非法操作' } } // 校验是否存在重置邮件且已验证 const emailCheck = await db.colle...
import React, { Component } from 'react'; import CssBaseline from '@material-ui/core/CssBaseline'; import { createMuiTheme, MuiThemeProvider } from '@material-ui/core/styles'; import interestTheme from './theme'; import { colors } from './theme'; import Footer from './components/footer'; import Feeds from './componen...
/* - Definition for a binary tree node. - function TreeNode(val) { - this.val = val; - this.left = this.right = null; - } */ /* - @param {number[]} preorder - @param {number[]} inorder - @return {TreeNode} */ class TreeNode { constructor(val) { this.val = val; this.left = null; this.righ...
const WebSocketClient = require('websocket').client const client = new WebSocketClient() const protoOverlay = require('./lib/protobuf/overlay_pb') const common = require('./lib/protobuf/common_pb') const chain = require('./lib/protobuf/chain_pb') const url = 'ws://test-bif-core.xinghuo.space:7053' const address = 'did:...
const Team = require('./Team'); // Initialize a new Team const team = new Team(); // Build a new Team team.buildTeam();
import Reflux from 'reflux' export default Reflux.createActions(['getAll','add','remove']);
angular.module('starter') .controller('FacebookLoginController', ['$scope', '$log', '$cordovaFacebook', function($scope, $log, $cordovaFacebook) { var _this = this; var accessToken = null; _this.loginWithFacebook = function () { $cordovaFacebook.login(['public_profile', 'email', 'user_friends']).t...
define([ '../Core/BoundingSphere', '../Core/Cartesian2', '../Core/Cartesian3', '../Core/Cartesian4', '../Core/Cartographic', '../Core/defaultValue', '../Core/defined', '../Core/defineProperties', '../Core/DeveloperError', '../Core/EasingFun...
var mongoose = require('../common/db'); var mail = new mongoose.Schema({ fromUser: String, toUser: String, title: String, context: String }) mail.statics.findByToUserId = function (user_id, callBack) { this.find({toUser: user_id}, callBack); }; mail.statics.findByFromUserId = function (user_id, cal...
/** * @name exports * @summary ExplanationOfBenefitRelated Class */ module.exports = class ExplanationOfBenefitRelated { constructor(opts) { // Create an object to store all props Object.defineProperty(this, '__data', { value: {} }); // Define getters and setters as enumerable Object.defineProperty(this, ...
import { h } from 'vue' export default { name: "ArchiveAlertOutline", vendor: "Mdi", type: "", tags: ["archive","alert","outline"], render() { return h( "svg", {"xmlns":"http://www.w3.org/2000/svg","width":"24","height":"24","viewBox":"0 0 24 24","class":"v-icon","fill":"currentColor","data-na...
const { MessageEmbed } = require("discord.js"); let author = { name: "Tropibot", url: "https://github.com/Tropicorp/tropibot", iconURL: "https://cdn.discordapp.com/attachments/621261357852917780/913837273487933460/logo_tropibot_2.png" } const helpEmbed = new MessageEmbed() .setTitle("HELP - ALED") ...
System.register(["./Logger", "./Config", "./TimeUtils", "./math/Intersection", "./math/MathUtils", "./math/Plane", "./math/Primitive", "./math/Quaternion", "./math/Ray", "./math/Sphere", "./math/Vec3f"], function(exports_1) { function exportStar_1(m) { var exports = {}; for(var n in m) { ...
var createError = require('http-errors'); var express = require('express'); var path = require('path'); var cookieParser = require('cookie-parser'); var logger = require('morgan'); var indexRouter = require('./routes/index'); var usersRouter = require('./routes/users'); var postsRouter = require('./routes/posts'); va...
"use strict"; var helpers = require("../../helpers/helpers"); exports["America/Resolute"] = { "1947" : helpers.makeTestYear("America/Resolute", [ ["1947-08-30T23:59:59+00:00", "23:59:59", "zzz", 0], ["1947-08-31T00:00:00+00:00", "18:00:00", "CST", 360] ]), "1965" : helpers.makeTestYear("America/Resolute", [ ...
/* ds-tab GitHub: https://github.com/dsflon/ License: dsflon All Rights Reserved. */ (function(root, factory) { if (typeof define === 'function' && define.amd) { define(factory); } else if (typeof exports === 'object') { module.exports = factory(); } else { root.DsTab = factory();...
var __create = Object.create; var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __getProtoOf = Object.getPrototypeOf; var __hasOwnProp = Object.prototype.hasOwnProperty; var __markAsModule = (target) => __defProp(target...
module.exports = function check(str, bracketsConfig) { if (str.length%2) { return false } const keys = {} const arr = [] bracketsConfig.forEach(elem => keys[elem[0]]=elem[1]) bracketsConfig.forEach(elem => arr.push(elem[0]+elem[1])) console.log(arr) const input = str.split('') let k = 0 while(true) { f...
/** * A collection of useful functions. * * @author Mitt Namn */ "use strict"; module.exports = { //"moped": stringRange, "stringRange": stringRange, // "function2": anotherFunction }; /** * Return the range between a and b as a string, separated by commas. * * @param {integer} a Start value. *...
var assert = require('assert'); var helpers = require('we-test-tools').helpers; var sinon = require('sinon'); var widget, we, projectPath = process.cwd(); describe('widget.passport-strategies', function () { before(function (done) { we = helpers.getWe(); widget = require('../../../server/widgets/passport-str...
import { Helmet } from 'react-helmet'; import { withRouter } from "react-router-dom"; import StandardTooltip from '~/components/StandardTooltip'; import Main from '~/appComponents/Main'; import Loading from '~/components/Loading'; import { TextInput, Select } from '~/components/_standardForm'; import CourseCategoryFor...
macDetailCallback("40331a000000/24",[{"d":"2015-04-21","t":"add","a":"1 Infinite Loop\nCupertino CA 95014\n\n","c":"UNITED STATES","o":"Apple, Inc."},{"d":"2015-08-27","t":"change","a":"1 Infinite Loop Cupertino CA US 95014","c":"US","o":"Apple, Inc."}]);
import {Plot} from './Plot'; export class PlotSet { plotData; preZeroTime = 7000; postZeroTime = 10000; constructor(plotsArray) { if (! plotsArray.every((plot) => plot instanceof Plot)) { throw new Error('PlotSet constructor array must only consist of Plot objects.'); } ...
'use strict'; const common = require('../common'); const assert = require('assert'); const path = require('path'); const fs = require('fs'); const tmpdir = require('../common/tmpdir'); const tmp = tmpdir.path; tmpdir.refresh(); const filename = path.resolve(tmp, 'truncate-file.txt'); fs.writeFileSync(filename, 'hello ...
 svgColoredTexture = (function() { var svgColorFilterIds, svgTexturePatternIds; function svgColoredTexture() {} svgColorFilterIds = ["YlGn-1", "YlGn-2", "YlGn-3", "YlGn-4", "YlGn-5", "YlGn-6", "YlGn-7", "YlGn-8", "YlGn-9", "YlGnBu-1", "YlGnBu-2", "YlGnBu-3", "YlGnBu-4", "YlGnBu-5", "YlGnBu-6", "YlGnBu-7"...
var searchData= [ ['paint_507',['Paint',['../group__ThorVGCapi__Paint.html',1,'']]], ['picture_508',['Picture',['../group__ThorVGCapi__Picture.html',1,'']]] ];
var searchData= [ ['pixel',['PIXEL',['../namespacereg.html#ae9dc228abe4f02f05191a60f2f157222',1,'reg']]], ['platform_5fid',['PLATFORM_ID',['../build_2_c_make_files_23_87_82_2_compiler_id_c_2_c_make_c_compiler_id_8c.html#adbc5372f40838899018fadbc89bd588b',1,'PLATFORM_ID():&#160;CMakeCCompilerId.c'],['../build_2_c_ma...
'use strict'; require('core-js/es6/reflect'); require('core-js/es7/reflect'); require('zone.js/dist/zone.js'); require('zone.js/dist/proxy.js'); require('zone.js/dist/sync-test'); require('zone.js/dist/async-test'); require('zone.js/dist/fake-async-test'); require('./zone-patch'); const getTestBed = require('...
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const Platform_1 = require("../../Platform"); const HeatingSystem_1 = __importDefault(require("../Heatin...
(function() { 'use strict'; angular .module('App') .controller('RulesController', RulesController); RulesController.$inject = ['$scope', 'Model']; function RulesController($scope, Model) { $scope.rules = { moves : [], currentRule: {} }; ...
/** * @license * Copyright (c) 2016 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt * The complete set of contributors may be f...
tinymce.addI18n('fr_FR', { "Insert/Edit Bootstrap Button": "Insérer/Editer un Bouton", "Insert/Edit Bootstrap Icon": "Insérer/Editer un Icône", "Insert/Edit Bootstrap Image": "Insérer/Editer une Image", "Insert/Edit Bootstrap Table": "Insérer/Editer un Tableau", "Insert Bootstrap Template": "Insérer...
#!/usr/bin/env node import program from 'commander'; import chalk from 'chalk'; import Project from '../src/project.js'; import { ensureStackFromProject } from '../src/stack-manager.js'; import { errorHandler } from '../src/errors.js'; async function main(){ // Load the project from the current folder (will fail if...
import Document, { Html, Head, Main, NextScript } from "next/document"; class MyDocument extends Document { static async getInitialProps(ctx) { const initialProps = await Document.getInitialProps(ctx); return { ...initialProps }; } render() { const setInitialTheme = ` function getUserPreferenc...
//# sourceMappingURL=icon.star_minus_empty.min.js.map
/** * Copyright IBM Corp. 2019, 2020 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. * * Code generated by @carbon/icon-build-helpers. DO NOT EDIT. */ 'use strict'; var Icon = require('../Icon-1083255b.js'); var React = require...
var path = require('path'), M_EXTENSION = /[.]m$/, SOURCE_FILE = 'sourcecode.c.objc', H_EXTENSION = /[.]h$/, HEADER_FILE = 'sourcecode.c.h', BUNDLE_EXTENSION = /[.]bundle$/, BUNDLE = '"wrapper.plug-in"', XIB_EXTENSION = /[.]xib$/, XIB_FILE = 'file.xib', DYLIB_EXTENSION = /[.]dylib$/, DYLIB = '"compi...
import { Cell, Pie, PieChart, Tooltip } from 'recharts'; import React from 'react'; import Box from '@material-ui/core/Box'; import makeStyles from '@material-ui/core/styles/makeStyles'; const useStyles = makeStyles(theme => ({ customTooltip: { color: theme.palette.text.primary, backgroundColor: theme.palett...
class Stringer { constructor(string, length) { this.innerLength = length; this.innerString = string } increase(length) { this.innerLength += length } decrease(length) { if (this.innerLength - length < 0) { this.innerLength = 0; } else { ...
module.exports = { extends: 'airbnb', rules: { 'max-len': [2, 150, 4], 'import/no-extraneous-dependencies': ['error', { devDependencies: true }], 'global-require': 0, }, };
const React = require("react"); function ArrowNarrowDownIcon(props) { return /*#__PURE__*/React.createElement("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "currentColor", "aria-hidden": "true" }, props), /*#__PURE__*/React.createElement("path", { fillR...
const { compose, head, of } = require('ramda'); const mapOver = require('./map-over.utils'); /** @: wheaterObject :: view -> object -> map vector -> object */ const wheaterObject = (view) => compose(head, mapOver(view), of); module.exports = wheaterObject;
import React, { Component } from 'react'; import { Route, withRouter, NavLink } from 'react-router-dom'; import axios from 'axios'; import SignUpForm from './components/LoginSignup/SignUpForm'; import SignInForm from './components/LoginSignup/SignInForm'; import AddStudent from './components/studentF...
import React from 'react' import { connect } from 'react-redux'; import { CaretRightOutlined } from '@ant-design/icons'; import { Button } from 'antd'; import {ProceedtoTest,fetchTestdata} from '../../../actions/traineeAction'; import './portal.css'; function Instruction(props) { return ( <div> ...
$("#currentDay").text(moment().format('dddd MMMM Do YYYY')); function timeBlock() { var hour = moment().hours(); console.log(timeBlock); $(".time-block").each(function() { var currentHour = parseInt($(this).attr("id")); if (currentHour > hour) { $(this).addClass("future"); ...
import React from 'react' export const Twitter = () => ( <svg role="img" aria-label="Twitter" className="icon icon-twitter" viewBox="0 0 18 14" width={18} height={18} > <title>Twitter</title> <path fill="currentcolor" d="M18 1.684l-1.687 1.684v.28c0 .307-.05.602-.123.886...
import React, { Component } from 'react'; import '././App.css'; import { Route, Switch } from "react-router-dom"; import Layout from '../../Components/Layout/Layout'; import Dashboard from '../Dashboard/Dashboard'; import NetworkDesign from '../Network-design/Network-Design'; import ServerOnboarding from '../Server-onb...
/*! Locuszoom 0.13.0-beta.4 */ //# sourceMappingURL=locuszoom.app.min.js.map
const { SevereServiceError } = require('webdriverio'); const { Logger } = require('@cerner/terra-cli'); const ExpressServer = require('../express-server'); const WebpackServer = require('../webpack-server'); const logger = new Logger({ prefix: '[terra-functional-testing:wdio-asset-server-service]' }); class AssetServ...
'use strict'; if(require('./_descriptors')){ var LIBRARY = require('./_library') , global = require('./_global') , fails = require('./_fails') , $export = require('./_export') , $typed = require('./_typed') , $buffer = req...
const trialDivision = (number) => { let i, divisor = 0; for(i = 1; i <= number; i++) { if(number % i == 0) { divisor++; } } if(divisor == 2) { return true; } else { return false; } } module.exports = trialDivision;
'use strict'; var sinon = require('sinon'); var restLoader = require('./index'); var nock = require('nock'); var _ = require('lodash'); var baseOptions = { protocol: 'https', host: 'appv2.theirapp.com', pathname: '/content', query: { access_token: 'someToken' } }; describe('REST Loader', function() { ...
const fs = require('fs'); const path = require('path'); const { packAndDeploy, testDeployment } = require('../../../test/lib/deployment/test-deployment.js'); jest.setTimeout(4 * 60 * 1000); const buildUtilsUrl = '@canary'; let builderUrl; beforeAll(async () => { const builderPath = path.resolve(__dirname, '..'...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import isEqual from 'lodash/isEqual'; import OpenSeadragon from 'openseadragon'; import ns from '../config/css-ns'; import OpenSeadragonCanvasOverlay from '../lib/OpenSeadragonCanvasOverlay'; import CanvasWorld from '../lib/CanvasWorld'; /**...
import extend from 'extend'; import Delta from 'rich-text/lib/delta'; import Emitter from '../core/emitter'; import Theme from '../core/theme'; import ColorPicker from '../ui/color-picker'; import IconPicker from '../ui/icon-picker'; import Picker from '../ui/picker'; import icons from '../ui/icons'; const ALIGNS = [...
/* * Copyright 2015-2020 The OpenZipkin Authors * * 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 a...
import ClickableComponentDriver from './clickableComponentDriver'; const ERRORS = { INPUT_CANNOT_BE_CLICKED : ( label, state ) => `Input '${label}' cannot be clicked since it is ${state}`, INPUT_CANNOT_CHANGE_VALUE : ( label, state ) => `Input '${label}' value cannot be changed since it is ${st...
/* */ "format cjs"; require('./angular-locale_smn'); module.exports = 'ngLocale';
const merge = require('webpack-merge') const baseWebpackConfig = require('./webpack.base.conf') const HtmlWebpackPlugin = require('html-webpack-plugin') const DefinePlugin = require('webpack/lib/DefinePlugin') const HotModuleReplacementPlugin = require('webpack/lib/HotModuleReplacementPlugin') Object.keys(baseWebpackC...
/** * @fileoverview Disallows or enforces spaces inside of brackets. * @author Ian Christian Myers * @copyright 2014 Vignesh Anand. All rights reserved. */ 'use strict' // ------------------------------------------------------------------------------ // Requirements // ---------------------------------------------...
const kdj = require( './src/kdj' ); const ma = require( './src/ma' ); const dma = require( './src/dma' ); const ema = require( './src/ema' ); const sma = require( './src/sma' ); const wma = require( './src/wma' ); /** * @exports */ module.exports = { kdj : kdj.calculator, ma : ma.calculator, dma : dma.calculat...
"use strict"; /* eslint-disable no-unused-vars */ /* eslint-disable no-undef */ var dataArray = [{ x: 5, y: 5 }, { x: 10, y: 15 }, { x: 20, y: 7 }, { x: 30, y: 18 }, { x: 40, y: 10 }]; var interpolateTypes = [d3.curveLinear, d3.curveNatural, d3.curveStep, d3.curveBasis, d3.curveBundle, d3.curveCar...
import { performance, PerformanceObserver } from 'perf_hooks' import logger from '@wdio/logger' import SauceLabs from 'saucelabs' import { makeCapabilityFactory } from './utils.js' const SC_RELAY_DEPCRECATION_WARNING = [ 'The "scRelay" option is depcrecated and will be removed', 'with the upcoming versions o...
import axios from '../../api' const setUser = (state, payload) => { state.user = payload.user; // Save user data to local storage to remember user credentials localStorage.setItem("user", JSON.stringify(payload)); axios.defaults.headers.common.Authorization = `Bearer ${payload.token}`; } const clearUser = ()...
const fs = require("fs"); const data = fs.readFileSync("./sample.txt").toString().split("\n").map((line) => { return [...line]; }); console.log(data); var posx = 0; var posy = 0; var treeCount = 0; while(posy < data.length-1) { posx += 3; posy += 1; console.log(data[posy], posy); if (data[posy][posx%data[p...
import App from './App'; import AddCourse from './components/AddCourse'; import SignIn from './components/Signin'; import CourseDetails from './components/ViewCourse'; import EventBus from './eventbus.js'; export const routes = [ { path: '/signin', component: SignIn, beforeEnter: (to, from, next) => { ...
'use babel'; import EpitoolsAtomView from '../lib/epitools-atom-view'; describe('EpitoolsAtomView', () => { it('has one valid test', () => { expect('life').toBe('easy'); }); });
import assertString from './util/assertString'; import toFloat from './toFloat'; export default function isDivisibleBy(str, num) { assertString(str); return toFloat(str) % parseInt(num, 10) === 0; }
const router = require("express").Router(); const { topSaved } = require("../../controllers"); router .route("/") .get(topSaved.topSaved); module.exports = router;
define(["require", "exports"], function(require, exports) { (function (a) { a.x = 10; })(exports.a || (exports.a = {})); var a = exports.a; var b = a.x; exports.bVal = b; }); ////[internalAliasVarInsideTopLevelModuleWithoutExport.d.ts] export declare module a { var x: number; } export ...
/** * Document Actions * * Copyright 2020, 2021 Rolf Bagge, Janus B. Kristensen, CAVI, * Center for Advanced Visualization and Interaction, Aarhus University * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obt...
/* global window, document */ if (! window._babelPolyfill) { require('babel-polyfill'); } import React from 'react'; import ReactDOM from 'react-dom'; import Shortcode from './containers/Shortcode.jsx'; document.addEventListener('DOMContentLoaded', function() { const shortcode_containers = document.querySelectorA...
var _ = require('lodash'); var d3 = require('d3'); var MAX_HISTORY = 2000; var MAX_PEER_PROPAGATION = 40; var MIN_PROPAGATION_RANGE = 0; var MAX_PROPAGATION_RANGE = 10000; var MAX_UNCLES = 1000; var MAX_UNCLES_PER_BIN = 25; var MAX_BINS = 40; var History = function History(data) { this._items = []; this._callback...
const http = require('http'); const { argv } = require("yargs"); const parse = require('fast-json-parse'); const FastJson = require('fast-json'); const fastJson = require('fast-json-stringify'); const fastoJson = new FastJson(); const stringify = fastJson({ title: 'List', type: 'array', items: { type: 'numb...
/* Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.dialog.add('radio',function(a){return{title:a.lang.checkboxAndRadio.radioTitle,minWidth:400,minHeight:200,onShow:function(){var c=this;c.restoreSelection();var b=c....
import { createSlice } from '@reduxjs/toolkit' export const networkStatusSlice = createSlice({ name: 'networkStatus', initialState: true, reducers: { updateNetworkStatus: { reducer: (state, action) => action.payload, }, }, }) export const { actions, reducer } = networkStatusSlice export const {...
import { createStore, combineReducers, applyMiddleware } from "redux"; import thunk from 'redux-thunk' import {todos, users, todosIsLoading, todoFields} from "../reducers/index"; // // import stateData from "./initialState" const logger = store => next => action => { let result console.groupCollapsed("dispatching"...