text
stringlengths
2
1.05M
/* * Copyright (c) 2015, Groupon, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditio...
/** * Matcher that checks to see if the actual, a Jasmine spy, was called with a * set of parameters for each expected call. * * @augments jasmine.Matchers * @example toHaveBeenCalledSequentiallyWith( * [ * [CallOneArgOne, CallOneArgTwo], * [CallTwoArgOne, CallTwoArgTwo], * ... * ...
$( document ).ready(function() { //eyes animation when page loaded $(".bob .sponge .eye.right .pupil").animate({ left: "+=35" }, 1000, function() { $(this).animate({ left:10 }, 1000) }) $(".bob .sponge .eye.left .pupil").animate({ left: "+=10" }, 1000,...
'use strict'; module.exports = function(app) { var users = require('../../app/controllers/users'); var restaurants = require('../../app/controllers/restaurants'); // Restaurants Routes app.route('/restaurants') .get(restaurants.list) .post(users.requiresLogin, restaurants.create); app.route('/restaurants/:r...
webpackJsonp([99219681209289],{434:function(t,e,n){"use strict";function u(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var r=n(29),l=u(r),f=n(38),o=u(f),a=n(37),d=u(a),i=n(1),c=u(i),s=function(t){function e(){return(0,l.default)(this,e),(0,o.default)(this,t.apply(this,arguments))}return(0,d.default)(e,t),e....
import React from 'react'; import {Breadcrumb, IconHome} from 'react-windy-ui'; export default function Bc2() { return <> <Breadcrumb hasBackground> <Breadcrumb.Item> <IconHome/> Home </Breadcrumb.Item> <Breadcrumb.Item> Main </Breadcrumb.Item> <Breadcrumb.Item activ...
(window.webpackJsonp=window.webpackJsonp||[]).push([[140],{563:function(s,t,a){"use strict";a.r(t);var e=a(15),n=Object(e.a)({},(function(){var s=this,t=s.$createElement,a=s._self._c||t;return a("ContentSlotsDistributor",{attrs:{"slot-key":s.$parent.slotKey}},[a("h1",{attrs:{id:"_01-jsx简介"}},[a("a",{staticClass:"header...
global.fetch = require('cross-fetch') const Logger = require('../utils/logger') const dotenv = require('dotenv') dotenv.config() const moment = require('moment') const { getProposalsSelectQuery, getRoundsSelectQuery, updateRoundRecord } = require('../airtable/airtable_utils') const { RoundState, getCurrentRo...
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z" /> , 'Cancel');
/** * Creates a new admin app. */ function AdminApp() { this._defaults = { operatorId: RapidContext.App.user().id }; this._types = {}; this._cxnIds = null; this._cxnCount = 0; this._currentProc = null; this._batch = { running: false, delay: 5, queue: [], stat: { success: 0,...
import React from 'react'; export const CardNumber = ({ cardNumber }) => { return (<div className='card-number'> {cardNumber} </div>); };
var bson = require('bson'), fs = require('fs'), Q = require('q'); module.exports = binary; function binary(store) { var put = store.put, get = store.get; if (put) { store.put = function (value) { value.contents = new bson.Binary(fs.readFileSync(value.path)); return put.apply(this, arguments); }; } ...
import React from 'react'; import _ from 'lodash'; import styled, { css } from 'styled-components' import PropTypes from 'prop-types'; import RectangleShape from '../Shape/RectangleShape'; class Element extends React.Component{ constructor(props){ super(props); this.state = { activeOption: this.props.i...
var WIDTH = 25; var HEIGHT = 25; function bind(callerObj, method) { return function() { return method.apply(callerObj, arguments); }; } // http://stackoverflow.com/questions/1740700/how-to-get-hex-color-value-rather-than-rgb-value function rgb2hex(rgb) { if(!rgb) return "#000000"; rgb = rgb.match(/^rgb\((\d+...
const express = require('express'); const Methodic = require('../models/methodic'); const router = express.Router(); router.post('/', async (req, res, next) => { const { email } = req.body; const methodics = await Methodic.find({ doctorEmail: email }); res.json(methodics); }); module.exports = router;
// @ts-check /** * @type {NodeListOf<HTMLInputElement>} */ const themeSwitch = document.querySelectorAll("input[name='themeSwitch']") themeSwitch.forEach((radio) => { radio.addEventListener("change", () => { document.documentElement.dataset.theme = radio.value }) }) const view = document.querySelector("[data-vi...
!function(e,_){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?_(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],_):_(e.moment)}(this,function(e){"use strict";function _(e,_,t){return"m"===t?_?"хвіліна":"хвіліну":"h"===t?_?"гадзіна":"гадзіну":e+" "+(e=+e...
/** @module management */ var util = require('util'); var utils = require('../utils'); var jsonToBase64 = utils.jsonToBase64; var generateClientInfo = utils.generateClientInfo; var ArgumentError = require('rest-facade').ArgumentError; // Managers. var ClientsManager = require('./ClientsManager'); var ClientGrantsMana...
// miniprogram/pages/navigator/navigator.js const app = getApp() Page({ /** * 页面的初始数据 */ data: { enter:[ { name:'borrowClassroom', name_zh:'教室借用' }, { name:'progressCheck', name_zh: '进度查询' } ] }, /** * 生命周期函数--监听页面加载 */ onLoad: fun...
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[17],{ /***/ "./resources/js/lang/en.json": /*!***********************************!*\ !*** ./resources/js/lang/en.json ***! \***********************************/ /*! exports provided: no_projects, see_more, score, upload, ranking, gallery, game, play, b...
$(document).ready(function(){ $("h2").click(function(){ if ($(this).hasClass('panda')) { $("p#panda").show(); $("img.panda").show(); } else { $("p#panda").hide(); $("img.panda").hide(); } if ($(this).hasClass('dog')) { $("p#dog").show(); $("img.dog").show(); } else { ...
import isFunction from 'lodash.isfunction'; import Core from '../core/core'; /** * @class Twitter * @description Twitter class * @example * const twitter = new Twitter({ * consumerKey: 'your-app-consumer-key', * consumerSecret: 'your-app-consumer-secret', * accessToken: 'your-app-access-token', * accessTok...
var Module={};onmessage=(function(event){switch(event.data.type){case"run":try{var data_offset=[Module._get_static_buffer(),Module._get_dynamic_buffer()];for(var i=0;i<event.data.inputs.length;i++){var var_alloc=event.data.inputs[i];var data_buf=new Float32Array(Module.buffer,data_offset[var_alloc.space]+var_alloc.offs...
require('babel-register')({ ignore: /node_modules\/(?!openzeppelin-solidity\/test\/helpers)/ }); require('babel-polyfill'); // ------------------------------------------------------------------- // Emulate mocha --grep option to run only matching tests let mochaConf = {}; // Passed as module.exports.mocha // -------...
'use strict'; const electron = require('electron'); const app = electron.app; const BrowserWindow = electron.BrowserWindow; var forceQuit = false; let mainWindow = null; // 起動時に呼び出される app.on('ready', function() { // ウィンドウを作成する mainWindow = new BrowserWindow( { title: app.getName(), 'overl...
import React from "react"; import style from "../friendList/FriendList.module.css"; import FriendListItem from "./FriendListItem"; const FriendList = ({ friends }) => { return ( <div className={style.profile} > <ul className={style.item} > {friends.map((item, id) => ( <FriendListItem item...
// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. import fn from "../../eachWeekOfInterval/index.js"; import convertToFP from "../_lib/convertToFP/index.js"; var eachWeekOfIntervalWithOptions = convertToFP(fn, 2); export default eachWeekOfIntervalWithOptions;
import React, { useEffect, useState } from 'react'; import PropTypes from 'prop-types'; import { useTranslation } from 'react-i18next'; import { v4 as uuid } from 'uuid'; import { useToast, SimpleGrid } from '@chakra-ui/react'; import { Formik, Form } from 'formik'; import { CreateTagSchema } from 'constants/formSchema...
(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...
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M4 10h12v2H4zm0-4h12v2H4zm0 8h8v2H4zm10 0v6l5-3z" /> , 'PlaylistPlaySharp');
import styles from "./index.module.scss"; import copy from "copy-to-clipboard"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { faCheck, faTrash, faLink, faPlay, faTimes, faEdit, } from "@fortawesome/free-solid-svg-icons"; import Link from "next/link"; import { useEffect, useStat...
require=(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];retu...
import {expect} from 'chai' import {shallow} from 'enzyme' import React from 'react' import ConfigView from '../../app/scripts/views/config' describe('ConfigView', () => { it('renders the given config', () => { const config = {a: true, b: {c: 'hello'}} const el = shallow(<ConfigView config={config}/>) ...
/*! localForage -- Offline Storage, Improved Version 1.7.3 https://localforage.github.io/localForage (c) 2013-2017 Mozilla, Apache License 2.0 */ (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{v...
// @flow import * as N from "../types"; import { types as tt, type TokenType } from "../tokenizer/types"; import ExpressionParser from "./expression"; import { Errors } from "./location"; import { isIdentifierChar, isIdentifierStart, keywordRelationalOperator, } from "../util/identifier"; import { lineBreak } fr...
import React, { useEffect } from "react"; import { Switch, Route, useLocation } from "react-router-dom"; import Home from "./pages/Home"; const Routes = (props) => { return <Switch> <Route exact path="/"> <Home isLoading={props.isLoading} dayChange={props.dayChange} total={props.tot...
/* * AboutPage Messages * * This contains all the text for the AboutPage component. */ import { defineMessages } from 'react-intl'; export default defineMessages({ header: { id: 'app.containers.AboutPage.header', defaultMessage: 'This is AboutPage container !', }, });
import { Observable } from "rxjs"; import { log } from "@ledgerhq/logs"; export const monitorCharacteristic = characteristic => Observable.create(o => { log("ble-verbose", "start monitor " + characteristic.uuid); function onCharacteristicValueChanged(event) { const characteristic = event.target; if (chara...
import axios from 'axios'; export default class LabelServices { getLabels() { var auth = "Bearer ".concat(localStorage.getItem('token')) return axios.get('/api/getAllLabel', { headers: { Authorization: auth } }) .then((response) => { return response; } ...
import {combineReducers} from "redux-immutable"; import userReducer from "./users"; function configureReducer() { return combineReducers({ users: userReducer }); } export default configureReducer;
import React from 'react'; import { View } from 'react-native'; const CardContent = (props) => { return ( <View style={styles.containerStyle}> {props.children} </View> ); }; const styles = { containerStyle: { padding: 5, justifyContent: 'flex-start', flexDirection: 'row', borderColor: '#ddd', posi...
class WT_G3x5_TSCNavigraphLink extends WT_G3x5_TSCPopUpElement { /** * @param {WT_NavigraphAPI} navigraphAPI */ constructor(navigraphAPI) { super(); this._navigraphAPI = navigraphAPI; this._isReady = false; this._accountLinkData = null; } /** * @readonly...
import { useReducer } from 'react'; import { useRecoilValue } from 'recoil'; import { Grid, IconButton } from '@material-ui/core'; import { Add, Remove } from '@material-ui/icons'; import { makeStyles } from '@material-ui/styles'; import { layerIdsState } from '../state'; import LayerController from './LayerController...
// @flow import { type ElementConfig } from 'react'; import SelectBase from './Select'; import manageState from './stateManager'; export default manageState<ElementConfig<typeof SelectBase>>(SelectBase); export { mergeStyles } from './styles'; export { defaultTheme } from './theme'; export { createFilter } from './f...
/*==================================================================== * * This file is used to setup all the necessary tools the other scripts need. * =====================================================================*/ // Setup Angular window.yachtApp = angular.module('yachtApp', []); //Setup Canvas "stuff" ...
'use strict' /** * Numbers of milliseconds in a day */ exports.dayMs = 24 * 60 * 60 * 1000
// @flow import { observer, inject } from "mobx-react"; import { ArchiveIcon, EditIcon, GoToIcon, MoreIcon, PadlockIcon, ShapesIcon, TrashIcon, } from "outline-icons"; import * as React from "react"; import { Link } from "react-router-dom"; import styled from "styled-components"; import breakpoint from "s...
"use strict"; angular .module("app") .factory("mainService", mainService); mainService.$inject = ['$http']; function mainService($http) { var service = { getAllPlaces: getAllPlaces }; return service; function getAllPlaces() { return $http.get("app/data.json"); } }
// @flow import React, { Component } from 'react'; import { translate } from 'react-i18next'; import { Container, Dropdown, Form, Input, Message, Segment, Header, Divider } from 'semantic-ui-react'; import GlobalFormFieldMemo from '../../../../Global/Form/Field/Memo'; import GlobalFormFieldGeneric from '../../../../Gl...
/** * Copyright 2018-present Facebook. * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * @format */ import type {Logger} from '../fb-interfaces/Logger'; import Server from '../server'; import {promisify} from 'util'; const fs = require('f...
!function(t){function e(a){if(i[a])return i[a].exports;var s=i[a]={exports:{},id:a,loaded:!1};return t[a].call(s.exports,s,s.exports,e),s.loaded=!0,s.exports}var i={};return e.m=t,e.c=i,e.p="",e(0)}([function(t,e){if("undefined"==typeof AFRAME)throw new Error("Component attempted to register before AFRAME was available...
define(["exports","require"],function(_exports,_require){Object.defineProperty(_exports,"__esModule",{value:!0}),_exports.cellBehaviors=_exports.displayBehaviors=void 0,_require=babelHelpers.interopRequireWildcard(_require);_exports.displayBehaviors=function(SuperClass){return class extends SuperClass{static get proper...
// @remove-on-eject-begin /** * Copyright (c) 2015-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. */ // @remove-on-eject-end 'use strict'; const fs = require('fs'); const isWsl = require('is-wsl'); const path = ...
require.config({ shim: { 'c3': ['d3', 'core'], 'd3': ['core'], }, paths: { 'd3': '/static/assets/plugins/charts-c3/js/d3.v3.min', 'c3': '/static/assets/plugins/charts-c3/js/c3.min', } });
import React from 'react' import { graphql } from 'gatsby' import Helmet from 'react-helmet' import Layout from 'components/layout' import HeroVideo from 'sections/hero/HeroVideo.js' import AboutOne from 'sections/about/AboutOne.js' import ServicesOne from 'sections/services/ServicesOne.js' import PortfolioOne from 'se...
const postData = async (url, data) => { let res = await fetch(url, { method: "POST", headers: { 'Content-Type': 'application/json' }, body: data }); return await res.json(); }; async function getResource(url) { let res = await fetch(url); if (!res.ok) {...
#!/usr/bin/env node /* eslint-disable no-console */ const path = require('path'); const fs = require('fs'); const yargs = require('yargs') const argv = yargs .option('vm', { description: 'path to scratch-vm', demandOption: true }) .option('gui', { des...
/** * 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. * * @flow * @format */ import AppContent from '@fbcnms/ui/components/layout/AppContent'; import AppContext from '@fbcnm...
/** * JSXTransformer v0.13.3 */ (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g...
function appendTag(data){ // debugger; var tag = data.post.tags.slice(-1)[0]; if ($('#new-tag').val() != '') { // debugger; $('#tags').append(showTag(tag)) $('#new-tag').val(''); deleteTag() $('#numberoftags').html(data.post.tags.length); } } var getAllTags...
module.exports={A:{A:{"1":"B","2":"I F E D A hB"},B:{"2":"C O P H J K L S UB M HB"},C:{"1":"0 1 O P H J K L W X Y Z a b c d e f g h i j k l m n o p q r s t u v w Q y z","2":"2 3 4 5 6 7 8 9 aB OB G V I F E D A B C WB BB GB DB EB CB AB T R N IB JB KB LB MB NB FB PB QB RB S gB oB"},D:{"1":"0 1 G V I F E D A B C O P H J K...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); exports.__esModule = true; exports.default = void 0; var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")); var _inheritsLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/inh...
(function(a){jQuery.fn.buildContainers=function(b){return this.each(function(){if(a(this).is("[inited=true]")){return}this.options={containment:"document",elementsPath:"elements/",onCollapse:function(){},onIconize:function(){},onClose:function(){},onResize:function(){},onDrag:function(){},onRestore:function(){},minimiz...
// eslint-disable-next-line filenames/match-exported import React from 'react' import PropTypes from 'prop-types' import { connect } from 'react-redux' import ExampleShapes from '../examples/example-shapes' import { shapeExampleStyles } from './styles' const SectionShapes = ({ shapes }) => shapes ? <ExampleShapes ...
// Copyright 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. (async function() { TestRunner.addResult(`Tests the Timeline events for Timers\n`); await TestRunner.loadModule('performance_test_runner'); await Te...
var searchData= [ ['timer_5fcontinuous_5fcallback',['Timer_CONTINUOUS_CALLBACK',['../_timer_8h.html#ab0e86a066b5c68c55183cd680090a9b7ae8bfe2f9b37749ebc20b9905a459843b',1,'Timer.h']]], ['timer_5ffree_5frunning',['Timer_FREE_RUNNING',['../_timer_8h.html#ab0e86a066b5c68c55183cd680090a9b7a90581a353ae32c561dfbc6c60b9ec4...
// pages/home/childComponents/w-popular/w-popular.js Component({ /** * 组件的属性列表 */ properties: { }, /** * 组件的初始数据 */ data: { }, /** * 组件的方法列表 */ methods: { } })
/*jshint node:true*/ function reportFormat() { return _circleTestDirectory() ? 'xunit' : 'tap'; } function outputFile() { if (_circleTestDirectory()) { return _ouputLocation(_circleTestDirectory(), _emberTryVersion()); } } function _ouputLocation(directory, version) { var output = directory + '/testem'; ...
/** * Auto-generated action file for "StackExchange" API. * * Generated at: 2019-05-07T14:44:12.456Z * Mass generator version: 1.1.0 * * flowground :- Telekom iPaaS / stackexchange-com-connector * Copyright © 2019, Deutsche Telekom AG * contact: flowground@telekom.de * * All files of this connector are licens...
"use strict"; var path = require("path"); var phtm = require("./lib/phtm-wrapper")(path.resolve(__dirname, "./lib/script.js")); function visit(url, script, options, callback) { if (!url || !script) return callback(new TypeError("Incorrect arguments.")); if (!callback) { callback = options; opti...
import React from 'react'; import ArtistService from '../../../services/ArtistService'; import {NavLink} from 'react-router-dom'; import { url } from '../../../util/helpers'; export default class ListArtistsPage extends React.Component { constructor(props) { super(props); this.state = { artists: null...
// Copyright IBM Corp. 2018,2019. All Rights Reserved. // Node module: @loopback/cli // This file is licensed under the MIT License. // License text available at https://opensource.org/licenses/MIT ('use strict'); // Imports const path = require('path'); const assert = require('yeoman-assert'); const testlab = requir...
import React from 'react' import Layout from '../components/layout' import Head from '../components/head' const ContactPage=()=>{ return( <Layout> <Head title={'home'}/> <h1>Contacts</h1> <p>the Best way to reach me is via My Twitter <a href='https://twitter.com/OUALI_Meriem' ...
var util = require('util'); var events = require('events'); var config = require('config'); var redis = require('redis-scanstreams')(require('redis')).createClient(6379, config.get('redis.host')); var redisChan = require('redis').createClient(6379, config.get('redis.host'), {return_buffers: true}); var tredis = require...
import React, { Component } from 'react' import { browserHistory, Router } from 'react-router' import { Provider } from 'react-redux' class AppContainer extends Component { shouldComponentUpdate () { return false } render () { const { routes, store } = this.props return ( <Provide...
//// [test.ts] export async function fn() { const req = await import('./test') // ONE } export class cl1 { public async m() { const req = await import('./test') // TWO } } export const obj = { m: async () => { const req = await import('./test') // THREE } } export class cl2 { ...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Dolittle. All rights reserved. * Licensed under the MIT License. See LICENSE in the project root for license information. *--------------------------------------------------------------------------------...
/******************************************************************************* * KindEditor - WYSIWYG HTML Editor for Internet * Copyright (C) 2006-2011 kindsoft.net * * @author Roddy <luolonghao@gmail.com> * @site http://www.kindsoft.net/ * @licence http://www.kindsoft.net/license.php *******************************...
import React, { useState } from "react"; import { Modal, ModalHeader, ModalBody, ModalFooter, Button } from "reactstrap"; import buttonPriseDeRDVIcon from "../../public/images/icons/fake_feature_btn.svg"; const FakeFeature = ({ buttonText, tagName, modalTitleBeforeSelection, modalTextBeforeSelection, modalTi...
var openpgp = require('openpgp') var base64 = require('base64-js') var autocrypt = require('..') var memdb = require('memdb') module.exports = { setup: function (fromAddr, cb) { var crypt = autocrypt({storage: memdb({valueEncoding: 'json'})}) openpgp.initWorker({ path: 'openpgp.worker.js' }) // set the relat...
import * as t from "../../../types"; export var metadata = { group: "builtin-pre" }; const THIS_BREAK_KEYS = ["FunctionExpression", "FunctionDeclaration", "ClassExpression", "ClassDeclaration"]; /** * [Please add a description.] */ export var visitor = { /** * [Please add a description.] */ Program:...
/* 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"); you may ...
import drivers from './driver'; import passengers from './passenger'; import rideOffers from './rides'; const db = { drivers, passengers, rideOffers, }; export default db;
#!/usr/bin/env node require('../dist/brisky-cli.cjs')
/*Связь с автором*/ $(document).ready(function () { $('#upgrade-item-menu').addClass('nav-item active'); });
const faker = require('faker'); const Car = require('./../src/entities/car'); const CarCategory = require('./../src/entities/carCategory'); const Customer = require('./../src/entities/customer'); const { join } = require('path'); const { writeFile } = require('fs/promises'); const seederBaseFolder = join(__dirname, '....
var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] =...
(function() { if (typeof getToolTest === "undefined") { load('jstests/configs/plain_28.config.js'); } // Testing exporting with various type specifiers jsTest.log('Testing exporting with various type specifiers'); var toolTest = getToolTest('export_types'); var commonToolArgs = getCommonToolArgument...
const Twig = require('twig'); const createUuid = require('uuid/v4'); Twig.extend((TwigCore) => { /** * Remove tokens 2, 3, 4 and 8. * This tokens are used for functions and data output. * Since the data binding is done in Vue this could lead to syntax issues. * We are only using the block syste...
const fs = require('fs') const assert = require('assert') const data_folder = 'data/italy-data' const data_file = 'Daily Covis19 Italian Data Cumulative' // translations let en2zh = JSON.parse(fs.readFileSync('data/map-translations/en2zh.json')) let output_italy = {} output_italy = { ENGLISH: 'Italy', confir...
/* * 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 { i18n } from '@kbn/i18n'; import { parse } fr...
'use strict'; var base = require('./base'), should = base.should, Instruments = require('../../lib/main').Instruments, utils = require('../../lib/main').utils, logger = require('../../lib/main').logger, exec = require('child_process').exec, path = require('path'), _ =require('underscore'), ...
export * from '@styled-icons/material/BrokenImage';
const os = require('os'); const fs = require('fs'); const util = require('util'); const fdk = require('@fnproject/fdk'); const mds = require('@maddonkeysoftware/mds-sdk-node'); const OS = require('opensubtitles-api'); const { GraphQLClient } = require('graphql-request'); const bunyan = require('bunyan'); const BunyanLo...
import React from 'react' import { render, screen } from '@testing-library/react' import { Provider } from 'react-redux' import configureMockStore from 'redux-mock-store' import HomeRoute from './HomeRoute' import * as policyListDuck from '../store/policyList.duck' const mockStore = configureMockStore() describe('Ho...
var Chart = function(params) { self = this; self.container = params.container; self.xValues = params.xValues; self.yVal = params.yValues; margin = {top: 50, right: 50, bottom: 90, left: 50}; self.width = 1000 - margin.left - margin.right; self.height = 530 - margin.top - margin.bottom; //sett...
const BASE_URL = "https://jira-clone-pedja.herokuapp.com/"; function fetchData(path) { return fetch(`${BASE_URL}`).then((data) => data.json()); // return fetch(`${BASE_URL}/${path}`).then((data) => data.json()); } export default fetchData;
var fs = require('fs'); var png = require('../build/Release/node_png_encode') var PngDecoder = png.PngDecoder; var decoder = new PngDecoder(function(err, width, height, buffer) { console.log('PngDecoder callback:',err,width,height,buffer); }); console.log(decoder) console.log(decoder.feedBuffer) var wholeBuffer = ...
var baseName = "jstests_core_logging_options"; load('jstests/libs/command_line/test_parsed_options.js'); // Verbosity testing jsTest.log("Testing \"verbose\" command line option with no args"); var expectedResult = { "parsed": {"systemLog": {"verbosity": 1}} }; testGetCmdLineOptsMongod({verbose: ""}, expectedResu...
/* Guía http://easyautocomplete.com/guide */ /* * Funciones del Plugin JavaScript EASYAUTOCOMPLETE * Más información en http://easyautocomplete.com */ $(document).ready(function(){ var searchRequest = null; var value = null ; searchRequest = $.ajax({ type: "POST", // Método de envío url: "/searchc...