text
stringlengths
2
1.04M
/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) /******/ return installedModu...
var searchData= [ ['sec',['Sec',['../namespaceAether.html#a3a862896c43c3cd021470d0029eeaaf0a2d5cc554c126edb041901fa7d79b558b',1,'Aether']]], ['sl_5fleft',['SL_LEFT',['../namespaceAether.html#a404ceb3e1c2adbc8c7edcd5d27aa7be7ad887d84617d58c8c9a329d8ff70721ef',1,'Aether']]], ['sl_5fright',['SL_RIGHT',['../namespace...
'use strict'; /* Directives */ angular.module('myApp.directives', []). directive('appVersion', ['version', function(version) { return function(scope, elm, attrs) { elm.text(version); }; }]); angular.module('myApp.directives', []). directive('newTransaction', [function() { return { ...
/** * Created by kevin on 10/01/2016. */ export default class Unsubscriber { constructor(ngStomp, connections) { this.ngStomp = ngStomp; this.connections = connections; } unSubscribeAll() { this.connections.forEach(c => this.$$unSubscribeOf(c)); this.connections = []; ...
'use strict'; import document from 'global/document'; import mejs from '../core/mejs'; import i18n from '../core/i18n'; import {config} from '../player'; import MediaElementPlayer from '../player'; import {convertSMPTEtoSeconds} from '../utils/time'; import {isString, createEvent} from '../utils/general'; import {addC...
/* This is the last lesson about the string object, we will learn the two knowledge used to format the string. The first is a simple method: trim(). Usage is very simple: stringObject.trim() Its role is very simple too: remove the whitespace at the edge of the string. example: var str=" abc ...
const mix = require('laravel-mix'); /* |-------------------------------------------------------------------------- | Mix Asset Management |-------------------------------------------------------------------------- | | Mix provides a clean, fluent API for defining some Webpack build steps | for your Laravel appli...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const yargs = require("yargs"); const index_1 = require("./index"); const options_1 = require("./options"); function exec(args, log = console.log) { let parsedArguments = yargs(args) .usage(` Usage: $0 [options] <file/glob ...> By...
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...
function solve(input) { let volume = Number(input.shift()); let pipeOne = Number(input.shift()); let pipeTwo = Number(input.shift()); let hours = Number(input.shift()); let pipeOneFill = pipeOne * hours; let pipeTwoFill = pipeTwo * hours; let twoPipesFill = pipeOneFill + pipeTwoFill; let...
/* Zepto v1.2.0 - zepto event ajax form ie - zeptojs.com/license */ !function (t, e) { "function" == typeof define && define.amd ? define(function () { return e(t) }) : e(t) }(this, function (t) { var e = function () { function $(t) { return null == t ? String(t) : S[C.call(t)] |...
const expect = require('chai').expect; const Utility = require('../utility'); global.$ = require('jquery'); describe('Utility', () => { describe('.template()', () => { it('works as expected', () => { expect(Utility.template('abc [_1] abc', ['2'])).to.eq('abc 2 abc'); expect(Ut...
const PositiveIntScalar = require('../scalars/positiveint.scalar'); const DateScalar = require('../scalars/date.scalar'); const { GraphQLObjectType, GraphQLNonNull, GraphQLList, GraphQLFloat } = require('graphql'); const { extendSchema } = require('../../../utils/schema.utils'); /** * @name exports * @summary Exp...
//Rotas const express = require("express"); const res = require("express/lib/response"); const routes = express.Router(); const admController = require("../controller/controller.admin"); const User = require("../model/user.model"); routes.get("/admin", admController.get); routes.get("/admin/:id", admController.getID...
/** * @license * Copyright 2016 Google LLC * SPDX-License-Identifier: Apache-2.0 */ /** * @fileoverview Contains the controller code for workspace factory. Depends * on the model and view objects (created as internal variables) and interacts * with previewWorkspace and toolboxWorkspace (internal references stor...
import {t} from '@lingui/macro' import {Trans} from '@lingui/react' import {ActionLink} from 'components/ui/DbLink' import ACTIONS from 'data/ACTIONS' import Module from 'parser/core/Module' import {Rule, Requirement} from 'parser/core/modules/Checklist' import React from 'react' // TODO: Figure out how to check CD of...
// Note: For maximum-speed code, see "Optimizing Code" on the Emscripten wiki, https://github.com/kripken/emscripten/wiki/Optimizing-Code // Note: Some Emscripten settings may limit the speed of the generated code. // The Module object: Our interface to the outside world. We import // and export values on it, and do th...
// file loaded automatically on startup by nextjs // ensures that nextjs picks up file changes inside d container every 300ms as it bugs out occasionally module.exports = { webpackDevMiddleware: config => { config.watchOptions.poll = 300 return config } }
import { FEATURE_ENTRANCES, CLUSTER_MARKERS } from '../core/constants'; import { GlyphString } from '../core/GlyphString'; import { Marker } from './Marker'; import { Object3D, Vector3, Triangle, Plane } from '../Three'; // preallocated objects for projected area calculation and cluster visibility checks const __a = ...
import { ENV } from '../../config'; import { ACTION_UPDATE_DATE, ACTION_UPDATE_LOCATION, } from './actions'; const initialState = { latitude: null, longitude: null, city: '', }; if (ENV === 'dev') { initialState.city = 'San Francisco'; initialState.latitude = 37.7749; initialState.longitude = -122.4194...
import { createStore } from 'redux' import reducers from './reducers'; export default createStore(reducers, {});
// VIE - Vienna IKS Editables // (c) 2011 Henri Bergius, IKS Consortium // (c) 2011 Sebastian Germesin, IKS Consortium // (c) 2011 Szaby Grünwald, IKS Consortium // VIE may be freely distributed under the MIT license. // For all details and documentation: // http://viejs.org/ VIE.prototype.C...
import React from "react"; import styled from "styled-components"; import media from "styled-media-query"; const Foot = styled.footer` width: 100%; height: 100%; background: white; color: black; text-align: center; font-size: 15px; padding: 40px 0; h1 { margin-block-start: 10px; } .email { ...
jest.dontMock('../DateUtil'); var DateUtil = require('../DateUtil'); describe('DateUtil', function () { describe('#msToDateStr', function () { it('should return the correct string for AM', function () { // December is 11 due to months being 0-based index. var christmas = new Date(2015, 11, 25, 8, 13...
(function (factory) { if (typeof module === "object" && typeof module.exports === "object") { var v = factory(require, exports); if (v !== undefined) module.exports = v; } else if (typeof define === "function" && define.amd) { define(["require", "exports", "../process", "../state/Poi...
$(document).ready(() => { // FABs $('.io-fab').click(() => { $('#fab-group').toggle('hide'); // toggle added animation. weird, but nice. :D }); $('#fab-1').click(() => { $('#add-event-modal').removeClass('hide'); }); $('#fab-2').click(() => { $('#add-center-modal').removeClass('hide'); }); ...
import React, { useState, useEffect } from 'react'; import ReactDOM from 'react-dom'; import { Rose } from '@ant-design/charts'; const DemoRose = () => { const data = [ { type: '分类一', value: 27, }, { type: '分类二', value: 25, }, { type: '分类三', value: 18, }, ...
"use strict"; /* Generated from https://d3teyb21fexa9r.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json, version 1.13.0 */ Object.defineProperty(exports, "__esModule", { value: true }); const resource_1 = require("../resource"); class ReplicationSubnetGroup extends resource_1.ResourceBase { const...
const path = require('path'); const axios = require('axios'); const winston = require('winston'); const filename = path.join(__dirname, 'testLog.log'); console.log(filename); const app = require('express')(); const logger = winston.createLogger({ transports: [ new winston.transports.Console({ filename, level:...
'use strict'; { console.log( 'true' ); }
/** * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software * distributed unde...
load("201224b0d1c296b45befd2285e95dd42.js"); // Inserting values in an array does not change the next index of an existing iterator. var a = [1, 2, 3, 4]; var s = ''; for (var v of a) { s += v; if (s.length === 2) a.unshift('x'); } assertEq(s, '12234');
'use strict'; (function($){ $(function() { var datascource = { 'name': 'Lao Lao', 'title': 'general manager', 'children': [ { 'name': 'Bo Miao', 'title': 'department manager' }, { 'name': 'Su Miao', 'title': 'department manager', 'children': [ { 'name': '...
// Copyright 2007 The Closure Library Authors. All Rights Reserved. // // 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...
// This file is part of Moodle - http://moodle.org/ // // Moodle is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // Moodle is dis...
/** * @license Apache-2.0 * * Copyright (c) 2018 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...
import * as types from '../constants/ActionTypes'; export const increaseCounter = () => ({ type: types.INCREASE_COUNTER, });
// Copyright 2021 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 // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
import { prequest } from '../../common/http' Page({ data: { motto: 'Hello World', userInfo: {}, hasUserInfo: false, canIUse: wx.canIUse('button.open-type.getUserInfo'), canIUseGetUserProfile: false, canIUseOpenData: wx.canIUse('open-data.type.userAvatarUrl') && wx.canIUse('open-data.type.user...
$(document).ready(function() { ymaps.ready(init); function init() { var groups = [ { name: "Росавтоакадемия, Центральный офис", descr: "443099, г. Самара, <br>ул. Молодогвардейская 33, оф. 232. График работы: 8:00 - 17:00 Пн.-Пт.<br/>Тел.: +7 (846) 255-69-99", items: ...
'use strict'; customElements.define('compodoc-menu', class extends HTMLElement { constructor() { super(); this.isNormalMode = this.getAttribute('mode') === 'normal'; } connectedCallback() { this.render(this.isNormalMode); } render(isNormalMode) { let tp = lithtml....
import fluidicSwitch from '../../src/switch'; describe('fluidicSwitch', () => { describe('Init function', () => { beforeEach(() => { stub(fluidicSwitch, 'init'); fluidicSwitch.init(); }); it('should have been run once', () => { expect(fluidicSwitch.init).to.have.been.calledOnce; })...
import React, { useState } from 'react' import { FormPanel, Content, Button, Panel, Subtitle, ActionBar, Text } from 'rsi-react-web-components' const Profile = ({ moveNext, movePrevious }) => { const [entity, setEntity] = useState({ lastname: "Canonoy", firstname: "Jason", mi: "C", bdate: "1972 Jan 20", bpl...
import Component from '@ember/component'; export default Component.extend({ tagName: 'textarea', classNames: ['travis-form__field-textarea'], attributeBindings: ['disabled', 'placeholder', 'rows', 'readonly'], disabled: false, readonly: false, placeholder: '', rows: 2, value: '', onChange() {}, ...
// import React from 'react' // import { shallow } from 'enzyme' // import FileUploader from '../index' describe('TODO <FileUploader />', () => { it('Expect to have unit tests specified', () => { expect(true).toEqual(true) }) })
var util = require("util"); var choreography = require("temboo/core/choreography"); /* CreateFork Creates a fork for the authenticated user. */ var CreateFork = function(session) { /* Create a new instance of the CreateFork Choreo. A TembooSession object, containing a valid set of Temboo...
import React from "react"; import { FormGroup, Input, Label } from "react-native-clean-form"; import { View, PanResponder } from "react-native"; import FormSelect from "./FormSelect"; const PickupField = function (props) { const onChange = function (text) { if (typeof props.onInputChange === ...
/* eslint-disable */ /* 6.10~6.20 心尖好物 618拔草时刻 [gua_opencard182.js] 新增开卡脚本 一次性脚本 1.邀请一人20豆 2.开8张卡 成功开1张 获得10豆 3.加购5京豆 (默认不加购 如需加购请设置环境变量[guaopencard_addSku182]为"true" 第一个账号助力作者 其他依次助力CK1 第一个CK失效会退出脚本 默认脚本不执行 如需执行脚本请设置环境变量 guaopencard182="true" 每个账号之间延迟 100=延迟100秒 0=延迟0秒会使用每3个账号延迟60秒 guaopenwait_All 所有 guaopenwait1...
$(document).ready(function(){ $("#allpageinside_allthepage_inside_pagein_buyself_purchase").click(function(){ var amount = $("#allpageinside_allthepage_inside_pagein_buyself_number_self").val(); var bank = $("#allpageinside_allthepage_inside_cashoutbanks").val(); $.ajax({ type:'POST', url:'inc/cash72318d40...
import React from "react"; import ReactDOM from "react-dom"; import App from "./App"; import * as serviceWorker from "./serviceWorker"; import "./index.css"; ReactDOM.render( <React.StrictMode> <App /> </React.StrictMode>, document.getElementById("root") ); // If you want your app to work offlin...
// internal tooling import path from 'path'; // local tooling import access from './access'; import glob from './glob'; import json from './read-json'; import parse from './eslit-parse'; import read from './read-file'; // return array of closest path(s) export default (rawsrc, rawdata, rawopts) => { const { // cur...
define(['jquery'], function(jQuery){ return { tap:(function($){ $.fn.tap=function(options){ let settings = { btn: $('.tap_btn').children(), items: $('.tap_item').children(), type:'normal' } $.extend(settings, options); ...
import styled from 'styled-components'; import OriginalDayPicker from 'react-day-picker'; export const Container = styled.div` position: relative; .DayPicker { box-shadow: 0 .25rem 2rem -1rem black; background: white; border-radius: 3px; border-width: ${({ theme }) => theme.inputBorderWidth}; border-colo...
/** * @fileoverview AUTOMATICALLY GENERATED service for API.Client.ItemAttributeApi. * Do not edit this file by hand or your changes will be lost next time it is * generated. * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * Version: 20220523 * Gener...
angular.module("webapp").controller("SupernodeController", ["$scope", "SupernodeService", SupernodeController]); angular.module("webapp").controller("SupernodeCustomController", ["$scope", "$timeout", "$cookies", "SupernodeService", SupernodeCustomController]); function SupernodeController($scope, SupernodeService){ ...
import _find from 'lodash/find'; import _some from 'lodash/some'; import { Children } from 'react'; /** * Determine if child by type exists in children. * @param {Object} children The children prop of a component. * @param {string|Function} type An html tag name string or React component. * @returns {Boolean} */...
/* Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang( 'about', 'ru', { copy: 'Copyright &copy; $1. Все права защищены.', dlgTitle: 'О CKEditor 4', moreInfo: 'Для получения информаци...
import { dialog } from 'electron' import { autoUpdater } from 'electron-updater' import isDev from 'electron-is-dev' import { updaterLog } from '@zap/utils/log' import delay from '@zap/utils/delay' autoUpdater.logger = updaterLog /** * Update Channel * supported channels are 'alpha', 'beta' and 'latest' * Refer el...
ace.define("ace/snippets/svg",[], function(require, exports, module) { "use strict"; exports.snippetText = ""; exports.scope = "svg"; }); (function() { ace.require(["ace/snippets/svg"], function(m) { if (typeof module == "object" && typeof exports == "object...
const ChatLevelModel = require("../../model/application/ChatLevelModel"); const ChatLevelTemplate = require("../../templates/application/ChatLevel"); const { DefaultLogger } = require("../../util/Logger"); const UserModel = require("../../model/application/UserModel"); const { getClient } = require("bottender"); const ...
import React from 'react'; import PropTypes from 'prop-types'; import { groupBy, isEqual, last, sortBy, truncate } from 'lodash'; import memoizeOne from 'memoize-one'; import ReactDOM from 'react-dom'; import { defineMessages, injectIntl } from 'react-intl'; import { Manager, Popper, Reference } from 'react-popper'; im...
const styles = { description: { fontSize: '90%', }, inputContainer: { marginBottom: '20px', }, itemsContainer: { margin: 'auto', textAlign: 'left', width: '100%', }, searchBtn: { borderRadius: '4px', }, searchContainer: { ...
import Descriptor from '../Descriptor'; import MetricDensity from './Metric'; import LiterDensity from './Liter'; import OunceDensity from './Ounce'; import ImperialDensity from './Imperial'; // import VolumeImperial from './Imperial'; const Density = new Descriptor([MetricDensity, LiterDensity, OunceDensity, Imperial...
"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...
'use strict'; /* * Defining the Package */ var meanio = require('meanio'); var Module = meanio.Module, config = meanio.loadConfigNew(), favicon = require('serve-favicon'); var SystemPackage = new Module('system'); /* * All MEAN packages require registration * Dependency injection is used to define required m...
'use strict'; // Import parts of electron to use const {app, BrowserWindow} = require('electron'); const path = require('path') const url = require('url') // Keep a global reference of the window object, if you don't, the window will // be closed automatically when the JavaScript object is garbage collected. let main...
import Web3 from "web3"; import Abi from './SurveyCore.json'; const { ETH_HTTP_HOST : host, ETH_HTTP_PORT : http_port, ETH_WS_PORT : ws_port, ETH_CONTRACT_ADDRESS : addr } = process.env; export default class InoWeb3 extends Web3 { static instance; inoContrac...
import { DateTime } from 'luxon' import { EventEmitter } from 'events' import KEYWORDS from './data/v2/keywords' import { ExpeditionReport } from './data/v2/adapter' export class ParserError extends Error { name = 'ParserError' constructor (messageId, ...args) { super(...args) this.messageId = messageId ...
var path = require('path') var webpack = require('webpack') module.exports = { devtool: 'cheap-module-eval-source-map', entry: [ 'webpack-hot-middleware/client', './index' ], output: { path: path.join(__dirname, 'dist'), filename: 'bundle.js', publicPath: '/static/' }, plugins: [ ne...
const express = require('express'); const { createProxyMiddleware } = require('http-proxy-middleware'); const socks = require('socksv5'); const axios = require('axios'); process.on('uncaughtException', (e) => { console.error("uncaughtException\t", e.stack); }); async function request(config) { const result = ...
/* @generated */ // prettier-ignore if (Intl.DisplayNames && typeof Intl.DisplayNames.__addLocaleData === 'function') { ) }
import {IConfig} from './index'; /* Config for production enviroment */ const config = IConfig; export default config;
import _$ from 'jquery' import React from 'react' import ReactDOM from 'react-dom' import TestUtils from 'react-addons-test-utils' import jsdom from 'jsdom' import chai, { expect } from 'chai' import chaiJquery from 'chai-jquery' import { Provider } from 'react-redux' import { createStore } from 'redux' import reducers...
function cov_2j3pv8t5cs(){var path="/home/programmer/arkademy/minggu1/ninja-library-app/src/routes/auth.js";var hash="cf3d897a4be8cdcc33f4a259c0a80f8be9536686";var global=new Function("return this")();var gcv="__coverage__";var coverageData={path:"/home/programmer/arkademy/minggu1/ninja-library-app/src/routes/auth.js",...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _default = { days: ['Неділя', 'Понеділок', 'Вівторок', 'Середа', 'Четвер', 'П’ятниця', 'Субота'], daysShort: ['Нед', 'Пнд', 'Вів', 'Срд', 'Чтв', 'Птн', 'Сбт'], daysMin: ['Нд', 'Пн', 'Вт', 'Ср', 'Чт', 'Пт'...
import React, { Component } from "react"; import PropTypes from "prop-types"; import styled from "styled-components"; import uniqueId from "lodash.uniqueid"; import { Form } from "reacto-form"; import { withComponents } from "@reactioncommerce/components-context"; import { applyTheme, CustomPropTypes, getRequiredValida...
/* @flow */ import React, { Component } from 'react'; import { Linking } from 'react-native'; import Text from './Text'; /** * The type of the React {@code Component} props of {@link Link}. */ type Props = { /** * The children to be displayed within this Link. */ children: React$Node, /** ...
import { sayHello } from '../src/module'; import { sayHi } from '../src/module2'; describe('module', function () { const hello = sayHello('World'); const hi = sayHi(); it('should display proper hello', function () { expect(hello).toBe('Hello World'); }); it('should display proper hi', fun...
// src/types.ts var PossibleShape = /* @__PURE__ */ ((PossibleShape2) => { PossibleShape2["CIRCLE"] = "CIRCLE"; PossibleShape2["TRIANGLE"] = "TRIANGLE"; PossibleShape2["SQUARE"] = "SQUARE"; PossibleShape2["PENTAGON"] = "PENTAGON"; PossibleShape2["HEXAGON"] = "HEXAGON"; return PossibleShape2; })(PossibleShap...
(function($){ // taxonomy acf.fields.taxonomy = acf.field.extend({ type: 'taxonomy', $el: null, actions: { 'ready': 'render', 'append': 'render', 'remove': 'remove' }, events: { 'click a[data-name="add"]': 'add_term' }, focus: function(){ // $el this.$el = this.$field.f...
/** * First we will load all of this project's JavaScript dependencies which * includes Vue and other libraries. It is a great starting point when * building robust, powerful web applications using Vue and Laravel. */ require('./bootstrap'); window.Vue = require('vue'); // ES6 import Vue from 'vue' // scroll i...
/** * Attend un certain temps. * * @example * async function() { * // Do things... * await wait(3000) // Wait 3 seconds * // Do other things... * } * * @param {number} [ms=0] - Temps d'attente en millisecondes (ms) * @returns {Promise<void>} */ export const wait = (ms=0) => new Promise((resolve)...
'use strict'; const system = require('../../../libs/system'); module.exports = [ { method: "GET", path: "/", handler: (req, res) => { return res.response({message: "the cake is a lie"}).code(200) } }, { method: "GET", path: "/hello/{name}", ...
//>>built define("dojo/on", ["./has!dom-addeventlistener?:./aspect", "./_base/kernel", "./has"], function(aspect, dojo, has){ // summary: // The export of this module is a function that provides core event listening functionality. With this function // you can provide a target, event type, and listener to be notif...
const mix = require('laravel-mix'); /* |-------------------------------------------------------------------------- | Mix Asset Management |-------------------------------------------------------------------------- | | Mix provides a clean, fluent API for defining some Webpack build steps | for your Laravel appli...
import { assign, each, wrapBehavior } from '@antv/util'; var EVENT_TYPES = ['start', 'process', 'end', 'reset']; var Interaction = /** @class */ (function () { function Interaction(cfg) { var defaultCfg = this.getDefaultCfg(); assign(this, defaultCfg, cfg); this.canvas = this.view.canvas; ...
import 'animate.css' import Vue from 'vue' import App from './App.vue' import Button from '@/widgets/button/element' import Divider from '@/widgets/divider/element' import Image from '@/widgets/image/element' import Music from '@/widgets/music/element' import Rect from '@/widgets/rect/element' import Text from '@/widg...
/*eslint-env mocha*/ /*global BOOMR_test,assert,BOOMR*/ describe("e2e/26-iframedelay/01-delayed-boomr", function() { var tf = BOOMR.plugins.TestFramework; var t = BOOMR_test; function getIFrameBeacon(id) { return document.getElementById(id).contentWindow.BOOMR.plugins.TestFramework.lastBeacon(); } it("The ba...
import React from 'react' import { useField } from 'formik' import { TextField } from '@material-ui/core' import { makeStyles } from '@material-ui/core/styles' const successStyle = makeStyles(theme => ({ success: { '& label': { color: theme.palette.success.main, }, '& label.Mui-focused': { co...
import React from "react"; import LoadingIndicator from "."; import renderer from "react-test-renderer"; import { ThemeProvider } from "styled-components"; import theme from "../../config/theme"; it("Renders with loading=true", () => { const tree = renderer .create( <ThemeProvider theme={theme}> <L...
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])...
/* */ "format cjs"; "use strict"; var _toolsProtectJs2 = require("./../../../tools/protect.js"); var _toolsProtectJs3 = _interopRequireDefault(_toolsProtectJs2); exports.__esModule = true; function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { ...
// import {Utm} from 'utm-extractor' // const utm = new Utm('?utm_source=Google&utm_medium=cpc&utm_campaign=spring_sale&utm_term=running+shoes&utm_content=logolink') // const values = utm.get() // console.log(values) // { // utm_source : "Google", // utm_medium: "cpc", // utm_campaign: "spring_sale",...
// This is the code that will be loaded into the editor! // You can create a standardised template for answers here // Question 1: Say hi! function helloWorld() { // Your code here! } helloWorld(); dfbdbf
import React from "react"; import PropTypes from "prop-types"; import useTheme from "../hooks/useTheme"; import { responsiveWidthType, responsiveHeightType } from "../hooks/useResponsiveProp"; import useResponsivePropsCSS from "../hooks/useResponsivePropsCSS"; import { responsiveSize } from "../utils/css"; import {...
var url = require('url'); var https = require('https'); module.exports = function (requestUrl, options, data, cb) { options = options || {}; var parsedUrl = url.parse(requestUrl); if (parsedUrl.hostname) { options.hostname = parsedUrl.hostname; } if (parsedUrl.port) { options.port = parsedUrl.port; } i...
module.exports = { env: { browser: true, es6: true, }, extends: [ 'plugin:react/recommended', 'airbnb', 'plugin:@typescript-eslint/recommended', ], globals: { Atomics: 'readonly', SharedArrayBuffer: 'readonly', }, parser: '@typescript-eslint/parser', parserOpt...
'use strict'; // the core focus of today is on working with arrays and how loops will help achieve many common goals when working with them // follow along with the code below to present the basics of how we can iterate (loop) through a list of numbers // focus on the array index as being the current iteration index -...
import React, {useState} from 'react'; // import { Decoder, BufferManipulations, Encoder } from 'alamp'; import WaveformEditor from './WaveformEditor'; const tracks = [ { id: 1, title: 'Ever Be Instrumental', file: '../../../public/media/everbe.mp3', }, ]; export const Trimmer = () => { const [selectedTrac...
function AVLTree() { let Node = function (key) { this.key = key; this.left = null; this.right = null; }; let root = null; this.getRoot = function () { return root; }; let heightNode = function (node) { if (node === null) { return -1; } else { return Math.max(heightNode...