text
stringlengths
2
1.04M
const router = require('express').Router(); const controller = require('./activity.controller'); router.post('/domain/:domain/activity', controller.publishActivityToDomain); router.post('/user/:user/activity', controller.publishActivityToUser); router.get('/getallactivities/user/:user', controller.getAllActivitiesFor...
// Initializes the `search-brands` service on path `/search-brands` const createService = require('./search-brands.class.js'); const hooks = require('./search-brands.hooks'); module.exports = function(app) { const paginate = app.get('paginate'); const options = { name: 'search-brands', pagina...
// abc_voice_element.js: Definition of the VoiceElement class. // Copyright (C) 2010-2020 Gregory Dyke (gregdyke at gmail dot com) and Paul Rosen // // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated // documentation files (the "Software"), to dea...
/** * Created by Phuoc Tran on 9/23/2015. */ /*\ |*| |*| :: cookies.js :: |*| |*| A complete cookies reader/writer framework with full unicode support. |*| |*| Revision #1 - September 4, 2014 |*| |*| https://developer.mozilla.org/en-US/docs/Web/API/document.cookie |*| https://developer.mozilla.org/User:...
require('dotenv').config(); const { getConnection } = require('../../DB'); const { generateError, searchConcourses } = require('../../helpers'); async function searchingConcourses(req, res, next) { let connection; try { connection = await getConnection(); const { query, params } = searchConcourses(req.que...
/** * @license Apache-2.0 * * Copyright (c) 2020 The Stdlib 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 a...
const fs = require('fs') const path = require('path') const electron = require('electron') const { dispatch } = require('../lib/dispatcher') const { TorrentKeyNotFoundError } = require('../lib/errors') const sound = require('../lib/sound') const TorrentSummary = require('../lib/torrent-summary') const ipcRenderer = e...
import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import Grid from '@material-ui/core/Grid'; import Item from './Item'; const styles = { card: { maxWidth: 345, }, media: { height: 140, }, }; class ItemList extends Reac...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var React = _interopRequireWildcard(r...
// @flow import type { EdgeCurrencyPlugin } from 'edge-core-js' import type { CustomTokenInfo, GuiTouchIdInfo } from '../../../types.js' const PREFIX = 'UI/Settings/' export const SET_LOGIN_STATUS = PREFIX + 'SET_LOGIN_STATUS' export const ADD_EXCHANGE_TIMER = PREFIX + 'ADD_EXCHANGE_TIMER' export const UPDATE_SET...
import { getUserLoading, getUserSuccess, getUserFailed, } from "../../action/user/userAction"; import { apiGetUserById } from "../../../api/user/userApi"; import store from "../../store"; export const thunk_getUser = (data) => { store.dispatch(getUserLoading()); apiGetUserById(data) .then((res) => { ...
/* * Introduction to character literals in JavaScript * IGTV Link: * * Topics Covered: * 1. \" - for escaping the double quotes * 2. \' - for escaping the single quotes * 3. \\ - for rendering a '\' * 4. \n - for adding a new line * */ /* * \b Backspace * \f Form Feed * \n New Line * \r Carriage Return *...
import React from 'react'; import './styles.css'; const Stats = ({ stats }) => { if (!stats) { return <span className="stats">Loading...</span>; } return ( <span className="stats"> {stats.error && 'Error!'} {stats.isLoading && 'Loading...'} {stats.downloa...
// básico function holaMundo() { return 'hola mundo' } const holaAAlguien = (alguien) => { return `Hola ${alguien}` } const holaAAlguienCorta = alguien => `Hola ${alguien}` const chauAAlguienCorta = alguien => `Chau ${alguien}` const holaAMuchos = (...quienes) => `Hola ${quienes.join(',')}` // orden superior ...
/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const Source = require("./Source"); const RawSource = require("./RawSource"); const { SourceNode } = require("source-map-js"); const { getSourceAndMap, getMap } = require("./helpers"); const REPLACE_REGEX...
// nightlife search reducer import { SearchActions, SearchStatus } from '../actions/search'; import store from '../util/localstore'; import moment from 'moment'; const defaultState = { location: store.getLastSearch(), date: moment().format('YYYY-MM-DD'), results: [], status: SearchStatus.received }; const se...
const supertest = require('supertest'); const server = require('../index'); const { JWT_TOKEN } = require('../library/constants'); const requestWithSupertest = supertest(server); const { detectVulgarWords } = require('../library/VulgarTest'); describe('Test Vulgar Library', () => { it('should not trigger for normal ...
import React from 'react' import {connect} from 'react-redux' import {getInterestsFromServer} from '../store/interestReducer' import {Link, Router} from 'react-router-dom' import {Grid, Typography, Card, CardMedia} from '@material-ui/core' import {sizing} from '@material-ui/system' import InterestCard from './interestB...
import React from 'react'; import ReactDOM from 'react-dom'; import GlobalStyle from './components/GlobalStyle'; import Pages from './pages'; import { ApolloClient, ApolloProvider, InMemoryCache, createHttpLink } from '@apollo/client'; import { setContext } from 'apollo-link-context'; // Настраиваем API URI и ...
// Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /** * If x is NaN, Math.sqrt(x) is NaN * * @path ch15/15.8/15.8.2/15.8.2.17/S15.8.2.17_A1.js * @description Checking if Math.sqrt(NaN) is NaN */ // CHECK#1 var x = NaN; if (!isNaN(M...
module.exports = function toReadable(number) { let arrOne = ["", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "ten", "eleven", "twelve", "thirteen", "fourteen", "fifteen", "sixteen", "seventeen", "eighteen", "nineteen",]; let arrTen = ["", "", "twenty", "thirty", "forty", "fifty", "sixty"...
import React from "react"; export default function Spinner() { return ( <React.Fragment> <p className="app__loading-message">...Loading</p> </React.Fragment> ); }
const { PrismaClient } = require('@prisma/client') const prisma = new PrismaClient() // A `main` function so that we can use async/await async function main() { // Seed the database with users and posts const user1 = await prisma.user.create({ data: { email: 'alice@prisma.io', name: 'Alice', ...
define("ace/ext/spellcheck",["require","exports","module"],function(e,t,n){text.spellcheck=!0,host.on("nativecontextmenu",function(e){if(!host.selection.isEmpty())return;var t=host.getCursorPosition(),n=host.session.getWordRange(t.row,t.column),r=host.session.getTextRange(n);host.session.tokenRe.lastIndex=0;if(!host.se...
(function(angular){ 'use strict'; angular.module('TeamsApp') .controller('MenuCtrl',['$scope', 'MenuResource','$uibModal',function ($scope, MenuResource,$modal) { $scope.remove = function (scope) { scope.remove(); }; $scope.toggle = function (scope) { scope.toggl...
// Copyright (c) 2014 International Aid Transparency Initiative (IATI) // Licensed under the MIT license whose full text can be found at http://opensource.org/licenses/MIT var plate=exports; var util=require('util'); var marked=require('marked'); marked.setOptions({ renderer: new marked.Renderer(), gfm: true, ...
const path = require('path'); const { PluginManager } = require('plugnplay'); class GameFileManager { constructor() { this._isInitialized = false; this._plugins = ['madden22']; this._initializedPlugins = []; this._manager = new PluginManager({ discovery: { ...
import React from 'react' import PropTypes from 'prop-types' import { reduxForm } from 'redux-form' import { TextField, TextFieldArray, IngredientFieldArray } from '../../../components/Field/Field' import { BasicButton } from '../../../components/Button' import Section from '../../../components/Section/Section' impor...
var api = { //https://openweathermap.org/current#geo getWeatherInfo(lat, lon){ const key = '778f2531a178c8c674fa52885f620668'; const tempUnit = '&units=imperial'; const url = 'http://api.openweathermap.org/data/2.5/weather?lat=' + lat + '&lon=' + lon + tempUnit + '&appid=' + key; console.log(url + '\n'); re...
function save_pros(){ $(".dynamic_sec").load("Views/main-dash.php"); }
ace.define('ace/theme/chrome', ['require', 'exports', 'module' , 'ace/lib/dom'], function(require, exports, module) { exports.isDark = false; exports.cssClass = "ace-chrome"; exports.cssText = ".ace-chrome .ace_gutter {\ background: #ebebeb;\ color: #333;\ overflow : hidden;\ }\ .ace-chrome .ace_print-margin {\ width:...
"use strict"; 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) { t...
import React, { useState, createContext } from "react"; export const AuthUserContext = createContext({}); export const AuthUserProvider = ({ children }) => { const [user, setUser] = useState(null); return ( <AuthUserContext.Provider value={{ user, setUser }}> {children} </AuthUser...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var SIDES = { LEFT: 'LEFT', CENTER: 'CENTER', RIGHT: 'RIGHT', REMOVED_LEFT: 'REMOVED_LEFT', REMOVED_RIGHT: 'REMOVED_RIGHT' }; exports.default = SIDES;
$(document).ready(function(){ $('.nav-tabs a').click(function (e) { e.preventDefault(); $(this).tab('show'); }) $('body').tooltip({ selector: 'a[rel=tooltip]' }); });
'use strict'; /** * @ngdoc directive * @name paasb.directive:paasbSearchBoxCacheFilter * @description * # Implementation of paasbSearchBoxCacheFilter */ angular.module('paasb') .directive('paasbSearchBoxCacheFilter', [ 'paasbMemory', 'paasbUi', function (paasbMemory, paasbUi) { re...
(function() { window.require(["ace/mode/php"], function(m) { if (typeof module == "object" && typeof exports == "object" && module) { module.exports = m; } }); })();
import electron from 'electron'; const remote = electron.remote; const app = remote.app; import fs from 'fs'; import util from './Util'; import path from 'path'; import bugsnag from 'bugsnag-js'; import metrics from './MetricsUtil'; var WebUtil = { addWindowSizeSaving: function () { window.addEventListener('resi...
module.exports = app => { return { foo() { // app is Application Object console.log(app); return 'hello helper'; }, }; };
import _regeneratorRuntime from "@babel/runtime/regenerator"; var _marked = _regeneratorRuntime.mark(primitiveIterator); import { GL } from '../constants'; import { getPrimitiveModeType } from '../primitives/modes'; import { assert } from '@loaders.gl/loader-utils'; export default function primitiveIterator(_ref) { ...
import React, { forwardRef } from 'react'; import PropTypes from 'prop-types'; const Opera = forwardRef(function Opera({ color = 'currentColor', size = 24, title = 'Opera', ...others }, ref) { return ( <svg xmlns="http://www.w3.org/2000/svg" width={size} height={size} fill={color} v...
import superAgent from 'superagent'; import fs from 'fs'; let spiderResult = []; const sleep = time => new Promise((resolve) => { setTimeout(() => { resolve(); }, time); }); const getOnePage = async (offset) => { try { const res = await superAgent .get('http://maoyan.com/board/4') .set('User-Agent...
import curry from './curry.js'; import go1 from './go1.js'; import takeAll from './takeAll.js'; import unionL from '../Lazy/unionL.js'; export default curry(function union(a, b) { return go1( unionL(a, b), takeAll ) });
// init map const map = L.map('map').setView([52.178774, 10.559594], 8); let heat = undefined let lastBiggestMapBounds = map.getBounds() let isShowHeadMap = false L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap...
import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; module('Unit | Route | post', function (hooks) { setupTest(hooks); test('it exists', function (assert) { let route = this.owner.lookup('route:post'); assert.ok(route); }); });
const uppercaseWords = str => str.replace(/^(.)|\s+(.)/g, c => c.toUpperCase()); class bazaar{ familyList = [] itemList = [] dicto = {} // the bazaar url bazaarUrl = "https://api.hypixel.net/skyblock/bazaar"; constructor(){ }; // gets data on item async setup(){ ...
//------------------------------------------------------------------ // // Creates a fire effect that burns for a specified amount of time. // The spec is defined as: // { // center: { x: , y: }, // lifetime: how long the effect should last (in milliseconds) // } // //-------------------------------------...
/** * Allows cells to be split into subcells. Usage: * { * 'subcells': { * cellpadding: 10, * cellheight: 19 * } * } * * Row height calculation becomes a bit more complicated, which is why both padding and (sub)cell height are required * information. It's important to note that this co...
import weightedAverage from '../weightedAverage'; describe('weightedAverage', () => { it('should calculate the weighted average', () => { const data = [{ value: 32, weight: 5 }, { value: 44, weight: 3 }, { value: 11, weight: 2 }]; expect(weightedAverage(data)).toBe(31.4); }); });
import React, { Component } from "react"; import {Card} from "../../components/Card"; import Jumbotron from "../../components/Jumbotron"; import API from "../../utils/API"; import { Link } from "react-router-dom"; import { Col, Row, Container } from "../../components/Grid"; import { List } from "../../components/List";...
import {INCREMENT,DECREMENT,FETCH_USER,FETCH_USER_REQUEST,FETCH_USER_ERROR} from './../constans'; import {LOAD_USER} from './../constans'; import axios from 'axios'; export const increment = (name) =>{ return { type:INCREMENT, name } } export const decrement = () =>{ return { type:DE...
! function(e, t) { "object" == typeof exports && "object" == typeof module ? module.exports = t(require("vue")) : "function" == typeof define && define.amd ? define("ELEMENT", ["vue"], t) : "object" == typeof exports ? exports.ELEMENT = t(require("vue")) : e.ELEMENT = t(e.Vue) }(this, function(e) { return function(e)...
import React from 'react' import styled from 'styled-components' import { Container, Link, Title } from '../../commons' const StyledInfo = styled.h4` margin-bottom: 0.5rem; margin-top: ${({ theme }) => theme.reset}; ` const StyledTags = styled.ul` display: grid; grid-auto-flow: column; grid-gap: 10px; gr...
const state = {} const getters = {} const mutations = {} const actions = {} export default { namespaced: true, state, getters, mutations, actions, }
import Base from '../' export default class Animal extends Base { constructor(props) { super(props); this.kind = kind; } legs() { switch (this.kind) { case "insect": return 6; case "spider": return 8; } } }
var editor; // use a global for the submit and return data rendering in the examples $(document).ready(function () { editor = new $.fn.dataTable.Editor({ table: "#example", idSrc: 'name', fields: [{ label: "Name:", name: "name" }, { label: "...
var searchData= [ ['e_3244',['e',['../group__gtc__constants.html#ga4b7956eb6e2fbedfc7cf2e46e85c5139',1,'glm::e()'],['../group__gtc__constants.html#ga4b7956eb6e2fbedfc7cf2e46e85c5139',1,'glm::e()']]], ['elem_3245',['elem',['../structglm_1_1detail_1_1__swizzle__base0.html#a4011ff1a445ccda72c385462106eb3ff',1,'glm::de...
// @flow export { makeCancelable } from './makeCancelable';
jQuery(document).ready(function() { jQuery(':checkbox').on('click', function(){ if(jQuery(this).is(':checked')){ jQuery(this).val(1); } else { jQuery(this).val(0); } }); var form = jQuery('#regForm'); var editStudInfoForm = jQuery('#editStudInfoForm'); var editAdmissionForm = jQue...
function LaunchContainerEditBlock(runtime, element) { // Handle the save button click. $('.save-button', element).bind('click', function() { var handlerUrl = runtime.handlerUrl(element, 'studio_submit'); var data = { 'enable_container_resetting': $('#enable_container_resetting_input')...
mycallback( {"CONTRIBUTOR OCCUPATION": "TCU INT'L SECRETARY TREAS", "CONTRIBUTION AMOUNT (F3L Bundled)": "137.50", "ELECTION CODE": "", "MEMO CODE": "", "CONTRIBUTOR EMPLOYER": "TCU SYSTEM BOARD 86", "DONOR CANDIDATE STATE": "", "CONTRIBUTOR STREET 1": "309 A STREET", "CONTRIBUTOR MIDDLE NAME": "C", "DONOR CANDIDATE FE...
active_pollid = null; poll_info = null; poll_results = []; poll_queue = []; poll_queue_wait = []; want_fast_poll_update = false; function update_poll_info() { $("#bin-num").html("Poll " + active_pollid.toString()); $.ajax({ url: key + "poll/" + active_pollid.toString(), success: function(data) { $.ajax({ ...
function loadTxt() { } function writeTitle() { document.write("<title>" + "Editeur HTML" + "</title>") }
describe("Gizelhart's Standard", function () { describe("Gizelhart's Standard's ability", function () { beforeEach(function () { this.setupTest({ player1: { house: 'sanctum', inPlay: ['mother-northelle', 'troll'], hand: ...
const _ = require('lodash'); const inquirer = require('inquirer'); const CommandParser = require('../command-parser'); const { add } = require('../../util/add'); const { logInfo, logError } = require('../../util/logging'); module.exports = class Create extends CommandParser { constructor(args) { super(args); ...
const models = require('../models'); const Domo = models.Domo; const makeDomo = (req, res) => { if (!req.body.name || !req.body.age) { return res.status(400).json({ error: 'RAWR! Both name and age are required' }); } const domoData = { name: req.body.name, age: req.body.age, owner: req.session.a...
/* @adobe/react-spectrum-workflow (c) by Adobe @adobe/react-spectrum-workflow is licensed under a Creative Commons Attribution-NoDerivatives 4.0 International License. You should have received a copy of the license along with this work. If not, see <http://creativecommons.org/licenses/by-nd/4.0/>. */ import React fro...
/*global module:false*/ module.exports = function(grunt) { var packageJSON = grunt.file.readJSON('package.json'); var bumpFiles = ["package.json", "bower.json", "composer.json"]; var commitFiles = bumpFiles.concat(["./dist/*"]); // Project configuration. grunt.initConfig({ // Metadata pkg:...
module.exports = /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) /******/ ret...
import { render, getByText, fireEvent } from '@testing-library/react'; import React from 'react'; import Button from 'components/Button'; describe('Button', () => { test('Should display text', () => { const { container } = render(<Button label='We salute you' />); getByText(container, 'We salute y...
"use strict"; function __export(m) { for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; } Object.defineProperty(exports, "__esModule", { value: true }); __export(require("./components/Facepile/index")); //# sourceMappingURL=Facepile.js.map
const { authenticate } = require('@feathersjs/authentication').hooks; const jadwalkursus = require('../../hooks/jadwalkursus'); // module.exports = { before: { all: [ authenticate('jwt') ], find: [jadwalkursus()], get: [jadwalkursus()], create: [], update: [], patch: [], remove: [] }, ...
console.log("loaded in workday"); browser.runtime.onMessage.addListener(notify); var boxIndex = 0; function delay(ms) { return new Promise(resolve => setTimeout(resolve, ms)); } function notify(message) { console.log("Received message:", message); switch (message.command) { case "queue-boxes": ...
import React, { useState } from "react"; import axios from 'axios'; // Add new organization for scouts const AddNewOrg = (props) => { // store user input const [newOrganizationName, setNewOrganizationName] = useState(''); // call the database and try to add new org async function addNewOrganizatio...
var ctx; var upPressed, downPressed; var shapes; var countFrames; var currentShape; var shapeInput; $(document).ready(function(){ ctx = $("#myCanvas")[0].getContext("2d"); shapes = []; countFrames = 0; currentShape = -1; upPressed = false; downPressed = false; document.addEventListener("keydown", keyD...
'use strict' /* globals describe it beforeEach afterEach cli nock expect context */ let cmd = require('../../../commands/members/set') let stubGet = require('../../stub/get') let stubPatch = require('../../stub/patch') describe('heroku members:set', () => { let apiUpdateMemberRole beforeEach(() => { cli.mock...
const meta = require('../package') const debug = require('debug')(`${meta.name}:gmail-credentials`) const _ = require('lodash') const async = require('async') const gal = require('google-auth-library') const inquirer = require('inquirer') const chalk = require('chalk') const printf = require('printf') // Google does t...
import { createDuration } from '../duration/create'; import { createLocal } from '../create/local'; import { isMoment } from '../moment/constructor'; export function to (time, withoutSuffix) { if (this.isValid() && ((isMoment(time) && time.isValid()) || createLocal(time).isValid()))...
module.exports = { // disbable logging for testing logging: false, //db: { // url: 'mongodb+srv://Justin_Jankiewicz:<thisIsTheMongoPassword>@jankcluster-wwozz.mongodb.net/test?retryWrites=true' //} };
/** * Module dependencies. */ var mongoose = require('mongoose'); var LocalStrategy = require('passport-local').Strategy; var User = mongoose.model('User'); /** * Expose */ module.exports = new LocalStrategy({ usernameField: 'email', passwordField: 'password' }, function (email, password, done) { ...
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex...
(function($){ $.fn.breadBuilder = function(options) { var builder = $(this); var draggable, droppable; var resizing = false; var resizingObj; var builderWidth; var liveUpdate = false; var currentOptionFormfield; var settings = $.extend({ formfield : '.formfield', //Single formfield in...
const slsTransports = require('./lib/slsTransport') module.exports = app => { let SlsTransport = slsTransports(app) app.getLogger('logger').set('aliyunsls', new SlsTransport({ level: 'DEBUG', app })) app.getLogger('coreLogger').set('aliyunsls', new SlsTransport({ level: 'DEBUG', app })) app.getLogger('errorLog...
const { override, addLessLoader } = require('customize-cra'); const rewiredSourceMap = () => config => { config.devtool = config.mode === 'development' ? 'cheap-module-source-map' : false; return config; }; module.exports = override( addLessLoader({ modifyVars: { '@primary-color': '#13c2c2' }, ...
import React from 'react' import Cat from './Components/Cat' const App = () => { /* data required Id,catName,catImage,catClickCount,NickName, */ return ( <div> <Cat/> </div> ) } export default App
/// <reference path="../../../dist/preview release/babylon.d.ts"/> var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnPr...
(this["webpackJsonpmeteo-directo"]=this["webpackJsonpmeteo-directo"]||[]).push([[146],{237:function(t,e,r){"use strict";r.r(e),r.d(e,"icon",(function(){return o}));var n=r(1);function i(){return(i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnPro...
/* |-------------------------------------------------------------------------- | Browser-sync config file |-------------------------------------------------------------------------- | | For up-to-date information about the options: | http://www.browsersync.io/docs/options/ | | There are more options than you ...
const router = require('express').Router(); const { User, Post} = require('../../models'); // GET all users router.get('/', (req, res) => { User.findAll({ attributes: {exclude: ['password']}, }) .then(dbUserData => res.json(dbUserData)) .catch(err => { console.log(err); res.stat...
/** * Copyright (c) 2017-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ const React = require('react'); const CompLibrary = require('../../core/CompLibrary'); const Container = CompLibrary.Container; const...
import {useRef, useState} from 'react'; import {useHistory} from 'react-router-dom'; import classes from './AuthForm.module.css'; import {useAppContext} from '../../AppContext'; import LoadingSpinner from '../Layout/LoadingSpinner'; import Alert from '../Layout/Alert'; const AuthForm = () => { const emailInputRef =...
/* This class is responsible for linking the user inputs (x and y coordinates of the pointer) to actions in the game (placing a wall, moving, switching control mode) */ class ControlHandler { constructor(game){ this.game = game; } keyPress(code) { //The player 1 can control his pawn with the arrows ...
describe("moveUpComponent", function() { beforeEach(function(){ moveUp = new moveUpComponent(); }); it("should have an _isMoving property that is a boolean", function() { expect(typeof moveUp._isMoving).toEqual('boolean'); }); });
const chai = require('chai'); const { graphql } = require('graphql'); const schema = require('../../../../../graphQL/schema'); const { decodeToken } = require('../../../../../components/User/methods'); const { connectMongoose, clearDbAndRestartCounters, disconnectMongoose, createRows, getContext } = require('../.....
// Generated by CoffeeScript 1.10.0 define(function() { var BAD_CROSS_REFERENCE_REGEX, BibLogParser, LINE_SPLITTER_REGEX, MESSAGE_LEVELS, MULTILINE_COMMAND_ERROR_REGEX, MULTILINE_ERROR_REGEX, MULTILINE_WARNING_REGEX, SINGLELINE_WARNING_REGEX, consume, errorParsers, warningParsers; LINE_SPLITTER_REGEX = /^\[(\d+)].*...
switch (process.env.NODE_ENV) { case 'prod': case 'production': module.exports = require('./config/webpack.prod')({env: 'production'}); break; case 'test': case 'testing': module.exports = require('./config/webpack.test')({env: 'test'}); break; case 'package': module.exports = require('./c...
'use strict'; const { Binning } = require( './binning.js' ); /** * @classdesc Univariate statistical distribution analysis tool * It works by sorting data into bins. * This bin size depends on absolute & relative precision * of the incoming data. * Thus, very large samples can be processed fast * with rea...
//# sourceMappingURL=timeline-api-vue.acab51d3.js.map
var Manipulator = (function() { 'use strict'; var create = function(img) { // _data is the object containing both the image information // and all methods to manipulate that image. '_data' gets passed // around in the 'resolve' function of the promise. var _staging = []; var _data = {}; /* utility ...
const webpackMerge = require("webpack-merge"); const base = require("./webpack.base"); module.exports = function () { return webpackMerge.merge(base.config, { mode: "development", output: { filename: "[name]-dev.js", library: { name: "orda_jsoneditor", ...