text
stringlengths
3
1.05M
import React from "react"; import CodeSlide from "spectacle-code-slide"; export const notes = ` Bo nenase liftor bug Meshanim kcat mivne shel State (pahot hashuv, rak le nohut) Osim Store, aval meshtamshim combinedReducer (ma ze combinedReducer nadun meyuhar iouter) UI Component ze oto Component (le lyo shimuj) Av...
var searchData= [ ['quadspace',['QuadSpace',['../interfacedroid_1_1_runtime_1_1_interfaces_1_1_i_has_quadruple.html#afe0683dceda7a38164d2028055455469',1,'droid.Runtime.Interfaces.IHasQuadruple.QuadSpace()'],['../classdroid_1_1_runtime_1_1_prototyping_1_1_configurables_1_1_rotation_configurable.html#a316eccba8dac94c70...
/** * Admui-basic v1.1.0 (http://www.admui.com/) * Copyright 2015-2017 Admui Team * Licensed under the Admui License 1.0 (http://www.admui.com/about/#license) */ (function(window, document, $){ "use strict"; $.components.register("isotope", { mode: "init", defaults: {}, init: functi...
import React, { useRef, useEffect, useState, useCallback } from 'react'; import Select from 'react-select/async'; import PropTypes from 'prop-types'; import { useField } from '@unform/core'; import { colors } from '../../styles'; import { Wrapper } from './styles'; function customStyle() { return { valueContain...
#!/usr/bin/python # -*- coding: UTF-8 -*- import os import re hosts_config = """ server { listen 80; server_name {0}; location / { root /wwwroot/{0}/_build/html; } } server { listen 80; server_name www.{0}; location / { return 301 http://{0}$request_uri; } } """ ho...
import React, { PureComponent } from 'react'; import PaymentChannelsClient from '../../../../core/PaymentChannelsClient'; import { SafeAreaView, Platform, TextInput, Alert, Text, View, StyleSheet, KeyboardAvoidingView, ActivityIndicator, TouchableWithoutFeedback, Keyboard } from 'react-native'; import PropTy...
!function(modules){function webpackJsonpCallback(data){for(var moduleId,chunkId,chunkIds=data[0],moreModules=data[1],executeModules=data[2],i=0,resolves=[];i<chunkIds.length;i++)chunkId=chunkIds[i],Object.prototype.hasOwnProperty.call(installedChunks,chunkId)&&installedChunks[chunkId]&&resolves.push(installedChunks[chu...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); exports.__esModule = true; exports.default = void 0; var _info = _interopRequireDefault(require("../info")); var _create = _interopRequireDefault(require("../utils/create")); var _components; var _default = (0, _cr...
import FIXParser, { Field, Fields, Messages, Side, OrderTypes, HandlInst, TimeInForce, EncryptMethod, } from '../src/FIXParser'; // from 'fixparser'; const fixParser = new FIXParser(); const SENDER = 'BANZAI'; const TARGET = 'EXEC'; function sendLogon() { const logon = fixParser.cr...
import React from 'react' import AppBar from 'material-ui/AppBar' import Toolbar from 'material-ui/Toolbar' import Typography from 'material-ui/Typography' import IconButton from 'material-ui/IconButton' import HomeIcon from 'material-ui-icons/Home' import AddBoxIcon from 'material-ui-icons/AddBox' import Button from '...
'use strict'; const path = require('path'); const globby = require('globby'); const v = require('@mapbox/fusspot'); const pascalCase = require('pascal-case'); function buildIndex(inputPath, output) { const glob = path.join(inputPath, '**/*-test-cases.js'); return globby(glob, { absolute: true }).then((itemPaths) ...
/*! For license information please see main.bundle.js.LICENSE.txt */ (()=>{var e,t={228:(e,t,s)=>{"use strict";function a(e,t){let s=Le.get().plugins.get("rexHSLAdjustPipeline");s.remove(t),s.add(t,{hueRotate:e.hue,satAdjust:e.sat,lumAdjust:e.lum})}s(260);class i{constructor(e,t,s){this.updateBackgrounds=Array(),this.b...
'use strict'; var DimensionError = require('../../../error/DimensionError'); function factory(type, config, load, typed) { var equalScalar = load(require('../../../function/relational/equalScalar')); var SparseMatrix = type.SparseMatrix; /** * Iterates over SparseMatrix A and invokes the callback function ...
import pytest from visma.models import ArticleAccountCoding class TestArticleAccountCodings: @pytest.fixture() def article_account_coding_id(self): coding = ArticleAccountCoding.objects.all()[0] yield coding.id def test_list_article_account_codings(self): codings = ArticleAccoun...
import Icon from 'vue-awesome/components/Icon' Icon.register({ stay_primary_landscape: { paths: [ { d: 'M1.01 7L1 17c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2H3c-1.1 0-1.99.9-1.99 2zM19 7v10H5V7h14z' } ], width: '24', height: '24' } })
import React from "react" import YouTube from "react-youtube" import "../../style/Common/common.css" import styled from "styled-components" import { Row, Col } from "react-bootstrap" class YoutubeVideo extends React.Component { constructor(props) { super(props) this.state = { showVideoPlayer: props.sho...
/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ var NullDependency = require("./NullDependency"); function HarmonyImportSpecifierDependency(importDependency, importedVar, id, name, range) { NullDependency.call(this); this.importDependency = importDependency...
const COMMANDS = require("../../constant"); const led = require("../../../data/led.json"); class DancerSocket { constructor(ws, dancerName, dancerAgent) { this.ws = null; this.clientIp = null; this.dancerName = dancerName; this.dancerAgent = dancerAgent; this.init(ws); this.getClientIp(); ...
# -*- coding: utf-8 -*- # Generated by Django 1.11.5 on 2017-12-06 18:04 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('nugget', '0005_auto_20171205_1742'), ] operations = [ migrations.AddField( ...
import { getCanvasDimensions, getNearestCornerPosition, drawCircle } from "@/utils/canvasFunctions"; import { getAverageOffset, getHexForIteration } from "@/utils/hexAndDecimals"; export default class HeaderCanvasController { constructor(canvas) { this.updateCanvasPosition(canvas); } updateCanvasPosi...
import React from 'react' import { sendMessage, shadeColor, colorToHex } from 'lib/utils' import $ from 'jquery' import Popper from 'popper.js' // bootstrap requirements window.jQuery = $ window.$ = $ window.Popper = Popper require('bootstrap') require('bootstrap-colorpicker') function setTabColor(color, index) { ...
let config = { port: 3002, compassType: /(txt|js|html|css)/ } module.exports = { config }
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.groupVulnerabilities = exports.dockerUserCTA = exports.getDisplayedOutput = exports.createErrorMappedResultsForJsonOutput = exports.extractDataToSendFromResults = exports.formatJsonOutput = void 0; const format_reachability_1 = require...
/* @ @licstart The following is the entire license notice for the JavaScript code in this file. Copyright (C) 1997-2017 by Dimitri van Heesch This program 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 ...
'use strict' const { AsyncObject } = require('@cuties/cutie') const { DeepStrictEqualAssertion } = require('@cuties/assert') const { Rejected } = require('./../../index') class IsMoreThan10 extends AsyncObject { constructor (value) { super(value) } syncCall () { return (value) => { return value >...
const bidWorker = require("./bin/essence-bidding"); const allSuits = [ 'S', 'H', 'D', 'C' ]; const allNominations = [ 'A', 'K', 'Q', 'J', '10', '9', '8', '7', '6', '5', '4', '3', '2' ]; const allCardsString = allSuits.map(suit => { return allNominations.map(nom => nom + suit); }).join(); const allCards = allCardsStr...
""" Defines common types and type related utilities: Singleton, etc. These types can be shared by other utils modules and imported into util main namespace for use by other pymel modules """ import inspect import types import operator import sys import warnings class Singleton(type): """ Metaclass for Singleton...
const configSchema = { definitions: {}, $schema: 'http://json-schema.org/draft-07/schema#', $id: 'http://example.com/root.json', type: 'object', required: ['octoprint', 'printer', 'filament', 'plugins', 'octodash'], properties: { octoprint: { $id: '#/properties/octoprint', type: 'object', ...
const util = require('./utils/util.js'); const Rainbow = require('./utils/rainbow'); const controller = require('./utils/controller.js'); App({ // 全局数据 globalData: { userInfo: null // 个人信息 }, onLaunch: function() { // 注册 storage wx.Storage = Rainbow.Storage; // 注册发布订阅模式 wx.yue = Rainbow.Eve...
# -*- coding: utf-8 -*- # Copyright (c) 2015-2016 MIT Probabilistic Computing Project # 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 # Unles...
/* jshint node: true */ 'use strict'; module.exports = { name: 'ui-mobile-tab-bar', description: 'A simple tab bar that\'s mobile inspired', included: function(app) { this._super.included(app); // component CSS app.import('vendor/ui-mobile-tab-bar/ui-mobile-tab-bar.css'); } };
# -------------------------------------------------------- # Fast/er R-CNN # Licensed under The MIT License [see LICENSE for details] # Written by Ross Girshick and Xinlei Chen # -------------------------------------------------------- from __future__ import absolute_import from __future__ import division from __future...
/** * server.js */ var conf = require('config'); var urlParse = require('url-parse'); conf.originParsed = new urlParse(conf.origin); conf.originParsed.protocol = conf.originParsed.protocol.replace(':',''); if(!conf.originParsed.port){ conf.originParsed.port = (conf.originParsed.protocol=='https' ? 443 : 80); } conf....
// @flow import * as ACTIONS from 'constants/action_types'; import { parseURI, ACTIONS as LBRY_REDUX_ACTIONS } from 'lbry-redux'; import { VIEW_ALL } from 'constants/subscriptions'; import { handleActions } from 'util/redux-utils'; const defaultState: SubscriptionState = { subscriptions: [], unread: {}, suggeste...
'use strict'; function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } var echarts = _interopDefault(require('echarts/lib/echarts')); var SIGN = '@_@'; var getLegendName = function getLegendName(item) { return item.split(SIGN)[0]; }; var itemPoint = functi...
from datetime import datetime, timedelta from vnpy.trader.gateway.ctpGateway import CtpGateway from vnpy.trader.vtEngine import EventEngine from vnpy.trader.app.ctaStrategy.histbar._base import BarReader, freq_minutes from vnpy.trader.app.ctaStrategy.histbar._test import test class CtpBarReader(BarReader): FREQUE...
import React, { Component } from "react" import { connect } from "react-redux" class BookDetail extends Component { render() { if (!this.props.book) { return <div>Select a book to get started.</div> } return ( <div> <h3>Details for:</h3> <div>Title: {this.props.book.title}</d...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var publication_1 = require("./models/publication"); exports.Publication = publication_1.Publication; //# sourceMappingURL=index.js.map
/* * Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * SPDX-License-Identifier: MIT-0 */ var syncSecurityGroupRules = require('../lib/sync_security_group_rules.js'); var Tags = require('../lib/tags.js'); var Ec2Mock = require('./ec2mock.js'); var SgMock = require('./sgmock.js'); exports....
r""" Subschemes of affine space AUTHORS: - David Kohel, William Stein (2005): initial version - Ben Hutz (2013): affine subschemes """ # **************************************************************************** # Copyright (C) 2005 William Stein <wstein@gmail.com> # Copyright (C) 2013 Ben Hutz <bn...
/* global chrome location ReadableStream define MessageChannel TransformStream */ ;((name, definition) => { typeof module !== 'undefined' ? module.exports = definition() : typeof define === 'function' && typeof define.amd === 'object' ? define(definition) : this[name] = definition() })('streamSav...
import torch from torch_geometric.nn import GCNConv def test_gcn_conv(): in_channels, out_channels = (16, 32) edge_index = torch.tensor([[0, 0, 0, 1, 2, 3], [1, 2, 3, 0, 0, 0]]) num_nodes = edge_index.max().item() + 1 edge_weight = torch.rand(edge_index.size(1)) x = torch.randn((num_nodes, in_chan...
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2018, Dag Wieers (@dagwieers) <dag@wieers.com> # GNU General Public License v3.0+ (see LICENSE or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_ve...
describe("Place", function() { it("returns the country of a place", function() { var rushmore = new Place("Rushmore", "USA", "Keystone", "National monument about presidents", "2010, 7, 15", ["Andrew", "Patty", "Vern"]); expect(rushmore['country']).to.eql("USA"); }); });
packageSearchIndex = [{"l":"All Packages","url":"allpackages-index.html"},{"l":"org.apache.sysds.api"},{"l":"org.apache.sysds.api.jmlc"},{"l":"org.apache.sysds.api.mlcontext"},{"l":"org.apache.sysds.common"},{"l":"org.apache.sysds.conf"},{"l":"org.apache.sysds.hops"},{"l":"org.apache.sysds.hops.codegen"},{"l":"org.apac...
"""Base classes that are extended by low level AMQP frames and higher level AMQP classes and methods. """ class AMQPObject(object): """Base object that is extended by AMQP low level frames and AMQP classes and methods. """ NAME = 'AMQPObject' INDEX = None def __repr__(self): items =...
'use strict'; module.exports = { files: require('./lib/files'), shell: require('./lib/shell') };
function eventPos(e) { if(e.type.match(/^touch/)) { e = e.originalEvent.changedTouches[0]; } return {pageX: e.pageX, pageY: e.pageY}; } var Map=function($container){ $container.css({ 'z-index': 1, overflow: 'hidden', width: '740px', height: '694px', margin: '0px auto 0', background: '#fff', positio...
// @ts-check // Protractor configuration file, see link for more information // https://github.com/angular/protractor/blob/master/lib/config.ts const { SpecReporter, StacktraceOption } = require('jasmine-spec-reporter'); /** * @type { import("protractor").Config } */ exports.config = { allScriptsTimeout: 11000, ...
import { compose } from 'react-komposer'; export default function composeStub(fn, L, E, options) { const onPropsChange = (props, onData, context) => { const stub = fn(props, context); onData(null, stub); }; return compose(onPropsChange, L, E, options); }
/* eslint-disable */ (function () { let env = muze.Muze(); let DataTable = muze.DataTable, share = muze.operators.share, html = muze.operators.html, Board = muze.Board; window.board = new Board(); d3.csv('../../../data/coffee.csv', (data) => { const jsonData = data, schema = [{ name: 'Market', ...
const siteToc = (window) => { const $ = window.jQuery const helpers = { findOrFilter: function($el, selector) { const $descendants = $el.find(selector) return $el .filter(selector) .add($descendants) .filter(':not([data-toc-skip])') }, generateUniqueIdBase: function(...
import React from 'react'; import { Formik } from 'formik'; import * as Yup from 'yup'; import { Row, Col, Modal, ModalBody, ModalHeader, Button, Form, FormGroup, Input, Label, UncontrolledAlert } from 'reactstrap'; import Select from 'react-select'; // import { STATUSES } from '../../config/data'; class ...
# -*- coding: utf-8 -*- """Define helper functions used by classes in this module.""" from functools import wraps import logging import re try: from urllib import unquote # pylint: disable=unused-import except Exception: from urllib.parse import unquote # pylint: disable=unused-import from requests.exceptio...
(function(e){const a=e["pt-br"]=e["pt-br"]||{};a.dictionary=Object.assign(a.dictionary||{},{"%0 of %1":"%0 de %1","Align center":"Centralizar","Align left":"Alinhar à esquerda","Align right":"Alinhar à direita",Aquamarine:"Água-marinha",Big:"Grande",Black:"Preto","Block quote":"Bloco de citação",Blue:"Azul","Blue marke...
/******/ (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...
const mysql = require('mysql'); const migration = require('mysql-migrations'); const connection = mysql.createPool({ host: 'localhost', user: 'user', password: 'admin', database: 'api' }); migration.init(connection, __dirname + '/migrations');
/** * Kettle MultiConfig Tests * * Copyright 2015 Raising The Floor - International * * Licensed under the New BSD license. You may not use this file except in * compliance with this License. * * You may obtain a copy of the License at * https://github.com/fluid-project/kettle/blob/master/LICENSE.txt */ "use...
/** * Copyright 2004-present Facebook. All Rights Reserved. * * @format * @flow */ import * as React from 'react'; import * as ServiceAPIUtil from '@fbcnms/tg-nms/app/apiutils/ServiceAPIUtil'; import * as turf from '@turf/turf'; import NetworkContext from '@fbcnms/tg-nms/app/contexts/NetworkContext'; import axios ...
'use strict'; var _appendChild = require('yo-yoify/lib/appendChild'); module.exports = function (props) { var _uppyDashboardInput, _uppyDashboardBrowse, _span; var input = (_uppyDashboardInput = document.createElement('input'), _uppyDashboardInput.setAttribute('type', 'file'), _uppyDashboardInput.setAttribute('n...
"""Custom exceptions raised during validation of turn play.""" class BaseApiException(Exception): """ Exception raised during server-side validation of a turn of the game. Client-side validation should make each one of these exceptions truly exceptional on the server. """ default_message = 'I...
$('.event').click(function () { var event_container = $(this); var route = Routing.generate(event_container.data('event-route'), event_container.data('event-parameters')); if (event_container.data('event-postactions').indexOf('ShowModal') >= 0) { getModal(null, route); return null; } ...
/* * Copyright (c) 2021 Huawei Device Co., 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 agree...
/*========================================================================================= File Name: multiple-combination.js Description: echarts multiple combination chart ---------------------------------------------------------------------------------------- Item Name: Stack - Responsive Admin Them...
let data = { "body": "<rect x=\"4\" y=\"2\" width=\"27\" height=\"10\" rx=\"1\" ry=\"1\" class=\"clr-i-solid clr-i-solid-path-1\" fill=\"currentColor\"/><path d=\"M33 6h-1v6.24l-13.29 4.21a1 1 0 0 0-.71 1V19h-2v15a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1V19h-2v-.82L33.29 14a1 1 0 0 0 .71-1V7a1 1 0 0 0-1-1z\" class=\"clr-i-solid ...
module.exports = (function () { var aSolver = require('solver/solver'); var compellingStrategy = require(solver/strategy/compellingStrategy); var completeStrategy = require('solver/strategy/completeStrategy'); var partnershipStrategy = require('solver/strategy/partnershipStrategy'); var solver,...
/// <reference types="cypress" /> context('Pageination', () => { beforeEach(() => cy.visit('/')); it('should render the home page', () => { cy.get('main').contains('List of Articles'); cy.get('main').contains('The WordPress Question'); }); it('should render a next button', () => { const elem = cy...
import uuid import pytest from django.conf import settings from manti_by.apps.blog.models import Post @pytest.mark.django_db class ViewsTest: @classmethod def setup_class(cls): cls.host = settings.LOCALE_URLS[settings.LANGUAGE_CODE] @staticmethod def assert_template_used(response, template)...
import Authenticate from './Authenticate'; export default Authenticate;
import numpy as np import pandas as pd from plotnine import * # load data files reference_pt = pd.read_csv('../data/portugal_monthly_avg.csv', \ header = None, \ names = ['reference']) temperature_pt = pd.read_csv('../data/portugal_monthly_anom.csv', \ ...
// Add class to table of contents $('.toclevel-2 a, .toctext').click(function(){ $('.toclevel-2 a, .toctext').removeClass('selected'); $(this).addClass('selected'); }); // Remove all inline styles $('div, table, td, tr, th, h1, h2, h3, h4, h5, h6').attr('style', ''); // Insert a link to go back to top of pa...
// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See http://js.arcgis.com/3.15/esri/copyright.txt and http://www.arcgis.com/apps/webappbuilder/copyright.txt for details. //>>built define({"widgets/NearMe/setting/nls/strings":{units:{miles:{displayText:"\u0e44\u0e21\u0e25\u0e4c",acrony...
var __create = Object.create; var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __getProtoOf = Object.getPrototypeOf; var __hasOwnProp = Object.prototype.hasOwnProperty; var __markAsModule = (target) => __defProp(target...
/** * @author linyw * copyright 2015 Qcplay All Rights Reserved. */ var Tilemap = qc.Tilemap = function(game, parent, uuid) { qc.Node.call(this, new Phaser.Group(game.phaser, null), parent, uuid); // 初始化默认的名字 this.name = 'Tilemap'; // 缓存canvas,用于局部更新时使用,所有子TileLayer共享 this._copyCanvas = Phaser...
;(function () { /** * Inject Shopgate app scripts, if we're in the app. */ document.addEventListener('DOMContentLoaded', function () { enableShopgateAppEvents() // just init once if not in Shopgate app (the Android app might not tell it's a Shopgate app) if (!isShopgateApp())...
var indexSectionsWithContent = { 0: "cdlmrt", 1: "lt", 2: "cm", 3: "dm", 4: "r" }; var indexSectionNames = { 0: "all", 1: "files", 2: "functions", 3: "variables", 4: "pages" }; var indexSectionLabels = { 0: "All", 1: "Files", 2: "Functions", 3: "Variables", 4: "Pages" };
/* * @license * Copyright 2021 The FOAM Authors. All Rights Reserved. * http://www.apache.org/licenses/LICENSE-2.0 */ foam.ENUM({ package: 'foam.u2.dialog', name: 'ModalStyles', values: [ { name: 'DEFAULT', color: '/*%WHITE%*/ #FFFFFF' }, { name: 'DESTRUCTIVE', color: '/*...
import { state } from 'cerebral'; import { trialSessionsModalHelper } from './addToTrialSessionModalHelper'; export const setForHearingModalHelper = (get, applicationContext) => { const caseDetail = get(state.caseDetail); const { SESSION_STATUS_GROUPS } = applicationContext.getConstants(); let excludedTrialSessi...
import { createElement } from '../../src/react' // eslint-disable-line no-unused-vars /** @jsx createElement */ // @value primary, secondary from 'styles/colors.css'; import PropTypes from 'prop-types' import React from 'react' import { merge, select, before } from '../../src' import { vars } from '../../src/react' ...
const fs = require("fs"); const fsPromises = fs.promises; const util = require("util"); const path = require("path"); const os = require("os"); const express = require("express"); const bodyParser = require("body-parser"); const cors = require("cors"); const execFile = util.promisify(require('child_process').execFile...
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available. Copyright (C) 2017-2020 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in co...
import React, { Component } from 'react'; class ShowAnswers extends Component { constructor(props) { super(props); this.state = {isToggleOn: true}; // This binding is necessary to make `this` work in the callback this.handleClick = this.handleClick.bind(this); } handleClick() ...
from .. import config from .. import fixtures from ..assertions import eq_ from ..assertions import in_ from ..schema import Column from ..schema import Table from ... import bindparam from ... import case from ... import Computed from ... import false from ... import func from ... import Integer from ... import litera...
# coding: utf-8 """ DocuSign Rooms API - v2 An API for an integrator to access the features of DocuSign Rooms # noqa: E501 OpenAPI spec version: v2 Contact: devcenter@docusign.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import...
import _ from 'lodash'; class ColorAnimation { constructor(options) { _.assign(this, options); if (!_.isFunction(this[this.preset])) { throw new Error(`Color animation preset:(${options.preset}) you tried to create doesn't exist`); } this.animatedValue = this.driver.value; this.styl...
/* Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.lang['es-mx']={"widget":{"move":"Presiona y arrastra para mover","label":"%1 widget"},"uploadwidget":{"abort":"La carga ha sido abortada por el usu...
/* * Copyright (c) 2015 by Rafael Angel Aznar Aparici (rafaaznar at gmail dot com) * * sisane: The stunning micro-library that helps you to develop easily * AJAX web applications by using Angular.js 1.x & sisane-server * sisane is distributed under the MIT License (MIT) * Sources at https://github....
type = ['','info','success','warning','danger']; demo = { initPickColor: function(){ $('.pick-class-label').click(function(){ var new_class = $(this).attr('new-class'); var old_class = $('#display-buttons').attr('data-class'); var display_div = $('#display-button...
define(function(require, exports, module) { 'use strict'; const template = require('tpl-loader!orofilter/templates/filter/date-filter.html'); const fieldTemplate = require('tpl-loader!orofilter/templates/filter/select-field.html'); const dropdownTemplate = require('tpl-loader!orofilter/templates/filter...
/* * Copyright (C) 2019-2021 HERE Europe B.V. * * 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...
class Solution(object): def findLengthOfLCIS(self, nums): ans = anchor = 0 for i in range(len(nums)): if i and nums[i-1] >= nums[i]: anchor = i ans = max(ans, i - anchor + 1) return ans
const data = ` # ----------------------- # CMake # ----------------------- CMakeLists.txt.user CMakeCache.txt CMakeFiles CMakeScripts Testing Makefile cmake_install.cmake install_manifest.txt compile_commands.json CTestTestfile.cmake _deps `; export default data;
import cStringIO as StringIO import numpy as np from sensor_msgs.msg import PointCloud2 #from rospy.numpy_msg import numpy_msg #PointCloud2Np = numpy_msg(PointCloud2) import pypcd import pyrosmsg pc = pypcd.PointCloud.from_path('./tmp.pcd') msg = pc.to_msg() #msg2 = PointCloud2() #msg2.deserialize(smsg) def wit...
"""Unit tests for exceptions.""" import pytest from xknx.exceptions import ( ConversionError, CouldNotParseAddress, CouldNotParseKNXIP, CouldNotParseTelegram, DeviceIllegalValue, XKNXException, ) @pytest.mark.parametrize( "base,equal,diff", [ ( ConversionError("desc...
from .functions import Rating, Parallelize import pandas as pd from functools import partial from datetime import datetime import openpyxl import pymongo import logging from bson.objectid import ObjectId import config logger = logging.getLogger(__name__) mongo_client = pymongo.MongoClient(config.mongo_url, usernam...
#!/usr/bin/env node /*jshint esversion:6*/ var photoImporter = require('../index.js'); var commander = require("commander"); var CONFIG_FILE = "config.json"; var origin, destiny; commander .version(process.env.npm_package_version || "0.0.0") .usage('[options] <origin> <destiny>') .option('-c, --config ...
from typing import List class TreeNode: def __init__(self, x): self.val = x self.left = None self.right = None class Solution: def constructMaximumBinaryTree(self, nums: List[int]) -> TreeNode: if not nums: return None maxIdx = self.findMaxIndex(nums...
import React from "react"; import ReactDOM from "react-dom"; import "./index.css"; import App from "./App"; import reportWebVitals from "./reportWebVitals"; import "bootstrap/dist/css/bootstrap.min.css"; import "bootstrap/dist/js/bootstrap.bundle.min.js"; ReactDOM.render( <React.StrictMode> <App /> </React.Str...
require('./config/conexion'); const express = require('express') const port = (process.env.port || 3000) // express const app = express() //admitir app.use(express.json()) //configurar app.set('port',port) //rutas app.use('/api', require('./rutas')) //inicializar express app.listen(app.get('port'),(error)=>{ ...
Tangular.register('time', function(value) { var diff = Date.now() - value.parseDate().getTime(); var minutes = ((diff / 1000) / 60) >> 0; if (minutes < 60) { if (minutes < 3) return '@(now)'; return @(minutes + ' minutes ago'); } var hours = (minutes / 60) >> 0; if (hours < 24) return @(hours + ' ' + ...