text
stringlengths
3
1.05M
__all__ = ['BaseDumper', 'SafeDumper', 'Dumper'] from emitter import * from serializer import * from representer import * from resolver import * class BaseDumper(Emitter, Serializer, BaseRepresenter, BaseResolver): def __init__(self, stream, default_style=None, default_flow_style=None, ...
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const express_1 = __importDefault(require("express")); const path_1 = __importDefault(require("path")); ...
# -*- coding: utf-8 -*- import os from setuptools import setup from mock_server import __version__ root_dir = os.path.dirname(__file__) def read(fname): with open(os.path.join(root_dir, fname)) as f: return f.read() with open(os.path.join(root_dir, "requirements.txt")) as f: install_requires = [r.s...
// Copyright 2019 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef SRC_UI_SCENIC_LIB_FLATLAND_FLATLAND_H_ #define SRC_UI_SCENIC_LIB_FLATLAND_FLATLAND_H_ #include <fuchsia/ui/scenic/internal/cpp/fidl.h> #include <l...
/* ** 2008 November 18 ** ** The author disclaims copyright to this source code. In place of ** a legal notice, here is a blessing: ** ** May you do good and not evil. ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ********************...
/* * 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 by applicable law...
import React from 'react'; import {VideoBackgroundScene, build} from './templates/VideoBackground'; import CaseTexture from '../../images/mix-art/mx025.jpg'; import CDLabelTexture from '../../images/mix-labels/cd_template_MX025.png'; export const caseTexture = CaseTexture; export const cdLabelTexture = CDLabelTexture;...
from rest_framework import permissions #Comments class IsOwnerOrReadOnly(permissions.BasePermission): def has_object_permission(self, request, view, obj): # Read permissions are allowed to any request, # so we'll always allow GET, HEAD or OPTIONS requests. if request.method in permissions....
/* file: kernel_function_linear_batch_container.h */ /******************************************************************************* * Copyright 2014-2020 Intel Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may o...
Object.defineProperty(exports,"__esModule",{value:true});exports.default=void 0;var _reactNative=require("react-native");var styles=_reactNative.StyleSheet.create({dataTableHeader:{height:64,width:'100%',flexDirection:'row',alignItems:'center',paddingVertical:20,minWidth:'auto'},content:{flexDirection:'row',alignItems:...
const { merge } = require('webpack-merge') const commonConfig = require('./webpack.common') const getAddons = (addonsArgs) => { const addons = Array.isArray(addonsArgs) ? addonsArgs : [addonsArgs] return addons.filter(Boolean).map((name) => require(`./addons/webpack.${name}.js`)) } module.exports = ({ mode, addon...
import { lazy } from "react"; export default [ { path: "/login", label: "AuthorizationPage", exact: false, component: lazy(() => import("./pages/authorizationPage/AuthorizationPage") ), private: false, restricted: true, }, { path: "/characters", label: "CharactersPage", ...
var canvas=document.querySelector('canvas') canvas.width=window.innerWidth-25; canvas.height=window.innerHeight-90; var middle=canvas.width/2; //drwa a line in the middle var c=canvas.getContext('2d'); c.font="30px Permanent Marker"; c.fillStyle="blue"; c.fillText("PRESS START NOW!",canvas.width/3,canvas.height/2...
import logging import senko from utils import CaseInsensitiveDict class LocaleMixin: """ A mixin for :class:`discord.ext.commands.Groupmixin`-derived classes that adds support for getting commands by their localized names using the :attr:`senko.CommandContext.locale` property. The main purpose o...
import pytest import retrying __maintainer__ = 'mnaboka' __contact__ = 'dcos-cluster-ops@mesosphere.io' LATENCY = 60 @pytest.mark.supportedwindows def test_metrics_agents_ping(dcos_api_session): """ Test that the metrics service is up on masters. """ for agent in dcos_api_session.slaves: respon...
var flower = (function () { "use strict"; /*jslint browser: true */ /*jslint unparam: true, node: true */ /*global $, WebSocket, jQuery, Rickshaw */ function on_alert_close(event) { event.preventDefault(); event.stopPropagation(); $(event.target).parent().hide(); } ...
from .event import Event from .registry import registry def emitter(cls): """Emitter class decorator allows instance to call self.emit.""" def emit(self, event: Event, *args, **kwargs) -> None: """Emit an event to all registered listeners.""" listeners = registry.get(event) if listeners: for l...
function piccolo(arr) { let cars = new Set(); for (let carDetails of arr) { let [direction, number] = carDetails.split(", "); if (direction === "IN") { cars.add(number); } else { cars.delete(number); } if (cars.size <= 0) { console.log("Parking Lot is Empty"); ...
__author__ = 'zelgadis' import os from urllib.error import HTTPError from urllib.request import urlopen, Request from html.parser import HTMLParser from renderchan.metadata import RenderChanMetadata class MyHTMLParser(HTMLParser): def __init__(self): HTMLParser.__init__(self) self.artist = None ...
import { StyleSheet } from "react-native"; export const styles = StyleSheet.create({ container: { borderTopWidth: 0, borderBottomWidth: 0, marginTop: 0 }, productInfoContainer: { flex: 1, height: 80, marginLeft: 10, justifyContent: 'center', alignItems: 'flex-start' }, item...
""" Describes subdomains of a scaffold with attached names and terms. """ from opencmiss.zinc.field import FieldGroup class AnnotationGroup(object): ''' Describes subdomains of a scaffold with attached names and terms. ''' def __init__(self, region, term): ''' :param region: The Zinc ...
import { render } from '@testing-library/react'; import Modal from './Modal' test('renders Modal', () => { render( <Modal />); });
## Automatically adapted for numpy.oldnumeric Jul 23, 2007 by # # # $Id: AutoGrid.py,v 1.14 2012/04/16 20:12:17 rhuey Exp $ # # import numpy.oldnumeric as Numeric, os, string from MolKit.molecule import Atom, AtomSet from MolKit import Read from MolecularSystem import MolecularSystem from AutoDockScorer import Au...
import React, { useContext } from 'react'; import { Button, Card, Icon, Label, Image } from 'semantic-ui-react'; import { Link } from 'react-router-dom'; import moment from 'moment'; import Auth from '../utils/auth'; import LikeButton from './LikeButton'; import DeleteButton from './DeleteButton'; import MyPopup from ...
/* eslint-disable no-param-reassign */ /* eslint-disable import/prefer-default-export */ exports.onCreatePage = async ({ page, actions }) => { const { createPage } = actions; if (page.path.match(/^\/dashboard/)) { page.matchPath = '/dashboard/*'; createPage(page); } }; exports.onCreateWebpackConfig = ({...
import pytest import random import string @pytest.fixture(scope="session") def host_group(): yield "host-group-idem-" + "".join( random.choice(string.ascii_lowercase + string.digits) for _ in range(8) ) @pytest.mark.run(order=2) @pytest.mark.asyncio async def test_present(hub, ctx, host_group, resou...
// Vue import Vue from 'vue' import i18n from './i18n' import App from './App' // 核心插件 import d2Admin from '@/plugin/d2admin' // store import store from '@/store/index' import ElementUI from 'element-ui' import 'element-ui/lib/theme-chalk/index.css' import D2Crud from '@d2-projects/d2-crud' // 菜单和路由设置 import router f...
/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with this * work for additional information regarding copyright ownership. The ASF * licenses this file to you under the Apache License, Version 2.0 (the * "License"); you may ...
// created by Steven Xia -- contributed to TCEC ------------------------------------------------------------------------ // todo: try to remove duplicate code for different colors (in `parse_pgn_for_crosstable()`) // todo: clean up `if` ladder when not sleepy (in `rank_crosstable()`) // NOTE for integration: // - fin...
int mathOpZero(int input);
from urllib.request import urlopen from xml.etree.ElementTree import parse from datetime import datetime now = datetime.now() url = 'http://openapi.airport.co.kr/service/rest/FlightStatusList/getFlightStatusList?serviceKey=wHP%2BDtLICbhZ5HS1kuRTV4zXVjyuNgmSelChKsogFgLcXenf4DdlUd5lJmR9vnl4ddrBrtFu%2FaFoxhBxJr23Vg%3D%3...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """\ Longest increasing subsequence jill-jênn vie et christoph dürr - 2014-2019 """ # pylint: disable=bad-whitespace # snip{ def longest_common_subsequence(x, y): """Longest common subsequence Dynamic programming :param x: :param y: x, y are lists or st...
from __future__ import absolute_import from __future__ import print_function from __future__ import division
import React from 'react'; import styled from 'styled-components'; import { useTable, usePagination, useSortBy, useFilters, useGroupBy, useExpanded, useRowSelect, } from 'react-table'; import matchSorter from 'match-sorter'; import makeData from './makeData'; const Styles = styled.div` padding: 1rem; ...
"""A connector for Telegram.""" import json import logging import secrets import aiohttp import emoji from voluptuous import Required from opsdroid.connector import Connector, register_event from opsdroid.events import ( EditedMessage, File, Image, JoinGroup, LeaveGroup, Message, PinMessag...
import { Route, Switch } from 'react-router-dom'; import Register from '../auth/Register'; import Login from '../auth/Login'; import Alert from '../layout/Alert'; import Dashboard from '../dashboard/Dashboard'; import ProfileForm from '../profile-forms/ProfileForm'; import AddExperience from '../profile-forms/AddExperi...
import 'babel-polyfill' import React from 'react' import { render } from 'react-dom' import { Provider } from 'react-redux' import { TICK } from './constants/ActionTypes' import App from './containers/App' import configureStore from './store/configureStore' const store = configureStore() render( <Provider store={sto...
"""This is a model to manage the files of the current session.""" import os import pickle from lexos.helpers import constants from lexos.managers.file_manager import FileManager from lexos.managers.session_manager import session_folder from lexos.models.base_model import BaseModel class FileManagerModel(BaseModel): ...
n = 6 k = 3 result = [] def recur(s, n, result): if len(s) == k: result.append(s) return rangeStart = int(s[-1]) if len(s) > 0 else 0 for i in range(rangeStart, n): recur(s + str(i + 1), n, result) recur("", n, result) print(result) print(len(result))
import React from 'react'; const VideoListItem = ({video, onVideoSelect}) => { //ES6 shortcut for props and then const video = props.video const imageUrl = video.snippet.thumbnails.default.url; return ( <li onClick={() => onVideoSelect(video)} className="list-group-item"> <div className="video-list media"> ...
""" Demo platform for the vacuum component. For more details about this platform, please refer to the documentation https://home-assistant.io/components/demo/ """ import logging from homeassistant.components.vacuum import ( ATTR_CLEANED_AREA, SUPPORT_BATTERY, SUPPORT_CLEAN_SPOT, SUPPORT_FAN_SPEED, SUPPORT_LOC...
//This file is automatically rebuilt by the Cesium build process. export default "uniform sampler2D image;\n\ uniform float minimumHeight;\n\ uniform float maximumHeight;\n\ \n\ czm_material czm_getMaterial(czm_materialInput materialInput)\n\ {\n\ czm_material material = czm_getDefaultMaterial(materialInput);\n\ ...
# AUTOGENERATED! DO NOT EDIT! File to edit: api.ipynb (unless otherwise specified). __all__ = ['OmekaAPIClient'] # Cell import requests import requests_cache import json from requests.adapters import HTTPAdapter from requests.packages.urllib3.util.retry import Retry from pathlib import Path class OmekaAPIClient(obje...
from conans import ConanFile, CMake, tools from conans.errors import ConanInvalidConfiguration import os required_conan_version = ">=1.33.0" class PerfettoConan(ConanFile): name = "perfetto" license = "Apache-2.0" homepage = "https://perfetto.dev" url = "https://github.com/conan-io/conan-center-inde...
/*! \file Copyright (c) 2003, The Regents of the University of California, through Lawrence Berkeley National Laboratory (subject to receipt of any required approvals from U.S. Dept. of Energy) All rights reserved. The source code is distributed under BSD license, see the file License.txt at the top-level director...
var searchData= [ ['8bps_2ed_9793',['8bps.d',['../8bps_8d.html',1,'']]], ['8svx_2ed_9794',['8svx.d',['../8svx_8d.html',1,'']]] ];
/**************************************************************************** * boards/arm/stm32/shenzhou/src/stm32_userleds.c * * 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 regard...
import os from copy import deepcopy import click import toml CONFIG_FILES = ["/etc/fas2ipa/config.toml", "config.toml"] INPUT_IF_EMTPY = { "fas": ["username", "password"], "ipa": ["username", "password"], } DEFAULT_CONFIG = { # * for all "group_search": "*", # After too long a session can expir...
#include <stdio.h> #include <stdint.h> #include <stdbool.h> #include <string.h> #include "tof.h" #define calcMacroPeriod(vcsel_period_pclks) ((((uint32_t)2304 * (vcsel_period_pclks) * 1655) + 500) / 1000) #define encodeVcselPeriod(period_pclks) (((period_pclks) >> 1) - 1) uint8_t address_list[TOF_SENSORS_COUNT] = TOF...
#!/usr/bin/env python # # Copyright 2007 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 o...
// Copyright 2015-2018 Espressif Systems (Shanghai) PTE 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 app...
/** * Copyright (c) 2013-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * The examp...
# !/usr/bin/env python3 # -*- coding: utf-8 -*- # # @Time: 2021/4/1 14:20 import requests from config import global_config from logger import logger class Proxy(object): enable = None proxy_pool_url = None current_proxy_ip = None def __init__(self): self.enable = global_config.get_raw('pro...
/* * This header is generated by classdump-dyld 1.0 * on Saturday, August 24, 2019 at 9:44:01 PM Mountain Standard Time * Operating System: Version 12.4 (Build 16M568) * Image Source: /System/Library/PrivateFrameworks/MediaRemote.framework/MediaRemote * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by E...
# https://leetcode.com/problems/number-of-submatrices-that-sum-to-target from collections import defaultdict class Solution: def numSubmatrixSumTarget(self, M: List[List[int]], T: int) -> int: xlen, ylen, ans, res = len(M[0]), len(M), 0, defaultdict(int) for r in M: for j in range(1, ...
import React from "react" import { graphql } from "gatsby" import Layout from "./layout" import GatsbyImage from "gatsby-image" import { css } from "@emotion/core" export const query = graphql` query($slug:String!){ allDatoCmsHabitacion(filter:{slug:{eq:$slug}}){ nodes{ titulo ...
"use strict"; // // MIT License // // Copyright (c) 2019 0b10 // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, cop...
// Copyright (c) 2014-2018 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef UNITE_COMPAT_ENDIAN_H #define UNITE_COMPAT_ENDIAN_H #if defined(HAVE_CONFIG_H) #include <config/unite-config.h> #end...
/** * redux最核心的存储store对象模块 */ const {createStore, applyMiddleware} = Redux; const thunk = ReduxThunk.default; const {combinedReducers} = Reducers; this.store = createStore(combinedReducers, composeWithDevTools(applyMiddleware(thunk)));
import React, {useEffect, useState} from "react"; import SideMenu from "../menu/SideMenu"; import LoadingScreen from "../utils/LoadingScreen"; import SurveyAPIHandler from "../../calls/survey"; import SubmissionAPIHandler from "../../calls/submission"; import AppNavbar from "../menu/AppNavbar"; import SubmissionSpotlig...
import logging import re from collections import OrderedDict from datetime import datetime, time, timezone from decimal import Decimal from functools import partial from typing import Any, Sequence import udatetime from rets.errors import RetsParseError logger = logging.getLogger('rets') class RecordDecoder: ...
module.exports = { extends : [ 'eslint:all' ], globals : { 'define': true, 'module': true }, 'parserOptions': { 'ecmaVersion': 5 }, rules : { 'strict': 'off', 'padded-blocks': 'off', 'func-names': 'off', 'no-var' : 'off', ...
# -*- coding: utf-8 -*- import unittest import pandas as pd class Test_Model(unittest.TestCase): "" def test___init__(self): "" from OBLib import Model from OBLib.Model import Inputs m=Model() self.assertIsInstance(m, Model) s...
/* * This header is generated by classdump-dyld 1.5 * on Tuesday, November 10, 2020 at 10:19:49 PM Mountain Standard Time * Operating System: Version 14.2 (Build 18K57) * Image Source: /System/Library/PrivateFrameworks/AppStoreK...
#!/usr/bin/env python from distutils.core import setup setup(name='skylark', version='0.1', description='libSkylark: Sketching-based Matrix Computations for Machine Learninge', author='IBM Corporation, Reseach Division', author_email='vsindhw@us.ibm.com', url='http://xdata-skylark.github...
/* eslint-disable no-console,func-names,react/no-multi-comp */ import React from 'react'; import ReactDOM from 'react-dom'; import Table from 'rc-table-ext'; import Animate from 'rc-animate'; import 'rc-table-ext/assets/index.less'; import 'rc-table-ext/assets/animation.less'; class Demo extends React.Component { co...
import { Component } from "react"; import axios from "axios"; class Engineering extends Component { state = { users: "", }; componentDidMount() { axios.get("http://localhost:3001/api/users/engineering").then((users) => { const dataUsers = users.data.users; this.setState({ users: data...
# Generated by Django 3.1.3 on 2020-12-22 20:52 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('movie', '0005_user_status'), ] operations = [ migrations.AlterField( model_name='...
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. from marionette.by import By from gaiatest.apps.phone.app import Phone from gaiatest.apps.base import PageRegion from m...
import os import re import subprocess import pandas as pd import numpy as np import scipy import jieba from sklearn.metrics.pairwise import cosine_similarity from nltk.corpus import stopwords from nltk.tokenize import word_tokenize import nltk import re from collections import defaultdict import pylcs from sklearn.fea...
# Copyright European Organization for Nuclear Research (CERN) # # 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 # # Authors: # - Muhammad Aditya Hilmy...
__all__ = ('SlidingQueue',) class SlidingQueue: """A queue adapter that maintains a "sliding window". When an item is added to a full queue, instead of blocking the oldest item in the queue is discarded. """ def __init__(self, queue): self.empty = queue.empty self.join = queue.jo...
// base class var Animal = Class.create({ initialize: function(name) { this.name = name; }, name: "", eat: function() { return this.say("Yum!"); }, say: function(message) { return this.name + ": " + message; } }); // subclass that augments a method var Cat = Class.create(Animal...
export const EVENT_OPTIONS_PASSIVE = { passive: true } export const EVENT_OPTIONS_NO_CAPTURE = { passive: true, capture: false }
"""A simple non-validating parser for C99. The functions and regex patterns here are not entirely suitable for validating C syntax. Please rely on a proper compiler for that. Instead our goal here is merely matching and extracting information from valid C code. Furthermore, the grammar rules for the C syntax ...
# Copyright (c) 2013 by Ladislav Lhotka, CZ.NIC <lhotka@nic.cz> # Martin Bjorklund <mbj@tail-f.com> # # Translator of YANG to the hybrid DSDL schema (see RFC 6110). # # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted, provide...
""" Nonlinear MPC simulation with CGMRES author Atsushi Sakai (@Atsushi_twi) Ref: Shunichi09/nonlinear_control: Implementing the nonlinear model predictive control, sliding mode control https://github.com/Shunichi09/nonlinear_control """ from math import cos, sin, radians, atan2 import matplotlib.pyplot as plt im...
import Vue from 'vue' describe('Options template', () => { let el beforeEach(() => { el = document.createElement('script') el.type = 'x-template' el.id = 'app' el.innerHTML = '<p>{{message}}</p>' document.body.appendChild(el) }) afterEach(() => { document.body.removeChild(el) }) i...
/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.c * @brief : Main program body ****************************************************************************** * @attention * * <h2><center>&copy; Copyright (c) ...
""" 9. Faça um Programa que peça a temperatura em graus Farenheit, transforme e mostre a temperatura em graus Celsius. C = (5 * (F-32) / 9). """ fahrenheit = float(input('Informe o valor em Fahrenheit (ºF): ')) celsius = (5 * (fahrenheit - 32) / 9) print('{} ºF é igual a {:.1f} ºC'.format(fahrenheit, celsius))
// // AppDelegate.h // CENotifier // // The MIT License (MIT) // // Copyright (c) 2013 Chad Etzel // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including withou...
import sys import logging from pathlib import Path import torch import numpy as np from preprocessing.split_datasets import split_data_respecting_files from tape_prediction.ff_trainer import FFTrainer from preprocessing.datasetloader import load_data_and_meta, load_test_data_and_meta from plotter.profile_plotter import...
module.exports = new Date(1977, 9, 12)
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef BITCOIN_HASH_H #define BITCOIN_HASH_H #include "uint256.h" #include "seria...
import { UniformsUtils, ShaderMaterial } from 'three'; import { FullScreenQuad, Pass } from './Pass.js'; import { HalftoneShader } from '../shaders/HalftoneShader.js'; /** * RGB Halftone pass for three.js effects composer. Requires HalftoneShader. */ var HalftonePass = function (width, height, params) { if (Halft...
// @flow import { createTheme } from '../utils/createTheme'; import type { CreateThemeParams } from '../types'; // ==== dark-blue theme output for Daedalus and react-polymorph components === // export const DARK_BLUE_THEME_OUTPUT = { aboutWindow: { '--theme-about-window-background-color': 'rgba(38, 51, 69, 0.96...
// // MBRPushNotification.h // MBRWalletNetworking // // Created by sean on 2018/6/6. // Copyright © 2018 sean. All rights reserved. // #import "MBRBaseModel.h" @interface MBRPushNotification : MBRBaseModel @property (nonatomic, copy) NSString* action; @property (nonatomic, copy) NSString* notificationId; @prop...
module.exports = { // where it all starts -- the site's root Notion page (required) rootNotionPageId: '1-243fb38d95fc44aa94befb99017a8f10', // if you want to restrict pages to a single notion workspace (optional) // (this should be a Notion ID; see the docs for how to extract this) rootNotionSpaceId: null, ...
import React from 'react'; import VideoListItem from './video_list_item'; const VideoList = (props) => { const videoItems = props.videos.map((video) => { return ( <VideoListItem onVideoSelect={props.onVideoSelect} key={video.etag} video={video} /> ) }); return ( <...
module.exports = { parser: '@typescript-eslint/parser', // Specifies the ESLint parser extends: [ 'plugin:@typescript-eslint/recommended', // Uses the recommended rules from the @typescript-eslint/eslint-plugin 'prettier/@typescript-eslint', // Uses eslint-config-prettier to disable ESLint rules from @types...
// @flow import {makeRouteDefNode, makeLeafTags} from '../route-tree' import * as Constants from '../constants/settings' import Settings from './' import LandingContainer from './landing/container' import UpdatePayment from './payment/container' import AdvancedContainer from './advanced/container' import DBNukeConfirm ...
export { default } from "ember-design-toolbox/components/toolbox-selector/selector-separator";
# coding=utf-8 # Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement) import os import re ...
#!/usr/bin/env python # -*- coding: utf-8 -*- import setuptools from version import __version__ with open("README.md", "r", encoding='utf-8') as fh: readme = fh.read() setuptools.setup( name="git-history-tools", version=__version__, author='Orlando Tomás', author_email="orlando.tomas@hotmail.com",...
#__BEGIN_LICENSE__ # Copyright (c) 2015, United States Government, as represented by the # Administrator of the National Aeronautics and Space Administration. # All rights reserved. # # The xGDS platform is licensed under the Apache License, Version 2.0 # (the "License"); you may not use this file except in compliance ...
var searchData= [ ['options_1262',['Options',['../group__opts_group.html',1,'']]] ];
"""In this module we test the services""" import urllib.request import pytest from awesome_streamlit.core import services def test_get_file_content_as_string(): """Test we can get_file_content_as_string""" # Given url = "https://raw.githubusercontent.com/MarcSkovMadsen/awesome-streamlit/master/license.md...
#!/usr/bin/python # -*- coding: utf-8 -*- # # (C) 2019 Red Hat Inc. # Copyright (C) 2021 Western Telematic Inc. # # GNU General Public License v3.0+ # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PAR...
H5.Orientation = { PORTRAIT: 0, LANDSCAPE: 1 };
""" downloads gmail atts """ import base64, os from auth.auth import get_service from msg.label import agencies, get_atts from report.response import get_threads, get_status from att.drive import get_or_create_atts_folder,\ check_if_drive, make_drive_folder, upload_to_drive ### START CONFIG ### buffer_path = ...