text
stringlengths
2
1.04M
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** * Construct Markov Chain * * A Markov chain is "a stochastic model describing a sequence of possible events in which * the probability of each event depends only on the state attained in the previous event". * * @param {NameSetList} ...
const chalk = require('chalk'); const shell = require('shelljs'); const exec = require('../exec'); const colors = require('../colors'); module.exports = async (...args) => { if (!args.includes('--local')) { shell.echo(chalk`{${colors.success} #} Updating CLI to latest version ...`); await exec('npm', 'insta...
/* Copyright (c) 2014-2015 Richard Rodger, MIT License */ 'use strict' var Net = require('net') var Code = require('code') var Lab = require('lab') var Seneca = require('..') // Test shortcuts var lab = exports.lab = Lab.script() var describe = lab.describe var it = lab.it var expect = Code.expect var internals = {}...
/** * Project Euler - Problem Solution 024 * Copyright (c) Justin McGettigan. All rights reserved. * https://github.com/jwmcgettigan/project-euler-solutions */ function perm(digits) { // from https://stackoverflow.com/a/43260158/11342791 let permutations = []; for (let i = 0; i < digits.length; i++) { l...
/** @license Copyright (c) 2022 trading_peter This program is available under Apache License Version 2.0 */ import { LitElement, html, css } from 'lit'; class CardBox extends LitElement { static get styles() { return [ css` :host { display: block; border-radius: 10px; ...
'use strict'; /* global ng1nsControllers */ ng1nsControllers .controller('TranslateController', ['$translate', '$scope', function translateCtrl($translate, $scope) { $scope.changeLanguage = function(langKey) { $translate.use(langKey); }; }]);
/* eslint-disable import/no-extraneous-dependencies */ import '@testing-library/jest-dom'; import 'regenerator-runtime/runtime'; global.afterEach(() => { jest.restoreAllMocks(); });
// // Copyright (c) 2011, Brian Frank and Andy Frank // Licensed under the Academic Free License version 3.0 // // History: // 4 Jan 11 Andy Frank Creation // /** * DateTimeStr is used to format/parse DateTime, Date, and Time * using the standard pattern syntax. */ fan.sys.DateTimeStr = fan.sys.Obj.$extend(fan....
import { NotImplementedError } from '../extensions/index.js'; /** * Given a number, replace this number with * the sum of its digits until we get to a one digit number. * * @param {Number} n * @return {Number} * * @example * For 100, the result should be 1 (1 + 0 + 0 = 1) * For 91, the result should be 1 (9 +...
import { configure } from '@storybook/react'; import '../src/app/reset.scss'; // automatically import all files ending in *.stories.js const req = require.context('../src', true, /\.stories\.jsx?$/); function loadStories() { req.keys().forEach((filename) => req(filename)); } configure(loadStories, module);
var gamerenderer = (function() { /*--- PRIVATE FUNCTIONS */ /*------------ Rendering global */ var renderCache = {}; var doRenderList = function(list, rdr) { var result = rdr.prefix for (var i = 0; i < list.length; i++) { result += doRenderItem(list[i], rdr.content); } result += rdr.suff...
import axios from "axios"; const url = "api/posts"; class PostService { static getPosts() { return new Promise(async (resolve, reject) => { try { const res = await axios.get(url); const data = res.data; resolve( data.map(post => ( { ...post, createdAt: new Date(post.createdAt) } )...
require('file-loader?name=index.html!./index.html') import * as config from 'config' import init from 'init' import * as reducerFragment from 'reducer' import injectTapEventPlugin from 'react-tap-event-plugin'; // For camera navigator.getUserMedia = navigator.getUserMedia || navigator...
import * as codec from '../src/codecs/json.js'; import { sha256 as hasher } from '../src/hashes/sha2-browser.js'; import * as main from '../src/block.js'; import { CID, bytes } from '../src/index.js'; import { deepStrictEqual as same } from 'assert'; const test = it; const fixture = { hello: 'world' }; const link =...
/* @author: Aaron Elizondo @email: elizondo2356@gmail.com @github: aaroneg23 @description: */ //Constants var GLOBALS = require('../constants/globals.js'); // var CODESMSG = require('../constants/codesmsg.js'); // var CODES = require('../constants/codes.js'); var COLLECTIONS = require('../constants/co...
import Icon from './Icon' import Modal from './Modal' import Toggle from './Toggle' export { Icon, Modal, Toggle }
/*** USE THIS FILE TO SET OPTIONS ***/ GexfJS.setParams({ graphFile : "financiamiento.gexf", /* The GEXF file to show ! -- can be overriden by adding a hash to the document location, e.g. index.html#celegans.gexf GEXF files can now be replaced by pre-processed JSON files...
//>>built define("dijit/form/_FormWidget",["dojo/_base/declare","dojo/_base/kernel","dojo/ready","../_Widget","../_CssStateMixin","../_TemplatedMixin","./_FormWidgetMixin"],function(_1,_2,_3,_4,_5,_6,_7){if(!_2.isAsync){_3(0,function(){var _8=["dijit/form/_FormValueWidget"];require(_8);});}return _1("dijit.form._FormWi...
//# sourceMappingURL=3.b793ba9b.chunk.js.map
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ import _ from 'lodash'; import React, { Component } from 'react'; import clas...
/* eslint-disable no-script-url */ import React from 'react' import {connect} from 'cerebral/react' import {signal, state} from 'cerebral/tags' import translations from '../../common/compute/translations' import LangSelector from '../LangSelector' const TaglineRe = /^(.*)\[Cerebral](.*)$/ export default connect( {...
import React from 'react' const backToTop = () => { return ( <div className="flex justify-center bg-gray-100 p-8"> <a href="#top" className="bg-purple-200 block py-3 px-24 hover:bg-purple-600 hover:text-gray-50">Back to Top</a> </div> ) } export default backToTop
//# sourceURL=d3Volcanoplot.js 'use strict'; window.smartRApp.directive('volcanoPlot', [ 'smartRUtils', function(smartRUtils) { return { restrict: 'E', scope: { data: '=', width: '@', height: '@' }, link: ...
/* * Licensed to Elasticsearch B.V. under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch B.V. licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not u...
/** * Copyright <%= year %> Telerik AD * * 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 agr...
/* */ "format amd"; /*! jQuery Validation Plugin - v1.15.0 - 2/24/2016 * http://jqueryvalidation.org/ * Copyright (c) 2016 Jörn Zaefferer; Licensed MIT */ !function(a){"function"==typeof define&&define.amd?define(["jquery","../jquery.validate.min"],a):"object"==typeof module&&module.exports?module.exports=a(require(...
const mongoose = require('mongoose'); const express = require('express'); const app = express(); const PORT = process.env.PORT || 3000; app.use(express.json()); app.use(express.urlencoded({ extended: true })); app.use(express.static('public')); app.use(require('./routes')); mongoose.connect(process.env.MONGODB_URI ...
import React from 'react'; import { Router, Stack, Scene, Tabs } from 'react-native-router-flux'; import Login from './components/auth/Login'; import Signup from './components/auth/Signup'; import AddPost from './components/post/AddPost'; import ConfigPost from './components/post/ConfigPost'; import Home from './compo...
// Copyright (C) 2016 the V8 project authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- esid: sec-%typedarray%.prototype.indexof description: Return -1 if fromIndex >= ArrayLength - converted values info: | 22.2.3.13 %TypedArray%.prototype.indexOf (searchElement...
var main = require("../src/main"); var should = require("should"); describe("test/main.js", function() { it("should equal 1 when n === 0", function() { should(main.factorial(0)).equal(1); }); it("should equal 1 when n === 1", function() { should(main.factorial(1)).equal(1); }); it("should equal 362...
"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })...
// Crear Router const Express = require('express'); const GitHubRouter = Express.Router(); const Passport = require('passport'); GitHubRouter.get('/auth/github', Passport.authenticate('github')); GitHubRouter.get('/auth/github/callback', Passport.authenticate('github', { successRedirect: `${process.env.CLIENT_UR...
/* KM-UI script */ jQuery( function( $ ){ window.kmUI = { notify: { defaults: { maxWidth: 500, spinner: false, icon: 'dashicons-yes', iconColor: 'inherit', iconSize: null, text: '', timeout: 0 }, show: function( settings ) { settings = settings || {}; settings = ...
module.exports = { db: 'mongodb://localhost:27017/HomeWorkDB', secretKey: 'idinahuipidor' }
'use strict'; const assert = require('bsert'); const ChaCha20 = require('../lib/chacha20'); const vectors = require('./data/chacha20.json'); describe('ChaCha20', function() { for (const [key_, nonce_, counter, input_, output_] of vectors) { const key = Buffer.from(key_, 'hex'); const nonce = Buffer.from(non...
/* * LivePreview jQuery Plugin v1.0 * * Copyright (c) 2009 Phil Haack, http://haacked.com/ * Licensed under the MIT license. */ (function($) { $.fn.livePreview = function(options) { var opts = $.extend({}, $.fn.livePreview.defaults, options); var previewMaxIndex = opts.previewElement.length - 1; ...
export { default } from './Maps';
'use strict'; var FALSE = 0; var TRUE = -1; function Forth(next) { // Core structures var context = { stack: Stack('Evaluation Stack'), returnStack: Stack('Return Stack'), dictionary: Dictionary(), memory: Memory(), // This is set when the interpreter is waiting for a key to be pressed or slee...
// carregando todos os cammes preenchidos function runSimpleReportTecProfAtaAniversariante() { builderFilterTecProfAtaDeAniversariante([]); } // Função a montar o html function builderFilterTecProfAtaDeAniversariante(dados) { // Abrindo o modal $("#modal-report-tec-prof-ata-aniversariante").modal({show : t...
/** * si-test-xml-reader * https://github.com/galtalmor/si-test-xml-reader * * Copyright (c) 2017 Gal Talmor * Licensed under the MIT license. */ var http = require('http'); var zlib = require('zlib'); var Promise = require('promise'); var xml2js = require('xml2js'); function Parser() { /** * parses th...
/* * FullCalendar v1.5.2 Google Calendar Plugin * * Copyright (c) 2011 Adam Shaw * Dual licensed under the MIT and GPL licenses, located in * MIT-LICENSE.txt and GPL-LICENSE.txt respectively. * * Date: Sun Aug 21 22:06:09 2011 -0700 * */ (function($) { var fc = $.fullCalendar; var formatDate = fc.formatDat...
//>>built define("dijit/nls/ru/common",({buttonOk:"ОК",buttonCancel:"Отмена",buttonSave:"Сохранить",itemClose:"Закрыть"}));
var searchData= [ ['pitchinterpreter_795',['PitchInterpreter',['../group___a_r_a___library___utility___pitch___interpretation.html#class_a_r_a_1_1_pitch_interpreter',1,'ARA']]], ['playbackcontrollerinterface_796',['PlaybackControllerInterface',['../group___a_r_a___library___host___dispatch___host___interfaces.html#...
var http = require("http"); var options = { "method": "POST", "hostname": "mockbin.com", "port": null, "path": "/har", "headers": { "content-type": "text/plain" } }; var req = http.request(options, function (res) { var chunks = []; res.on("data", function (chunk) { chunks.push(chunk); }); ...
$(document).ready(function() { // Check All Boxes Code Starts $("#selectAllBoxes").click(function(event) { if (this.checked) { $(".checkBoxes").each(function() { this.checked = true; }); }else{ $(".checkBoxes").each(function() { this.checked = false; }); } }); // Check All Boxes Code Ends...
export const TOOGLE_CART_HIDDEN = 'TOOGLE_CART_HIDDEN'; export const ADD_ITEM = 'ADD_ITEM'; export const REMOVE_ITEM = 'REMOVE_ITEM'; export const CLEAR_ITEM_FROM_CART = 'CLEAR_ITEM_FROM_CART'; export const CLEAR_CART = 'CLEAR_CART';
var VideoBase = artifacts.require("./VideoBase.sol"); var VideoBreed = artifacts.require("./VideoBreed.sol"); var sleep = require("../oracles/utils/sleep.js"); module.exports = function(deployer) { let videoBase; let videoBreed; deployer.queueOrExec(function() { return sleep(); }).then(function() { ret...
$('.album-icon.close').click(function () { $('.control-center').removeClass('open'); $('.option-btn').removeClass('open'); var commentbox = $('#commentbox'); var revisionbox = $('#revision-container'); var album = $('#album'); album.attr('class', 'album-container animated fadeOutDown'); set...
const { EventEmitter } = require('events') const WebSocketHandler = require('./gateway/WebSocketHandler') const GatewayIntents = require('./gateway/GatewayIntents') const RequestHandler = require('./rest/RequestHandler') const Endpoints = require('./rest/Endpoints') const Structures = require('./structures') module.e...
//download.js v3.0, by dandavis; 2008-2014. [CCBY2] see http://danml.com/download.html for tests/usage // v1 landed a FF+Chrome compat way of downloading strings to local un-named files, upgraded to use a hidden frame and optional mime // v2 added named files via a[download], msSaveBlob, IE (10+) support, and window.UR...
/* -*- Mode: js2; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- / /* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */ 'use strict'; (function(exports) { var DEBUG = Config.debug; //change default path for gaia-component-utils window.packagesBaseUrl = 'libs/components/'; function...
/** * @fileoverview Rule to flag non-matching identifiers * @author Matthieu Larcher */ "use strict"; //------------------------------------------------------------------------------ // Requirements //------------------------------------------------------------------------------ const rule = require("../../../lib...
var app = angular.module('main', ['toaster']) var CONFIG_PAGE_PATH = "config_page/" String.prototype.endsWith = function(suffix) { return this.indexOf(suffix, this.length - suffix.length) !== -1; }; function append_current_path(path){ var current_path = window.location.pathname; if (current_path.endsWit...
module.exports = function (api) { const presets = [ "@babel/preset-env","@babel/preset-react" ]; const plugins = [ 'react-hot-loader/babel', '@babel/plugin-proposal-class-properties' ]; api.cache(false); return { presets, plugins }; }
var callbackArguments = []; var argument1 = {"":823,"!v":3.267021911367124e+307}; var argument2 = 9.797369618998774e+307; var argument3 = true; var argument4 = function callback(a,b,c,d) { callbackArguments.push(JSON.stringify(arguments)) argument1[9] = false return a*b/c-d }; var argument5 = true; var argument6 = tru...
/* * Kendo UI v2015.2.624 (http://www.telerik.com/kendo-ui) * Copyright 2015 Telerik AD. All rights reserved. * * Kendo UI commercial licenses may be obtained at * http://www.telerik.com/purchase/license-agreement/kendo-ui-complete * If you do not own a commercial license, this file shall be governed by the trial licen...
var expect = require("chai").expect; module.exports = function (helpers) { var component = helpers.mount(require.resolve("./index"), { colors: ["red", "green", "blue"] }); expect(component.el.innerHTML).to.contain("red"); expect(component.el.innerHTML).to.contain("green"); expect(component.el.innerHTML)...
const mongoose = require("mongoose"); const ContactSchema = mongoose.Schema({ firstname: {type:String, required:true}, lastname: {type:String,default:null}, email: {type:String, lowercase:true},//contact infor phonenum: {type:String,default:null}, companyname: {type:String,default:null}, cre...
/** * @file Event(Ghatna) emitter class * @author Sonu K. Meena [sonukr666@gmail.com] * @version 1.0.0 * @example * returns 'Ghatna' Object * var emitter = new Ghatna() ; * emtter.on("push", listener); // attach listener to "push" event * emtter.emit("push", arg1, arg2); // emit "push" event with arg1 and arg2 * var li...
/** * Copyright 2017 IBM Corp. 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable...
import { createSelector } from "reselect" import { getUsers as getState } from "../root/root-selectors" import { getUsers as getUsersER } from "../entity-repository/entity-repository-selectors" import { getRouteParams } from "../routing/routing-selectors" import { getUserProfileID } from "../user/user-selectors" import...
//Added dependency on drive.js. Will need a wrapper around //both drive.js and indexed_db.js pm.indexedDB = { TABLE_HEADER_PRESETS: "header_presets", TABLE_HELPERS: "helpers", TABLE_DRIVE_FILES: "drive_files", TABLE_DRIVE_CHANGES: "drive_changes", onTransactionComplete: function() { ...
'use strict' let jwt = require('jsonwebtoken') let logger = require('tracer').colorConsole() module.exports = function createJwt(userId) { try { return jwt.sign({user_id: userId}, process.env.SECRET_KEY, {algorithm: 'HS256'}) } catch (err) { logger.error(err) } }
import service from './index' const login = (email, password) => { return service.get("​/v1​/login", { email, password, }) }; export const register = (username, email, password) => { return service.post("/v1/register", { username, email, password, }) }; const l...
module.exports = function toReadable(number) { if (number == 0) { return "zero"; } let n = number.toString().split(""); if (n.length == 1) { return simpleN(n[0]); } if (n.length == 2) { return theLastTwo(n).trim(); } if (n.length == 3) { let lastTwo = n.sl...
import chai from 'chai' import * as scatter_plot_data from './scatter-plot.data' import ScatterPlot from '../../../src/charts/types/scatter-plot' var assert = chai.assert /** * Tests for ScatterPlot class * @test {ScatterPlot} */ describe('ScatterPlot', function () { /** * Test to check the constructor behavio...
/** Paths are the ID type for entities, and encode hierarchical information. */ export class Path { static parse(path) { if (path === '/') { return Path.root(); } else { return new Path(path.substr(1).split('/')); } } static root() { return new Path([]); } constructor(components...
import React, {Component} from 'react'; import PropTypes from 'prop-types'; import { Image, Text, View, ScrollView, StyleSheet, Animated, PanResponder, TouchableHighlight, TouchableOpacity, Dimensions, } from 'react-native'; const reactNativePackage = require('react-native/package.json'); const spl...
import React, { useState, useEffect, Fragment } from 'react'; import axios from 'axios'; import Navbar from './Navbar'; import Sidebar from './Sidebar'; import { Link } from "react-router-dom"; import { browserHistory, Redirect } from 'react-router-dom' const jwt = require('jsonwebtoken'); //import { NavLink, useHisto...
// @flow import _ from 'lodash'; import React from 'react'; import { ActivityIndicator, FlatList, TouchableOpacity, View } from 'react-native'; import { Text, TouchableRipple, withTheme } from 'react-native-paper'; import { AlertDialog, openDialog } from '../../../../base/dialog'; import { translate }...
export default class SubwayName { static renderStationNameInput = () => { const template = this.createStationNameInputTemplate(); const $input = document.querySelector("#input"); $input.insertAdjacentHTML("beforeend", template); }; static createStationNameInputTemplate = () => { return ` ...
module.exports = { hot: true }
import React, { Component } from "react"; import { BrowserRouter as Router, Route, Link } from 'react-router-dom'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { Button, FormControl } from 'react-bootstrap'; import App from '../components/App'; import UserTable from '../comp...
'use strict' var metadata = require('../metadata.full.json') var core = require('../core/index.commonjs') function call(func, _arguments) { var args = Array.prototype.slice.call(_arguments) args.push(metadata) return func.apply(this, args) } exports = module.exports = {} exports.ParseError = core.ParseError exp...
exports.createDay = require('./createDay'); exports.getDays = require('./getDays'); exports.getDay = require('./getDay');
import React from "react"; import Fade from "react-reveal/Fade"; import "./HomeBuilt.scss"; export default function HomeBuilt() { return ( <div className="home-built"> </div> ); }
import React, { Component } from 'react'; import Select from 'react-select'; import { connect } from 'react-redux'; import { setSearch, setSort, getRepositories, initRepositories } from '../../redux/actions/dashboardActions'; class SearchBar extends Component { state = { selectOptions: [ { va...
function p2kwiet138013951168_btnCheckin_onClick_seq0(eventobject) { return addFlight.call(this); }
require("dotenv").config(); const express = require("express"); const compression = require("compression"); const next = require("next"); const port = parseInt(process.env.PORT, 10) || 3000; const dev = process.env.NODE_ENV !== "production"; const app = next({ dev }); const handle = app.getRequestHandler(); app.prepa...
// CommitSchema.js const mongoose = require('mongoose') const Schema = mongoose.Schema const CommitSchema = new Schema({ commitid: { type: String, required: true } }) module.exports = mongoose.model('Commit', CommitSchema)
require.config({ paths: { foundation: 'foundation/foundation', jquery: 'vendor/jquery/jquery', scrollto: 'vendor/jquery.scrollTo/jquery.scrollTo.min', localscroll: 'vendor/jquery.localScroll/jquery.localScroll.min', modernizr: 'vendor/modernizr/modernizr', tokko: 'ven...
// @flow /* eslint-disable no-console */ /* eslint-disable import/no-extraneous-dependencies */ /* eslint-disable prefer-destructuring */ import '@babel/polyfill'; import fs from 'fs'; import path from 'path'; import cp from 'child_process'; import Octokit from '@octokit/rest'; import eres from 'eres'; import mime fr...
class Cell{ constructor(i,j){ this.i = i; this.j = j; this.alive = false; this.survives = false; //Made so not to change alive variabe mid-loop, also controls birthing of new cells } update(grid){ let neighbours = 0; //Variables to make the condition...
/* * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); y...
module.exports = /******/ (function(modules, runtime) { // webpackBootstrap /******/ "use strict"; /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/...
import AppForm from '../app-components/Form/AppForm'; Vue.component('global-footprint-form', { mixins: [AppForm], props: ['reimbursements', 'countries', 'concur_products'], data: function () { return { form: { reimbursement: '', concur_product: [], ...
import React from "react"; export default class Clock extends React.Component { constructor(props) { super(props); console.log("Clock constructed"); this.state = { date: new Date() }; } componentDidMount() { console.log("Clock did mount"); this.timerID = setInterval(() => this.tick(), 1000);...
/** * @module ol/layer/Base */ import {abstract} from '../util.js'; import BaseObject from '../Object.js'; import LayerProperty from './Property.js'; import {clamp} from '../math.js'; import {assign} from '../obj.js'; /** * @typedef {Object} Options * @property {number} [opacity=1] Opacity (0, 1). * @property {b...
import React from 'react' import PropTypes from 'prop-types' import Helmet from 'react-helmet' import { ThemeProvider, createGlobalStyle } from "styled-components" import { motion, AnimatePresence } from 'framer-motion' import Header from './Header' import Footer from './Footer' import { StaticQuery, graphql } from "ga...
class RelationMapping { sourceClass; targetClass; attributeMapping; constructor(sourceClass, targetClass, attributeMapping) { this.sourceClass = sourceClass; this.targetClass = targetClass; this.attributeMapping = attributeMapping } }
(function ($) { "use strict"; var markerIcon = { anchor: new google.maps.Point(22, 16), url: 'images/marker.svg', } function mainMap() { function locationData(locationURL, locationCategory, locationImg, locationTitle, locationAddress, locationPhone, locationStarRating, locationR...
var { '@kingjs': { '-rx': { '-sync': { Aggregate, SubscribeAndAssert, '-static': { of, throws, never }, } } } } = module[require('@kingjs-module/dependencies')]() of(0, 1, 2, 3, 4) [Aggregate]((a, o) => a + o, 0) [SubscribeAndAssert]([0, 1, 3, 6, 10]) of(1, 2) [Aggregate]() [Su...
/** * Shopware 5 * Copyright (c) shopware AG * * According to our dual licensing model, this program can be used either * under the terms of the GNU Affero General Public License, version 3, * or under a proprietary license. * * The texts of the GNU Affero General Public License with an additional * permission...
const fecha = require('fecha') const parseDate = (format) => (str) => str && fecha.parse(str, format) module.exports = parseDate
/* ========================================================= Name: ImportHS6e GitHub: https://github.com/eepjr24/ImportHS6e Roll20 Contact: eepjr24 Version: 1.05 Last Update: 03/08/2022 ========================================================= Updates: */ var API_Meta = API_Meta || {} API_Me...
console.log("the script file works!"); const btn = document.getElementById("button"); console.log(btn); const clickHander = () => { alert("button clicked!"); }; btn.addEventListener("click", clickHander);
export const offlineCourseConstants = { GET_OFFLINE_COURSE_SUCCESS : "GET_OFFLINE_COURSE_SUCCESS", GET_OFFLINE_COURSE_FAILURE : "GET_OFFLINE_COURSE_FAILURE", GET_LEARNER_OFFLINE_COURSE_SUCCESS : "GET_LEARNER_OFFLINE_COURSE_SUCCESS", GET_LEARNER_OFFLINE_COURSE_FAILURE : "GET_LEARNER_O...
//// [everyTypeWithAnnotationAndInitializer.ts] interface I { id: number; } class C implements I { id: number; } class D<T>{ source: T; recurse: D<T>; wrapped: D<D<T>> } function F(x: string): number { return 42; } module M { export class A { name: string; } export function ...
/* * Copyright 2018 Luke Klinker * * 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 agr...
describe('Timer', function() { it('reports the time elapsed', function() { var fakeNow = jasmine.createSpy('fake Date.now'), timer = new jasmineUnderTest.Timer({ now: fakeNow }); fakeNow.and.returnValue(100); timer.start(); fakeNow.and.returnValue(200); expect(timer.elapsed()).toEqual(100...