text
stringlengths
3
1.05M
import React, { Component, PropTypes } from 'react'; import { PixelRatio, StatusBar, Text, View, Platform } from 'react-native'; import NavbarButton from './NavbarButton'; import styles from './styles'; const ButtonShape = { title: PropTypes.string.isRequired, style: PropTypes.any, handler: PropTypes....
import React from 'react'; import { reduxForm, Field } from 'redux-form'; import { Button, Intent } from '@blueprintjs/core'; import { required } from '../../../utils/validators'; import RenderInput from '../../_forms/RenderInput'; import RenderPassword from '../../_forms/RenderPassword'; const InitSignInForm = (pro...
#Non-diffracting Bessel beam. from LightPipes import * import matplotlib.pyplot as plt Pi=3.1415 deg=Pi/180.0 wavelength=632.8*nm size=5.0*mm N=500 phi=179.8*deg n1=1.5 z=80*cm F=Begin(size,wavelength,N) F=Axicon(phi,n1,0,0,F) F=Forvard(z,F) I=Intensity(2,F) plt.imshow(I) plt.show()
import React, { Component } from 'react'; import styles from './Switch.module.scss'; class Switch extends Component { render() { return ( <div> <input className={styles.switch} type="checkbox" value={this.props.value}/> </div> ); } } export default Switch;
import React from "react"; import HeaderNew from "Components/HeaderNew"; import BlogCard from "Components/BlogCard"; import blogArtical from "Assets/blogArtical.png"; import Avatar from "../Components/Avatar"; import WriteComments from "Components/WriteComments"; import CommentWithReply from "Components/CommentWithRepl...
import logging import os from contextlib import contextmanager from typing import Any, Dict, List, Union import torch import torch.distributed as torch_distrib from torch.optim import Optimizer from pytorch_lightning.core.lightning import LightningModule from pytorch_lightning.overrides.data_parallel import Lightning...
"""meta.py Represent persistence structures which allow the usage of Beaker caching with SQLAlchemy. The three new concepts introduced here are: * CachingQuery - a Query subclass that caches and retrieves results in/from Beaker. * FromCache - a query option that establishes caching parameters on a Query * R...
import React from "react"; import { Anchor, Grid } from "@lugia/lugia-web"; import EditTables from "../../edit-table"; import FooterNav from "../../footer-nav"; import PageNavHoC from "../../common/PageNavHoC"; import widgetrouter from "../../router/widgetrouter"; import DIVIDER from "@lugia/lugia-web/dist/divider/lugi...
var a02678 = [ [ "CLIST_ITERATOR", "a02678.html#a2777e2af41c34dde824cdbf211ff08c4", null ], [ "CLIST_ITERATOR", "a02678.html#ab98cd2977706e0e5f6e743879e2530fc", null ], [ "add_after_stay_put", "a02678.html#a4c3a3b62f78c1654bc3c947b5c6d8209", null ], [ "add_after_then_move", "a02678.html#ad4e8d82eb0589e5...
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
var structCO__HBconsumer__t = [ [ "em", "structCO__HBconsumer__t.html#aae5e363ccc6a6fd3b17a35e0430add2a", null ], [ "HBconsTime", "structCO__HBconsumer__t.html#a1cd314f387357f2ce13d4093f477fff5", null ], [ "monitoredNodes", "structCO__HBconsumer__t.html#a737b37c544a28eff8de0b03b51cbeec8", null ], [ "num...
// psmPeptideAnnDisplayDataCommon.js // Javascript: Common code for processing the Annotation data Display section on the page ////////////////////////////////// // JavaScript directive: all variables have to be declared with "var", maybe other things "use strict"; // require full Handlebars since compiling ...
#VERBOSE_SUPER = 4 VERBOSE_HIGH = 3 VERBOSE_MID = 2 VERBOSE_LOW = 1 VERBOSE_NONE = 0 verbosity = VERBOSE_HIGH def set_verbosity(val): if ((val >= VERBOSE_NONE) and (val <= VERBOSE_HIGH)): global verbosity verbosity = val def cond_print(msg_verbosity, msg): if(msg_verbosity <= verbosity): ...
from XenGarden.VIF import VIF async def serialize(vif: VIF): from API.v1.VM.serialize import serialize as _vm_serialize vm = vif.get_vm() if vm is not None: vm = await _vm_serialize(vm) return dict( attached=vif.get_attached(), vm=vm, uuid=vif.get_uuid(), mac=...
var webpack = require("webpack"); module.exports = { entry: { validator: "./src/validate.js" }, output: { path: __dirname + "/dist/", filename: "[name].js" }, module: { rules: [ { test: /\.js$/, exclude: /node_modules/, use: { loader: "babel-loader", ...
import styled from "styled-components" export const PayContainer = styled.div` #pay { background: white; width: 100%; height: 100%; left: 0; top: 0; z-index: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 5.25179856115108vw 11.6546762589928vw; @...
/*! For license information please see 5.5aea76d1.chunk.js.LICENSE.txt */ (this["webpackJsonpreact-material-dashboard"]=this["webpackJsonpreact-material-dashboard"]||[]).push([[5],{633:function(A,e,t){A.exports=function(){"use strict";var A=function(e,t){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&f...
'use strict'; /** * @ngdoc overview * @name yapp * @description * # yapp * * Main module of the application. */ var states = [ { name: 'base', state: { abstract: true, url: '', templateUrl: 'views/base.html', data: {text: "Base", visible: false } } }, { name: 'login', state: { url: '/login', par...
"""Compute density coefficient.""" import argparse import pprint import re CHARS_PER_PAGE = 1800 PUNCTUATION_MARKS = [' ', '"', "'", '-', '^'] COLOUR_BASED_PATTERNS = { 'aquamarine': 'aquamarine', 'auburn': 'auburn', 'azure': 'azure', 'beige': 'beige', 'black': 'black', 'blue': 'blu(e|ish)',...
const gulp = require("gulp"); const babel = require("gulp-babel"); const uglify = require("gulp-uglify"); const sass = require("gulp-sass"); const uglifycss = require("gulp-uglifycss"); const concat = require("gulp-concat"); const htmlmin = require("gulp-htmlmin"); function appHTML() { return gulp .src("src/**/*...
import React from 'react' import PropTypes from 'prop-types' import Typography from '@mui/material/Typography' import Paper from '@mui/material/Paper' import Grid from '@mui/material/Grid' import intl from 'react-intl-universal' import Card from '@mui/material/Card' import CardActionArea from '@mui/material/CardActionA...
module.exports = function() { if (typeof window !== 'undefined') { console.error('ds4 icon not found: truck-small'); } // eslint-disable-next-line max-len,quotes return "<symbol id=icon-truck-small viewbox=\"0 0 16 16\"><g fill=#111820 fill-rule=nonzero><g transform=\"translate(5.5 4.5)\"><circl...
const assert = require('assert').strict; const {BigQuery} = require('@google-cloud/bigquery'); const BQ_PROJECTID = process.env.BQ_PROJECTID; const BQ_DATASET_H3 = process.env.BQ_DATASET_H3; describe('ST_BOUNDARY', () => { const queryOptions = { 'timeoutMs' : 30000 }; let client; before(async () => { ...
/** * Kendo UI v2019.3.1023 (http://www.telerik.com/kendo-ui) * Copyright 2019 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved....
var BrowserDetect = { init: function () { this.browser = this.searchString(this.dataBrowser) || "unknown-browser"; this.version = this.searchVersion(navigator.userAgent) || this.searchVersion(navigator.appVersion) || "unknown-version"; this.OS = this.searchString(this...
export function createShippingRate(name, shippingZone) { const mutation = `mutation{ shippingPriceCreate(input:{ name: "${name}" shippingZone: "${shippingZone}" type: PRICE }){ shippingMethod{ id } } }`; return cy.sendRequestWithQuery(mutation); } export function...
import * as i0 from '@angular/core'; import { EventEmitter, Directive, Optional, Input, Output, HostListener, NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import * as i1 from '@angular/forms'; class InputTextarea { constructor(el, ngModel, control, cd) { this.el = el; ...
var _destructuring_with_null = _interopRequireDefault(require("{{. __dirname}}/get.js")).default; function _sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i &&...
'use strict'; /** * Module dependencies. */ var should = require('should'), mongoose = require('mongoose'), User = mongoose.model('User'), Politician = mongoose.model('Politician'), Taxfraud = mongoose.model('Taxfraud'); /** * Globals */ var user, taxfraud, politician; /** * Unit tests */ describe('Taxf...
from abc import ABCMeta, abstractmethod import os import pickle from numbers import Number from sklearn.metrics import f1_score import numpy as np from vmaf import svmutil from vmaf.tools.misc import indices from vmaf.core.mixin import TypeVersionEnabled from vmaf.core.perf_metric import RmsePerfMetric, SrccPerfMetri...
# Copyright 2017 The TensorFlow 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 required by applica...
# Copyright 2014 The Emscripten Authors. All rights reserved. # Emscripten is available under two separate licenses, the MIT license and the # University of Illinois/NCSA Open Source License. Both these licenses can be # found in the LICENSE file. import os import shutil TAG = 'version_4' HASH = '30a7b04652239bccff...
# Copyright 2020 DeepMind Technologies Limited. 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 required by ...
from dataclasses import dataclass, field from typing import List __NAMESPACE__ = "NISTSchema-SV-IV-list-float-length-2-NS" @dataclass class NistschemaSvIvListFloatLength2: class Meta: name = "NISTSchema-SV-IV-list-float-length-2" namespace = "NISTSchema-SV-IV-list-float-length-2-NS" value: L...
import numpy as np import dolfyn.adv.api as avm from dolfyn import read_example as read import dolfyn.test.base as tb load = tb.load_tdata save = tb.save_tdata dat = load('vector_data01.h5') dat_imu = load('vector_data_imu01.h5') dat_imu_json = load('vector_data_imu01-json.h5') dat_burst = load('burst_mode01.h5') d...
/// <reference types='cypress' /> /// <reference types="../../support" /> import AppFrontend from '../../pageobjects/app-frontend'; const appFrontend = new AppFrontend(); describe('Formatting', () => { it('Number formatting', () => { cy.navigateToChangeName(); cy.get('#form-content-newFirstName').siblings(...
# -*- coding: iso-8859-1 -*- from hoomd import * from hoomd import md; context.initialize() import unittest import os Nslabs = 20 min_slab = 0 max_slab = 10 dt = 0.005 # tests for md.update.mueller_plathe_flow class update_mueller_plathe_flow (unittest.TestCase): def setUp(self): print self.syst...
from .pair_loss import PairLoss # modules from . import utils __all__ = [ # modules "utils", # classes "PairLoss", # functions ]
/** * Definition for a binary tree node. * function TreeNode(val) { * this.val = val; * this.left = this.right = null; * } */ /** * @param {TreeNode} root * @return {number} */ var maxPathSum = function(root) { return helper(root)[0]; }; function helper(root) { if (!root) { return [-In...
import { pallette } from './colors.js'; import { insideLasso, toTransformMat, toInfoForDrawPoints, toInfoForDrawLines, toInfoForDrawFocus } from './webgl_utils.js'; import { initCanvas, initGl, clearCanvas, genDrawPointsFunc, genDrawLinesFunc, genZoomFunc, genTranslateFunc, genRotateFunc, ...
const express = require('express'); const path = require('path'); const socket = require('socket.io'); const app = express(); app.use(express.static(path.join(__dirname, '..', 'build'))); app.get('/', (req, res) => { res.sendFile(path.join(__dirname, 'build', 'index.html')); }); const port = process.env.PORT || 8...
# -*- coding: utf-8 -*- """Base exchange class""" # ----------------------------------------------------------------------------- __version__ = '1.40.78' # ----------------------------------------------------------------------------- from ccxt.base.errors import ExchangeError from ccxt.base.errors import NetworkEr...
const _flattenDepth = require('lodash/flattenDepth'); const { flattenDepth } = require('../../src/functions/array'); const inputArray = [1, [2, [3, [4]], 5]] describe('flattenDepth(array, [depth=1]): recursively flattens array to depth times', () => { it('It Should Match Result with _.flattenDepth when depth = 1', (...
const functions = require('firebase-functions') const express = require('express') const app = express() app.get('*', (req, res) => { res.send("Hello from the API") }) exports.api = functions.https.onRequest(app)
/** * @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ /* eslint-disable ckeditor5-rules/ckeditor-error-message */ /* global console */ import { default as CKEditorError, DOCUMENTATION_URL, lo...
/** * Initializes error reporting to Sentry when running at a higher enviroment than localhost */ import * as Sentry from '@sentry/browser'; import environment from '../utilities/environment'; // url check is necessary for e2e tests and local environments const trackErrors = environment.BASE_URL.indexOf('localhost...
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright: (c) 2018, F5 Networks Inc. # GNU General Public License v3.0 (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', ...
import React, { useState, useEffect } from 'react' import DataTable from 'react-data-table-component' import { Card, CardContent } from '@material-ui/core' import IconButton from '@material-ui/core/IconButton' import { AssignmentTurnedIn } from '@material-ui/icons' import 'react-widgets/dist/css/react-widgets.css' impo...
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])...
import React from 'react'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import { withKnobs, text, select } from '@storybook/addon-knobs'; import { withInfo } from '@storybook/addon-info'; import { defaultTemplate } from 'storybook/decorators/storyTemplates'; import { ...
/** * Blocks specific to Bee */ var msg = require('./locale'); var blockUtils = require('../block_utils'); var OPERATORS = [['=', '=='], ['<', '<'], ['>', '>']]; const RTL_OPERATORS = [['=', '=='], ['>', '<'], ['<', '>']]; var TOOLTIPS = { '==': Blockly.Msg.LOGIC_COMPARE_TOOLTIP_EQ, '<': Blockly.Msg.LOGIC_COMP...
/*! jQuery Mockjax * A Plugin providing simple and flexible mocking of ajax requests and responses * * Version: 2.2.1 * Home: https://github.com/jakerella/jquery-mockjax * Copyright (c) 2016 Jordan Kasper, formerly appendTo; * NOTE: This repository was taken over by Jordan Kasper (@jakerella) October, 2014 * * ...
const Lobby = require('../index.js'); const Formatter = require('./formatter.js'); const Users = require('./filter/users.js'); const lobby = new Lobby.Lobby('CUE', 'https://underhound.eu:8080/', { reconnect: true, bulkProcessing: 3, }); // lobby.setFilter(new Users()); lobby.setFormatter('stop',...
const encrypt = require('./crypto') const request = require('request') const queryString = require('querystring') request.debug = true const chooseUserAgent = (ua) => { const userAgentList = [ 'Mozilla/5.0 (iPhone; CPU iPhone OS 9_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobil...
module.exports = require('./umd/embedded.development.js'); // eslint-disable-line global-require
(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{161:function(e,t,n){t.__esModule=!0,t.Helmet=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<...
import React from 'react' import getBase64FaceImage from '../misc/FaceRenderer.js' export default React.createClass({ render() { return ( <img ref={(c) => this._image = c} className={this.props.className} /> ) }, propTypes: { className: React.PropTypes.string, faceColor: React.PropTyp...
/* @flow */ import { toArray } from '../util/index' export function initUse (Vue: GlobalAPI) { Vue.use = function (plugin: Function | Object) { /* istanbul ignore if */ if (plugin.installed) { return this } // additional parameters const args = toArray(arguments, 1); //调用插件的时候,插件得到的第一个...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var TransformCoffeeScriptStage_1 = require("../TransformCoffeeScriptStage"); var PassthroughPatcher_1 = require("./../../patchers/PassthroughPatcher"); var ArrayInitialiserPatcher_1 = require("./patchers/ArrayIn...
import numpy as np from sqlalchemy.orm import * # session from sqlalchemy import create_engine from obspy.core import UTCDateTime from obspy.geodetics import locations2degrees, degrees2kilometers from .table_tt_curve import * from .table_nsta24 import * from .tables3D import * from .search_hypo import * #from .pbr imp...
'use strict'; describe('authoringTool.version module', function() { beforeEach(module('myApp.version')); describe('app-version directive', function() { it('should print current version', function() { module(function($provide) { $provide.value('version', 'TEST_VER'); }); inject(functi...
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; (function (q, g) { "function" === typeof define...
import React from 'react' const styles = { username: { 'paddingBottom': '3px', 'borderBottom': '1px dashed #222' }, highlight: { 'backgroundColor': '#FFFF00', 'color': '#000', 'padding': '3px 6px', 'display': 'inline-block' } } const UserOuput = (prop...
/* generated from Designfiles Public by generate_data_designfles */ require ('frameworks.mootools.core'); require ('wh.compat.base'); require ('wh.util.preloader'); require ('wh.social.socialite'); require ('wh.net.url'); /*! LOAD: frameworks.mootools.core, wh.compat.base, wh.util.preloader, wh.social.socialite, wh.net...
tinyMCE.addI18n('ru.uploadimage_dlg', { title: 'Вставить изображение', header: "Вставить изображение", input: "Выберите изображение", uploading: "Загрузка…", blank_input: "Необходимо выбрать файл", bad_response: "Получен некорректный ответ с сервера", blank_response: "Не получен ответ с сервера", inser...
import ReactDataGrid from 'react-data-grid'; import React, { useState,useCallback } from 'react'; import { Editors, Toolbar, Data, Filters } from "react-data-grid-addons"; import Title from "./Title"; import {FaCheck, FaTimes} from "react-icons/fa"; const styles = { fontFamily: 'sans-serif', textAlign: 'center', ...
from django.db import models import uuid class Folder(models.Model): id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False) created = models.DateTimeField(auto_now_add=True) def __str__(self): return str(self.id) class Note(models.Model): text = models.TextField(max_len...
require.config({ baseUrl:"/mine/common", paths: { <!-- jquery --> jquery: "jquery-3.4.1.min", <!-- 发出请求组件 --> axios:"axios.min", <!-- vue --> vue:"vue.min", bootstrap_bundle:"bootstrap/js/bootstrap.bundle.min", bootstrap:"bootstrap/js/boo...
"""Generated API Documentation sample using doc_writer_sample.py.""" doc = { "@context": { "ApiDocumentation": "hydra:ApiDocumentation", "description": "hydra:description", "domain": { "@id": "rdfs:domain", "@type": "@id" }, "entrypoint": { ...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _react = _interopRequireDefault(require("react")); var _createSvgIcon = _interopRequireDefault(require("./utils/createSvg...
!function(t){const e=t.sr=t.sr||{};e.dictionary=Object.assign(e.dictionary||{},{"%0 of %1":"%0 of %1","Almost equal to":"Скоро једнако",Angle:"Угао","Approximately equal to":"Отприлике једнако",Aquamarine:"Зеленкастоплава","Asterisk operator":"Астерикс оператор","Austral sign":"Аустрални знак",Big:"Велико","Bitcoin sig...
""" Utility functions related to concat """ import numpy as np from pandas._libs import tslib, tslibs from pandas import compat from pandas.core.dtypes.common import ( is_categorical_dtype, is_sparse, is_extension_array_dtype, is_datetimetz, is_datetime64_dtype, is_timedelta64_dtype, is_per...
const { NotImplementedError } = require('../extensions/index.js'); /** * Implement the Stack with a given interface via array. * * @example * const stack = new Stack(); * * stack.push(1); // adds the element to the stack * stack.peek(); // returns the peek, but doesn't delete it, returns 1 * stack.pop(); // re...
/** * * Put finger on an element (only in mobile context). * * @param {String} selector element to put finger on * @callbackParameter error * * @uses property/getLocation, protocol/touchDown * @type mobile * */ var async = require('async'), ErrorHandler = require('../utils/ErrorHandler.js'); module.expo...
const nunjucks = require('nunjucks'); function createEnv(path, opts) { var autoescape = opts.autoescape === undefined ? true : opts.autoescape, noCache = opts.noCache || false, watch = opts.watch || false, throwOnUndefined = opts.throwOnUndefined || false, env = new nunjucks...
// third_party/blink/public/mojom/payments/payment_handler_host.mojom.js is auto generated by mojom_bindings_generator.py, do not edit // Copyright 2014 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. 'use strict'; (fu...
import sqlite3 from scripts.artifact_report import ArtifactHtmlReport from scripts.ilapfuncs import logfunc, tsv, is_platform_windows from scripts.parse3 import ParseProto def get_vaulty_files(files_found, report_folder, seeker, wrap_text): title = "Vaulty - Files" # Media database db_filepath = str(fi...
export default async function getElements(obj, client) { if (obj && typeof obj.then === 'function') { const resolved = await obj const selector = obj.selector || String(resolved) if (typeof resolved === 'string') obj = resolved else if (Array.isArray(resolved)) return [resolved, selector] else if ...
import { rand } from '@aryth/rand' import { simpleVectorCollection } from '@foba/foo' import { NumberVectorCollection } from '@foba/vector' import { METRO, SUBTLE } from '@palett/presets' import { BRK } from '@spare/enum-brackets' import { says } from '@sp...
const HtmlWebpackPlugin = require('html-webpack-plugin'); const pluginName = "HtmlAfterWebpackPlugin"; const chalk = require("chalk"); // 获取静态资源的帮助函数 const assetsHelp = data => { let js = []; const getAssetsName = { js: item => `<script src="${item}"></script>` } for (let jsItem of data.js) { js.pu...
module.exports.info = { name: "ping", description: "cmds.developer.ping.description", dm: true, permission: 10, } module.exports.run = async (client, message, args) => { return message.channel.send(await client.emb.buildemb(message, client, { color: client.emb.colors.success, ...
from django import forms from .models import GonderiModel class GonderiForm(forms.ModelForm): class Meta: model = GonderiModel fields=("baslik","yazi","resim")
import { requester } from 'services/api' import thunkMiddleware from 'redux-thunk' const req = require.context('.', true, /\.\/.+\/middleware\.js$/) module.exports = req.keys() .map((key) => req(key).default) .concat([ thunkMiddleware.withExtraArgument({ api: requester }), ])
import NumberController from './NumberController'; import dom from '../dom/dom'; class NumberControllerAnimator extends NumberController { constructor(object, property, params) { super(object, property, params); const _this = this; dom.addClass(this.domElement, 'button-container'); this.__animatio...
# -*- coding: utf-8 -*- # # Jonathan Salazar Santos # 2019-08-09 # Escribiendo datos en un arhivo en HD con Python # - - - - - - - - - - - params = { "foo": "This is a string", "bar": 200 } filename = 'texto_python.txt' file_to_write = open(filename,'w') file_to_write.write('El contenido del archivo es: {0} y esto ...
!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){"use strict";var n=[],r=Object.getPrototyp...
'use strict'; const aws = require('aws-sdk'); const proxyAgent = require('proxy-agent'); const config = require('../../../config.js'); const getS3Options = () => { const { bucket, ...credentials } = config.s3; const { proxy } = config; return { ...credentials, ...proxy && { httpOptions: { ...
webpackJsonp([70],{2074:function(n,l,e){"use strict";function View_CoreCourseFormatComponent_1(n){return o._57(0,[(n()(),o._31(0,0,null,null,11,"core-navbar-buttons",[["end",""]],null,null,null,M.b,M.a)),o._30(1,245760,null,1,A.a,[o.t,N.b,$.a],null,null),o._52(603979776,3,{buttons:1}),(n()(),o._55(-1,0,["\n "])),(n(...
var config = require("../config.json"); var dashboards = require("../dashboards.json"); var libraries = require("../public-libraries.json"); exports.getExcludedApps = function(){ return config.exclude_app_ids; } exports.getConfiguredScores = function(){ return config.scores; } exports.getExcludedAppHealthRules = f...
window.EmberENV=function(e,t){for(var n in t)e[n]=t[n] return e}(window.EmberENV||{},{FEATURES:{},EXTEND_PROTOTYPES:{Date:!1},_APPLICATION_TEMPLATE_WRAPPER:!1,_DEFAULT_ASYNC_OBSERVERS:!0,_JQUERY_INTEGRATION:!1,_TEMPLATE_ONLY_GLIMMER_COMPONENTS:!0}) var loader,define,requireModule,require,requirejs,runningTests=!1;(func...
angular.module("listaTelefonica").filter("ellipsis", function () { return function (input , size) { if (input.length <= size) return input; var output = input.substring(0, (size || 6)) + "..."; return output; } });
import colorString from 'color-string'; export const isColorValid = (color) => { const isValid = !!colorString.get(color); if (!isValid) { console.warn(`The color ${color} it's not a valid color, please check your input.`); } return isValid; };
const ExpressBrute = require('express-brute') const MongooseStore = require('express-brute-mongoose') const moment = require('moment') const mongoose = require('mongoose') const { log } = console const bruteForceSchema = new mongoose.Schema({ _id: String, data: { count: Number, lastRequest: Date, firs...
// Copyright (C) 2022 Igalia, S.L. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- esid: sec-temporal.calendar.prototype.dayofyear description: Negative zero, as an extended year, is rejected features: [Temporal, arrow-function] ---*/ const arg = "-000000-10-31"; cons...
/** * by robin ma *email: ahmzj@163.com */ ; (function(win, $) { //mousemove class var $dcmen = $(document); var Mousedrag = function(targetObj, callback) { this.target = targetObj; this.random = (Math.random() * 10000 * 8 | 0).toString(16); this.whenmousedown = null; this...
/* globals expect */ 'use strict'; var _regeneratorRuntime = require('babel-runtime/regenerator')['default']; var _Object$assign = require('babel-runtime/core-js/object/assign')['default']; var _interopRequireDefault = require('babel-runtime/helpers/interop-require-default')['default']; var _desired = require('./de...
const errors = require('../domain/models/errors'); function errorHandlerMiddleware(err, req, res, next) { let status; if (err instanceof errors.ValidationError) { status = 400; } else if (err instanceof errors.NotFoundError) { status = 404; } else if (err instanceof errors.AuthenticationError) { st...
# -*- coding: utf-8 -*- # # brunel_alpha_numpy.py # # This file is part of NEST. # # Copyright (C) 2004 The NEST Initiative # # NEST 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 2 of the Lice...
"use strict"; exports.__esModule = true; var _createThemedIcon = require("./utils/createThemedIcon"); var _FilledFormatStrikethrough = require("./FilledFormatStrikethrough"); var _OutlineFormatStrikethrough = require("./OutlineFormatStrikethrough"); var _RoundFormatStrikethrough = require("./RoundFormatStrikethrou...
#!/usr/bin/env python # # 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 "Li...