text
stringlengths
3
1.05M
import React from "react"; import styled from "styled-components"; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { library } from '@fortawesome/fontawesome-svg-core'; import { fab } from '@fortawesome/free-brands-svg-icons'; import { StaticQuery, graphql } from "gatsby" const SocialMediaLink...
'use strict'; module.exports = { deleteResourceGroup () { return this.provider.Login() .then(() => this.provider.DeleteDeployment()) .then(() => this.provider.DeleteResourceGroup()); } };
"use strict";var defaultDistrib="ubuntu";var defaultEngine="duckduckgo";var defaultLanguage="en";var distrib=Cookies.get("distrib")?Cookies.get("distrib"):defaultDistrib;var engine=Cookies.get("engine")?Cookies.get("engine"):defaultEngine;var language=Cookies.get("language")?Cookies.get("language"):defaultLanguage;var ...
'use strict'; class IComparable { compare(other) { return 0; } } module.exports = IComparable;
/* * RingBuffer.c * * Created: 29.11.2017 20:31:15 * Author: Lukasz */ #include <stdint.h> #include <stdbool.h> #include "stm32l1xx_hal.h" #include <GPS/CB_UART.h> inline _Bool CB_UART_IsEmpty(volatile CB_UART *cb) { return (cb->Count == 0); } inline _Bool CB_UART_IsFull(volatile CB_UART *cb) { return (cb->...
import logging import mido logger = logging.getLogger(__name__) class BaseHandler(): def handle_msg(self, msg, *args, **kwargs): ''' Trys to handle a mido message ''' try: handler_name = '_{}_handler'.format(msg.type) if hasattr(self, handler_name): ...
export function addLeafs(leaf, additional) { let successMessage = "Successfully added the leaf"; if (additional.noOfLeafs>1) successMessage = "Successfully added the leaves"; return { types: ['CREATE_LEAVES_FRONTEND','CREATE_LEAVES_SUCCESS_BACKEND','CREATE_LEAVES_FAILED_BACKEND'], payload:...
import pytest @pytest.fixture def given_any_message(): return "Hello world" @pytest.fixture def given_any_title(): return "This is a title" @pytest.fixture def given_any_info_petisco(): return { "app_name": "test", "app_version": "0.0.1", "petisco_version": "0.0.1", "en...
"""Support for RFXtrx switches.""" import logging import voluptuous as vol from homeassistant.components import rfxtrx from homeassistant.components.switch import PLATFORM_SCHEMA, SwitchDevice from homeassistant.const import CONF_NAME from homeassistant.helpers import config_validation as cv from . import ( CONF...
const express = require('express'); const bcrypt = require('bcryptjs'); const jwt = require('jsonwebtoken'); const secrets = require('../../data/secrets/secret.js'); const Users = require('./user-model.js'); const router = express.Router(); const AuthMiddleware = require('../middleware/auth-middleware.js'); const Va...
export const Supporters = [ { name: "ChaosNative", logo: "/support/cn_logo.png", desc: "ChaosNative is the original creator of Litmus and provides commercial support for Litmus.", link: "https://www.chaosnative.com" } ]
# Copyright 2016 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # Recipe which runs the Skia infra tests. PYTHON_VERSION_COMPATIBILITY = "PY3" DEPS = [ 'infra', 'recipe_engine/context', 'recipe_engine/file', 'r...
//// [baseIndexSignatureResolution.ts] class Base { private a: string; } class Derived extends Base { private b: string; } // Note - commmenting "extends Foo" prevents the error interface Foo { [i: number]: Base; } interface FooOf<TBase extends Base> extends Foo { [i: number]: TBase; } var x: FooOf<Derived> =...
# -*- coding: utf-8 -*- # Autogenerated on 19:52:29 2016/03/14 # flake8: noqa import logging from wbia.algo.preproc import preproc_annot from wbia.algo.preproc import preproc_image from wbia.algo.preproc import preproc_occurrence from wbia.algo.preproc import preproc_residual from wbia.algo.preproc import preproc_rvec ...
# -*- coding: utf-8 -*- import sys import os import tkinter as tk from tkinter import ttk # ================================= # == 公開関数 # ================================= def resource_path(relative): if hasattr(sys, '_MEIPASS'): return os.path.join(sys._MEIPASS, relative) return os.path.join(relat...
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.echarts={})}(this,function(t){"use strict";function e(t,e){"createCanvas"===t&&(ah=null),ih[t]=e}function n(t){if(null==t||"object"!=typeof t)return t;var e=t,i=$l.call(t);if("[...
load("test-common.js"); try { assert(Number.isFinite.length === 1); assert(Number.isFinite(0) === true); assert(Number.isFinite(1.23) === true); assert(Number.isFinite(42) === true); assert(Number.isFinite("") === false); assert(Number.isFinite("0") === false); assert(Number.isFinite("42"...
module.exports = { queryPlusSingleParam: 'http://api.travelpayouts.com/v2/prices/latest?currency=rub&show_to_affiliates=true&origin=MOW', noQueryPlusSingleParam: 'http://api.travelpayouts.com/v2/prices/latest?origin=MOW', queryPlusMultipleParams: 'http://api.travelpayouts.com/v2/prices/month-matrix?currency=rub&sh...
const NATIVE_MSG_HOST_FQDN = "com.aldaviva.tagscanner.discogs"; chrome.runtime.onMessage.addListener((messageFromPage, sender, sendResponseToPage) => { if(messageFromPage.action === "sendReleaseToTagScanner"){ const releaseId = messageFromPage.releaseId; const messageToNative = { service: "discogs", release...
/** * @file Column.h * @ingroup SQLiteCpp * @brief Encapsulation of a Column in a row of the result pointed by the prepared SQLite::Statement. * * Copyright (c) 2012-2020 Sebastien Rombauts (sebastien.rombauts@gmail.com) * Copyright (c) 2019-2021 Vladimir Novick ( https://www.linkedin.com/in/vladimirnovick/ ...
var types_8h = [ [ "ovs_16aligned_u32", "structovs__16aligned__u32.html", "structovs__16aligned__u32" ], [ "ovs_16aligned_be32", "structovs__16aligned__be32.html", "structovs__16aligned__be32" ], [ "ovs_32aligned_u64", "structovs__32aligned__u64.html", "structovs__32aligned__u64" ], [ "ovs_32aligned_be6...
#!/usr/bin/env python2.7 # -*- encoding: utf8 -*- import requests import re import os import argparse import sys from threading import Thread, Event, Lock from Queue import Queue from bs4 import BeautifulSoup class Multiscanner: ENGINE_BING = 'bing' ENGINE_ASK = 'ask' ENGINE_RAMBLER = 'rambler' ENGIN...
# # 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 not...
import { ORGANISATION } from '../constants/actions'; export function getAllOrganisations() { return { type: ORGANISATION.GET_ALL_ORGANISATIONS }; } export function updateOrganisationData(organisations) { return { type: ORGANISATION.UPDATE_ORGANISATION_DATA, payload: { organisations }, }; }
exports.id=0,exports.modules={5:function(e,t,a){"use strict";a.r(t);var n=a(0),r=a.n(n),s=a(2),l=a.n(s),i=a(3),o=a(1);function c(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}process.env.ELECTRON_DISABLE_SECURITY_WARNINGS="true";class d extends r.a.Componen...
import json from django.urls import reverse from farms.factories import AddressFactory from farms.views import AddressDetailView import postalcodes_mexico import pytest class TestAddressViews: def test_detail_view(self, client, mocker): """Unit test for address detail view.""" # GIVEN an ad...
import React from 'react'; import { render } from 'react-dom'; import { Components } from 'DocComponents'; import { Pages } from 'DocPages'; import { Row, Col, Button, Loading, H1 } from 'Components'; const Containers = []; //precisa ser feito ainda let Routes = { Pages, Components, Containers } class Index extend...
/** * lodash (Custom Build) <https://lodash.com/> * Build: `lodash modularize exports="npm" -o ./` * Copyright jQuery Foundation and other contributors <https://jquery.org/> * Released under MIT license <https://lodash.com/license> * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE> * Copyright Jerem...
import sys import os import nltk import spacy import gensim import sklearn import keras import pandas as pd import numpy as np from nltk.corpus import stopwords from nltk.stem import WordNetLemmatizer, SnowballStemmer from nltk.stem.porter import * nltk.download('wordnet') nltk.download('stopwords') from gensim.parsi...
"""MIT License Copyright (c) 2019-2021 PythonistaGuild 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, copy, modify, merge, pu...
""" Basic config loader that provides easy to use functionality to load from simple configuration files that have take the following form on every line: * Option=Yes * Number=20 * String=Whatever This software is licensed under the MIT license. Please refer to L...
/** * Welcome to your Workbox-powered service worker! * * You'll need to register this file in your web app and you should * disable HTTP caching for this file too. * See https://goo.gl/nhQhGp * * The rest of the code is auto-generated. Please don't update this file * directly; instead, make changes to your Wor...
/// /// \file TencentOAuth.h /// \brief QQ互联开放平台授权登录及相关开放接口实现类 /// /// Created by Tencent on 12-12-21. /// Copyright (c) 2012年 Tencent. All rights reserved. /// #import <UIKit/UIKit.h> #import "sdkdef.h" #import "QQApiInterface.h" #import "TencentOAuthObject.h" @protocol TencentSessionDelegate; @protocol TencentLogin...
# -*- coding: utf-8 -*- from __future__ import absolute_import from uuid import uuid4 from sentry.api.serializers import serialize from sentry.models import Commit, CommitAuthor, Release, ReleaseCommit, Repository from sentry.testutils import TestCase class CommitSerializerTest(TestCase): def test_simple(self)...
// Copyright (c) 2014 International Aid Transparency Initiative (IATI) // Licensed under the MIT license whose full text can be found at http://opensource.org/licenses/MIT var view_publisher_countries_top = exports; exports.name = "view_publisher_countries_top"; var ctrack = require("./ctrack.js"); var plate = requi...
""" This module lets you practice the ITERATE-THROUGH-A-SEQUENCE pattern in its most classic form: -- Iterate all the way through the sequence, from beginning to end. Authors: David Mutchler, Vibha Alangar, Matt Boutell, Dave Fisher, Mark Hays, Amanda Stouder, Aaron Wilkin, their colleagues, and Tr...
import pandas as pd from django.core.management import BaseCommand, CommandError from DataRepo.utils import CompoundsLoader class Command(BaseCommand): # Show this when the user types help help = "Loads data from a compound list into the database" def add_arguments(self, parser): parser.add_argu...
var express = require("express"); var router = express.Router(); var mysql = require("mysql"); var config = require("../config/database"); var db = mysql.createConnection(config.mysql); router.get("/getUser",(req,res)=>{ console.log(req.body.id); db.query('SELECT * FROM user where user_Id=?',[req.body.id], (e...
#!/usr/bin/env python # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "Lice...
# from math import * # from visual import * # from visual.graph import * from vpython import * # import vpython scene.fullscreen = True G = 0.5 spheres = [ sphere(pos=vector(0,0,0),radius =0.6,color=color.yellow,mass=sqrt(200),velocity=vector(0,0,0),a = vector(0,0,0),trail=curve(color=color.yellow)), sp...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.resizeImage = exports.getImageSize = exports.getMimeType = exports.generateRandomImage = exports.deleteFile = exports.renameFile = exports.editFile = exports.createFile = exports.writeFile = exports.diskUsage = exports.processFiles ...
import React from 'react' import { Row, Col, Card, Input, message } from 'antd' import D3LogarithmicSpiralLine from '../components/math/D3LogarithmicSpiralLine' class LogarithmicSpiralLine extends React.Component { constructor(props) { super(props) this.state = { logarithmicSpiralLine: { a: Mat...
/* Leaflet 1.0.1+ffcfcc1, a JS library for interactive maps. http://leafletjs.com (c) 2010-2016 Vladimir Agafonkin, (c) 2010-2011 CloudMade */ !function (t, e, i) { function n() { var e = t.L; o.noConflict = function () { return t.L = e, this }, t.L = o } var o = {vers...
// // Generated by classdumpios 1.0.1 (64 bit) (iOS port by DreamDevLost)(Debug version compiled Sep 26 2020 13:48:20). // // Copyright (C) 1997-2019 Steve Nygard. // #import <iTunesStore/ISOperation.h> @class ExternalDownloadManifest, NSOrderedSet, NSURLRequest, SSDownloadManifestResponse; @interface LoadExter...
# # Builtin Definitions # from __future__ import absolute_import from .Symtab import BuiltinScope, StructOrUnionScope from .Code import UtilityCode from .TypeSlots import Signature from . import PyrexTypes from . import Options # C-level implementations of builtin types, functions and methods iter_next_utility_c...
# # Copied From [mmdetection](https://github.com/open-mmlab/mmdetection/tree/master/mmdet/ops/dcn) #
/* @flow */ import config from '../config' import { warn } from './debug' import { inBrowser } from './env' export function handleError (err: Error, vm: any, info: string) { if (vm) { let cur = vm while ((cur = cur.$parent)) { const hooks = cur.$options.errorCaptured if (hooks) { for (le...
import React from 'react'; import { withStyles } from '@material-ui/core/styles'; import Card from '@material-ui/core/Card'; import CardMedia from '@material-ui/core/CardMedia'; import Typography from '@material-ui/core/Typography'; import { green, lightBlue, orange, red, } from '@material-ui/core/colors'; import Bu...
describe('content-loader', () => { let el const elemTag = 'h-content-loader' const expect = chai.expect beforeEach(() => { el = document.createElement(elemTag) document.body.appendChild(el) }) afterEach(() => { document.body.removeChild(el) el = null }) describe('interface', () => { ...
Index: Electrum-DASH-3.2.3/setup.py =================================================================== --- Electrum-DASH-3.2.3.orig/setup.py +++ Electrum-DASH-3.2.3/setup.py @@ -77,6 +77,7 @@ setup( 'electrum_dash', 'electrum_dash.gui', 'electrum_dash.gui.qt', + 'electrum_dash.plugins...
//Code Quiz //Store user info const user = 0; var highScore = 50; //var highScore = 50; ; //Score add fix for ticking timer let quiz = 0; let index = 0; //Question number // Track the question answered. let theRightAnswer = true; //var quizStatus = true; // know the status of the quiz. Quiz is not running = false, runn...
#!/usr/bin/env python import os import sys SCRIPT_DIR, SCRIPT_FILE = os.path.split(os.path.abspath(__file__)) os.environ.update({ 'APP_MODULE': 'imcrypt', 'APP_SETTINGS': 'imcrypt.config.base', 'APP_DIR': os.path.join(SCRIPT_DIR, 'imcrypt'), 'PUBLIC_DIR': os.path.join(SCRIPT_DIR, 'public'), 'SCRIPT...
module.exports = { test: 'custom-default' };
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = 'ipetrash' import math from PyQt5.QtWidgets import QApplication, QWidget from PyQt5.QtGui import QPainter, QTransform, QPolygonF, QPen from PyQt5.QtCore import QPointF, Qt, QTimer class MainWindow(QWidget): def __init__(self): super().__init_...
#ifdef __OBJC__ #import <UIKit/UIKit.h> #else #ifndef FOUNDATION_EXPORT #if defined(__cplusplus) #define FOUNDATION_EXPORT extern "C" #else #define FOUNDATION_EXPORT extern #endif #endif #endif FOUNDATION_EXPORT double Pods_VCLoadTimeProfiler_ExampleVersionNumber; FOUNDATION_EXPORT const unsigned char Pods_VCLoadTime...
// // OEXRegistrationFieldEmailView.h // edXVideoLocker // // Created by Jotiram Bhagat on 14/02/15. // Copyright (c) 2015 edX. All rights reserved. // #import <UIKit/UIKit.h> #import "OEXRegistrationFormTextField.h" @interface OEXRegistrationFieldEmailView : OEXRegistrationFormTextField @end
from django.urls import path, include from .views import * app_name = "jobs" urlpatterns = [ path('', HomeView.as_view(), name='home'), path('about/', AboutView.as_view(), name='about'), path('search/', SearchView.as_view(), name='search'), path('employer/dashboard/', include([ path('', Dashb...
# -*- coding: utf-8 -*- """ Copyright (c) 2015 Red Hat, Inc All rights reserved. This software may be modified and distributed under the terms of the BSD license. See the LICENSE file for details. """ from __future__ import unicode_literals import inspect import json import os import pytest import re import six impo...
import os import sys sys.path.append(os.path.abspath(os.path.dirname(__file__) + '/' + '../..')) import numpy as np import pandas as pd import pystan import pickle from python.tools import ( clean_folder ) ################ ## Parameters ## ################ output_folder = './estimate_R/output/construct_STAN_mod...
/** * @copyright (c) 2016-2021 Ing. Buero Rothfuss * Riedlinger Str. 8 * 70327 Stuttgart * Germany * http://www.rothfuss-web.de * * @author <a href="mailto:armin@rothfuss-web.de">Armin Rothfuss</a> * * Projec...
# -*- coding: utf-8 -*- import datetime import warnings from operator import attrgetter import numpy as np from .base import MetricGenerator from ..base import Property from ..measures import EuclideanWeighted from ..types.metric import SingleTimeMetric, TimeRangeMetric from ..types.time import TimeRange class SIAP...
/** * First we will load all of this project's JavaScript dependencies which * includes Vue and other libraries. It is a great starting point when * building robust, powerful web applications using Vue and Laravel. */ window.axios = require('axios'); window.axios.defaults.headers.common['X-Requested-With'] = 'X...
#!/usr/bin/env python import sys from time import sleep import pprint from pyhocon import ConfigFactory import confluent_kafka.admin as kad class WrapKafkaAdmin: def __init__(self, conf): self.conf = conf kafka_conf = {'bootstrap.servers': conf.KAFKA_BROKERS} kafka_admin = kad.AdminClie...
"""ARK View""" __docformat__ = "numpy" import os import pandas as pd from tabulate import tabulate from gamestonk_terminal.stocks.due_diligence import ark_model from gamestonk_terminal import feature_flags as gtff from gamestonk_terminal.helper_funcs import export_data from gamestonk_terminal.rich_config import cons...
{ step1Title:"Step 1: Select a Data Source", step2Title:"Step 2: Make Selections", step3Title:"Step 3: Customize Selections", step4Title:"Step 4: Report Settings", goBtnTxt:"Go", okBtnTxt:"Ok", cancelBtnTxt:"Cancel", searchBtnTxt:"Search", backBtnTxt:"Back", nextBtnTxt:"Next", saveBtnTxt:"Save", saveAsBtnTx...
// // JXCategoryListScrollView.h // JXCategoryView // // Created by jiaxin on 2018/9/12. // Copyright © 2018年 jiaxin. All rights reserved. // #import <UIKit/UIKit.h> #import "JXCategoryViewDefines.h" #import "JXCategoryBaseView.h" @class JXCategoryListContainerView; /** 列表容器视图的类型 - ScrollView: UIScrollView。优势:...
/* * File: bHYPRE_BoomerAMG_Module.h * Symbol: bHYPRE.BoomerAMG-v1.0.0 * Symbol Type: class * Babel Version: 1.0.4 * Description: expose a constructor for the Python wrapper * * WARNING: Automatically generated; only changes within splicers preserved * */ /* * THIS CODE IS AUTOMATICALLY...
const jwt = require('jsonwebtoken'); const config = require('./config'); module.exports = async (ctx, next) => { let url = ctx.request.url; console.log('url =', url); if (url.indexOf('login') === -1 && url.indexOf('register') === -1) { console.log('check token'); // 检验是否存在 token const authorization =...
import { randomInt } from 'crypto'; /** * * @param {*} min inclusive min * @param {*} max * @param {*} inclusive incusive or exclusive max * @returns */ export function randomMath(min = 0, max = 0, inclusive = false) { if (max === min) { return max; } if (min > max) { const temp =...
// SPDX-License-Identifier: GPL-2.0-only /* * Intel IXP4xx Ethernet driver for Linux * * Copyright (C) 2007 Krzysztof Halasa <khc@pm.waw.pl> * * Ethernet port config (0x00 is not present on IXP42X): * * logical port 0x00 0x10 0x20 * NPE 0 (NPE-A) 1 (NPE-B) 2 (NPE-C) * physical PortId 2 0 1 * TX queue ...
from __future__ import print_function import contextlib import functools import os import sys import random import re import time import subprocess from lxml import etree from lxml.cssselect import CSSSelector, SelectorSyntaxError, ExpressionError try: from urllib.parse import urljoin from urllib.request imp...
/*jslint nomen: true */ var path = require('path'), fs = require('fs'), cp = require('child_process'), Module = require('module'), originalLoader = Module._extensions['.js'], common = require('./common'), MAIN_FILE = path.resolve(__dirname, '..', 'lib', 'cli.js'), DEFAULT_CWD = path.resolve(...
import Label, {textLayoutToJSON} from './label'; import Vector from '../utils/vector'; import OBB from '../utils/obb'; const STOPS = [0, 0.33, 0.66, 0.99]; // zoom levels for curved label snapshot data (offsets and angles) const LINE_EXCEED_STRAIGHT = 1.5; // minimal ratio for straight labels (label l...
import os.path LIST_OF_DEIDS=[ 100, 101, 102, 103, 200, 201, 202, 203, 300, 301, 302, 303, 400, 401, 402, 403, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 700, 70...
from selfdrive.car import dbc_dict from cereal import car Ecu = car.CarParams.Ecu # Steer torque limits class SteerLimitParams: STEER_MAX = 1500 STEER_DELTA_UP = 10 # 1.5s time to peak torque STEER_DELTA_DOWN = 25 # always lower than 45 otherwise the Rav4 faults (Prius seems ok with 50) STEER_ERROR_M...
// // PluginLogging.h // libraries/gl/src/gl/ // // Created by Seth Alves on 2016-9-14. // Copyright 2016 High Fidelity, Inc. // // Distributed under the Apache License, Version 2.0. // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html // #ifndef hifi_PluginLogging_h #define hi...
# Copyright (c) 2016. Mount Sinai School of Medicine # # 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 2018 The Bazel Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable la...
import { __assign } from "tslib"; import * as React from 'react'; import { StyledIconBase } from '../../StyledIconBase'; export var Youtube = React.forwardRef(function (props, ref) { var attrs = { "fill": "currentColor", "xmlns": "http://www.w3.org/2000/svg", }; return (React.createElement(S...
import logging import time import asyncpraw import discord from discord.ext import tasks, commands from utils.config import config log = logging.getLogger(__name__) class RedditTask(commands.Cog): def __init__(self, bot): self.bot = bot self.bot_started_at = time.time() self.cache = [...
var ElapsedTimeBar = { // default value barColor: 'rgb(200,0,0)', pausedBarColor: 'rgba(200,0,0,.6)', isPaused: false, isFinished: false, allottedTime: null, timeProgressBar: null, startTime: null, pauseTime: null, pauseTimeDuration: 0, /** * initialize elements...
import axios from "axios"; import axiosWithAuth from "../utils/axiosWithAuth"; export const SIGNUP_START = "SIGNUP_START"; export const SIGNUP_SUCCESS = "SIGNUP_SUCCESS"; export const SIGNUP_FAIL = "SIGNUP_FAIL"; export const LOGIN_START = "LOGIN_START"; export const LOGIN_SUCCESS = "LOGIN_SUCCESS"; export const LOGIN...
import Login from './screens/Login'; import Profile from './screens/Profile'; import Loading from './screens/Loading'; import AuthContext from './context/AuthContext'; import { createBottomTabNavigator } from '@react-navigation/bottom-tabs'; import React, { useContext } from 'react'; const Tab = createBottomTabNavig...
// @flow import React, { type Node } from 'react'; type Props = {| href: string, children: Node, className?: string, 'aria-label'?: string, |}; export default class ExternalLink extends React.Component<Props> { render(): Node { return ( <a className={this.props.className} aria-la...
const billingController = require('./controllers/billingController'); const billingValidator = require('./validators/billingValidator'); app.post('/make_user_payment', billingValidator.makeUserPayment, billingController.makeUserPayment); app.post('/get_user_...
# coding=utf-8 # *** WARNING: this file was generated by test. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import errno from setuptools import setup, find_packages from setuptools.command.install import install from subprocess import check_call class InstallPluginCommand(inst...
/** * convertapi * Convert API lets you effortlessly convert file formats and types. * * OpenAPI spec version: v1 * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * * Swagger Codegen version: 2.4.5 * * Do not edit the class man...
// Copyright (c) 2019 Gregory Meyer // // 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, copy, modify, merge, publish,...
// Copyright 2017-2021 @polkadot/types authors & contributors // SPDX-License-Identifier: Apache-2.0 import { createFunction } from "./createFunction.js"; // Small helper function to factorize code on this page. /** @internal */ function createRuntimeFunction(method, key, { docs, type }) { return registry => cr...
/* istanbul instrument in package npmdoc_stream_combiner */ /*jslint bitwise: true, browser: true, maxerr: 8, maxlen: 96, node: true, nomen: true, regexp: true, stupid: true */ (function () { 'use strict'; var local; // run shared js-env code - init-before (function ()...
from django.contrib.auth.models import AbstractUser from django.db import models class Volunteer(AbstractUser): region = models.CharField(max_length=3, null=True) def save(self, *args, **kwargs): super(Volunteer, self).save(*args, **kwargs) def __str__(self): return str(self.region) def...
# -*- coding: utf-8 -*- # Copyright (c) 2013 - 2019, Gorka Zamora-López <galib@Zamora-Lopez.xyz> # # Released under the Apache License, Version 2.0 (the "License"); # you may not use this software except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LIC...
import os import yaml from xml.etree.ElementTree import tostring as ElementToString from .building import Building from .etree_utils import indent_etree class Generator: def __init__(self): pass def parse_editor_yaml(self, input_filename): if not os.path.isfile(input_filename): ra...
from django.contrib.auth import authenticate, login, logout from django.contrib.auth.decorators import login_required from django.db import IntegrityError from django.http import HttpResponseRedirect from django.shortcuts import render from django.urls import reverse from django.utils import timezone from .models impo...
/** * Bio component that queries for data * with Gatsby's useStaticQuery component * * See: https://www.gatsbyjs.com/docs/use-static-query/ */ import * as React from "react" import { useStaticQuery, graphql } from "gatsby" import { StaticImage } from "gatsby-plugin-image" const Bio = () => { const data = useSt...
# https://gist.github.com/fjl/3a78780d17c755d22df2 # data used here # https://github.com/ethereum/cpp-ethereum/blob/develop/test/rlpx.cpp#L183 # https://gist.github.com/fjl/6dd7f51f1bf226488e00 from devp2p.rlpxcipher import RLPxSession from devp2p.crypto import ECCx, privtopub from quarkchain.rlp.utils import decode_h...
/*++ Copyright (c) 2011 Microsoft Corporation Module Name: seq_axioms.h Abstract: Axiomatize string operations that can be reduced to more basic operations. Author: Nikolaj Bjorner (nbjorner) 2020-4-16 Revision History: --*/ #pragma once #include "ast/seq_decl_plugin.h" #include "ast/arith_dec...
/* Auvitek AU8522 QAM/8VSB demodulator driver Copyright (C) 2008 Steven Toth <stoth@linuxtv.org> 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 version 2 of the License, ...
# encoding: utf-8 """ Example RESTful API Server. """ import logging import os import sys from flask import Flask CONFIG_NAME_MAPPER = { 'development': 'config.DevelopmentConfig', 'testing': 'config.TestingConfig', 'production': 'config.ProductionConfig', 'local': 'local_config.LocalConfig', } def c...
import asyncio import logging import sys from inspect import isawaitable import pytest from sanic.exceptions import SanicException from sanic.response import text def uvloop_installed(): try: import uvloop # noqa return True except ImportError: return False def test_app_loop_run...