text
stringlengths
3
1.05M
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["js/chunks/UserCreateOrUpdate"],{ /***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/view/Admin/User/UserCreateOrUpdate.vue?vue&type=script&lang=js&": /*!*************************************************...
export const state = () => ({ box_models: { service_container: { border:{ width:1, unit:'px' }, margin:{ width:0.35, unit:'rem' } }, node_container:{ padding:{ width:0.5, unit:'rem', }, gap:{ width:0.6, ...
import asyncio import orjson from linkauto.api.constants import Linkedin_41588_146600, GooglePixelUS from linkauto.api.client import ApiClient async def main(): client = ApiClient("username", "password", Linkedin_41588_146600, GooglePixelUS) await client.init() await client.login() response = await client.p...
import styled from 'styled-components'; const Test = styled.div.withConfig({ componentId: "sc-bc9ba4b0-0" })` width: 100%; `; const Test2 = true ? styled.div.withConfig({ componentId: "sc-bc9ba4b0-1" })`` : styled.div.withConfig({ componentId: "sc-bc9ba4b0-2" })``; const styles = { One: styled.div.wit...
import styled from 'styled-components'; export const StyledHomeContainer = styled.main` width: 85%; max-width: 1183px; margin: 2.4rem auto; display: grid; grid-template-columns: 2fr 5fr 3fr; grid-gap: 2.4rem; & > hr{ display: block; background-color: red; border: .1p...
/*global define*/ define([ '../Core/defineProperties' ], function( defineProperties) { 'use strict'; /** * @private */ var ContextLimits = { _maximumCombinedTextureImageUnits : 0, _maximumCubeMapSize : 0, _maximumFragmentUniformVectors : 0, _max...
class Humidity(object): '''Humidity facade. Humidity sensor returns value of humidity. With method `enable` you can turn on Humidity sensor and 'disable' method stops the sensor. Use property `tell` to get humidity value. ''' @property def tell(self): '''Current humi...
# # The Python Imaging Library. # $Id$ # # TGA file handling # # History: # 95-09-01 fl created (reads 24-bit files only) # 97-01-04 fl support more TGA versions, including compressed images # 98-07-04 fl fixed orientation and alpha layer bugs # 98-09-11 fl fixed orientation for runlength decoder # ...
import {spatialAnalystService} from '../../../src/leaflet/services/SpatialAnalystService'; import {GenerateSpatialDataParameters} from '../../../src/common/iServer/GenerateSpatialDataParameters'; import {DataReturnOption} from '../../../src/common/iServer/DataReturnOption'; import {DataReturnMode} from '../../../src/co...
import React, { useState } from "react" import Title from "./Title" import { FaAngleDoubleRight, FaSleigh } from "react-icons/fa" import { graphql, useStaticQuery } from "gatsby" import { Link } from "gatsby" const query = graphql` { allStrapiEducations(sort: {fields: strapiId, order: ASC}) { nodes { ...
import {HadObjClass} from "./HadObjClass"; class HadBusStop extends HadObjClass{ constructor(pbfdata){ super(pbfdata) this.type="had_object_bus_stop" this.style={ color:Cesium.Color.RED, width:1, alpha:1 } } generateInstance(lineStringArray){ return new Cesium.GeometryInstanc...
# coding: utf-8 """Main flask app Author: Albert Chen - Vector Engineering Team (chena@broadinstitute.org) """ import os import psycopg2 import re from flask import Flask, request, make_response from flask_cors import CORS, cross_origin from flask_gzip import Gzip from flask_httpauth import HTTPBasicAuth from werkz...
var check = require('./util/check') var extend = require('./util/extend') var createEnvironment = require('./util/codegen') var loop = require('./util/loop') var isTypedArray = require('./util/is-typed-array') var isNDArray = require('./util/is-ndarray') var isArrayLike = require('./util/is-array-like') var dynamic = r...
import { escapeXML, escapeXMLText } from "./escape.js"; /** * Element * * Attributes are in the element.attrs object. Children is a list of * either other Elements or Strings for text content. **/ class Element { constructor(name, attrs) { this.name = name; this.parent = null; this.children = []; ...
import React from 'react'; import renderer from 'react-test-renderer'; import App from './App'; describe('App page', () => { it('renders correctly', () => { const rendered = renderer.create(<App />); expect(rendered.toJSON()).toMatchSnapshot(); }); });
/** * Copyright 2018 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 ...
var status = -1; var boss_times = 4; var boss_hard_times = 2; var event_t = "阿卡次數"; var event_ht = "渾沌阿卡次數"; function start() { if (cm.getPlayer().getMapId() == 272030400) { cm.sendYesNo("您確定要出去了嗎?"); status = 1; return; } if (cm.getPlayer().getLevel() < 120) { cm.sendOk("您需要到達120 等才可挑戰 Arkarium."); cm...
const mix = require('laravel-mix'); /* |-------------------------------------------------------------------------- | Mix Asset Management |-------------------------------------------------------------------------- | | Mix provides a clean, fluent API for defining some Webpack build steps | for your Laravel appli...
# -*- coding: utf-8 -*- """ Definition of the values for each parameter of the hcp_pipeline. """ ## Location of the folder for the data of a single subject dir_hcp_subj = '/Users/paolo/Datasets/HCP/RAW_DATA/100307/' dir_hcp_subj = '/Users/paolo/Datasets/HCP/TEST/124422/' # 100307 124422 161731 199655 201111 239944 2...
import React from 'react'; import { arrayOf, shape, string } from 'prop-types'; import Navigation from '../navigation/Navigation'; import { StyledFooter } from './Footer.styles'; const Footer = ({ menus }) => { return ( <StyledFooter> {menus.map(({ items, title }) => ( <> {title && <h3 c...
/** * -------------------------------------------------------------------------- * Bootstrap (v4.3.1): toast.js * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * -------------------------------------------------------------------------- */ import $ from 'jquery' import Util from './ut...
class Solution: def __init__(self, size): self.solvable = False self.conf = [0] * size self.price = 0 self.weight = 0 self.time = 0 self.complexity = 0
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var React = tslib_1.__importStar(require("react")); var StyledIconBase_1 = require("../../StyledIconBase"); exports.SortAlphaDownAlt = React.forwardRef(function (props, ref) { var attrs = { "fill": "...
export default {} export const API_URL = 'http://localhost:5000/api/'
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: v1.15.6 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six class V1beta2Dep...
#!/usr/bin/env python # # Use the raw transactions API to spend XNs received on particular addresses, # and send any change back to that same address. # # Example usage: # spendfrom.py # Lists available funds # spendfrom.py --from=ADDRESS --to=ADDRESS --amount=11.00 # # Assumes it will talk to a nodiumd or nodium-Qt...
"use strict"; var _interopRequireWildcard = require("@babel/runtime-corejs2/helpers/interopRequireWildcard"); var _interopRequireDefault = require("@babel/runtime-corejs2/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.render = render; exports.renderToHTML = ...
'use strict'; const config = require('./config'); // 1:引入express对象 const express = require('express'); // 2:创建服务器 let app = express(); // 3:开启服务器监听端口 app.listen(config.web_port,config.web_host,()=>{ console.log('34期服务器启动在9999端口'); }); //引入处理post请求体对象 const bodyParser = require('body-parser'); //引入session const sess...
import React from "react" import BackGroundImage from "gatsby-background-image" import { graphql, StaticQuery } from "gatsby" const Hero = () => { return ( <section className="relative"> <StaticQuery query={graphql` query { heroImage: file(relativePath: { regex: "/spabigback.j...
# -*- coding: utf-8 -*- import pytest import requests from kawasemi.backends.twitter import TwitterChannel from kawasemi.exceptions import HttpError @pytest.fixture() def channel(): config = { "_backend": "kawasemi.backends.twitter.TwitterChannel", "api_key": "api_key", "api_secret": "api...
/** * @file Data zoom model */ define(function(require) { var VisualMapModel = require('./VisualMapModel'); var zrUtil = require('zrender/core/util'); var numberUtil = require('../../util/number'); // Constant var DEFAULT_BAR_BOUND = [20, 140]; var ContinuousModel...
/** * `components/index.js` exists simply as a 'central export' for our components. * This way, we can import all of our components from the same place, rather than * having to figure out which file they belong to! */ export {default as Navbar} from './navbar' export {default as UserHome} from './user-home' export ...
const { getConfig } = require('./common'); const { initDb } = require('./db'); const { fixProductDates, fixDiscountDates, fixProductIds } = require('../lib/testhelper'); const fs = require('fs'); const path = require('path'); const testData = fs.readFileSync(path.join(__dirname, '..', 'bin', 'testdata.json'), 'utf-8')...
/*! * OverlayScrollbars * https://github.com/KingSora/OverlayScrollbars * * Version: 1.13.0 * * Copyright KingSora | Rene Haas. * https://github.com/KingSora * * Released under the MIT license. * Date: 02.08.2020 */ document.addEventListener("DOMContentLoaded", function() { //The first argument are the elem...
import * as React from 'react'; import './style.scss'; class Note extends React.Component { constructor(props) { super(props); this.state = {}; } handleOutsideClick = ({ target }) => { const { activeNoteRef } = this.state; if (activeNoteRef && !activeNoteRef.contains(target)) { this.setState({ act...
/* Copyright (C) Federico Zivolo 2019 Distributed under the MIT License (license terms are at http://opensource.org/licenses/MIT). */ (function ( e, t ) { "object" == typeof exports && "undefined" != typeof module ? (module.exports = t()) : "function" == typeof define && define.amd ...
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } /* global heimdall */ var set = Ember.set; /* * The `ContainerInstanceCache` serves as a lazy cache for looking up * instances of serializers and adapters. It has...
const { ApolloClient } = require("apollo-client"); const { HttpLink } = require("apollo-link-http"); const { InMemoryCache } = require("apollo-cache-inmemory"); const { onError } = require("apollo-link-error"); const fetch = require("node-fetch"); module.exports = port => { const errorLink = onError(({ networkError ...
$("#datatambah").load(base_url + "Transaksi/Penjualan/viewP"); $(".subtotal").load(base_url + 'Transaksi/Penjualan/subtotal'); // tombol pembelian disable start $("#tambahpenjualan").attr("disabled", true); $("#nm_brg").attr("disabled", true); $("#hrg_jual").attr("disabled", true); $("#txtjumlah").attr("disabled", true...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.XrmMockGenerator = void 0; var XrmMock = require("../xrm-mock/index"); var app_1 = require("./app"); var attribute_1 = require("./attribute"); var context_1 = require("./context"); var control_1 = require("./control"); var device_1 = r...
# Licensed under a 3-clause BSD style license - see LICENSE.rst """ This file contains pytest configuration settings that are astropy-specific (i.e. those that would not necessarily be shared by affiliated packages making use of astropy's test runner). """ import os import builtins import tempfile import warnings try...
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import Composition from './components/Composition'; import * as serviceWorker from './serviceWorker'; ReactDOM.render( <Composition layout="2| . . 2- 2-" numRows={4} numColumns={2}> <div style={{back...
// You will be given several towns, with products and their price. // You need to find the lowest price for every product and the town it is sold at for that price. // Input // The input comes as array of strings. Each element will hold data about a town, product, and its price at that town. // The town and product w...
# This code is part of Qiskit. # # (C) Copyright IBM 2017, 2018. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivat...
import HTTP from './axios'; export default { /** * Get configuration data from server * @returns {*} */ initialize() { return HTTP.get('initialize'); }, /** * Get directories for the tree (upper level) * @param disk * @param path * @returns {*} */ tr...
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; function getDecimals(n) { n = n + ''; var i = n.indexOf('.'); return (i == -1) ? 0 : n.length - i - 1; } function getVF(n, opt_pre...
""" Module: 'uctypes' on micropython-v1.17-esp8266 """ # MCU: {'ver': 'v1.17', 'port': 'esp8266', 'arch': 'xtensa', 'sysname': 'esp8266', 'release': '1.17', 'name': 'micropython', 'mpy': 9733, 'version': '1.17', 'machine': 'ESP module with ESP8266', 'build': '', 'nodename': 'esp8266', 'platform': 'esp8266', 'family': '...
/* ************************************************************************ * * qooxdoo-compiler - node.js based replacement for the Qooxdoo python * toolchain * * https://github.com/qooxdoo/qooxdoo * * Copyright: * 2011-2017 Zenesis Limited, http://www.zenesis.com * * License: * MIT...
// @flow import React, { PureComponent } from "react"; import { Trans } from "react-i18next"; import styled from "styled-components"; import { getAccountCurrency, getAccountName, getAccountUnit, getMainAccount, } from "@ledgerhq/live-common/lib/account"; import TrackPage from "~/renderer/analytics/TrackPage"; ...
function getArticleId (articleList, article) { const equalGuids = articleList.length > 1 && articleList[0].guid && articleList[1].guid === articleList[0].guid if ((!article.guid || equalGuids) && article.date) return article.date if ((!article.guid || equalGuids) && article.title) return article.title return a...
// Paginator /** * Bisia.Paginator.init(this, { * subsTo: 'userFriendsList', * collection: 'friends', * query: { * 'userId': '_id' * } * }) */ Bisia.Paginator = { increment: 20, // skip: 0, limit: 20, instance: null, init: function(instance, config) { // set the instance this.instance = i...
Square = Thing.clone().newSlots({ protoType: "Square" }).setSlots({ init: function() { Thing.init.apply(this) this.setup() }, setup: function() { var geometry = new THREE.PlaneGeometry(1, 1, 10, 10); var material = new THREE.MeshLambertMaterial( { //color: new THREE.Color().setRGB(0,0,0), ...
const axios = require('axios') const config = require('../config.json') const Contract = require('./contract.js') class Kitty { static count(ownerWalletAddress) { return new Promise((resolve, reject) => { // TODO: use query builder const sql = ownerWalletAddress ? ['SELECT COUNT(*) FROM kitt...
import Vue from 'vue' export default Vue.extend({ name: 'HeroIconViewBoards', functional: true, props: { size: { type: Number, default: 0 }, }, render (createElement, context) { const data = { ...context.data } if (context.props.size) { data.attrs.width = context.props.size data.attrs...
(function ($, window) { var endTime; var startTime; var myTable; var myChart; // 车辆list var vehicleList = JSON.parse($("#vehicleList").attr("value")); var zTreeIdJson = {}; var size; //当前权限监控对象数量 var checkFlag = false; var ifAllCheck = true; var terminal = [];//终端数据 var ...
import styled from "styled-components"; import React, { Component } from "react"; const Title = styled.h1` font-size: 1.5em; text-align: center; color: blue; `; const Wrapper = styled.section` padding: 3em; background: papayawhip; `; export default class StyledComponent extends Component { render() { ...
// 网络请求地址 // export const URL = 'http://localhost:3000' export const URL = 'http://192.168.0.100:3000' // 播放模式 export const playMode = { listLoop: 0, singleLoop: 1, random: 2 }
# @license # Copyright 2017 Google Inc. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
/* * This sample plug-in adds yourself to a User Selection field with the click of a button * in the record details page. * Copyright (c) 2018 Cybozu * * Licensed under the MIT License */ (function(PLUGIN_ID) { 'use strict'; // Get plug-in configuration settings var CONFIG = kintone.plug...
import Action from 'action-js'; import NodesMapper from '../helper/nodes-mapper'; import { extractToken } from '../helper/authorization-helper'; export default class GetProximityDrives { constructor(authorization, edge, serviceType) { this.edge = edge; this.authorization = authorization; this.serviceTyp...
const path = require('path') function resolve(dir) { return path.join(__dirname, dir) } const name = '文鳐' // page title module.exports = { outputDir: 'dist', // publicPath: process.env.NODE_ENV === 'production' ? '/vant-demo/' : '/' publicPath: './', assetsDir: 'static', lintOnSave: process.env.NODE_ENV ===...
import logging import os.path as osp import torch from torch import nn from tensorboardX import SummaryWriter from lib.test import test from lib.utils import checkpoint, precision_at_one, \ Timer, AverageMeter, get_prediction, get_torch_device from lib.solvers import initialize_optimizer, initialize_scheduler f...
# Copyright 2017 Mycroft AI Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writin...
import BN from 'bn.js'; import React from 'react'; import { Translate } from 'react-localize-redux'; import styled from 'styled-components'; import AlertBanner from '../../common/AlertBanner'; import FormButton from '../../common/FormButton'; import FormButtonGroup from '../../common/FormButtonGroup'; import Container...
# Generated by Django 3.0.2 on 2021-04-06 04:14 from django.db import migrations, models import django.db.models.deletion import uuid class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Author', field...
// @flow const { ipcRenderer } = require('electron'); const fs = require('fs-extra'); class RecipeWebview { constructor() { this.countCache = { direct: 0, indirect: 0, }; ipcRenderer.on('poll', () => { this.loopFunc(); }); } loopFunc = () => null; /** * Initialize the lo...
import Ext_Gadget from '../../Ext/Gadget.js'; export default class Ext_ux_Gauge extends Ext_Gadget { static PROPERTIES() { return [ 'angleOffset', 'animation', 'ariaAttributes', 'ariaDescribedBy', 'ariaLabel', 'ariaLabelledBy', 'bind', 'border', 'clockwise', 'cls', 'contro...
import request from '@/utils/request' // 查询出库管理列表 export function listDelivery(query) { return request({ url: '/asset/delivery/list', method: 'get', params: query }) } // 查询出库管理详细 export function getDelivery(id) { return request({ url: '/asset/delivery/' + id, method: 'get' }) } // 新增出库管理...
import { click, currentURL, visit } from '@ember/test-helpers'; import { module, test } from 'qunit'; import { setupApplicationTest } from 'ember-qunit'; import { setupMirage } from 'ember-cli-mirage/test-support'; module('Acceptance | delete transition', function (hooks) { setupApplicationTest(hooks); setupMirage...
from typing import List from catalyst.dl.core import Callback, RunnerState class PhaseWrapperCallback(Callback): """ CallbackWrapper which disables/enables handlers dependant on current phase and event type May be useful i.e. to disable/enable optimizers & losses """ LEVEL_STAGE = "stage" ...
/** * @license Angular v11.0.3 * (c) 2010-2020 Google LLC. https://angular.io/ * License: MIT */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : typeof define === 'function' && define.amd ? define('@angular/animations', ['exports'], factory) :...
var util = require('./util.js'); var parseSpec = fileName => { var file = {}; if (typeof fileName === 'object' && fileName.path) { Object.assign(file, fileName); } else { file.path = fileName + ''; } file.template = util.readFile(file.path); file.template = file.template; fi...
import { combineReducers } from 'redux'; import cameras from './CameraReducer'; import eventListeners from './EventListenerCallbackReducer'; import features from './FeatureReducer'; import instructionsStates from './InstructionsStateReducer'; import lookAts from './LookAtReducer'; import maps from './MapReducer'; impor...
'use strict'; const execa = require('execa'); const linuxBattery = require('linux-battery'); const osxBattery = require('osx-battery'); const linux = () => linuxBattery().then(res => res[0].state === 'charging'); const osx = () => osxBattery().then(res => res.externalConnected); const win = () => execa.stdout('WMIC',...
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5cd8afe0"],{"1dde":function(t,e,c){var n=c("d039"),r=c("b622"),o=c("2d00"),i=r("species");t.exports=function(t){return o>=51||!n((function(){var e=[],c=e.constructor={};return c[i]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},2532:function(t,e,c)...
main(); function main() { const canvas = document.querySelector("#glcanvas"); const gl = canvas.getContext("webgl"); if (!gl) { alert("Unable to initialize WebGL. Your browser or machine may not support it."); return; } gl.clearColor(0.0, 0.0, 0.0, 1.0); gl.clear(gl.COLOR...
import React from 'react'; import { CircularProgress, Grid } from '@mui/material'; const Loading = () => ( <Grid container spacing={0} direction="column" alignItems="center" justifyContent="center" style={{ maxHeight: '100vh' }}> <Grid item xs={3}> <CircularProgress color='secondary'/> </Grid> <...
#Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, so...
webpackHotUpdate("app",{ /***/ "./src/scenes/index.ts": /*!*****************************!*\ !*** ./src/scenes/index.ts ***! \*****************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; eval("\nObject.defineProperty(exports, \"__esModule\", { ...
import heterocl as hcl import numpy as np import time import computeGraphs """ 4D tailsitter Dynamics implementation rou = 1.29 kg/m^3; m = 0.65 kg; s = 0.1344 m^2; g = 9.8 m/s^2; c = 0.64 m; Jxx = 0.0064 kg m^2; A = rou * s / (2 * m); Cl0 = 0 Cl1 = 1.381 Cl2 = 0.5*Cl1 Cd0 = -0.0...
# Copyright 2021 The gRPC 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 or agreed to in writ...
import copy import math import torch import torch.nn as nn import torch.nn.functional as F from torch.nn.utils.rnn import PackedSequence, pack_padded_sequence, pad_packed_sequence from torchmm.models.captioning.layers.label_smooth import LabelSmoothing def clones(module, N): "Produce N identical layers." re...
import React, { Component } from 'react'; import { Link } from 'gatsby'; export default class JobGrid extends Component { constructor(props){ super(props); this.renderJobs = this.renderJobs.bind(this); } renderJobs(){ const jobCards = []; for(let c = 0; c < 4; c++){ ...
import _get from 'lodash/get' import { getColsLS, setColsLS } from '../ls' const defaultCols = ['begin', 'end', 'duration', 'timestamp', 'id'] export default function ({ Vue, LocalStorage, errorHandler }) { function getParams (state) { const params = {} if (state.limit) { params.count = state.limit ...
import React from "react"; import { makeStyles } from "@material-ui/core/styles"; import BottomNavigation from "@material-ui/core/BottomNavigation"; import BottomNavigationAction from "@material-ui/core/BottomNavigationAction"; import Facebook from "@material-ui/icons/Facebook"; import LinkedIn from "@material-ui/icons...
import PropTypes from 'prop-types'; import React from 'react'; import { StyleSheet, View, } from 'react-native'; import GiftedAvatar from './GiftedAvatar'; import { StylePropType, isSameUser, isSameDay } from './utils'; const styles = { left: StyleSheet.create({ container: { marginRight: 8, ...
/*! _______ _____ __ _ _______ _ _ _ _______ _ _ _______ _______ |______ | | \ | |______ | | | |_____| \ / |______ |______ ______| __|__ | \_| |______ |__|__| | | \/ |______ ______| sine-waves v0.3.0 <https://github.com/isuttell/sine-waves> Contributor(s): Isaac Suttell <i...
/******************************************************************************* * ___ _ ____ ____ * / _ \ _ _ ___ ___| |_| _ \| __ ) * | | | | | | |/ _ \/ __| __| | | | _ \ * | |_| | |_| | __/\__ \ |_| |_| | |_) | * \__\_\\__,_|\___||___/\__|____/|____/ * * Copyright (c...
# -*- coding: utf-8 -*- # Copyright 2015-2017 Yelp # Copyright 2019 Yelp # # 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 ...
"""Main module.""" import sys from dependency_injector.wiring import Provide, inject from .services import UserService, AuthService, PhotoService from .containers import Application @inject def main( email: str, password: str, photo: str, user_service: UserService = Provide[Applicat...
export default [{ label: 'Development', children: [{ label: 'JavaScript', }, { label: 'Python', }, { label: 'C#', } ] }, { label: 'Business', children: [{ label: 'Startup', }, { label: 'Business Intelligence', }, { label: 'Supply Chain Management', } ]...
import{ai as c}from"./index.aeb7d9f7.js";import{ai as a,r as n,u as i}from"./vendor.5879c5ca.js";function p(s){if(!a())throw new Error("useDescription() can only be used inside setup() or functional components!");const r=n(null),o=n(!1);function u(e){i(o)&&c()||(r.value=e,s&&e.setDescProps(s),o.value=!0)}return[u,{setD...
#! /usr/bin/env python3 import unittest from main import run_1, run_2 class Test(unittest.TestCase): def test_1(self): input = "\n".join([ "1, 1", "1, 6", "8, 3", "3, 4", "5, 5", "8, 9" ]) self.assertEqual(17, run_1...
//// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF //// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO //// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A //// PARTICULAR PURPOSE. //// //// Copyright (c) Microsoft Corporation. All rights reserved (functi...
/* @flow */ import React, { PureComponent } from "react"; import { View, StyleSheet } from "react-native"; import { translate, Trans } from "react-i18next"; import type { Account } from "@ledgerhq/live-common/lib/types"; import { BigNumber } from "bignumber.js"; import type { Transaction } from "@ledgerhq/live-common/l...
import Vue from 'vue' import 'normalize.css/normalize.css' // A modern alternative to CSS resets import ElementUI from 'element-ui' import 'element-ui/lib/theme-chalk/index.css' import locale from 'element-ui/lib/locale/lang/en' // lang i18n import '@/styles/index.scss' // global css import App from './App' import ...
# -*- coding: utf-8 -*- """ Éditeur de Spyder Ceci est un script temporaire. """ import random def generate_combination(len_comb): ''' This function generate a combination of colors. Each colors can appear several times. Input : length of the combination to generate (as an integer). Output ...
// Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /** * TryStatement: "try Block Catch" or "try Block Finally" or "try Block Catch Finally" * * @path ch12/12.14/S12.14_A16_T8.js * @description Block: "{ StatementList }". Catch: "catc...
import Component from '../component' import { getFocusables } from '../utils/dom' import Swiper from 'swiper' import hotkeys from 'hotkeys-js' export const DEFAULT_CONFIG = { loop: true, autoplay: true, spaceBetween: 40, slidesPerView: 3 } export const DEFAULT_CLASSES = { prev: 'swiper-button-prev', next:...
import React from 'react'; import BillingAddressToggle from '../Cards/BillingAddressToggle'; import OrderReview from '../Cards/OrderReview'; import OrderSummary from '../Cards/OrderSummary'; const PaymentDetails = ({ paymentDetailsRef, fieldDetailsValid, formDataObject, businessDetailsSpecified, canSetNextBt...