text
stringlengths
3
1.05M
$(document).ready(function() { var d = ""; $.ajax({ url: 'http://localhost:8181/perfil/leaderboard' }).done(function (datos) { for (var i = 0; i < datos.length; i++) { d += '<tr>'+ '<td>'+datos[i].nombre+'</td>'+ '<td>'+datos[i].puntuac...
import React from 'react'; import { FormattedMessage } from 'react-intl'; import NavBar from './NavBar'; import HeaderLink from './HeaderLink'; import messages from './messages'; function Header() { return ( <div> <NavBar> <HeaderLink to="/"> <FormattedMessage {...messages.home} /> ...
const {PLUGIN_NAME, STORE_REQUEST_ID_KEY} = require('./constants'), {buildStoreKey, displayToken, findWorkspace, handleTokenResponse, promptForFilter} = require('./Utils'); module.exports = { label: "Use as Authorization request", icon: 'fa-key', action: async ({app, data, network, store}, {request...
import Mock from 'mockjs'; const LoginUsers = [ { id: 1, username: 'admin', password: '123456', avatar: 'https://raw.githubusercontent.com/taylorchen709/markdown-images/master/vueadmin/user.png', name: '王某某' } ]; const Users = []; for (let i = 0; i < 86; i++) { Users.push(Mock.mock({ id:...
/** @format */ export function wrapEntityMetadata(entity) { if (!entity.metadata) { return { ...entity }; } const metadata = Object.keys(entity.metadata).reduce( (wrappedMo, key) => ({ ...wrappedMo, [key]: Array.isArray(entity.metadata[key]) ? entity.metadata[key].map(v => ({ value: v...
import actions from './actions' import getters from './getters' import mutations from './mutations' const state = () => ({ editor: null, modified: false }) const editor = { namespaced: true, state, getters, actions, mutations } export default editor
import _ from "underscore"; /** * Helper class representing a scalar with an associated id. */ export class ScalarWithId { /** * Create a an array with ids. * @param {Any} valueOrObject - a ScalarWithID, or any other type. * @param {Number} id - numerical id (Integer). */ constructor(val...
#! /usr/bin/python2.7 """ Python Character Mapping Codec for ROT13. See http://ucsub.colorado.edu/~kominek/rot13/ for details. Written by Marc-Andre Lemburg (mal@lemburg.com). """#" import codecs ### Codec APIs class Codec(codecs.Codec): def encode(self,input,errors='strict'): return codecs.c...
var path = require("path"); var fs = require("fs"); module.exports = function() { console.log("Configure firebase"); var buildGradlePath = path.join(__dirname, "..", "..", "platforms", "android", "build.gradle"); if (fs.existsSync(buildGradlePath)) { var buildGradleContent = fs.readFileSync(build...
var d3 = require('d3'); var createModeBar = require('@src/components/modebar/modebar'); var manageModeBar = require('@src/components/modebar/manage'); var Plotly = require('@lib/index'); var Plots = require('@src/plots/plots'); var createGraphDiv = require('../assets/create_graph_div'); var destroyGraphDiv = require(...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const testing_1 = require("@nestjs/testing"); const games_service_1 = require("./games.service"); describe('GamesService', () => { let service; beforeEach(async () => { const module = await testing_1.Test.createTestingModule({ ...
// @flow import invariant from 'tiny-invariant'; import type { State } from '../../../../../src/types'; import type { Store } from '../../../../../src/state/store-types'; import middleware from '../../../../../src/state/middleware/drop/drop-animation-flush-on-scroll-middleware'; import dropMiddleware from '../../../../...
/** vim: et:ts=4:sw=4:sts=4 * @license RequireJS 2.1.14 Copyright (c) 2010-2014, The Dojo Foundation All Rights Reserved. * Available via the MIT or new BSD license. * see: http://github.com/jrburke/requirejs for details */ //Not using strict: uneven strict support in browsers, #392, and causes //problems with req...
module.exports = { // reactStrictMode: true, assetPrefix: process.env.GITHUB_PAGES == 'true' ? '/nextjs/' : '', basePath: process.env.GITHUB_PAGES == 'true' ? '/nextjs' : '', }
export { skipWhile } from 'rxjs/operators'; //# sourceMappingURL=skipWhile.js.map
num = int(input()) lista = [] for i in range(num): cod = str(input())
import { combineReducers } from "redux"; import Meassurement from './Meassurement' export default combineReducers({ Meassurement, });
import time from pyresparser import ResumeParser import os from scripts.whatsapp import WhatsApp # spacy.load('en_core_web_sm') def Hello (): main_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) resume_path = f'{main_dir}/Resume/vishal_jangid.pdf' data = ResumeParser(resume_path).get_...
from testbook import testbook @testbook('1_Notebook_template.ipynb', execute=True) def test_func_sum_10(tb): func_sum = tb.ref('func_sum') assert func_sum(5,5) == 10 @testbook('1_Notebook_template.ipynb', execute=True) def test_func_sum_any(tb): func_sum = tb.ref('func_sum') assert func_sum(3,5) == 8 ...
//>>built require({cache:{"url:dojox/atom/widget/templates/FeedEntryEditor.html":'\x3cdiv class\x3d"feedEntryViewer"\x3e\r\n \x3ctable border\x3d"0" width\x3d"100%" class\x3d"feedEntryViewerMenuTable" dojoAttachPoint\x3d"feedEntryViewerMenu" style\x3d"display: none;"\x3e\r\n \x3ctr width\x3d"100%" dojoAttach...
# -*- coding: utf-8 -*- #M3 -- Meka Robotics Robot Components #Copyright (c) 2010 Meka Robotics #Author: edsinger@mekabot.com (Aaron Edsinger) #M3 is free software: you can redistribute it and/or modify #it under the terms of the GNU Lesser General Public License as published by #the Free Software Foundation, either v...
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import ...
__author__ = "Alan R. Lowe" __email__ = "a.lowe@ucl.ac.uk" import os import numpy as np import matplotlib.pyplot as plt import matplotlib.patches as patches def plot_metrics(seg_metrics): pred = seg_metrics._predicted ref = seg_metrics._reference iou = [None] * len(ref.labels) IoU = seg_metrics.pe...
const _ = require('lodash'); const cliYo = require('../lib/cli-yo'); const newProject = require('../lib/new-project'); const optOverrides = { type: { flags: '--type', type: 'enum', description: 'The type of project to create', choices: ['module', 'app', 'pkg', 'mono'], requir...
import React, { Component } from 'react'; import { View, Text } from 'react-native'; class SearchTabScreen extends React.Component { static navigationOptions = { headerTitle: 'SearchTabScreen', // signal 로고 덮어쓰기 headerRight: null, headerTitleContainerStyle: { alignItems: 'center' }, ...
import copy from cereal import car from selfdrive.car.hyundai.values import DBC, STEER_THRESHOLD, FEATURES, EV_CAR, HYBRID_CAR, Buttons from selfdrive.car.interfaces import CarStateBase from opendbc.can.parser import CANParser from opendbc.can.can_define import CANDefine from selfdrive.config import Conversions as CV ...
import { SUCCESS } from "../Constants/SnackBarVariant"; export const initialLoggedInState = { isLoggedIn: false, user: "", }; export const initialTodoState = { todos: [], isFetching: false, completed: 0, uncompleted: 0, }; export const initialDialogState = { dialogOpen: fal...
const RoomTrapper = require('./src/RoomTrapper'); const TrappedRoomManager = require('./src/TrappedRoomManager'); module.exports = { RoomTrapper, TrappedRoomManager };
// Copyright (C) 2017 Ecma International. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- description: | Collection of assertion functions used throughout test262 defines: [assert] ---*/ function assert(mustBeTrue, message) { if (mustBeTrue === true) { ...
var structoperations__research_1_1sat_1_1_clause_info = [ [ "activity", "structoperations__research_1_1sat_1_1_clause_info.html#ac3e857ac5cab6563bdbf0dd5632df5ea", null ], [ "lbd", "structoperations__research_1_1sat_1_1_clause_info.html#ab936491a95d91a181081d85c4457c7c5", null ], [ "protected_during_next_cl...
import React, { useEffect } from 'react' import PropTypes from 'prop-types' import clsx from 'clsx' import { Link as RouterLink } from 'react-router-dom' import { makeStyles, useTheme } from '@material-ui/styles' import AppBar from '@material-ui/core/AppBar' import Container from '@material-ui/core/Container' import Dr...
(function () { if (typeof require !== 'undefined') { _ = require('node_modules/underscore/underscore.js'); } var students = [ { "gender": "Male", "firstName": "Joe", "lastName": "Riley", "age": 22, "country": "Russia" }, { "gender": "Female", "firstName": "Lois", "lastName": "Morga...
import numpy as np import tensorflow as tf import gym import time from spinup.algos.td3 import core from spinup.algos.td3.td3_randtarg import td3 as true_td3 from spinup.algos.td3.core import get_vars from spinup.utils.logx import EpochLogger """ Exercise 1.3: TD3 Computation Graph Implement the core computation gra...
module.exports = { '*': 'my-tasks', }
var errors, fs, _; _ = require('lodash'); fs = require('fs'); errors = require('resin-errors'); /** * @summary Check if a number is divisible by another number * @protected * @function * * @param {Number} x - x * @param {Number} y - y * * @throws If either x or y are zero. * * @example * utils.isDivisib...
(function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. define(['expect.js', process.cwd()+'/src/index'], factory); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. factory(require('expect....
const nodemailer = require('nodemailer') const {google} = require('googleapis') const {OAuth2} = google.auth const OAUTH_PLAYGROUND = 'https://developers.google.com/oauthplayground' const config = require('../utils/config') const MAILING_SERVICE_CLIENT_ID = config.GOOGLE_CLIENT_ID const MAILING_SERVICE_CLIENT_SECRET =...
import Vue from 'vue' import axios from 'axios' import { MessageBox, Message } from 'element-ui' import store from '@/store' import Qs from 'qs' // create an axios instance const service = axios.create({ timeout: 60000 ,// request timeout headers: { 'X-Requested-With': 'XMLHttpRequest', channel: 3 } }) // request...
"use strict" let input; let total = 0; while (true) { input = prompt('Введите число'); if (input === null) { break; } input = Number(input); total += input; } alert(`Общая сумма чисел равна ${total}`);
from random import randint def is_prime(num, test_count): if num == 1: return False if test_count >= num: test_count = num - 1 for x in range(test_count): val = randint(1, num - 1) if pow(val, num-1, num) != 1: return False return True def generate_big_prime...
import numpy as np from gtsam import Cal3Bundler, Rot3, PinholeCameraCal3Bundler, Pose3, SfmTrack from gtsfm.common.image import Image from gtsfm.common.sfm_track import SfmMeasurement import gtsfm.utils.reprojection as reproj_utils def test_compute_track_reprojection_errors(): """Ensure that reprojection error ...
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("cronstrue",[],e):"object"==typeof exports?exports.cronstrue=e():t.cronstrue=e()}("undefined"!=typeof self?self:this,function(){return function(t){var e={};function n(o){if(e[o])return e[o].e...
import request from 'request-promise'; import { Logger } from '../../utils/logger.js'; import { Common } from '../../utils/common.js'; let options = null; const logger = Logger; const common = Common; export const getRoute = (req, res, next) => { logger.log({ selectedNode: req.session.selectedNode, level: 'INFO', f...
""" Google BigQuery support """ from pandas.compat._optional import import_optional_dependency def _try_import(): # since pandas is a dependency of pandas-gbq # we need to import on first use msg = ( "pandas-gbq is required to load data from Google BigQuery. " "See the docs: https://pandas...
import React, { useState, useEffect, useCallback } from "react"; import { StatusBar, Platform, View, RefreshControl, Alert } from "react-native"; import { MaterialIcons, Ionicons } from "@expo/vector-icons"; import RNPickerSelect from "react-native-picker-select"; import AsyncStorage from "@react-native-community/async...
/** * @fileoverview Rule to enforce line breaks after each array element * @author Jan Peer Stöcklmair <https://github.com/JPeer264> */ "use strict"; const astUtils = require("../ast-utils"); //------------------------------------------------------------------------------ // Rule Definition //---------...
#coding:utf-8 # # id: bugs.core_2635 # title: Unique index with a lot of NULL keys can be corrupted at level 1 # decription: # tracker_id: CORE-2635 # min_versions: ['2.1.4', '2.0.6', '2.5'] # versions: 2.5 # qmid: None import pytest from firebird.qa import db_factory, isql_act, Actio...
import {dataTaskProgress} from "../data/dataTaskProgress"; export const taskProgress = { rows: [ { view: "toolbar", padding: {left: 10}, height: 40, cols: [ { view: "label", label: "Task Progress" }, {} ] }, { view: "chart", type: "barH", padding: {left: 100, right:...
#!/usr/bin/env python2 # -*- coding: utf-8 -*- # # SPDX-License-Identifier: GPL-3.0 # ################################################## # GNU Radio Python Flow Graph # Title: Dtv Sigmf Playback # Generated: Sat Feb 23 23:29:06 2019 # GNU Radio version: 3.7.12.0 ################################################## if __...
const mongoose = require("mongoose"); var msgSchema = new mongoose.Schema({ username: { type: String }, message: { type: String }, time: { type: String } }); mongoose.model("Message", msgSchema, "messages");
/** * @license * Copyright (c) 2014, 2020, Oracle and/or its affiliates. * Licensed under The Universal Permissive License (UPL), Version 1.0 * as shown at https://oss.oracle.com/licenses/upl/ * @ignore */ define(['ojs/ojcore', 'ojs/ojtranslation', 'ojs/ojvalidator', 'ojs/ojvalidation-error' ], function(oj, Tra...
var _s_t_m8_a_f6248_8h = [ [ "ADC1_AddressBase", "group___s_t_m8_a_f___s_t_m8_s.html#ga15ad502b1b3dffbb89e4325c2666f88e", null ], [ "AWU_AddressBase", "group___s_t_m8_a_f___s_t_m8_s.html#gae5ac46e120c0acf1c6bf41a3b997f9d9", null ], [ "BEEP_AddressBase", "group___s_t_m8_a_f___s_t_m8_s.html#ga1f0c22f3a304472b...
export default { form: document.getElementById("search-form"), input: document.querySelector(".input"), gallery: document.querySelector(".gallery"), btnLoadMore: document.querySelector(".load-more "), modal: document.querySelector(".js-lightbox"), largeImg: document.querySelector(".lightbox__image"), };
const assert = require('assert') const { InMemoryBackend } = require('../src/backends') const { EventCache, patchWeb3Contract } = require('../src') const contracts = require('./_contracts') const ipfs = require('./_ipfs') const { STD_GAS, STD_GAS_DEPLOY, STD_GAS_PRICE, INT_1E24 } = require('./const') describe('Event...
import { WDialog } from "../leafletClasses"; import WasabeePortal from "../portal"; import { getSelectedOperation } from "../selectedOp"; // import WasabeeLink from "../link"; import { clearAllItems, getAllPortalsOnScreen } from "../uiCommands"; import wX from "../wX"; const StarburstDialog = WDialog.extend({ static...
var tape = require("tape") var clone = require("../../../lib/util/clone") tape("test clone method", function(t) { var obj = {one: 1, two: 2} var cloned = clone(obj) t.notEqual(obj, cloned, "cloned object isn't the original object") t.same(obj, cloned, "cloned object has the same values as original object") ...
import './aop.test'; import './mutate.test';
'use strict'; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.definePrope...
'''Script for scraping data from GoodReads. -------------------------------------------- Uses rotating user agents and sleeping to try avoid getting blocked. When blocked, sleeps for 30 seconds and tries again. Prints out all values as it goes. This is just for watching that its collecting the right data and can be co...
// 击鼓传花实例 - 有一组人围成圈然后规定一个数字,喊道数字的人出列,直到剩最后一人 let arr = ["apple", "orange", "tomato", "potato", "banana", 'protein'] function winner(list, num) { let queue = new Queue() let index = 0 // 加入队列 list.map(o => { queue.enqueue(o) }) /* // 计数实现 while(queue.size() > 1) { index += 1...
"use strict"; const oracledb = require("oracledb"); oracledb.outFormat = oracledb.OUT_FORMAT_OBJECT; // oracledb.poolTimeout = 60; // 60 seconds // oracledb.queueTimeout = 60000; // 60 seconds module.exports.dbStoredProcedure = async function( connectionString, sql_query, binds = [], options = {}, callback ...
const char_ws = require("nv-char-whitespace"); const cfg = require("nvison-cfg"); const { STATE_DICT } = require("./state"); const { Word, Str, comma, colon, Alblk, Arblk, Olblk, Orblk, } = require("./cls"); const { is_naked_need_parse, is_naked_no_need_parse } = require("...
# -*- coding: utf-8 -*- """ # Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. # # This file was generated and any changes will be overwritten. """ from ..request_base import RequestBase from ..model.calendar import...
import { container } from "./../../../material-kit-react.js"; const downloadStyle = { section: { padding: "70px 0", }, container, textCenter: { textAlign: "center", }, sharingArea: { marginTop: "80px", }, socials: { maxWidth: "24px", marginTop: "0", width: "100%", transform:...
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.14.4 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import os import sys i...
export function mergeClasses(...values) { const deduped = values .filter(Boolean) .reduce((set, x) => { x.split(" ").forEach(y => { set.add(y); }); return set; }, new Set()); return [...deduped].join(" "); }
define('echarts/chart/map', [ 'require', './base', 'zrender/shape/Text', 'zrender/shape/Path', 'zrender/shape/Circle', 'zrender/shape/Rectangle', 'zrender/shape/Line', 'zrender/shape/Polygon', 'zrender/shape/Ellipse', '../component/dataRange', '../component/roamCon...
from urllib.request import urlopen from bs4 import BeautifulSoup html = urlopen("http://www.pythonscraping.com/pages/page1.html") bsObj = BeautifulSoup(html.read()) print(bsObj.h1)
'use strict'; var cls = require('../lib/class') , h = require('../lib/helper') , instances = require('./instances') , updateGeometry = require('./update-geometry'); // Handlers var clickRailHandler = require('./handler/click-rail') , dragScrollbarHandler = require('./handler/drag-scrollbar') , key...
(function($) { "use strict"; // Start of use strict // jQuery for page scrolling feature - requires jQuery Easing plugin $('a.page-scroll').bind('click', function(event) { var $anchor = $(this); $('html, body').stop().animate({ scrollTop: ($($anchor.attr('href')).offset().top - ...
var i = 10; if (i == 10) { i++; } else { } if (i == 10) { i++; } else if (i == 20) { i--; } else if (i == 30) { i += 70; } else { i--; } //# sourceMappingURL=sourceMapValidationIfElse.js.map
const http = require('http'); const formidable = require('formidable'); const fs = require('fs'); const server = http.createServer(function (req, res) { if (req.url === '/fileupload') { const form = new formidable.IncomingForm(); form.parse(req, function (err, fields, files) { const content = fs.readFi...
'use strict' var exports = module.exports = {}; var MongoClient = require('mongodb').MongoClient; var url = "mongodb://localhost:27017/ecommercedb"; function databaseConnect(dbCRUDParams, handleCRUD) { MongoClient.connect(url, function(connectionError, databaseConnection) { connectionError ? handleConnecti...
/** * @license AngularJS v1.2.16 * (c) 2010-2014 Google, Inc. http://angularjs.org * License: MIT */ (function(window, angular, undefined) {'use strict'; /** * @ngdoc module * @name ngRoute * @description * * # ngRoute * * The `ngRoute` module provides routing and deeplinking services and directives for an...
"""SCons.Tool.hpcc Tool-specific initialization for HP aCC and cc. There normally shouldn't be any need to import this module directly. It will usually be imported through the generic SCons.Tool.Tool() selection method. """ # # Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 The SCons Foundation # # Per...
/* Classes */ const Match = require('./match.js') const Asset = require('./asset.js') class Player { constructor(data, api) { this._api = api this.raw = data if(data.attributes) { const { id, attributes, relationships } = data this.id = id this.attributes = attributes this.match...
/* * Copyright (c) 2006-2007 Erin Catto http: * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * Permission is granted to anyone to use this software for any purpose, * including...
import { expect } from 'chai' import { spec, _getPlatform } from 'modules/sonobiBidAdapter.js' import { newBidder } from 'src/adapters/bidderFactory.js' import {userSync} from '../../../src/userSync.js'; import { config } from 'src/config.js'; describe('SonobiBidAdapter', function () { const adapter = newBidder(spec...
// Source for validation rules: https://help.xmatters.com/ondemand/trial/valid_email_format.htm function validate_mail(input_box) { if (!input_box.value.search(/^[a-z0-9]+([\._-][a-z0-9]+)*@[a-z0-9]+([\._-][a-z0-9]{2,})+$/i)) { input_box.setAttribute("class", "valid"); return true; } else { input_box...
import enum from typing import Any, Union from django.utils.functional import Promise __all__ = ['Choices', 'IntegerChoices', 'TextChoices'] """ 本模块主要来自: https://github.com/django/django/blob/master/django/db/models/enums.py """ class ChoicesMeta(enum.EnumMeta): """用于创建 Choices 枚举的元类""" def __new__(metacls, c...
import css from "./ResultsPanel.module.css"; export const ResultsPanel = (props) => { const { risk, likelihood, threatScore, protectionWeakness, attackEfficiency, occurrence, impact, harmCapacity, impactValuation, } = props; return ( <div className={css.ResultsPanel}> ...
import React from "react" import { Link, graphql } from "gatsby" import Layout from "../components/layout" import Image from "../components/image" import SEO from "../components/seo" import Cart from "../components/cart" const IndexPage = ({ data }) => ( <Layout> <SEO title="Home" /> <h1>Hi people</h1> ...
# -*- coding: utf-8 -*- # # BitcoinLib - Python Cryptocurrency Library # ENCODING - Methods for encoding and conversion # © 2016 - 2018 October - 1200 Web Development <http://1200wd.com/> # 2019 Bocheng.Zhang <bocheng0000@gmail.com> # # This program is free software: you can redistribute it and/or modify...
import run from '../../src/codewars/summingANumbersDigits'; it('summingANumbersDigits test', () => { expect(run(10)).toBe(1); expect(run(99)).toBe(18); expect(run(-33)).toBe(6); });
import os import httplib import requests import time import json def get_filepaths(directory): """ This function will generate the file names in a directory tree by walking the tree either top-down or bottom-up. For each directory in the tree rooted at directory top (including top itself), it yi...
const { buildSidebar } = require("./utils/buildSidebar"); module.exports = { title: "Contributte", description: "First class extensions, addons and plugins for Nette Framework. Planty of examples and tricks for Nette.", themeConfig: { repo: "contributte/website", docsDir: "docs", docsBranch: "master"...
from typing import Callable, TypeVar, Union from numpy import ndarray from numpy.random import RandomState as RS from sklearn.base import BaseEstimator NumpyArray = ndarray MetricFunction = Callable[[NumpyArray, NumpyArray], float] GenericEstimator = TypeVar("GenericEstimator") InputEstimator = Union[BaseEstimator, G...
// Add event listeners chrome.runtime.onMessage.addListener(function(request, sender, sendResponse) { console.log('REQUEST', request.method, request) if (request.method == "getAllLocalStorage") { sendResponse({data: localStorage}); } else if (request.method == "getLocalStorage") { sendResponse({data: lo...
import React from 'react'; import { A } from 'common/Link'; import Layout from '../components/layout'; import SEO from '../components/seo'; import { H1 } from 'common/H1'; const ContactPage = () => ( <Layout> <SEO title='Contact' keywords={[ 'developer', 'web', 'software', ...
# Copyright 2016 The TensorFlow 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 ...
import argparse import sys from .global_options import * from .parent_parser import ParentParser class DecryptExtractsParser: """ Parser for the command decryptextracts """ @staticmethod def decrypt_extracts_parser(): """Method to parse decrypt extracts arguments passed by the user""" ...
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; export default class TextLink extends Component { render() { const { to, text } = this.props; return ( <Link to={to} className='text-link'> {text} </Link> ); } }
const mongoose = require('mongoose'); const Schema = mongoose.Schema; const bcrypt = require('bcrypt'); const userSchema = new Schema({ username: { type: String, required: true }, password: { type: String, required: true }, firstName: { type: String, required: true }, lastName: { ...
from django.conf import settings def global_settings(request): """Setting for templates""" return { 'DEBUG': settings.DEBUG, 'BURST_CALL_ACOM': settings.BURST_CALL_ACOM, 'ABOUT_LINK': settings.ABOUT_LINK, 'LOGO_NAME': settings.LOGO_NAME, 'THEME': settings.THEME, ...
""" File: anagram.py Name: Cage ---------------------------------- This program recursively finds all the anagram(s) for the word input by user and terminates when the input string matches the EXIT constant defined at line 19 If you correctly implement this program, you should see the number of anagrams for each word ...
import { React, useContext } from 'react'; import Input from '../components/Input'; import { Formik, Form } from 'formik'; import * as Yup from 'yup'; import '../styles/LoginForm.css'; import {AppContext} from "../store/AppContext"; const LoginForm = props => { const {loginOnClickHandler} = useContext(AppContext);...
module.exports = function(grunt) { "use strict"; // Project configuration. grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), banner: '/*! Respond.js v<%= pkg.version %>: <%= pkg.description %>' + ' * Copyright <%= grunt.template.today("yyyy") %> <%= pkg.author.name %>\n' + ' * Licen...
import React from 'react' import { Link } from 'react-router-dom' import styled from '@emotion/styled/macro' import { motion } from 'framer-motion' import { useTranslation } from 'react-i18next' import warning from '../assets/whiteWarning.svg' import mq from 'mediaQuery' import SearchDefault from '../components/Searc...
import os import sys import shutil import cv2 from PIL import Image import numpy as np from ocrd.model import OcrdMets, OcrdExif from ocrd.utils import getLogger log = getLogger('ocrd.workspace') class Workspace(object): """ A workspace is a temporary directory set up for a processor. It's the interface ...
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'NormalityWindow.ui' # # Created by: PyQt5 UI code generator 5.15.0 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQt5 import QtCo...