text stringlengths 3 1.05M |
|---|
// Requirements
const request = require("supertest");
const expect = require("expect");
const app = require("../app");
describe("Server", () => {
it("should respond", done => {
request(app)
.get("/api/movies")
.expect(200)
.end(done);
});
it("should handle erro... |
from tweepy import Stream, StreamListener
from constants import API
from generateModel import generate_model
from makeSentence import make_sentence
from myTweets import fetch_tweets, load_tweets
class ReplyStreamListener(StreamListener):
def on_status(self, status):
print("[Info] Retrieved tweet: ", statu... |
const fs = require('fs-extra');
const path = require('path');
const _ = require('lodash');
const BottleNeck = require('bottleneck');
const chalk = require('chalk');
const columnify = require('columnify');
const aws = require('./aws.js');
const S3 = require('./aws-s3');
const providerName = require('../../lib/constants... |
import axios from "axios";
import { SAVE_COMMENT, FETCH_COMMENTS } from "actions/types";
export function saveComment(comment) {
return {
type: SAVE_COMMENT,
payload: comment
};
}
export function fetchComments() {
const response = axios.get("http://jsonplaceholder.typicode.com/comments");
return {
... |
import React, { Component, useState } from "react";
import { Button, Form, Col, InputGroup } from "react-bootstrap";
import * as moment from "moment";
import { Formik } from "formik";
import Auth from "../services/auth";
function ProfileResetPassword(props) {
let [passwordError, setPasswordError] = useState();
fun... |
var Game = {
//-----------------------------------------------------------------------------------------------
run: function(options) {
var now,
dt = 0,
last = Game.Math.timestamp(),
step = 1/options.fps,
update = options.update,
render = options.rend... |
import json
from unittest.mock import patch
from moto import mock_s3, mock_sts
import requests
from azul.logging import configure_test_logging
from azul.service.responseobjects.storage_service import (MultipartUploadError,
MultipartUploadHandler,
... |
window.__NUXT__=(function(a,b,c,d){return {staticAssetsBase:"\u002Fstatic\u002F1597376630",layout:"default",error:b,state:{notification:{show:a,title:c,message:c},isShowSidebar:a,isSupportWebShare:a,headerTitle:"e-AlQur'an",page:"home",lastReadVerse:b,settingActiveTheme:{name:"dark",bgColor:"#071e3d",fgColor:"#fff"},se... |
# SPDX-FileCopyrightText: 2019 Melissa LeBlanc-Williams for Adafruit Industries
#
# SPDX-License-Identifier: MIT
"""
`adafruit_featherwing.neopixel_featherwing`
====================================================
Helper for using the `NeoPixel FeatherWing <https://www.adafruit.com/product/2945>`_.
* Author(s): Meli... |
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("react-bootstrap"));
else if(typeof define === 'function' && define.amd)
define(["react", "react-bootstrap"], factory);
else if(typeof expor... |
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ re... |
import React from 'react';
import {useSelector} from "react-redux";
import EntryCard from "./EntryCard";
const KiCard = () => {
let ki = useSelector(state => state.present.martial.kiReserve);
return <EntryCard addFooter entry={ki}/>
};
export default KiCard; |
var fs = require('fs');
var path = require('path');
var File = require('vinyl');
var json2translate = require('../index');
it('should create angular translate wrapper for json file', function (cb) {
var stream = json2translate({
moduleName: 'Translations'
});
var json = fs.readFileSync(path.resol... |
const doc = eval('document')
for (const el of doc.querySelectorAll('p')) {
if (el.textContent.includes('City')) {
el.click()
}
}
for (const el of doc.querySelectorAll('span')) {
if (el.ariaLabel && el.ariaLabel.includes('Alpha Enterprises')) {
el.click()
}
}
for (const el of doc.quer... |
# Code generated by protoc-gen-twirp_python v5.5.2, DO NOT EDIT.
# source: proto.proto
try:
import httplib
from urllib2 import Request, HTTPError, urlopen
except ImportError:
import http.client as httplib
from urllib.request import Request, urlopen
from urllib.error import HTTPError
import json
fro... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[6],{"1mEJ":function(e,t,n){var r=n("q1tI");function o(e){return r.createElement("svg",e,r.createElement("path",{d:"M6.675 5.1C6.675 5.1 6.75 5.025 6.675 5.1V5.1ZM2.7 3.9H0.15V12H2.7V3.9ZM2.925 1.425C2.85 0.6 2.325 0 1.425 0C0.6 0 0 0.6 0 1.425C0 2.175 0.525 2.85 1.42... |
let data = {
"body": "<path d=\"M2.5 19h19v2h-19v-2m19.57-9.36c-.21-.8-1.04-1.28-1.84-1.06L14.92 10L8 3.57l-1.91.51l4.14 7.17l-4.97 1.33l-1.97-1.54l-1.45.39l1.82 3.16l.77 1.33l1.6-.42l5.31-1.43l4.35-1.16L21 11.5c.81-.24 1.28-1.06 1.07-1.86z\" fill=\"currentColor\"/>",
"width": 24,
"height": 24
};
export default data... |
'use strict';
Connector.playerSelector = '#block-live-player';
Connector.artistTrackSelector = '#cro-box-schedule-player-playlist > div > div > div > p > a > strong';
Connector.playButtonSelector = '.is-paused';
|
/* Theme Name: Minton - Responsive Bootstrap 4 Admin & Frontend
Author: Coderthemes
Author e-mail: coderthemes@gmail.com
Version: 1.0.0
File Description:Main JS file of the template
*/
/* ==============================================
Smooth Scroll To Anchor
=======================================... |
(function (jtd, undefined) {
// Event handling
jtd.addEvent = function(el, type, handler) {
if (el.attachEvent) el.attachEvent('on'+type, handler); else el.addEventListener(type, handler);
}
jtd.removeEvent = function(el, type, handler) {
if (el.detachEvent) el.detachEvent('on'+type, handler); else el.removeEvent... |
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ retu... |
const api_root = "http://localhost:5000/friend/";
export async function apifriends(url, data){
let response;
if(data){
response = await fetch(api_root + url, {
method: 'POST', // *GET, POST, PUT, DELETE, etc.
cache: 'no-cache', // *default, no-cache, reload, force-cache, only-... |
import Adapter from '../../src/adapter';
import { createBid } from '../../src/bidfactory';
import * as utils from '../../src/utils';
import { STATUS, S2S, EVENTS } from '../../src/constants';
import adapterManager from '../../src/adapterManager';
import { config } from '../../src/config';
import { VIDEO, NATIVE } from ... |
"""Star Wars GraphQL schema
This is designed to be an end-to-end test, demonstrating the full GraphQL stack.
We will create a GraphQL schema that describes the major characters in the original
Star Wars trilogy.
NOTE: This may contain spoilers for the original Star Wars trilogy.
Using our shorthand to describe type... |
# coding: utf-8
"""
Cisco Intersight
Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environmen... |
/*eslint-disable*/
import React from "react";
import classNames from "classnames";
import PropTypes from "prop-types";
import { NavLink } from "react-router-dom";
// @material-ui/core components
import { makeStyles } from "@material-ui/core/styles";
import Drawer from "@material-ui/core/Drawer";
import Hidden from "@ma... |
/* -*- Mode: Javascript; indent-tabs-mode:nil; js-indent-level: 2 -*- */
/* vim: set ts=2 et sw=2 tw=80: */
/*************************************************************
*
* MathJax/jax/output/SVG/fonts/TeX/fontdata.js
*
* Initializes the SVG OutputJax to use the MathJax TeX fonts
* for displaying mathemati... |
const test = require('ava')
const { ms: secs } = require('../lib/help/ms')
const values = {
sec: 1000,
secs: 1000,
second: 1000,
seconds: 1000,
s: 1000,
minute: 60000,
minutes: 60000,
min: 60000,
mins: 60000,
m: 60000,
hour: 3600000,
hours: 3600000,
hr: 3600000,
hrs: 3600000,
h: 3600000,... |
// @flow strict
export const DefaultLayoutSymbol: symbol = Symbol('default');
export const UniformRowLayoutSymbol: symbol = Symbol('uniformRow');
|
import React, { Component, PropTypes } from 'react'
import { Layout, Row, Col, Modal } from 'antd'
import './style.scss'
import PageHeader from '../../components/page-header'
import NotebookItem from '../../components/itembox/notebook'
import NotebookItemLite from '../../components/itembox/notebook-lite'
import _ from ... |
import Generator from 'yeoman-generator';
import fs from 'fs';
import path from 'path';
import _ from 'lodash';
import questions from './questions.js';
import localGenerator from './generator';
export default class ReactPromisedComponentGenerator extends Generator
{
constructor(args, opts)
{
super(args, opts);... |
/*! jQuery v3.6.0 | (c) OpenJS Foundation and other contributors | jquery.org/license */
!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)}("undef... |
const { ltrimSlashes } = require('lib/path-utils.js');
const { Database } = require('lib/database.js');
const Folder = require('lib/models/Folder');
const Note = require('lib/models/Note');
const Tag = require('lib/models/Tag');
const BaseItem = require('lib/models/BaseItem');
const Resource = require('lib/models/Resou... |
"""Test suite for phlurl_request."""
# =============================================================================
# TEST PLAN
# -----------------------------------------------------------------------------
# Here we detail the things we are concerned to test and specify which tests
... |
import React from "react"
import { useStaticQuery, graphql } from "gatsby"
const ContactDetails = () => {
const data = useStaticQuery(graphql`
query {
markdownRemark(frontmatter: { title: { eq: "Contact Details" } }) {
html
frontmatter {
title
}
}
}`
)
... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2012-2019 SoftBank Robotics. All rights reserved.
# Use of this source code is governed by a BSD-style license (see the COPYING file).
""" QiBuild """
from __future__ import absolute_import
from __future__ import unicode_literals
from __future__ import print... |
from __future__ import division
import numpy as np
import scipy.sparse as sp
from scipy.constants import epsilon_0
from ...utils.code_utils import deprecate_class
from ...fields import TimeFields
from ...utils import mkvc, sdiag, Zero
from ..utils import omega
class FieldsTDEM(TimeFields):
"""
Fancy Field S... |
/**
* Main server script.
* @author Una Ada <una@anarchy.website>
* @version 2021.06.09
*/
/*----- Imports --------------------------------------------------------------*/
const createError = require('http-errors'),
express = require('express'),
path = require('path'),
cookieParser = require('cookie-parser')... |
app.service('global', function($cookieStore, $location, $filter) {
var globalService = {};
globalService.user = null;
globalService.isAuth = function (){
if (globalService.user == null) {
globalService.user = $cookieStore.get('user');
}
return (globalService.user != null)... |
'use strict';
describe('kFromEnd.test.js', () => { //eslint-disable-line
describe('Testing kthFromEnd function', () => { //eslint-disable-line
test('value kth from end of list', () => { //eslint-disable-line
expect(true).toEqual(true); //eslint-disable-line
});
});
});
// eslint says all these jest k... |
# Copyright (C) Dnspython Contributors, see LICENSE for text of ISC license
import base64
import enum
import io
import struct
import dns.enum
import dns.exception
import dns.immutable
import dns.ipv4
import dns.ipv6
import dns.name
import dns.rdata
import dns.rdtypes.util
import dns.tokenizer
import dns.wire
# Until... |
'use strict';
/* jshint ignore:start */
/**
* This code was generated by
* \ / _ _ _| _ _
* | (_)\/(_)(_|\/| |(/_ v1.0.0
* / /
*/
/* jshint ignore:end */
var Holodeck = require('../../../holodeck'); /* jshint ignore:line */
var Request = require(
'../../../../../lib/http/request'); /* ... |
#!/usr/bin/python
#--coding: utf8--
'''
使用动态规划法通过迭代评估给定策略。
本程序中给定一个随机策略,评估4*4方格世界中各个状态的价值函数
状态空间S:S1-S14为非终止状态;S0,S15为终止状态
行为空间A:{n,e,s,w}对于任何非终止状态都有四个方向的移动行为
转移概率P:任何能够离开方格世界的动作,其位置将不会发生变化;其他条件下将100%的状态到动作指向的位置
即时奖励R:任何非终止状态之间的转移得到的即时奖励均为-1,进入终止状态的即时奖励为0
衰减系数:1
当前策略:随机策略,任何一个非终止状态下所有行为的... |
export const TitleBar = "#728979"; |
import React, { useState } from 'react';
import TableCell from '@material-ui/core/TableCell';
import TableRow from '@material-ui/core/TableRow';
import Typography from '@material-ui/core/Typography';
import PropTypes from 'prop-types';
import { byString, setByString } from '../../utils';
import * as CommonValues from '... |
const path = require('path');
const { Sequelize } = require('sequelize');
const appLog = require('../lib/app-log');
class SequelizeDb {
constructor(config) {
this.config = config;
const sequelize = new Sequelize({
dialect: 'sqlite',
// sequelize may pass more than message,
// but it appear... |
import React, { Component } from 'react';
import {
Platform,
StyleSheet,
TextInput,
PixelRatio,
View,
TouchableOpacity,
Text
} from 'react-native';
export default class User extends Component {
render() {
if (!!this.props.user.name) {
return (
<TouchableOpacity
style={[style... |
import time
import connexion
from flask import abort
import six
from werkzeug.exceptions import Unauthorized
from jose import JWTError, jwt
from models import User
from passlib.context import CryptContext
import os
JWT_ISSUER = os.environ.get('JWT_ISSUER')
JWT_SECRET = os.environ.get('JWT_SECRET')
JWT_LIFETIME_SECON... |
fcViews.resourceDay = ResourceDayView;
function ResourceDayView(element, calendar) {
var t = this;
// exports
t.render = render;
// imports
ResourceView.call(t, element, calendar, 'resourceDay');
var opt = t.opt;
var renderResource = t.renderResource;
var skipHiddenDays = t.skipHiddenDays;
var forma... |
import SetStatePage from './page/SetStatePage';
export const routeConfig = [
{
name: 'SetStatePage',
exact: true,
path: '/SetStatePage',
component: SetStatePage
},
] |
'use strict';
module.exports.definition = {
set: function (v) {
this._setProperty('border-top-right-radius', v);
},
get: function () {
return this.getPropertyValue('border-top-right-radius');
},
enumerable: true,
configurable: true
};
|
// https://github.com/developit/dlv
export function dlv(obj, key, def, p, undef) {
key = key.split ? key.split('.') : key;
for (p = 0; p < key.length; p++) {
obj = obj ? obj[key[p]] : undef;
}
return obj === undef ? def : obj;
}
|
"""Function decorator for ZnTrack"""
import copy
import dataclasses
import logging
import pathlib
import typing
import dot4dict
from zntrack import utils
from zntrack.core.dvcgraph import DVCRunOptions, prepare_dvc_script
from zntrack.core.jupyter import jupyter_class_to_file
StrOrPath = typing.Union[str, pathlib.Pa... |
import PropTypes from "prop-types";
import React from "react";
import { ViewerButton, ViewerContainer } from "./SharedViewerStyledComponents";
export const DefaultView = ({ hover, accept, toggleQrReaderVisible, verificationError }) => (
<ViewerContainer
data-id="viewer-container"
className={`${hover ? (accep... |
// import
import React, {Component} from 'react'
import {connect} from 'react-redux'
import {Link} from 'react-router-dom'
import {
getAllThunk,
updateOrderThunk,
removeOrderThunk,
updateQtyThunk
} from '../store/cart'
import CartItem from './cart-item'
// component
class Cart extends Component {
componentDi... |
const express = require('express');
const router = express.Router();
const { validate } = require('../joi');
const paramValidation = require('../../config/param-validation');
const auth = require('./controller');
router
.route('/')
/** POST /api/auth - authenticate user */
.post(validate(paramValidation.create... |
import axios from 'axios'
import { GET_SECRET_URL } from '../../isomorphic'
export default async function getSecret (token) {
try {
const secret = await axios.get(GET_SECRET_URL)
return secret.data
} catch (err) {
throw new Error(err.response.data)
}
}
|
game.Jump = me.Entity.extend({
//making a jump entity, which lets creeps jump over it.
//i made this jump entity with the same image of the yellow box, so it seems they just jump over it, without colliding with anything.
init: function(x, y, settings) {
this._super(me.Entity, 'init', [x, y, {
... |
/// Copyright (c) 2009 Microsoft Corporation
///
/// 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 conditions and
/// ... |
(function(d){d['lv']=Object.assign(d['lv']||{},{a:"Image toolbar",b:"Nevar augšupielādēt failu:",c:"Table toolbar",d:"Trekns",e:"Ievietot attēlu vai failu",f:"Kursīvs",g:"Full size image",h:"Side image",i:"Left aligned image",j:"Centered image",k:"Right aligned image",l:"Citāts",m:"image widget",n:"Choose heading",o:"H... |
import React, { Component } from 'react'
import { AppLoading } from 'expo'
class Main extends Component {
componentWillMount() {
const { initApplication } = this.props
initApplication()
}
/* 启动加载界面 */
render() {
if (!this.props.initialized) {
return <AppLoading />
}
return this.props.... |
// 打印类属性、方法定义
/* eslint-disable */
const Print = function (dom, options) {
console.log(dom,options);
if (!(this instanceof Print)) return new Print(dom, options);
this.options = this.extend({
'noPrint': '.no-print'
}, options);
if ((typeof dom) === "string") {
this.dom = document.querySelector(dom);... |
import SliceMatrix
import pandas as pd
import datetime as dt
auth_token = "YOUR_APIKEY_GOES_HERE"
# create the SliceMatrix API Client
client = SliceMatrix.Client(auth_token)
# grab all the datasets you have available
datasets = client.get_datasets()
# pick the dataset you are interested in
dataset = d... |
import re
import os
from copy import deepcopy
from docxtpl import DocxTemplate, R, InlineImage, RichText, Listing, Document, Subdoc
from docx.shared import Mm, Inches, Pt, Cm, Twips
import docx.opc.constants
from docxcompose.composer import Composer # For fixing up images, etc when including docx files within templates... |
# coding: utf-8
"""
Metadata API
The Metadata API has operations that retrieve configuration details pertaining to the different eBay marketplaces. In addition to marketplace information, the API also has operations that get information that helps sellers list items on eBay. # noqa: E501
OpenAPI spec ve... |
deepmacDetailCallback("001a4a000000/24",[{"d":"2006-11-29","t":"add","a":"5201 Great America Parkway\nSuite 320\nSanta Clara California 95054\n","c":"UNITED STATES","o":"Qumranet Inc."},{"d":"2007-12-31","t":"change","a":"530 Lakeside Drive\nSuite 220\nSunnyvale California 94085\n","c":"UNITED STATES","o":"Qumranet Inc... |
define(["require","utils.common","jrs.configs"],function(e){e("utils.common");var o=e("jrs.configs");return{saveCurrent:function(e){new JSCookie(e,encodeURIComponent(document.location.href))},saveReferrer:function(e){-1===document.referrer.indexOf("login.html")&&new JSCookie(e,encodeURIComponent(document.referrer))},re... |
var a00737 =
[
[ "CLASS_PRUNER_STRUCT", "a04110.html", "a04110" ],
[ "INT_PROTO_STRUCT", "a04114.html", "a04114" ],
[ "PROTO_SET_STRUCT", "a04118.html", "a04118" ],
[ "INT_CLASS_STRUCT", "a04122.html", "a04122" ],
[ "INT_TEMPLATES_STRUCT", "a04126.html", "a04126" ],
[ "INT_FEATURE_STRUCT", "a041... |
var FileUploader = require('asset_manager/view/FileUploader');
module.exports = {
run() {
describe('File Uploader', () => {
before(function () {
this.$fixtures = $("#fixtures");
this.$fixture = $('<div class="fileupload-fixture"></div>');
});
beforeEach(function () {
... |
/**
* colors.js - color-related functions for blessed.
* Copyright (c) 2013-2015, Christopher Jeffrey and contributors (MIT License).
* https://github.com/chjj/blessed
*/
exports.match = function(r1, g1, b1) {
if (typeof r1 === 'string') {
var hex = r1;
if (hex[0] !== '#') {
return -1;
}
he... |
#!/usr/bin/env node
var reporter = require('nodeunit').reporters.default;
reporter.run(['unit_tests.js']); |
import actions from './actions';
import {updateElementActions} from './store';
import components from './components';
class Awe {
constructor({store, port}) {
this.store = store;
this.finishedInitialFetch = false;
this.clientId = null;
this.pendingActions = [];
this.ws = new WebSocket(`ws://${win... |
const CSSSplitWebpackPlugin = require('css-split-webpack-plugin').default;
function alertBabelConfig (rules) {
rules.forEach((rule) => {
if (rule.loader && rule.loader === 'babel-loader') {
rule.options.plugins = rule.options.plugins.filter(plugin => {
return !plugin.indexOf || plugin.indexOf('babe... |
module.exports = {
coverageDirectory: 'coverage',
preset: 'ts-jest',
testEnvironment: 'node'
};
|
/**
* Copyright 2017 Google Inc. 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 appli... |
import React from 'react'
import { render } from 'react-dom'
import { Router } from 'react-router'
import { AppContainer, createStore, getOrigin } from 'resolve-redux'
import { createBrowserHistory } from 'history'
import routes from './routes'
import Routes from './components/Routes'
const entryPoint = ({ rootPath, ... |
# Basiskonfigurationsfile
_base_ = '../detectors/detectors_cascade_rcnn_r50_1x_coco.py'
dataset_type = 'CocoDataset'
classes = ('raccoon', 'squirrel', 'bobcat', 'dog', 'coyote', 'rabbit', 'bird', 'cat', 'deer', 'fox') #10 classes
model = dict(
backbone=dict(
frozen_stages=4
),
roi_head=dict(
... |
// COPYRIGHT © 2021 Esri
//
// All rights reserved under the copyright laws of the United States
// and applicable international laws, treaties, and conventions.
//
// This material is licensed for use under the Esri Master License
// Agreement (MLA), and is bound by the terms of that agreement.
// You may redistribute... |
/* eslint-disable*/
import React from 'react';
import { render } from '@testing-library/react';
import Enzyme, { shallow } from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
import Post from "../components/Post";
import { BrowserRouter as Router } from 'react-router-dom';
Enzyme.configure({ adapter: new Ada... |
# Copyright 2021 The Cross-Media Measurement Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law ... |
# -*- coding: utf-8 -*- #
# Copyright 2019 Google LLC. 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 requir... |
var VMDK = module.exports
/**
* Sector (or block) size of VMDK images
* @type {Number}
* @constant
*/
VMDK.SECTOR_SIZE = 512
/**
* Size of a Grain Directory Entry (GDE) in bytes
* @type {Number}
* @constant
*/
VMDK.GDE_SIZE = 4
/**
* Size of a Grain Table Entry (GTE) in bytes
* @type {Number}
* @constant
... |
/**
* @fileoverview added by tsickle
* Generated from: src/cron-editor.component.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
import { __awaiter } from "tslib";
import { Component, Input, forwardRef } from '@angular/core';... |
/* Modernizr 2.6.3 (Custom Build) | MIT & BSD
* Build: http://modernizr.com/download/#-fontface-backgroundsize-borderimage-borderradius-boxshadow-flexbox-flexboxlegacy-multiplebgs-opacity-rgba-textshadow-csscolumns-generatedcontent-canvas-canvastext-draganddrop-shiv-mq-cssclasses-teststyles-testprop-testallprops-haseve... |
document.addEventListener('DOMContentLoaded', function () {
eventListeners();
calcularMontos();
});
window.addEventListener("resize", parametrosIniciales);
function eventListeners(){
const mobileMenu = document.querySelector('.menu-movil');
mobileMenu.addEventListener('click', navegacionResponsive);
}
f... |
const proxyquire = require('proxyquire');
const sinon = require('sinon');
describe('68808576', () => {
it('should pass', async () => {
const batchStub = {
tryAdd: sinon.stub(),
};
const producerStub = {
createBatch: sinon.stub().resolves(batchStub),
sendBatch: sinon.stub(),
close:... |
# Copyright 2014 Diamond Light Source Ltd.
#
# 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 t... |
jQuery(document).ready(function(){
jQuery('#btnCancelar').click(function(){
$('#Id').val("");
$('#Nome').val("");
$('#Descricao').val("");
$('#Ativo select').val("true");
});
GetMethod(null);
});
function GetMethod(object){
var settings = {
"async": true,
"crossDoma... |
from array import array
from copy import copy
from copy import deepcopy
import FWCore.ParameterSet.Config as cms
import FWCore.PythonUtilities.LumiList as LumiList
import six
# Helper functions
def getPSetDict(thePSet):
return thePSet.parameters_()
def insertValToPSet(name,val,thePSet):
setattr(thePSet,name,val... |
from OrderSystem import app
if __name__ == "__main__":
app.run()
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[434],{RIwl:function(a,e,d){var o,n,l;!function(t){if("object"==typeof a.exports){var r=t(0,e);void 0!==r&&(a.exports=r)}else n=[d,e],void 0===(l="function"==typeof(o=t)?o.apply(e,n):o)||(a.exports=l)}(function(a,e){"use strict";Object.defineProperty(e,"__esModule",{v... |
module.exports = function() {
return `
<div class="thunder--component-spinner-wrapper">
<div class="thunder--component-spinner"></div>
</div>
`.trim();
}; |
#!/usr/bin/env python
# Modified version of movidius classification-sample.py to test in a snap
from __future__ import print_function
import sys
import os
from argparse import ArgumentParser, SUPPRESS
import cv2
import numpy as np
import logging as log
from time import time
from openvino.inference_engine import IENet... |
# Copyright (c) 2018-2019 The Bitcoin Core developers
# Copyright (c) 2017-2019 The Raven Core developers
# Copyright (c) 2018-2019 The Rito Core developers
# Copyright (c) 2019 The Valuero developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses... |
# ------------------------------------
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# ------------------------------------
try:
from unittest import mock
except ImportError:
import mock
import pytest
from azure.search.documents.aio import (
SearchIndexingBufferedSender,
)
from az... |
/* Author: Hugues Demers
* Copyrights 2013
*/
define(["knockout"],
function (ko) {
var exports = {
alertMsg: ko.observable(''),
alertHeading: ko.observable(''),
};
return exports;
});
|
import string
import re
from concurrent.futures import ThreadPoolExecutor
# TODO: Figure out why I can't use flask.current_app (I get an error about the context)
import datetime
import logging
import datefinder
import requests
from pymongo import IndexModel, ASCENDING, DESCENDING
from bs4 import BeautifulSoup
from b... |
// 迭代器对象允许像(CLR)的IEnumerable接口或者Java的iterable一样创建自定义迭代器
// 可以将for...in 这种遍历方式更加一般化为for...of 的形式 它是支持惰性模式的 不需要真正实现一个数组
let fibonacci = {
[Symbol.iterator]() {
let pre = 0,
cur = 1;
return {
next() {
[pre, cur] = [cur, pre + cur]
return {done: ... |
import React, { PropTypes } from 'react';
import CategoryLink from '../CategoryLink/CategoryLink';
import './CategoryFilter.scss';
import {
Menu,
Callout
} from 'react-foundation';
const Styles = {
hidden: {
display: 'none'
},
centered: {
display: 'flex',
alignContent: 'center',
justifyConten... |
import safeTimerFactory from './safeTimerFactory'
export default safeTimerFactory(
global.requestIdleCallback,
global.cancelIdleCallback,
'requestSafeIdleCallback',
'withSafeIdleCallback'
)
|