text
stringlengths
2
1.04M
// Copyright 2019 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
import React from 'react'; import { makeStyles, useTheme } from '@material-ui/core/styles'; import Card from '@material-ui/core/Card'; import CardContent from '@material-ui/core/CardContent'; import CardMedia from '@material-ui/core/CardMedia'; import IconButton from '@material-ui/core/IconButton'; import Typography fr...
'use strict'; if (process.env.NODE_ENV !== "production") { 'use strict'; var invariant = require('fbjs/lib/invariant'); var warning = require('fbjs/lib/warning'); var ExecutionEnvironment = require('fbjs/lib/ExecutionEnvironment'); var _assign = require('object-assign'); var emptyFunction = require('fbjs/lib/emptyF...
/* ---------------------------------------------------------------------------- * @copyright (C) 2018, Alert Logic, Inc * @doc * * The purpose of this function is to process dead letter blobs generated by * EhubGeneral function. * Dead letter blobs are located in 'alertlogic-dl' container located in the * web ...
(window.webpackJsonp=window.webpackJsonp||[]).push([[27],{476:function(e,t){e.exports={body:"",html:"",attributes:{name:"Bi LSTM",title:"Bi LSTM",description:"How bilingual LSTM Networks work sdcsacda asc asc acsa",year:"4 July 2019",color:"#edece7",isTextColorDark:!0,link:"https://medium.com/@raghavaggarwal0089/bi-lst...
//>>built define("dojox/validate/check",["dojo/_base/kernel","dojo/_base/lang","./_base"],function(s,g,p){s.experimental("dojox.validate.check");p.check=function(e,b){var f=[],h=[],q={isSuccessful:function(){return!this.hasInvalid()&&!this.hasMissing()},hasMissing:function(){return 0<f.length},getMissing:function(){ret...
const directive = require('./tb-loading.directive'); const moduleName = 'tb-loading', dependencies = []; angular.module(moduleName, dependencies) .directive(directive.name, directive.drtv); module.exports = moduleName;
import 'intl'; import 'intl/locale-data/jsonp/pt-BR'; import React from 'react'; import { StyleSheet, Text, View } from 'react-native'; import Routes from './src/routes'; export default function App() { return ( <Routes/> ); }
/*! * Copyright (c) Microsoft Corporation and contributors. All rights reserved. * Licensed under the MIT License. */ // This is a workaround for https://github.com/eslint/eslint/issues/3458 require("@rushstack/eslint-config/patch/modern-module-resolution"); module.exports = { "env": { "browser": true,...
!function(){"use strict";var t=document,e=window,n=function(e,n){return(n||t).querySelector(e)},o=function(e,n){return(n||t).querySelectorAll(e)},i=function(t){return t.nextElementSibling||null},r=function(t,e){return e?t.closest(e)||null:t.parentNode||null},l=function(t){return t.previousElementSibling||null},c=functi...
'use strict'; var analytics = require('../../lib/analytics'); var assign = require('../../lib/assign').assign; var Bus = require('framebus'); var convertMethodsToError = require('../../lib/convert-methods-to-error'); var generateGooglePayConfiguration = require('../../lib/generate-google-pay-configuration'); var iFram...
'use strict'; var controllers = angular.module('ServiceControllers', []); // Services Controller controllers.controller('listServicesCtrl', function ($scope, adminService, adminServices) { $scope.status = true; pushData(adminServices); $scope.getData = function() { adminService.getServices($sc...
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { StyleSheet, View, StatusBar, Text } from 'react-native'; export default class MainPasien extends Component<{}> { render() { return ( <View style={styles.conta...
module.exports = function jeffreys(a, b) { var ii = a.length, ans = 0; for (var i = 0; i < ii ; i++) { ans += (a[i] - b[i]) * Math.log(a[i] / b[i]); } return ans; };
mycallback( {"_record_type": "fec.version.v7_0.TEXT", "FILER COMMITTEE ID NUMBER": "C00461061", "REC TYPE": "TEXT", "TEXT4000": "Total earmarked through conduit PAC limit not affected", "TRANSACTION ID NUMBER": "TINCA8122IDTA623", "_src_file": "2011/20110504/727407.fec_5.yml", "BACK REFERENCE TRAN ID NUMBER": "INCA8122...
import React, { Component } from 'react' import { Alert, Card, CardBody, CardHeader, Col, Nav, NavItem, NavLink, Row, TabContent, TabPane } from 'reactstrap' import { translations } from '../../utils/_translations' import ProjectModel from '../../models/ProjectModel' import Overview from './Overview' import FileUploads...
import React from "react"; import { Provider } from "react-redux"; import { BrowserRouter as Router, Route, Switch } from "react-router-dom"; import { ApolloProvider } from '@apollo/react-hooks'; import ApolloClient from 'apollo-boost'; import store from './utils/store' import Home from "./pages/Home"; import Detail fr...
import { openDB } from 'idb'; const initdb = async () => openDB('jate', 1, { upgrade(db) { if (db.objectStoreNames.contains('jate')) { console.log('jate database already exists'); return; } db.createObjectStore('jate', { keyPath: 'id', autoIncrement: true }); console.log('...
load("201224b0d1c296b45befd2285e95dd42.js"); // |jit-test| --ion-eager function reportCompare (expected) { typeof expected; } var expect = 'No Crash'; var array = new Array(10); for (var i = 0; i != array.length; ++i) { gc(); } var expect = array.length; reportCompare(expect);
/******/ (() => { // webpackBootstrap /******/ "use strict"; /******/ var __webpack_modules__ = ({ /***/ "./node_modules/css-loader/dist/cjs.js!./src/style.css": /*!*************************************************************!*\ !*** ./node_modules/css-loader/dist/cjs.js!./src/style.css ***! \******************...
const pino = require('pino'); const { LOG_LEVEL, NODE_ENV, LOG_ENABLED } = process.env; const logger = pino({ enabled: LOG_ENABLED || ( ['production', 'development'].includes(NODE_ENV) ), level: LOG_LEVEL || ( NODE_ENV === 'production' ? 'info' : 'debug' ), }); module.exports = logger;
// server.js const express = require('express'); const SocketServer = require('ws').Server; const uuid = require('uuid'); // Set the port to 4000 const PORT = 4000; // Create a new express server const server = express() // Make the express server serve static assets (html, javascript, css) from the /public folde...
window.searchData = {"kinds":{"64":"Function"},"rows":[{"id":0,"kind":64,"name":"scru160","url":"modules.html#scru160","classes":"tsd-kind-function"},{"id":1,"kind":64,"name":"scru160f","url":"modules.html#scru160f","classes":"tsd-kind-function"}],"index":{"version":"2.3.9","fields":["name","parent"],"fieldVectors":[["...
module.exports = { css: { requireModuleExtension: false, loaderOptions: { sass: { prependData: '@import \'@/styles/styles.scss\';' } } } }
const mssql = require( 'mssql' ) const NKSQL = require( 'nk-mssql-builder' ) const mssqlDBJSObject = { db: null, retryTimeout: 100, connectionTimeout: 30000, insertList: {}, deleteList: {}, updateList: {}, databaseList: {}, id: name => objectid( name ), run: ( dbName, sql, callback ) => { if( mssqlDBJSObje...
import React from 'react' import PropTypes from 'prop-types' import SVGDeviconInline from '../../_base/SVGDeviconInline' import iconSVG from './ReactOriginalWordmark.svg' /** ReactOriginalWordmark */ function ReactOriginalWordmark({ width, height, className }) { return ( <SVGDeviconInline className={'Reac...
angular.module('testpage').component('testpage', { templateUrl: '/js/testpage/testpage.html', bindings: { //same as directive attribute scope }, controller: ['$timeout', '$http', function ($timeout, $http) { var ctrl = this; ctrl.datepickerPopup = { opened: false,...
import { createBrowserHistory as history} from 'history'; export default history();
import React from 'react' // Libraries import styled from 'styled-components' // Utils import breakpoint from 'utils/breakpoints/' // Components import Container from 'components/container/' import Grid from 'components/grid/' // Icons import Icon1 from 'assets/icons/research/research-icon-1.inline.svg' import Icon...
const osmToOsmgo = require('./index.min.js') const fs = require('fs') const path = require('path') // import osmToOsmgo from './index.js' // import fs from 'fs' // import path from 'path' // import { convert } from './index.js' // import * as fs from 'fs'; // import * as path from 'path'; const tagConfigPath = path...
$(document).ready(function () { Storage.prototype.setObj = function(key, obj) { return this.setItem(key, JSON.stringify(obj)) } Storage.prototype.getObj = function(key) { return JSON.parse(this.getItem(key)) } // SHOW NEWS SOURCES ON PAGE LOAD // =================================...
/* * Copyright 2019 is-land * * 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 w...
import React from 'react'; import {render, fireEvent, cleanup} from '@testing-library/react'; import Calculator from '../components/Calculator'; afterEach(cleanup); test('renders proper resistor', () => { const { getByText, getByDisplayValue } = render(<Calculator code={["Orange", "Orange", "Brown", "Gold"]} />); ...
import {ElementResizeDetector} from 'widget/elementResizeDetector' import React from 'react' import actionBuilder from 'action-builder' export default class ViewportResizeSensor extends React.Component { render() { return ( <ElementResizeDetector debounce={100} o...
import styles from "./Footer.module.scss"; const Footer = ({ ...rest }) => { return ( <footer className={styles.footer}> &copy; {new Date().getFullYear()} <span>All Rights Reserved</span> </footer> ); }; export default Footer;
/** * Main class for a runnable class (e.g. test, suite or a hook) * mainly used to capture its running duration */ export default class RunnableStats { constructor (type) { this.type = type this.start = new Date() this._duration = 0 } complete () { this.end = new Date() ...
/** * Copyright 2016, GeoSolutions Sas. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ var expect = require('expect'); var rulesmanager = require('../rulesmanager'); describe('test rules manager reduce...
/** * Pimcore * * LICENSE * * This source file is subject to the new BSD license that is bundled * with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://www.pimcore.org/license * * @copyright Copyright (c) 2009-2014 pimcore GmbH (http://www.pimcore...
export default { doNotCall: "연락하지 마십시오" }; // @key: @#@"doNotCall"@#@ @source: @#@"Do Not Contact"@#@
const Service = require('./service') const router = require('./router') /** * verifycode module. * @module verifycode * @param {Object} opts * @example * opts参数:{ * redis: (可选, 如果不填,自动连接默认 127.0.0.1:6379) * secret: 安全密钥(可选,默认'') * verifycode_length: 验证码长度,默认6 * verifycode_key: (可选, 默认'verifycode') * ver...
/** * * GraphQlbutton * */ import React from 'react'; import PropTypes from 'prop-types'; import ReactGA from 'react-ga'; import { withStyles } from 'material-ui/styles'; import Tooltip from 'material-ui/Tooltip'; import Button from 'material-ui/Button'; import { FaDatabase } from 'react-icons/lib/fa'; import { graphQ...
/** * Copyright 2004-present Facebook. All Rights Reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. * * @format */ 'use strict'; module.exports = { up: (queryInterface, Sequelize) => { return queryInterface.addColu...
import { getPropByPath } from '../../../src/utils/util' import ElCheckbox from '../../checkbox' import { h } from 'vue' export const cellStarts = { default: { order: '' }, selection: { width: 48, minWidth: 48, realWidth: 48, order: '', className: 'el-table-column--selection' }, expand...
function binaryLogarithm(params) { params.forEach(element => { console.log(Math.log2(Number(element))) }); } binaryLogarithm([5, 5 , 6, 1024])
module.exports = { name: 'Honza Chalupa portfolio', nameShort: 'Portfolio', description: 'Jsem Front-End Developer z Prahy. V posledních letech se zaměřuji primárně na React JS.', accentColor: '#ea003b', caching: { strategy: 'staleWhileRevalidate' }, cssVariables: { 'primary-...
//====================================================================================================================== // TEST SUITE FOR OFFICEGEN // This generates small individual files that test specific aspects of the API // and compares them to reference files. // // The comparison is based on string comparisons...
'use strict'; function getStartingWhitespaceCount(line) { return /^\s*/.exec(line)[0].length; } function isLineWhitespaceOnly(line) { return line.match(/^\s*$/); } /** * Search through all lines, counting the minimum whitespace for non-whitespace-only lines. */ function getMinimumStartingWhitespaceCount(lines)...
var express = require('express'); var router = express.Router(); router.get('/', function (req, res) { res.json({ msg: 'API Server is running.' }); }); module.exports = router;
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const SingletonMysql_1 = require("../common/SingletonMysql"); const Reading_1 = require("./Reading"); /** * Created by Le Reveur on 2017-12-21. */ class BookshelfSearch { constructor() { } /** * * @param start * @p...
const bluebird = require('bluebird'); global.Promise = bluebird; function promisifier(method) { // return a function return function promisified(...args) { // which returns a promise return new Promise((resolve) => { args.push(resolve); method.apply(this, args); }); }; } function promis...
const asciiLogo = require('..'); const pkg = require('../package.json'); console.log(asciiLogo()); console.log(asciiLogo(pkg.version)); console.log(asciiLogo(pkg.version, 'Hello world!'));
/*! For license information please see 2.6467fc0d.chunk.js.LICENSE */ //# sourceMappingURL=2.6467fc0d.chunk.js.map
module.exports = { db: { host: 'localhost', port: 28015, db: 'cloninstagram', setup: true } }
import React from "react"; import Layout from "../../components/Layout"; import Campaign from "../../ethereum/campaign"; import { Card, Grid, Button } from "semantic-ui-react"; import web3 from "../../ethereum/web3"; import ContributeForm from "../../components/ContributeForm"; import { Link } from "../../routes"; con...
let nock = require('nock'); module.exports.hash = "759d8857dda4f8a33fa177b82a42a168"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://joherediteststorage.table.core.windows.net:443', {"encodedQueryParams":true}) .post('/integration', {"PartitionKey":"P4__node","RowKey":"R4","testField":"1234...
var test = require("tap").test var npm = require.resolve("../../bin/npm-cli.js") var node = process.execPath var spawn = require("child_process").spawn var path = require("path") var pkg = path.resolve(__dirname, "lifecycle-signal") test("lifecycle signal abort", function (t) { var child = spawn(node, [npm, "install...
/* Rubik.js Copyright (c) 2012 Théophile Wallez This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial app...
dojo.provide("org.ppwcode.dojo.dijit.form._DataBox"); dojo.require("dijit.layout._LayoutWidget"); dojo.require("dijit._Templated"); dojo.declare( "org.ppwcode.dojo.dijit.form._DataBox", [dijit.layout._LayoutWidget, dijit._Templated], { gridModel: null, gridStructure: null, buildRendering: function() { ...
import React from 'react'; import { Route, Redirect } from 'react-router-dom'; const ProtectedRouterEmployee = ({ component: Component, ...rest }) => { const user = JSON.parse(localStorage.getItem('user')); const token = localStorage.getItem('token'); return ( <Route {...rest} render={(props) => ...
var namespaces = [ [ "Basic", "namespaceBasic.html", null ], [ "ci_example_python", "namespaceci__example__python.html", null ], [ "robot_properties_bolt", null, [ [ "bolt_wrapper", "namespacerobot__properties__bolt_1_1bolt__wrapper.html", null ], [ "gepetto_gui_loader", "namespacerobot__propert...
import React from "react"; import styled from "styled-components"; import ContentCenter from "../../../partials/content-center"; import {Heading} from "../../../atoms/typography/heading"; import GenericTable from "../../../organisms/tables/generic-table"; import {Paragraph} from "../../../atoms/typography/paragraph"; i...
// modules are defined as an array // [ module function, map of requireuires ] // // map of requireuires is short require name -> numeric require // // anything defined in a previous bundle is accessed via the // orig method which is the requireuire for previous bundles (function outer (modules, cache, entry) { //...
const express = require("express"); const router = express.Router(); const auth = require("../middleware/auth"); const admin = require("../middleware/admin"); const path = require("path"); require("../module/router_loader")(router, path.resolve(__dirname, "./admin")); module.exports = ["/admin", auth, admin, router];
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var React = require('react'); /** * @license * MIT License * * Copyright (c) 2019 Alexis Munsayac * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (th...
/* * This file is part of Invenio. * Copyright (C) 2017-2022 CERN. * * Invenio is free software; you can redistribute it and/or modify it * under the terms of the MIT License; see LICENSE file for more details. */ // eslint-disable-next-line no-unused-vars import jquery from "jquery/dist/jquery"; import "./trunc...
import Card from "./../../components/Card"; import getNPMDownloadCount from "./../../utils/npm/getDownloadCount"; class GithubProject extends React.Component { state = { downloads: 0, }; async componentDidMount() { const downloads = await getNPMDownloadCount(this.props.repo); this.setState({ ...
import React from "react"; import ReactDOM from "react-dom"; import MUIDataTable from "../../src/"; class Example extends React.Component { constructor(props) { super(props); this.state = { data: [ ["Gabby George", "Business Analyst", "Minneapolis", 30, "$100,000"], ["Aiden Lloyd", "Bu...
import get from 'lodash/get'; import { _convertLatLngs, _toPoint } from '../helpers/ModeHelper'; import { copyLatLngs } from '../helpers'; /** * We create a temporary polygon with the same latlngs as the layer that we want to rotate. * Why polygon? Because then we have the correct center also for polylines with `lay...
function getTodaysDate() { let day = new Date().getDate(); let month = new Date().getMonth(); let year = new Date().getFullYear(); return new Date(year, month, day); } function getDaysToGo() { let today = getTodaysDate(); let weddingDay = new Date(2021, 3, 23); let dateDiff = weddingDay.g...
const config = require('../config.js'); Feature('Smoke tests @smoke-tests'); Scenario('Sign in as solicitor user', async ({I}) => { await I.retry(5).login(config.applicantSolicitorUser); await I.retry(5).see('Case list'); });
'use strict'; /* global describe, it */ var chai = require('chai'); var assert = chai.assert; var base32 = require('base32.js'); var speakeasy = require('..'); // These tests use the information from RFC 4226's Appendix D: Test Values. // http://tools.ietf.org/html/rfc4226#appendix-D describe('Generator tests', fun...
import React from 'react'; var ImgFigure = React.createClass({ // 点击处理函数 handleClick: function (e) { if (this.props.arrange.isCenter) { this.props.inverse(); }else{ this.props.center(); } e.stopPropagation(); e.preventDefault(); }, render: function (){ var styleObj = {}; ...
import styled from 'styled-components' export const Wrapper = styled.div` display: flex; width: 100%; gap: 2rem; ` export const Button = styled.button` background-color: transparent; border: none; outline: none; ${({ imageDetailsOpen }) => imageDetailsOpen && 'display: none'} &:disabled { opacity...
// TTS JavaScript Assignment 2 - Exercise 3 const appData = { name: "GMail", mailboxes: { inbox: { messages: [] }, sent: { messages: [] }, junk: { messages: [] }, drafts: { messages: [] }, spam: { messages: [] }, trash: { messages: [] }, archive: { messages: [] ...
import firebase from 'firebase' // Initialize Firebase var config = { apiKey: "AIzaSyCScazb_P5MOU0HawAkclEYHpqqacxOqVA", authDomain: "poppywatch-72416.firebaseapp.com", databaseURL: "https://poppywatch-72416.firebaseio.com", projectId: "poppywatch-72416", storageBucket: "poppywatch-72416.appspot.co...
import Ember from 'ember'; import zfWidget from 'ember-cli-foundation-6-sass/mixins/zf-widget'; export default Ember.Component.extend(zfWidget, { /** @member Class names */ classNames: ['reveal'], /** @member Attribute bindings */ attributeBindings: ['data-reveal'], /** @member Makes the data attribute bi...
/* eslint-env jest */ import React from 'react'; import { shallow, mount } from 'enzyme'; import Tab from '../Tab'; import TabList from '../TabList'; import TabPanel from '../TabPanel'; import Tabs from '../Tabs'; function hasClassAt(wrapper, index, className) { return wrapper.childAt(index).find('li').hasClass(clas...
/*! @source http://purl.eligrey.com/github/FileSaver.js/blob/master/FileSaver.js */
define( [], function () { /** * Create a wrapper around a property that can be passed around to read or write * the underlying value. * * @param root * @param path * @returns {{set: Function, get: Function}} * @constructor */ function ValueRef ( root, path ) { path = path.split( "." ); ...
export { default as launchTaskDurationWatcher } from './launchTaskDurationWatcher';
#!/usr/bin/env node //-------------------------------------------------------------------------- // Copyright 2020 Expedia, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // ...
const axios = require('axios'); const { GraphQLObjectType, GraphQLInt, GraphQLString, GraphQLBoolean, GraphQLList, GraphQLSchema } = require('graphql'); //Launch Type const LaunchType = new GraphQLObjectType({ name: 'Launch', fields: () => ({ flight_number: { type:GraphQLI...
/** * Kendo UI v2020.3.1118 (http://www.telerik.com/kendo-ui) * Copyright 2020 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved....
import { Map, Record } from 'immutable'; import pick from '../pick'; describe('transmute/pick', () => { const takeOneAndThree = pick(['one', 'three']); it('selects keys from Maps', () => { expect( takeOneAndThree(Map({ one: 1, two: 2, three: 3 })) ).toMatchSnapshot(); }); it('selects keys from ...
// Contains all path information to be used throughout the codebase. // Assumes that config.url is set, and is valid const moment = require('moment-timezone'), _ = require('lodash'), url = require('url'), cheerio = require('cheerio'), config = require('../../config'), settingsCache = require('../set...
/** * Generated bundle index. Do not edit. */ export * from './index'; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGV2ZXh0cmVtZS1hbmd1bGFyLXVpLXJhbmdlLXNlbGVjdG9yLmpzIiwic291cmNlUm9vdCI6Im5nOi8vZGV2ZXh0cmVtZS1hbmd1bGFyL3VpL3JhbmdlLXNlbGVjdG9yLyIsInNvdXJjZXMiOlsiZGV2ZXh0cmVtZS1hbmd1b...
const Car = require("../car_class"); describe("Car Class: Create a car, make it drive", function() { it("The car should be a type of `object`, and an instance of the `Car` class", function() { var honda = new Car('Honda'); expect(typeof honda).toEqual(typeof {}); expect(honda instanceo...
ServiceConfiguration.configurations.remove({ service: 'facebook' }); ServiceConfiguration.configurations.insert({ service: 'facebook', appId: '11315907', secret: 'a9c18e2fbd119757' });
module.exports = { preset: 'ts-jest', testEnvironment: 'node', setupFilesAfterEnv: ['<rootDir>src/test-setup.ts'], };
(function () { //*方法库 function extend(destination, source) { // var temp = {}; var property = ""; for (property in source) { // temp[property] = source[property]; //用中间对象来保存source destination[property] = source[property]; } ...
define({ initialize:function() { //hook up the editor object $('#index-vwf').mousedown(function(e){_Editor.mousedown(e)}); $('#index-vwf').mouseup(function(e){_Editor.mouseup(e)}); $('#index-vwf').click(function(e){_Editor.click(e)}); $('#index-vwf').mouseleave(function(e){_Editor.mouseleave(e)}); $('#...
const got = require('@/utils/got'); const cheerio = require('cheerio'); const date = require('@/utils/date'); module.exports = async (ctx) => { const rootUrl = 'https://www.xyplorer.com'; const currentUrl = `${rootUrl}/whatsnew.php`; const response = await got({ method: 'get', url: currentU...
/** * @license Highcharts JS v6.0.5 (2018-01-31) * Annotations module * * (c) 2009-2017 Torstein Honsi * * License: www.highcharts.com/license */ 'use strict'; (function(factory) { if (typeof module === 'object' && module.exports) { module.exports = factory; } else { factory(Highcharts); ...
/* Copyright 2020 Splunk Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distrib...
import React, { Component } from 'react'; import logo from './logo.svg'; import './App.css'; import { withAuthenticator } from 'aws-amplify-react' import Amplify, { Auth } from 'aws-amplify'; import aws_exports from './aws-exports'; Amplify.configure(aws_exports); class App extends Component { render() { return ...
define(function(require) { 'use strict'; var _ = require('underscore'); var Select2AutocompleteView = require('oroform/js/app/views/select2-autocomplete-view'); var Select2BuTreeAutocompleteView = Select2AutocompleteView.extend({ initialize: function() { this.$el.on('input-widget:...
// Récupérer le localStorage (string) => Array => Set // ou créer un nouveau Set vide. // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set // https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage const likes = window.localStorage.getItem('likes') ? new Set(JSON.parse...
// Copyright 2020 Paul Sitoh // // 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 w...
const test = require('tape'); const without = require('./without.js'); test('Testing without', (t) => { //For more information on all the methods supported by tape //Please go to https://github.com/substack/tape t.true(typeof without === 'function', 'without is a Function'); t.deepEqual(without([2, 1, 2, 3], 1, 2)...
const merge = (data, left, middle, right, compare) => { let leftLength = middle - left; let rightLength = right - middle; const temp = []; for (let idx = 0; idx < leftLength; idx++) { temp.push(data[left + idx]); } let cursor1 = 0; let cursor2 = middle; let dest = left; do { ...