text
stringlengths
184
4.48M
import { Column, Entity, Index, OneToMany, OneToOne, PrimaryGeneratedColumn } from 'typeorm'; import { Account, AccountRelation, AccountRelationDocument, Contract, GeneratedDocument, Infringement, LeaseContract, ManualPayment, Nomination, TimeStamped, VehicleDocument, } from ...
--- title: Great Woocommerce Hero Section in 2023 – key elements draft: true author: WP-Tactics type: post date: 2023-04-16T12:44:09+00:00 url: /great-woocommerce-hero-section-site-2023/ rank_math_internal_links_processed: - 1 rank_math_seo_score: - 72 rank_math_focus_keyword: - woocommerce hero section rank_math...
import { MutableRefObject } from 'react'; type RefOrElem<E extends HTMLElement | null | undefined> = MutableRefObject<E> | E; export declare function getElement<E extends HTMLElement | null | undefined>(e?: RefOrElem<E>): E | null | undefined; interface ScrollToOptions { /** * Adds an extra few number of pixel...
import { useDispatch, useSelector } from "react-redux"; import { Link, useNavigate } from "react-router-dom"; import logo_utc2 from "../../assets/logo_utc2.png"; import { handleLogoutAdmin } from "../../redux/authAdmin/authAdminAction"; import CustomButton from "../../components/CustomButton"; const HeaderAdmin = () =...
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Panel } from 'react-bootstrap'; import { getPlayer } from '../../redux/player/playerActions'; import AddFriend from '../../components/Friend/AddFriend.jsx'; import './Player.scss'; /** * Player component * View /player/:id */...
// Copyright © 2019 NAME HERE <EMAIL ADDRESS> // // 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 ...
use std::ops::{Add, Mul, AddAssign, Index, IndexMut}; // クレート内のモジュールへのアクセスはcrate::で行う。 use crate::vector::*; use crate::One, Transpose}; use rand::Rng; use rand::distributions::{Distribution, Standard}; #[derive(Debug, Clone)] pub struct Matrix<T, const ROWS: usize, const COLS: usize> { pub data: [[T; COLS]; ROWS...
import { Directive } from '@angular/core'; import { AbstractControl, FormControl, NG_VALIDATORS, ValidatorFn, Validators } from '@angular/forms'; @Directive({ selector: '[appBiggerDayValidator]', providers: [ { provide: NG_VALIDATORS, useClass: BiggerDayValidatorDirective, multi: true } ...
import 'package:flutter/material.dart'; import 'package:skywatch/core/constants/constants.dart'; import 'package:skywatch/core/resources/resources.dart'; class WindSpeedAndHumidityWidget extends StatelessWidget { const WindSpeedAndHumidityWidget({ required this.windSpeed, required this.humidity, required...
import React, { useEffect, useState } from 'react' import axios from 'axios' import {Link} from 'react-router-dom' const ListaUsuario = () => { const [lista, setLista] = useState([]) useEffect(()=>{ const getUsuarios = async()=>{ const res = await axios.get('http://localhost:4000/api/usua...
import React from 'react'; import {Card, CardBody, CardFooter, Image, Skeleton, Badge} from "@nextui-org/react"; export default function TopSeller({title, slug, list, isLoading}) { let filterItems = list.filter(({attributes}) => attributes.region.data.attributes.slug === slug); return (<div className='co...
import { CircularProgress } from "@mui/material"; import { CardElement, useElements, useStripe } from "@stripe/react-stripe-js"; import React, { useEffect, useState } from "react"; import useAuth from "../../../hooks/useAuth"; const CheckoutForm = ({ orders }) => { const { price, name, _id } = orders; const { user...
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Campaign extends Model { protected $table = "campaigns"; protected $fillable = [ 'name', 'description', 'url', 'icon', 'screenshot', 'release_date', 'end_date', 'status_id', ...
import 'dart:convert'; import 'package:sqflite/sqflite.dart' as sql; import 'package:sqflite/sqflite.dart'; class SqlHelper { static Future<void> createTables(sql.Database database) async { await database.execute(""" CREATE TABLE IF NOT EXISTS recipes( recipe_id INTEG...
import 'package:sqflite/sqflite.dart'; import 'package:todo/features/dashboard/data/task_model.dart'; import 'package:path/path.dart'; class LocalStorage{ static Database? _database; Future<Database> get database async { if (_database != null) return _database!; _database = await init(); return _datab...
import React, { useState, useEffect } from 'react'; import Swal from 'sweetalert2'; import { registerUser, getUsers } from '../api/api'; interface Employee { username: string; email: string; rol: string; password: string; direccion: string; telefono: string; } const AddEmployee: React.FC = () ...
const { Schema, model } = require('mongoose'); const Joi = require('joi'); const { handleMongooseErrors } = require('../helper'); const emailRegexp = /^[a-z0-9]+@[a-z]+\.[a-z]{2,3}$/; const userSchema = new Schema( { name: { type: String, required: true, }, email: { type: String, ...
import { FastifyPluginAsync } from "fastify"; import { API_KEY, BASE_URL } from "../../config"; import { appIDSchema } from "./schema"; const lookups: FastifyPluginAsync = async (fastify, _opts): Promise<void> => { // Route to handle GET requests to retrieve app ID fastify.get("/appid", appIDSchema, async (_reques...
<template> <el-dialog :title="!dataForm.id ? '新增' : '修改'" :close-on-click-modal="false" :visible.sync="visible"> <el-form :model="dataForm" :rules="dataRule" ref="dataForm" @keyup.enter.native="dataFormSubmit()" label-width="80px"> <el-form-item label="评论人" prop="userId"> <el-input v-model="...
const Joi = require('joi'); const express = require('express') const helmet = require('helmet') const morgan = require('morgan') const config = require('config') const stratDebug = require('debug')('app:start') const dbDebug = require('debug')('app:db') const pug = require('pug') const logger = require('./logger') cons...
package com.example.schedule; import java.time.LocalDateTime; import org.springframework.beans.factory.annotation.Value; import org.springframework.scheduling.annotation.SchedulingConfigurer; import org.springframework.scheduling.config.ScheduledTaskRegistrar; import org.springframework.scheduling.support.CronTrigger...
<!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>Forms</title> </head> <body> <form onsubmit="savetoCrudstorage(event)"> <h2 style="text-align:c...
<!DOCTYPE html> <html lang="en" xmlns:th="http://www.thymeleaf.org"> <head> <meta charset="UTF-8" /> <title>Nuevo préstamo</title> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-KK94CHFLLe+nY2dmCWGMq91rCGa5gt...
@extends('layouts.app') @section('content') <div class="container"> <!-- Outer Row --> <div class="row justify-content-center"> <div class="col-xl-10 col-lg-12 col-md-9"> <div class="card o-hidden border-0 shadow-lg my-5"> <div class="card-body p-0"> ...
<!DOCTYPE html> <html lang="en" ng-app="toDoApp"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>AngularJs To Do App</title> <!-- Bootstrap CSS --> <link rel="stylesheet" href="https://maxcdn.bootstr...
import Document, { Head, Html, Main, NextScript } from 'next/document' import * as React from 'react' export default class MyDocument extends Document { render() { return ( <Html lang="en"> <Head> {/* PWA primary color */} {/* <meta name="theme-color" content={theme.palette.prim...
LISP AND SYMBOLIC COMPUTATION: An International Journal, 5:4, 295-326, 1992 cfl 1992 Kluwer Academic Publishers - Manufactured in The Netherlands Syntactic Abstraction in Scheme* R. KENT DYBVIG (dyb@cs.indiana.edu) ROBERT HIEB# CARL BRUGGEMAN (bruggema@cs.indiana.edu) Indiana University Computer Science Department Bl...
import React from 'react'; import { render, screen } from '@testing-library/react'; import { describe, test, expect } from "@jest/globals"; import Box from '../src/box'; describe('Box Component', () => { test('should render children', () => { render(<Box>Test</Box>); expect(screen.getByText('Test')...
<?php /** * Contains the progress-manager * * @package FrameWorkSolution * @subpackage progress * * Copyright (C) 2003 - 2012 Nils Asmussen * * 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 Fou...
import React from 'react'; import { useDispatch } from 'react-redux'; import { addToCart, removeToCart } from 'redux/carts/actions'; const PokemonsCardSmall = ({ pokemon }) => { const dispatch = useDispatch() const addOneQuantity = (e) => { e.stopPropagation() dispatch(addToCart(pokemon.pokemonId, pokemo...
import 'dart:io'; import 'package:collection/collection.dart'; import '../utils/day_interface.dart'; import '../solutions/index.dart'; void main(List<String> arguments) { //read arguments and assign them to variables String inputDay = ''; String parts = ''; final String argSeperator = '='; //initialize day...
""" Trainable lightning model classes and is mapped from :py:class:`fleet.torch_.schemas.TorchModelSpec` as well as auxiliary classes and functions. """ from typing import TYPE_CHECKING, Dict, List, Tuple, Union import lightning.pytorch as pl import networkx as nx import torch import torch.nn import fleet.exceptions ...
/* * Copyright (c) Facebook, Inc. and its affiliates. * * 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 applic...
/** @format */ import { forwardRef } from "react"; import { useDispatch, useSelector } from "react-redux"; import Snackbar from "@mui/material/Snackbar"; import MuiAlert from "@mui/material/Alert"; import { clearSnackbar } from "../../store/actions/ui.action"; const Alert = forwardRef(function Alert(props, ref) { ...
library(data.table) library(lubridate) library(readxl) source("private/hash_fn.r") source("R/outcome_functions.R") ### Script to build analysis dataset for table 5.2 in SAP - cohort of 'NHS111 contact' from outcomes found in previous script ## ID for demographics file used as single source of truth for attaching pat...
#!/usr/bin/env Rscript # NOTE: to install phyloseq, please use the following code instead of the usual "install.packages" function: if (!require("BiocManager", quietly = TRUE)) install.packages("BiocManager") BiocManager::install("phyloseq") library(phyloseq) library(ape) # importing trees library(tidyverse) library...
import { Box, Container, Typography } from "@mui/material"; import { Link, useNavigate } from "react-router-dom"; import { RegisterForm } from "../../components/RegisterForm"; import { useSigninCheck } from "reactfire"; export const RegisterPage = () => { const { data: signInData } = useSigninCheck(); const naviga...
#include<iostream> #include<string> using namespace std; class account { private : double balance; public : void set_bal(double bal); double get_bal(); bool deposite(double amount); bool withdraw(double amount); }; void account :: set_bal(double bal){ balance = bal; } double account :...
import { useState } from 'react'; import Card from 'src/components/card/Card'; import Button from 'src/components/button/Button'; import PackageTag from './PackageTag'; import PackageTextFeature from './PackageTextFeature'; import PackageApps from './PackageApps'; import BonusFeature from './BonusFeature'; import TikTo...
// Implementation with plain callbacks function emitRandomNumber(callback, attempt = 1) { const attempts = 10; console.log(`Attempt #${attempt}. emitRandomNumber is called.`); setTimeout(() => { console.log("2 seconds have lapsed."); let randomNumber = Math.floor(Math.random() * 100); ...
import { Popup } from "./Popup.js"; export class PopupWithForm extends Popup { constructor ({popupSelector, handleSubmit}) { super(popupSelector); this._handleFormSubmit = handleSubmit; this._popupForm = this._popup.querySelector('.popup__form'); this._inputList = this._popupForm.querySelectorAll('.p...
<div> <h2 id="page-heading" data-cy="CountyRecordLegalHeading"> <span>County Record Legals</span> <div class="d-flex justify-content-end"> <button class="btn btn-info mr-2" (click)="loadPage()" [disabled]="isLoading"> <fa-icon icon="sync" [spin]="isLoading"></fa-icon> <span>Refresh List...
<?php session_start(); if (!isset($_SESSION["emp_id"])) { header("Location: ../login"); } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Homepage</title> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/...
import Document, { Html, Head, Main, NextScript } from 'next/document' class MyDocument extends Document { static async getInitialProps(ctx) { const initialProps = await Document.getInitialProps(ctx); return { ...initialProps } } render() { return ( <Html> <Head> <link rel=...
<!doctype html> <html> <head> </head> <body> <h3>Look the console of your browser</h3> <div> This maker will allow you to easily create setters and getters for all the properties in a given object.<br/> The source code:<br/> <pre id='sc'></pre> ...
import type { GetStaticProps, NextPage } from "next"; import Head from "next/head"; import Link from "next/link"; import About from "../components/About"; import ContactMe from "../components/ContactMe"; import Header from "../components/Header"; import Hero from "../components/Hero"; import Projects from "../component...
package edu.hw4; import java.util.ArrayList; import java.util.List; import java.util.Map; import java.util.Optional; import java.util.Set; import java.util.stream.Collectors; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import static org.assertj....
// // Created by 21527 on 22/09/20. // #ifndef DETOUR_DEMO_FILEWINDOW_H #define DETOUR_DEMO_FILEWINDOW_H #include <windows.h> #include <QDebug> #include <QDialog> #include <QLabel> #include <QLayout> #include <QTextEdit> #include <QPushButton> #include <QDialogButtonBox> #include <QMessageBox> class FileWindow : pu...
/** * Copyright (C) 2022 The Android Open Source Project * * 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 req...
<template lang=""> <div class="app"> <Navbar></Navbar> <div class="row"> <div class="col-sm-4 offset-sm-4"> <div v-if="alert.message" :class="`alert ${alert.type}`">{{alert.message}}</div> </div> </div> <router-view></router-view> </div> </...
from django.shortcuts import get_object_or_404 from posts.models import Group, Post from rest_framework import filters, permissions, viewsets from rest_framework.pagination import LimitOffsetPagination from .permissions import IsAuthorOrReadOnly from .serializers import (CommentSerializer, FollowSerializer, GroupSeria...
import { DeleteIcon } from '@chakra-ui/icons' import { Box, Center, Flex, IconButton, Text, useColorModeValue, } from '@chakra-ui/react' import React from 'react' import { useDropzone } from 'react-dropzone' import type { FileUploadProps } from './FileUpload.types' export const FileUpload: Rea...
--- title: "LIA_MIA_Horizon_task_analysis" author: "Yuyan" date: "`r Sys.Date()`" output: html_document --- note: this script was copied from EXP analysis and needs to be updated for LIA/MIA analysis. The data files are ready in the processed_data/horizon_task folder under LIA_MIA_Analysis. So I can read them in direct...
import 'package:cv_checker/AppUtils/appColors.dart'; import 'package:cv_checker/AppUtils/lists.dart'; import 'package:flutter/material.dart'; import '../Services/commonService.dart'; class CandidateCard extends StatefulWidget { final String id; final String jobSeekerName; final String? email; final String? i...
#/*########################################################################## # Copyright (C) 2004-2023 European Synchrotron Radiation Facility # # This file is part of the PyMca X-ray Fluorescence Toolkit developed at # the ESRF. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of thi...
import * as uws from 'uWebSockets.js' import {HttpRequest, HttpResponse, us_socket_context_t} from 'uWebSockets.js' import {lstatSync, readdirSync} from "fs" import {resolve} from "path" import chalk from 'chalk' import {Client} from './client' import {clientsStore} from './clients-store' import {listenersStore} from '...
package com.dx.facade.report.param.report.profitandloss; import com.baomidou.mybatisplus.annotation.TableField; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import java.io.Serializable; import java.math.BigDecimal; import java.time.LocalDateTime; @Data /...
# Python Classes and Objectives Welcome to the Python Classes and Objectives project! This project is designed to help you understand the concept of classes in Python, a fundamental aspect of object-oriented programming (OOP). By the end of this project, you'll have a strong foundation in creating and using classes, a...
const router = require('express').Router(); const { Post, User, Comment } = require('../../models'); const sequelize = require('../../config/connection'); const withAuth = require('../../utils/auth'); router.get('/', async (req, res) => { try { const PostData = await Post.findAll({ attributes: ...
<?php declare(strict_types = 1); namespace PruebaTecnicaPh\Apps\Mb\Backend\Command\DomainEvents\RabbitMq; use PruebaTecnicaPh\Shared\Domain\Bus\Event\DomainEventSubscriber; use PruebaTecnicaPh\Shared\Infrastructure\Bus\Event\DomainEventSubscriberLocator; use PruebaTecnicaPh\Shared\Infrastructure\Bus\Event\RabbitMq\R...
--- title: Utwórz przypisania zasobów w Aspose.Tasks linktitle: Utwórz przypisania zasobów w Aspose.Tasks second_title: Aspose.Tasks API Java description: Dzięki temu samouczkowi krok po kroku dowiedz się, jak bez wysiłku tworzyć przypisania zasobów w Aspose.Tasks dla języka Java. Efektywne zarządzanie zasobami projekt...
using System; using System.Collections.Generic; using System.Linq; using Newtonsoft.Json; using z5.ms.common.attributes; namespace z5.ms.common.abstractions { /// <summary>Error model</summary> /// <remarks>https://wiki.axinom.com/display/PA/Error+Handling</remarks> [JsonObject(MemberSerialization.OptIn, ...
import React, { useState } from "react"; import { View, StyleSheet, Image, Text, Alert } from "react-native"; import {TextInput,Button} from 'react-native-paper' import Icon from 'react-native-vector-icons/MaterialCommunityIcons'; import { Formik } from 'formik'; import * as Yup from 'yup' import auth from '@react-nat...
<template> <Transition name="view"> <div v-if="showView"> <h4 class="view-name">{{ viewName }}</h4> <hr class="red"> <div class="row app-options-bar"> <div class="col buttons-component"> <ButtonBarComponent @onCreate="handleCreate" /> ...
package net.jenske.hyttebooking.controller; import jakarta.validation.Valid; import net.jenske.hyttebooking.controller.exception.ResourceNotFoundException; import net.jenske.hyttebooking.model.User; import net.jenske.hyttebooking.repository.UserRepository; import org.springframework.beans.factory.annotation.Autowired;...
# coding=UTF8 import threading import time import traceback from queue import Queue from typing import List from common.logger import logger from qqsdk.message import GeneralMsg, GroupMsg, GroupNudgeMsg from qqsdk.message.msghandler import MsgHandler Thread = threading.Thread class EventListener(Thread): inter...
import Link from "next/link"; import { graphql } from "../services/lib/graphql/generated"; import { FragmentType, useFragment, } from "../services/lib/graphql/generated/fragment-masking"; import Avatar from "./avatar"; import CoverImage from "./cover-image"; import DateComponent from "./date"; export const BlogPos...
import { useState, useEffect } from "react"; import { Box, Typography } from "@mui/material"; import { Videos } from "./"; import { useParams } from "react-router-dom"; import data from "../utils/data.json"; const SearchFeed = () => { const [videos, setvideos] = useState([]); const { searchTerm } = useParams(); ...
sqrt(x, /, out=None, *, where=True, casting='same_kind', order='K', dtype=None, subok=True[, signature, extobj]) Return the positive square-root of an array, element-wise. Parameters ---------- x : array_like The values whose square-roots are required. out : ndarray, None, or tuple of ndarray and None, optional ...
// Libraries import React from 'react'; // CSS import './index.styles.css'; interface IProps { className?: string; href?: string; children?: React.ReactNode; } const Link: React.FC<IProps> = ({ className = '', href = '', children = <></> }) => { const handleClick = (event: React.MouseEvent) => { event.pr...
import React from "react"; import type { AppProps } from "next/app"; import { ChainId, Web3sdkioProvider } from "@web3sdkio/react"; import Head from "next/head"; import Web3sdkioGuideFooter from "../components/guide/Web3sdkioGuideFooter"; import "./styles/globals.css"; // This is the chainId your dApp will work on. co...
package com.teamx.hatlyDriver.ui.fragments.wallet import android.os.Bundle import android.view.View import android.widget.AbsListView import androidx.core.content.res.ResourcesCompat import androidx.navigation.navOptions import androidx.recyclerview.widget.LinearLayoutManager import androidx.recyclerview.widget.Recycl...
//SPDX-License-Identifier: Unlicense pragma solidity ^0.8.0; import 'hardhat/console.sol'; import '@openzeppelin/contracts/access/Ownable.sol'; import '@openzeppelin/contracts/utils/cryptography/draft-EIP712.sol'; import '@openzeppelin/contracts/utils/cryptography/ECDSA.sol'; import '@openzeppelin/contracts/token/ERC2...
import { IReportSection, ReportSectionInfo } from "./baseHistoryReportSection"; import { PatienDataModelService } from "../../patienDataModelService"; import { ReportSectionNames } from "../../../constants/reportSectionNames"; export class AssessmentSection implements IReportSection { constructor(private patienDat...
# C 中的 textheight()函数 > 原文:[https://www.geeksforgeeks.org/textheight-function-c/](https://www.geeksforgeeks.org/textheight-function-c/) 头文件 graphics.h 包含 **textheight()** 函数,以像素为单位返回输入字符串的高度。 **语法:** ```cpp int textheight(char *string); ``` **示例:** ```cpp Input : string = "Hello Geek ! Have a good day." Output :...
Brand Identity Package _Cloudfuse Creations_ _Objectives_<br /> To design a fully operational identity package based off your logo. The identity package will include a letterhead, envelope and a business card. Be sure to use consistent design elements throughout the identity package and pay close attention to detail...
/** * Задача 4. * * Вручную создать имплементацию функции `some`. * Логика работы ручной имплементации должна быть такой-же, * как и у встроенного метода. * * Заметки: * - Встроенный метод Array.prototype.some использовать запрещено. * * Генерировать ошибки, если: * - В качестве первого аргумента был передан...
import { ColumnDef, flexRender, getCoreRowModel, getSortedRowModel, SortingState, useReactTable } from '@tanstack/react-table'; import { DeleteButton } from 'components/atoms/DeleteButton'; import { EditButton } from 'components/atoms/EditButton'; import { SortButton } from 'components/atoms/SortButton'; im...
import React, {useState} from 'react'; import { Container, Navbar, NavbarBrand, Nav } from 'reactstrap'; import {useHistory} from 'react-router-dom'; import './NavMenu.css'; import {FontAwesomeIcon} from "@fortawesome/react-fontawesome"; import {faUser} from "@fortawesome/free-solid-svg-icons"; import { faShoppingBag ...
namespace Result { export type Ok<T> = { readonly ok: true; readonly value: T }; export type Err<E> = { readonly ok: false; readonly error: E }; export type Result<T, E> = Ok<T> | Err<E>; export function ok<T>(t: T): Ok<T> { return { value: t, ok: true }; } export function err<E>(e: E): Err<E> { r...
package queryBuilder import ( "strconv" ) const ( ascending string = "ASC" descending string = "DESC" ) // Offset sets the 'OFFSET' clause // example: OFFSET 5 func (qb *QueryBuilder) Offset(offset uint32) { if offset == 0 { return } qb.query += "OFFSET" + " " + strconv.Itoa(int(offset)) + "\n" qb.clauses....
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" href="../public/styles.css"> <title>Chat</title> <style> body { font-family: Arial, sans-serif; background-col...
import React, { useState, useEffect, useContext } from 'react'; import { useNavigate } from "react-router"; import { styled } from '@mui/material/styles'; import Grid from '@mui/material/Grid'; import Paper from '@mui/material/Paper'; import Typography from '@mui/material/Typography'; import ButtonBase from '@mui/mater...
package baekjoon; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.StringTokenizer; public class Number11659 { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); ...
import React, { useState } from 'react'; import propTypes from 'prop-types'; import Swal from 'sweetalert2'; import { useSelector } from 'react-redux'; import connect from '../../axios/axios.config'; import base64ToRawFile from '../../utils/base64ToRawFile'; import createFormData from '../../utils/createFormData'; impo...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Assignment 5 - About Me </title> <meta name="author" content="Taylor Powell"> <meta name="description" content="This is my list assignment, naming my dogs!"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link re...
package com.bank.authorization.controller; import com.bank.authorization.dto.AuditDto; import com.bank.authorization.service.AuditService; import io.micrometer.core.annotation.Timed; import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.media.Content; import io.swagger.v3.oas.annotation...
import React, { useState } from 'react' import { Button, Card, Grid } from '@mui/material' interface IUserApi { profileUrl: string; userName: string; userCountry: string; userEmail: string; userPhone: string; handleChangeUser: () => void; } export function UserApi(props: IUserApi) { const...
package com.project.Fabo.service.impl; import java.util.Optional; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Service; import com.project.Fabo.entity.AddProductAdmin; import com.project.Fabo.entity.ClientProduct; import com.project.Fabo.repository.AddProductAd...
// import logo from './logo.svg'; import { BrowserRouter,Route,Routes } from 'react-router-dom'; import './App.css'; import Home from './Component/Home/Home'; import Nav from './Component/Nav/Nav'; import Login from './Component/LoginSignup/Login'; import Register from './Component/LoginSignup/Register'; import Courses...
using System.Security.Cryptography; using System.Text; using System.Text.Json; using API.Entities; using Microsoft.EntityFrameworkCore; namespace API.Data { public static class Seed { public static void SeedUsers(this DataContext dataContext) { if (dataContext.Users.Any()) return; /...
import React, { useContext, useEffect, useRef, useState } from 'react' import audioDb from './Data' // create context hook const appContext = React.createContext(); const AppProvider = ({ children }) => { const myRef = useRef(); let [songNum, setSongNum] = useState(0) const [songDetails, setSongDetails] =...
package com.fptu.exe.controllers; import com.fptu.exe.entities.AccountEntity; import com.fptu.exe.payload.request.LoginRequest; import com.fptu.exe.payload.response.BaseResponse; import com.fptu.exe.security.jwt.JwtHelper; import com.fptu.exe.services.LoginService; import com.google.gson.Gson; import io.swagger.v3.oas...
/* * Copyright (C) 2020 The Android Open Source Project * * 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...
package br.com.bln.estudospringbatch.application.commandline; import br.com.bln.estudospringbatch.adapter.gateway.repository.origem.PessoaRepository; import br.com.bln.estudospringbatch.application.utils.FileHelper; import br.com.bln.estudospringbatch.domain.entity.origem.PessoaEntity; import lombok.extern.log4j.Log4...
import { AuthorizationStatus } from '../../const'; import { AuthInfo } from '../../types/auth-info.props'; import { UserProcess } from '../../types/state.props'; import { checkAuthAction, loginAction, logoutAction } from '../api-actions'; import { userProcess } from './user-process'; describe('UserProcess Slice', () =...
package com.bfs.quizlet.controller; import com.bfs.quizlet.domain.User; import com.bfs.quizlet.service.LoginService; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PostMappi...
import 'package:flutter/material.dart'; class MyContainer extends StatelessWidget { final Color color; final Widget child; final Function()? onPress; MyContainer( {this.color = Colors.white, this.child = const Center(), this.onPress}); @override Widget build(BuildContext context) { return Gestu...
/* Basic_touchscreen_draw example for e-radionica Inkplate 6PLUS For this example you will need only USB cable and Inkplate 6PLUS Select "Inkplate 6PLUS(ESP32)" from Tools -> Board menu. Don't have "Inkplate 6PLUS(ESP32)" option? Follow our tutorial and add it: https://e-radionica.com/en/blog/add-inkplat...
/* 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 use this f...