text
stringlengths
184
4.48M
require 'benchmark' CYCLES = 1_000_000_000 def slide(original_platform, direction) platform = case direction when :north, :south original_platform.transpose when :east, :west original_platform.map(&:dup) end swap_order = case direction ...
// // Copyright (c) 1995-2020 Mort Bay Consulting Pty Ltd and others. // ------------------------------------------------------------------------ // All rights reserved. This program and the accompanying materials // are made available under the terms of the Eclipse Public License v1.0 // and Apache License v2.0...
using Harmony.Application.Contracts.Repositories; using Harmony.Shared.Wrapper; using MediatR; using Microsoft.Extensions.Localization; using Harmony.Application.Contracts.Services; using AutoMapper; using Harmony.Application.Contracts.Services.Management; using Harmony.Application.Constants; using Harmony.Application...
import React from 'react'; import { useState } from 'react/cjs/react.development'; import { Button } from '../../core'; import { TextArea } from '../../core/inputs/TextArea/TextArea'; import { TextInput } from '../../core/inputs/TextInput'; import constants from '../../../utils/constants' import { postProject, validate...
module Main exposing (..) import Browser import Html exposing (Html, button, div, text) import Html.Events exposing (onClick) import Svg import Svg.Attributes as Attr import Time -- MAIN main = Browser.element { init = init, view = view, update = update, subscriptions = subscriptions } -- MODEL t...
import { readFileSync } from "fs"; import solc from "solc"; import { JsonRpcProvider, ContractFactory } from "ethers"; const provider = new JsonRpcProvider("http://127.0.0.1:8545"); const signer = await provider.getSigner(); console.log("Address:", signer.address); const balance = await provider.getBalance(signer.ad...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Element类型</title> <style> .red{ background: red; } .blue{ background: blue; } </style> <script> window.onload = function(){ var div = document.body.children[0]; // console.log(div); // console.log(document.body.firstElem...
import pandas as pd import seaborn as sns from matplotlib import pyplot as plt from utils import read_a_multilist, read_list def load_generation_data(PATH): """Load the generation counts for different mutation and crossover rates experiments.""" mutation_rates = [0.05, 0.1, 0.15, 0.2] crossover_rates = [...
import React from "react"; import { render } from "@testing-library/react-native"; import { AppWrapper } from "../../../../tests/AppWrapper"; import { LiveTvMakesItBetter } from "../LiveTvMakesItBetter"; const MockComponent: React.FC = () => { return ( <AppWrapper> <LiveTvMakesItBetter /> </AppWrapper...
import { useEffect } from 'react'; import { useDispatch, useSelector } from 'react-redux'; import CircularProgress from '@mui/material/CircularProgress'; import Typography from '@mui/material/Typography'; import Link from '@mui/material/Link'; import Stack from '@mui/material/Stack'; import Avatar from '@mui/material/A...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Cynthia's Porfolio</title> <!-- Satoshi from fontshare --> <link href="https://api.fontshare.com/v2/css?f[]=satoshi@700,400&display=swap" rel...
import React, {useState, useEffect, useMemo} from 'react'; import {makeStyles} from '@material-ui/core/styles'; import Grid from '@material-ui/core/Grid'; import Typography from '@material-ui/core/Typography'; import Button from '@material-ui/core/Button'; import Dialog from '@material-ui/core/Dialog'; import DialogAct...
import React, { useEffect, useState } from 'react'; import { Table, Form, Input, Space, Button, message, Modal, Tag, Select } from 'antd'; import PageLayout from '../../layout/PageLayout'; import { doGet, doPost, doDelete, doPut } from '../../service'; // Adjust the path based on your project structure import TextEdito...
import 'package:emlak/screens/home_screen.dart'; import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; class BottomNavBarRiverpod extends ChangeNotifier { BuildContext? context; List<BottomNavigationBarItem> items = const [ BottomNavigationBarItem( icon: Icon( Cupertino...
import torch import torch.nn as nn import torch.nn.functional as F from torch.nn.utils.rnn import pad_sequence, pack_padded_sequence, pad_packed_sequence import torch from utils import CustomError class LSTM_attention(nn.Module): def __init__(self, vocab_size, embedding_dim, ...
/** * Works like the python zip function, but for only two arguments * * @param a the first array * @param b the second array * @returns an array of tuples of the corresponding elements in a and b */ export function zip<T, U>(a: Array<T>, b: Array<U>): Array<[T, U]> { if (a.length <= b.length) return...
# # 3D Spherical Gap Heat Transfer Test. # # This test exercises 3D gap heat transfer for a constant conductivity gap. # # The mesh consists of an inner solid sphere of radius = 1 unit, and outer # hollow sphere with an inner radius of 2. In other words, the gap between # them is 1 radial unit in length. # # The conduc...
# To pivot a weekly file coming in, where the last two columns are replaced each week # Structure of the file: # Store Nbr | Store Type Descr | City | State | Zip Code | 201938 POS Sales | 201938 POS Qty # Required format: # Week (2019xx) | Total Sales (Sum of POS Sales) | Total Qty (Sum of POS Qty) # At the top of th...
// SPDX-FileCopyrightText: 2017-2022 City of Espoo // // SPDX-License-Identifier: LGPL-2.1-or-later import classNames from 'classnames' import React from 'react' import ReactSelect, { Props } from 'react-select' import styled, { useTheme } from 'styled-components' import { scrollIntoViewSoftKeyboard } from 'lib-commo...
OCA objective Map 1. Java Basics 1.1 Define scope of variables 1.2 Define structure of Java class 1.3 Create executable Java application with main() 1.4 Import Java classes and make them accessible in your app 1.5 Compare and contrast features of Java 2. Working with Java...
## Vending Machine Capstone This was a capstone project completed for [Merit America's](https://meritamerica.org/) Fullstack Java Web Developer Bootcamp - A 31-week intensive program focused on Full Stack Web Application Development, including hands-on coursework in Java Development, Client-Server Programming (SQL +...
mysql> CREATE TABLE testing_table( -> name Char(20), -> contact_name Char(20), -> roll_no Char(20) -> ); Query OK, 0 rows affected (0.12 sec) mysql> INSERT INTO testing_table VALUES("Dilpreet","dp",103); Query OK, 1 row affected (0.00 sec) mysql> SELECT * FROM testing_table; +----------+--------------...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Document</title> <script src="https://unpkg.com/vue"></script> </head> <body> <div id="app"> <h1 style="background-color: skyblue">일반 스타일</h1> ...
import React from 'react'; import { standardTransitions } from '@/theme/constants'; import { Typography, useTheme } from '@mui/material'; import RouterLink from '@components/routerLink/RouterLink'; const homeBreadcrumb: Breadcrumb = { name: 'Home', path: '/', }; const Breadcrumb: React.FC<BreadcrumbProps> = ({ it...
package br.com.sysmap.bootcamp.domain.service; import br.com.sysmap.bootcamp.domain.entities.Users; import br.com.sysmap.bootcamp.domain.entities.Wallet; import br.com.sysmap.bootcamp.domain.exception.EntityNotFoundException; import br.com.sysmap.bootcamp.domain.repository.WalletRepository; import br.com.sysmap.bootca...
import { type tCalcPercentFromBasisPoint } from '../../interfaces'; /** * @alpha * @category Calculations * @name calcPercentFromBasisPoint * @param {tCalcPercentFromBasisPoint} args * @returns `number` - calculated percentage value * @description * Calculates the percentage value for a given basis point and nu...
import React from 'react' import { Formik, Form } from 'formik'; import * as Yup from 'yup'; import FormikControl from './FormikControl'; const FormikContainer = () => { const dropdownOptins = [ { key: 'Select an option', value: '' }, { key: 'Option 1', value: 'option1' }, { key: 'Option 2...
import { IsBoolean, IsNumber, IsString } from 'class-validator'; import { Transform } from 'class-transformer'; import { mapEnvironmentKeys } from 'src/env/utils'; export class Environment { @IsString() ENV: string; @Transform(({ value }) => Number(value)) @IsNumber() PORT: number; @IsString() DB_URI: ...
import React from "react"; import PropTypes from "prop-types"; import Row from "react-bootstrap/Row"; import SelectionCardColumn from "temp-library-components/cards/SelectionCardColumn"; import CenterLoadingIndicator from "components/common/loading/CenterLoadingIndicator"; import CenteredContentWrapper from "components...
<template> <div class="container"> <div class="chat-content"> <template v-if="chatList && chatList.length"> <div v-for="(chat, index) in chatList" class="message-box" :class="{'right-message': chat.user.id === userInfo.user.id}" :key="index" > ...
import React from 'react'; import PropTypes from 'prop-types'; import s from './ContList.module.css'; export default function ContactList({ onRemoveContact, contacts, filter }) { const filterName = contacts.filter(contact => { if (contact.name === undefined) { // eslint-disable-next-line array-callback-ret...
// // ViewController.swift // test_auth // // Created by User on 02.01.2023. // import UIKit import SnapKit class AuthenticationViewController: UIViewController { // MARK: - Properties let signUpViewController = SignUpViewController() let loginViewController = LoginViewController() let forgotPass...
import { Component, OnInit } from '@angular/core'; import { FetchServicesService } from 'src/app/services/fetch-services.service'; import { ActivatedRoute } from '@angular/router'; import { IRecipe } from 'src/app/shared/interfaces/recipe'; @Component({ selector: 'app-main', templateUrl: './main.component.html', ...
/* * MIT License * * Copyright (c) 2022 Nauman Khaliq */ package com.nk.we1.model.response.user import androidx.room.Embedded import com.squareup.moshi.Json import com.squareup.moshi.JsonClass @JsonClass(generateAdapter = true) data class Location ( @Embedded(prefix = "st") @Json(name = "street") var stre...
@smoketest @catalogManagement @catalog Feature: Catalog Brand Management Background: Given I sign in to CM as admin user And I go to Catalog Management @cleanupCatalog Scenario: Update, Edit, Delete new brand for an existing catalog Given I create a new catalog with following details | catalog...
import React from 'react' import { Button, Row, Col, Modal, Form } from 'react-bootstrap' import { showBlockModalChanged, blockTypeChanged, showBlockSampleChanged } from 'redux/webpageSlice' import { useSelector, useDispatch } from 'react-redux' import { RootState } from 'redux/store' import SelectHeadingAtomModal from...
/* * Copyright 2016 the original author or 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 applica...
import React, { useState, useEffect } from "react" import { v4 } from "uuid" import { db } from "../../../../firebase.config" import { doc, arrayUnion, updateDoc, addDoc, collection, getDoc, serverTimestamp, Timestamp, } from "firebase/firestore" import Spinner from "../../../../components/Spinner/Spi...
#include "TranslatorPluginTest.h" #include "generator/plugins/ClassPlugin.h" #include "generator/plugins/lua/LuaFunctionPlugin.h" class LuaFunctionPluginTest : public TranslatorPluginTest { protected: static void Run(TranslatedProject &project) { ClassPlugin(project, {}).Run(); LuaFunctionPlugin(project, {})...
import { Command, CommandRunner, Option } from 'nest-commander'; import { UserService } from 'src/services/user.service'; interface CreateUserCommandOptions { username: string; password: string; } @Command({ name: 'user:create' }) export class CreateUserCommand extends CommandRunner { constructor(private readon...
package com.greatlearning.student.services; import java.util.List; import javax.transaction.Transactional; import org.hibernate.HibernateException; import org.hibernate.Session; import org.hibernate.SessionFactory; import org.hibernate.Transaction; import org.springframework.beans.factory.annotation.Autowired; import ...
import os from typing import Dict, Optional import google.generativeai as genai import pandas as pd from mindsdb.integrations.libs.base import BaseMLEngine from mindsdb.utilities import log from mindsdb.utilities.config import Config logger = log.getLogger(__name__) class GoogleGeminiHandler(BaseMLEngine): """ ...
#ifndef HEADER_H #define HEADER_H #include <iostream> class Rectangle { int length, width; public: Rectangle(); Rectangle(int, int); Rectangle operator+(Rectangle &); Rectangle operator+(int); friend Rectangle operator+(int n,Rectangle&); // friend void operator<<(std::ostream os,...
import { WS_CONNECTION_CLOSED, WS_CONNECTION_ERROR, WS_CONNECTION_SUCCESS, WS_GET_ORDERS, } from "../actions/wsActions"; import { wsReducer } from "./wsReducers"; describe("Лента заказов", () => { const initialState = { wsConnected: false, wsError: false, orders: [], total: 0, totalToday:...
var baseExtremum = require('./internal/baseExtremum'), identity = require('./identity'), lt = require('./lt'); /** * Computes the minimum value of `array`. If `array` is empty or falsey * `undefined` is returned. * * @static * @memberOf _ * @category Math * @param {Array} array The array to iterate over...
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <title>Newsletter form</title> <link rel="stylesheet" href="css/normalize.css"> <link rel="stylesheet" href="css/style.css"> <link href="http...
--- title: REST API type: tags: - API - Database DateStarted: 2023-12-27 DateModified: 2024-04-17 status: --- ### REST API ![](https://cdn.jsdelivr.net/gh/jenniferwonder/bimg/full-stack/Pasted-image-20230308202339.png) - Representational State Transfer - Architecture style for designing network application - R...
import React from "react"; import { Link } from "react-router-dom"; import { Button, Icon, Item, Label, Segment } from "semantic-ui-react"; import { Book } from "../../../app/models/book"; import { format } from "date-fns"; import BookListItemAttendee from "./BookListItemAttendee"; interface Props { book: Book; } ex...
// SPDX-License-Identifier: MIT pragma solidity 0.8.13; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; //import {console2} from "forge-std/console2.sol"; contract BulkSender { using SafeERC20 for IERC20; error InvalidRecipient(); ...
'use strict'; module.exports = { async up (queryInterface, Sequelize) { await queryInterface.createTable('Books', { id: { allowNull: false, autoIncrement: true, primaryKey: true, type: Sequelize.INTEGER, }, title: { allowNull: false, type: Sequeli...
interface EventListener { (...args: any[]): void; } interface EventMap { [eventName: string]: EventListener[]; } class EventEmitter { private events: EventMap = {}; on(eventName: string, listener: EventListener): void { if (!this.events[eventName]) { this.events[eventName] = []; } this.events[eventName...
package com.baomidou.mybatisplus.extension; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.OrderItem; import com.baomidou.mybatisplus.core.toolkit.StringPool; import com.baomidou.mybatisplus.extension.mapper.MysqlBaseMapper; import com.baomidou.mybatisplus.toolkit.My...
import { useLoaderData } from 'react-router-dom'; import ProductsGrid from './ProductsGrid'; import ProductsList from './ProductsList'; import { useState } from 'react'; import { BsFillGridFill, BsList } from 'react-icons/bs' const ProductsContainer = () => { const {meta} = useLoaderData(); const totalProducts = m...
import { Component } from 'react' import { withRouter } from 'react-router-dom' import { bitcoinService } from "../services/bitcoinService" import { userService } from "../services/userService" class _HomePage extends Component { state = { userName: null, rate: null, } componentDidMount() ...
# String concatenation and f strings ## Key ideas - Using formatted strings - Concatenating strings ## String Concatenation and f-strings When there’s a variable we want to combine with a string to print out a message, so far we’ve added the strings with `+`. ```python name = "Mercy" print("Hello, " + name) # Hell...
// // MER.swift // MarsImagesIOS // // Created by Mark Powell on 7/28/17. // Copyright © 2017 Mark Powell. All rights reserved. // import Foundation class MER: Mission { let SOL = "Sol" let LTST = "LTST" let RMC = "RMC" let COURSE = "Course" enum TitleState { case START, ...
import React, { Component } from 'react' import './Menu.css' import escapeRegExp from 'escape-string-regexp' // Places Data class Menu extends Component { state = { query: '', places: this.props.places } updateQuery = (query) => { this.setState({ query }) let allP...
# FluxIO ## What is this? This library was created to support access to instance fields without the use of reflection. It includes the following features: - Fast search for instance fields - Direct access to instance fields without boxing/unboxing - Cost-free high-speed access to instance fields **And, this ...
package com.backend.IntegradorFinal.service.imp; import com.backend.IntegradorFinal.dto.DomicilioDto; import com.backend.IntegradorFinal.dto.PacienteDto; import com.backend.IntegradorFinal.entity.Paciente; import com.backend.IntegradorFinal.exceptions.BadRequestException; import com.backend.IntegradorFinal.exceptions....
Listas lista1 = ["Multimídia", 100, True] lista2 = [42, "Python", 3.14159, lista1] lista2.append(1.88) // Ultima posição add 1.88 lista2.insert(2,False) // Add false na posição 2 print("Elemento na posição 2 e 3:", lista2[2:4]) // 2 excluso, 4 incluso print("Último elemento:", lista2[-1]) // Pe...
/* * 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 ma...
import { it, describe, expect, beforeAll, beforeEach, afterAll } from "vitest" import { render, screen, waitFor, fireEvent } from '@testing-library/react' import { http, HttpResponse } from 'msw' import { stages } from '../../mocks/db' import { server } from '../../mocks/server' import Board from "." import { QueryC...
from django.contrib.auth.models import Permission from django.contrib.auth import get_user_model from django.db.models.signals import post_save, post_delete from django.dispatch import receiver from repair_core.models import RepairMan from repair_core.permissions import REPAIRMAN_DEFAULT_PERMISSIONS User = get_user_...
/* * Copyright (c) 2015, University of Oslo * * All rights reserved. * * * * Redistribution and use in source and binary forms, with or without * * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, this * ...
/* * This file is part of the ct-Bot teensy framework. * Copyright (c) 2019 Timo Sandmann * * 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, version 3. * * This program is distributed in ...
// sidebar const menuItems = document.querySelectorAll(".menu-item"); // messages const messageNotification = document.querySelector("#messages-notification"); const messages = document.querySelector(".messages"); const message = messages.querySelectorAll(".message"); const messageSearch = document.querySelector("#mes...
<!DOCTYPE html> <html lang="es"> <head> <meta charset="UTF-8"> <title>Vercrops</title> <!-- meta viewport sirve para que la pagina se adapte a cualquier dispositivo --> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <!-- link para importar imagen de icono --> <link rel="s...
package co.com.jorge.springboot.webflux.app.models.services; import co.com.jorge.springboot.webflux.app.models.documents.Category; import co.com.jorge.springboot.webflux.app.models.repository.CategoryRepository; import co.com.jorge.springboot.webflux.app.models.repository.ProductRepository; import co.com.jorge.springb...
import { Injectable } from '@angular/core'; import {HttpClient} from '@angular/common/http'; import {catchError, map, retry} from 'rxjs/operators'; import {UtilityService} from '../../services/utility.service'; import {Observable} from 'rxjs'; import {PagedDataModel} from '../../models/paged-data.model'; import {Consta...
import React, { useState, useEffect } from 'react'; import { getAllEvents } from '../api/events.api'; import { EventCard } from './EventCard'; export function EventList() { const [events, setEvents] = useState([]); const loadEvents = async () => { try { const res = await getAllEvents(); ...
import React, { useState } from 'react'; import './App.css'; function App() { const [point, setPoint] = useState(0); let increasePoint = () => { setPoint(point + 1); } let decreasePoint = () => { setPoint(point - 1); } let resetPoint = () => { setPoint(0); } return ( <div className=...
## 描述 引用[[@express-sessionExpressjsSessionSimple]]所描述的resave功能 > Forces the session to be saved back to the session store, even if the session was never modified during the request. Depending on your store this may be necessary, but it can also create race conditions where a client makes two parallel requests to your s...
package day05ternarystringmanipulations; import java.util.Scanner; public class Switch01 { public static void main(String[] args) { /* Ask user to enter country name among "America, England, Germany, Turkey, India, Peru, Spain, Bulgaria, Albania, France" Type code to print abbrev...
from sqlalchemy import create_engine, Column, Integer, String, Float from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import sessionmaker DATABASE_URL = "sqlite:///movies.db" engine = create_engine(DATABASE_URL) Base = declarative_base() Session = sessionmaker(bind=engine) session = Session...
import { useEffect } from "react"; import { useMsal } from "@azure/msal-react"; import { useNavigate } from "react-router-dom"; import Button from "@mui/material/Button"; import Paper from "@mui/material/Paper"; import Box from "@mui/material/Box"; import Grid from "@mui/material/Grid"; import logo from "../../assets...
import Task from "./Task"; import {useState} from "react"; import {Observer, observer} from "mobx-react-lite"; import {store} from "../store/store"; const Column = ({ item, dragStartHandler, dropHandler, dropCardHandler, ...
package com.personal.project.service; import com.personal.project.common.exception.CustomException; import com.personal.project.common.exception.ErrorCode; import com.personal.project.controller.studyboard.dto.request.StudyBoardRequest; import com.personal.project.controller.studyboard.dto.response.StudyBoardResponse;...
O ENVIO DE REQUESTS FUNCIONA, EM UM GERAL, EM NOSSO PROJETO AGORA DEVEMOS linkar ESSE ENVIO À NOSSA UI, porque isso é um pouco mais realista, algo que geralmente acontece em sites... PARA ISSO, TAMBÉM PRECISAMOS DE ACESSO À 'FORM'.... à form e ao bottão 'fetch posts'.... PARA ISSO VAMOS USAR OS CL...
#include<stdio.h> #include<iostream> #include<vector> #include<algorithm> #include<string> #include<string.h> #ifdef LOCAL #define eprintf(...) fprintf(stderr, __VA_ARGS__) #else #define NDEBUG #define eprintf(...) do {} while (0) #endif #include<cassert> using namespace std; typedef long long LL; typedef vector<int...
package com.dwsolutions.projectSPRING1.resources; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; import org.spr...
import css from './SearchBar.module.css'; import { Component } from 'react'; import PropTypes from 'prop-types'; export class SearchBar extends Component { state = { searchValue: '', images: [], }; handleSubmitForm = e => { e.preventDefault(); const search = this.state.searchValue; this.prop...
//首页的样式文件 @import "common"; // @import导入的意思 可以把一个样式文件导入到另外一个样式文件里面 // link是把一个样式文件引入到html页面里面 a{ text-decoration: none; } body{ min-width: 320px; width: 15rem; margin: 0px auto; margin: 0 auto; line-height: 1.15; font-family: Arial, Helvetica; background: #F2F2F2; } // 页面元素rem计算公式 页面元素...
import React from 'react'; import PropTypes from 'prop-types'; import { makeStyles } from '@material-ui/core/styles'; import Tabs from '@material-ui/core/Tabs'; import Tab from '@material-ui/core/Tab'; import Typography from '@material-ui/core/Typography'; import Box from '@material-ui/core/Box'; import Paper from '@ma...
import React, { useEffect } from "react"; import { HashRouter as Router, Route, Switch } from "react-router-dom"; import "bootstrap/dist/css/bootstrap.min.css"; import { Navigation } from "./components"; import { HomeView, HashView, BlockView, BlockchainView, DistributedView, TokensView, CoinbaseView, K...
<div class="sidebar" ngClass.gt-sm="desktop-height" ngClass.lt-md="mobile-height"> <div fxLayout="column"> <div class="sidebarHeader"> <app-story-component></app-story-component> </div> <div fxLayout="row" fxLayoutAlign="space-between center"> <div class="searchBox">...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Meta</title> <link rel="icon" href="./images/logo.jpg"> <link rel="stylesheet" href="https://max...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> {% if title %} <title> {{ title }} - Моя соц сеть </title> {% else %} <title> Моя соц сеть </title> {% endif %} </head> <body> <div>Моя соц сеть: <a href="{{ url_for('index') }}">Домашняя страница </a> <a href="{...
import React from 'react' import { graphql } from 'gatsby' import Img from 'gatsby-image' import styled from 'styled-components' import { animated, useSpring, config } from 'react-spring' import Layout from '../components/layout' import GridItem from '../components/grid-item' import SEO from '../components/SEO' import ...
import React, { useState } from 'react'; import { Button, TextField } from '@material-ui/core'; import './CreateFundraiser.css'; import { useNavigate } from 'react-router-dom'; const CreateFundraiser = () => { const [containerState, setContainerState] = useState({ title: '', description: '', profileImage...
import { HardhatRuntimeEnvironment } from "hardhat/types"; import { ABI, DeployFunction } from "hardhat-deploy/types"; import { deployments, ethers } from "hardhat"; import { OptionsFactory, Token, OptionsPool, SemiFungiblePositionManager, MockUniswapV3Pool, } from "../types"; import { grantTokens } from "../...
import axios from "axios"; const API_URL = "http://localhost:8000"; //------------------------------------------------------------------------ const updateTask = async (data) => { try { const res = await axios.put(`${API_URL}/update/${data._id}`, data); if (res.status === 200) { return { isSuccess: t...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Web Studio</title> <link rel="preconnect" href="https://fonts.googleapis.com" /> <link ...
class Solution(object): def maxArea(self, height): """ :type height: List[int] :rtype: int Input: height = [1,8,6,2,5,4,8,3,7] Output: 49 """ area = 0 start = 0 end = len(height) - 1 while start < end: area = max(area, min...
// Copyright 2024 The PipeCD 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 agree...
package storagemanager; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNull; import java.security.PublicKey; import java.util.ArrayList; import java.util.List; import javax.crypto.SecretKey; import org.junit.jupiter.api.BeforeEach; import org.junit....
<!DOCTYPE html> <html lang="pt-br"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" href="/Estilizando_Paginas_com_CSS/aula1.css"> <title>Páginas Web com HTML.</title> </head> <body> <header> <h1>Páginas Web com HTM...
import { BrowserRouter, Routes, Route } from "react-router-dom" import Footer from "./components/Footer" import Navbar from "./components/Navbar" import About from "./pages/about/About" import Contact from "./pages/contact/Contact" import Gallery from "./pages/gallery/Gallery" import Home from "./pages/home/Home" imp...
import React, { Component } from "react"; import { connect } from "react-redux"; import { StyleSheet, Text, View, TextInput, TouchableOpacity, KeyboardAvoidingView } from "react-native"; import { addDeck } from "../../actions/decks"; import { saveDeck } from "../../utils/api"; import { globalStyles } from "...
import time from copy import deepcopy from dataclasses import dataclass from enum import Enum from random import randint from pygame import constants from pygame.event import Event from game.settings import ( IMAGE_PLAYER_WIDTH, SCREEN_WIDTH, WALL_WIDTH, IMAGE_PLAYER_HEIGHT, SCREEN_HEIGHT, MAX...
package entities; import javax.persistence.*; import java.util.List; @Entity @Table(name = "curso") public class Curso { @Id @GeneratedValue private Long id; private String nome; private String sigla; @OneToOne(cascade = CascadeType.ALL) private MaterialCurso materialCurso; @ManyToMany...