text
stringlengths
184
4.48M
/* * Copyright 2017-2022 University of Padua, Italy * * 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 a...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>第十二课 建造圣殿</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <link rel="stylesheet" type="text/css" href="styleshee...
import 'package:flutter/material.dart'; import 'package:http/http.dart' as http; import 'dart:convert'; import 'package:shared_preferences/shared_preferences.dart'; import 'Product.dart'; import 'Cart_page.dart'; // Import de la nouvelle page du panier class ShopPage extends StatefulWidget { @override _ShopPageSt...
import Image from "next/image" import { invalidateQuery, useMutation, useQuery } from "@blitzjs/rpc" import { FC, useEffect, useRef, useState } from "react" import { Button, Flex, Text, Box, Input, Modal, ModalContent, ModalHeader, ModalBody, ModalCloseButton, ModalOverlay, ModalProps, HStack,...
<template> <div> <b-alert :show="export_alert" variant="success" @dismissed="export_alert = false"> <h6 class="alert-heading">Export request sent</h6> <h6> A CSV file will download shortly. </h6> </b-alert> <div style="max-height: 75vh; display: block; overflow-x: a...
package com.example.m015_room import android.os.Bundle import android.widget.Toast import androidx.activity.enableEdgeToEdge import androidx.activity.viewModels import androidx.appcompat.app.AppCompatActivity import androidx.core.view.ViewCompat import androidx.core.view.WindowInsetsCompat import androidx.core.widget....
import { expect, test } from "@playwright/test"; import { LOGIN_DATA, SAUCE_DEMO_URL, } from "../../../utils/fixtures/sauce-demo/constants"; import { LoginPage } from "../../../utils/fixtures/sauce-demo/pages/loginPage"; let loginPage; test("should block images on sauce-demo.com", async ({ page }) => { loginPag...
#include "search_algos.h" /** * linear_search - function that searches for a value in an * array of integers using the Linear search algorithm * @array: pointer to the first element of the array to search in * @size: the number of elements in array * @value: value to search for * * Return: Index where the value...
const axios = require('axios'); const { Client } = require('@elastic/elasticsearch'); const User = require('../models/userModel'); const config = require('../../config/config'); const client = new Client({ node: config.elasticsearchHost }); const syncEmails = async (userId) => { try { const user = await User.f...
import React from "react"; import "./App.css"; import Navigation from "./Navbar/Navigation"; import TweetList from "./Tweets/TweetList"; import Trending from "./Trending/Trending"; import { Container} from "react-bootstrap"; const mockTweets = [ { id: 1, avatar: "https://avatars1.githubusercontent.com/...
import { Component, OnInit } from '@angular/core'; import { FormBuilder, FormGroup, Validators } from '@angular/forms'; import { Router } from '@angular/router'; import { AuthserviceService } from '../../services/authservice.service'; @Component({ selector: 'app-login', templateUrl: './login.component.html', sty...
package nottodo.api.config.security.jwt import io.jsonwebtoken.Claims import io.jsonwebtoken.Jwts import io.jsonwebtoken.SignatureAlgorithm import io.jsonwebtoken.security.Keys import nottodo.api.config.security.jwt.dto.EmailAndSocialType import nottodo.persistence.rdb.domain.user.entity.SocialType import org.springfr...
import { CartService } from './../cart/cart.service'; import { ActivatedRoute, Router } from '@angular/router'; import { HttpClient } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { tap, take } from 'rxjs/operators'; import jwt_decode from 'jwt-decode'; import { BehaviorSubject } from...
package poo.PrimeiraProva; import java.util.Scanner; public class SistemaHotelPedro { static int quartosCriados = 0; static int idClientesCriados = 0; static Hotel hotelPedro = new Hotel("Pedro-Hotel", null, null); public static void main(String[] args) { Scanner entradaTeclado = new Scanner(...
const puppeteer = require('puppeteer'); const cheerio = require('cheerio'); const fs = require('fs'); require("dotenv").config(); // Log in to LinkedIn async function login(page) { await page.goto('https://www.linkedin.com/login'); await page.waitForSelector('#username'); // Enter the user's email address...
/* * Covid19-Simple-Graphs * Copyright (C) 2020 aleskandro * * 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 3 of the License, or * (at your option) any later version...
interface TextInputProps extends React.InputHTMLAttributes<HTMLInputElement> { name: string; label?: string; } const TextInput = (props: TextInputProps) => { const { label, name, ...rest } = props; return ( <div className="flex flex-col"> {label ?? <label htmlFor={name}>{label}</label>} <input ...
import { Image, ImageSourcePropType, StyleProp, Text, TouchableHighlight, View, ViewStyle, } from 'react-native'; import {commonstyle} from '../../../styles/common-style'; import {ImagePathMain} from '../../../utils/ImagePath'; import * as React from 'react'; import {commoncolor} from '../../../styles/com...
<div class="mx-4 grid mt-5"> <div class="col-12 sm:col-12 md:col-12 lg:col-9 xl:col-9"> <p-card header="Listado de Gastos" styleClass="p-2"> <p-table [value]="gastos" [paginator]="true" [rows]="5" [showCurrentPageReport]="true" [scrollable]="true" scrollHeight="flex" [tableStyle]...
const Agents = require("../models/Agent"); const Redeem = require("../models/Redeem"); const User = require("../models/User"); const UserSpendTransactionHistory = require("../models/UserSpendTransactionHistory"); const ApiFeatures = require("../utils/ApiFeatures"); const { giveresponse, asyncHandler } = require("../uti...
import numpy as np import matplotlib.pyplot as plt def simpleaxis(ax): ax.spines['top'].set_visible(False) ax.spines['right'].set_visible(False) ax.get_xaxis().tick_bottom() ax.get_yaxis().tick_left() def gaussian(x, mu, sig): return np.exp(-np.power(x - mu, 2.) / (2 * np.power(sig, 2.))) omega_0...
import React, { useEffect, useState } from "react"; import { useAuthState } from "react-firebase-hooks/auth"; import { useNavigate } from "react-router-dom"; import { Link } from "react-router-dom"; import { auth, sendPasswordReset } from "../../Firebase/Config"; import "./Reset.css"; function Reset() { const [email,...
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { RouterModule, Routes } from '@angular/router'; // Import RouterModule and Routes import { Assignment1Component } from './assignment1/assignment1.component'; import { Assignment2Component } from './assignment2/assignment2....
import { IsEmail, IsEnum, IsString } from "class-validator"; import { Role } from "../enum/role.enum"; import { ApiProperty } from "@nestjs/swagger"; export class UserSignin { @ApiProperty({ default: 'abc@gmail.com' }) @IsEmail() email: string; @ApiProperty({ default: 'test' }) @IsString() password: str...
/* 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 agreed to in writing, software distributed und...
// SPDX-License-Identifier: BSD-3-Clause pragma solidity ^0.8.10; contract GovernorEvents { /// @notice An event emitted when a new proposal is created event ProposalCreated(uint id, address proposer, address[] targets, uint[] values, bytes[] calldatas, uint startBlock, uint endBlock, string name, string desc...
import * as Yup from "yup"; import { ActionFormProps, ActionRenderers, BaseEventStateType, EventComponents, EventMeta, EventTypeInfo, } from "../../types"; import { ArrayField, Field, RandomUUIDField, SegmentedSelectField, SelectField, } from "../../formFields"; import { useFormikContext } from "f...
import 'package:flutter/material.dart'; class SecondaryButton extends StatelessWidget { const SecondaryButton( {super.key, required this.onPressed, required this.text}); final Function() onPressed; final String text; @override Widget build(BuildContext context) { return OutlinedButton( onPr...
import { NextResponse } from "next/server" import OpenAI from "openai" export async function POST(req) { try { const openai = new OpenAI({ apiKey: process.env.OPENAI_API_KEY, }) const payload = await req.json() console.log({ payload }) const response = await openai.chat.completions.create(...
@extends('layouts.frontend') @section('content') <div class="container"> <div class="row justify-content-center"> <div class="col-md-12"> <div class="card"> <div class="card-header"> {{ trans('global.create') }} {{ trans('cruds.transaction.title_singular') }}...
import { useContext, useState } from "react"; import "../css/Login.css"; import { Login_Error } from "../../../Util"; import { Login_S } from "../../../service"; import { useAxios } from "../../../Hook"; import { useNavigate } from "react-router-dom"; import { contextLogin } from "../../../Hook/Context/Context_Login"; ...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous"> </head> <body...
**PROJECT 1: Variational Autoencoder (VAE) Implemented on VAE 10000** **Project Overview** **Objective:** Implement a VAE for feature learning and image generation using 5K skin lesion images from the HAM10000 dataset. **Architecture:** The VAE comprises an encoder and decoder. The encoder transforms input images in...
package com.dovisen.dblog.controller; import com.dovisen.dblog.domain.post.Post; import com.dovisen.dblog.domain.post.PostDTO; import com.dovisen.dblog.domain.post.PostService; import jakarta.annotation.security.PermitAll; import jakarta.validation.Valid; import org.springframework.http.HttpStatus; import org.springfr...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright 2023 Google Research (main, core work; original source) # Copyright 2023 Emanuele Ballarin <emanuele@ballarin.cc> (minor edits; maintainance) # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this fil...
package cells_test import ( "context" "strconv" "testing" "github.com/brendoncarroll/go-state/cells" "github.com/brendoncarroll/go-state/cells/celltest" ) func TestDerived(t *testing.T) { celltest.TestCell(t, func(t testing.TB) cells.Cell[uint64] { c1 := cells.NewMem[string](cells.DefaultEquals[string], cell...
% Sin/Cos iteracynie/rekursywnie clear all; close all; % Wartości parametrów x0 = 0; % 0, pi/4; dx = pi/10; N = 100; % Odniesienie n = 0:N-1; x = x0 + n*dx; y1 = sin( x ); % Metoda iteracyjna #1 y(1) = sin( x0 - 2*dx ); y(2) = sin( x0 - dx ); a = 2*cos(dx); for n = 3 : N+2 y(n) = a*y(n-1) - y(n-2); end y...
import 'package:flutter/material.dart'; import 'package:fourscore/Component/FirebasePicture.dart'; import 'package:fourscore/Component/PhotoProfile.dart'; import 'package:fourscore/Component/Text/MyText.dart'; import 'package:fourscore/Component/myDialog.dart'; import 'package:fourscore/Student/Profile/ProfilePage.dart...
package com.ltl.opencartadminstrationback.controller; import at.favre.lib.crypto.bcrypt.BCrypt; import com.github.pagehelper.Page; import com.ltl.opencartadminstrationback.constant.ClientExceptionConstant; import com.ltl.opencartadminstrationback.dto.in.*; import com.ltl.opencartadminstrationback.dto.out.*; import com...
import React from "react"; import { getUserLocalStorage } from "../../../../../../utils/getUserLocalStorage"; import { IOpcionMultiple, IReactivo, OpcionesVerdaderoFalso, OpcionFalsoVerdadero, ReactivoBase, } from "../../../../interfaces/reactivo.interface"; import { useReactivosContext } from "../../context/...
package ilya.chistousov.countthefood.core.basefragment import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.fragment.app.Fragment import androidx.viewbinding.ViewBinding import java.lang.IllegalArgumentException abstract class BaseFragment<...
import { useMutation, useQuery } from '@apollo/client'; import { Button } from 'semantic-ui-react'; import { FOLLOW_USER, IS_FOLLOWING, UNFOLLOW_USER } from '../../../gql/follow'; import { IsFollowingQuery, User } from '../../../interfaces'; import './profileHeader.scss'; interface Props { user: User; authUser: Us...
# Creación de builders en clases TO Para la creación de los builders que se debe seleccionar el nombre de la clase To con el botón derecho del mouse, seleccionar la opción ![img.png](docs/images/builders/img.png) # Microservicio ubicación # Colección de postman En la carpeta docs/postman, se encuentra la colección d...
using Microsoft.Build.Framework; using Microsoft.Extensions.Logging; using System.Collections; using ILogger = Microsoft.Build.Framework.ILogger; namespace Belp.Build.Testing.Loggers; /// <summary> /// Captures events from MSBuild as <see cref="Diagnostic"/>s. /// </summary> public sealed class MSBuildDiagnosticLogg...
package it.unibs.ingesw; import java.util.ArrayList; public class Network implements IDNameGiver{ private ArrayList<Location> locations; private ArrayList<Transition> transitions; private ArrayList<Link> netLinks; private int netId; private String name; static int network_id = 0; //Variabile statica che f...
import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import '../../../../localization/language_constrants.dart'; import '../../../../utill/color_resources.dart'; import '../../../../utill/custom_themes.dart'; import '../../../../utill/dimensions.dart'; import '../../../../view/basewidget/cus...
package chaos.common.spell; import chaos.board.Cell; import chaos.board.World; import chaos.common.AbstractGenerator; import chaos.common.Actor; import chaos.common.Castable; import chaos.common.Caster; import chaos.common.State; import chaos.common.TargetFilter; import chaos.common.wizard.Wizard; import chaos.common....
<?php /** * Plugin Name: Blockmania * Description: A collection of editor blocks. * Version: 0.1.0 * Author: Tyler Kowalchuk * License: GPL-2.0-or-later * License URI: https://www.gnu.org/licenses/gpl-2.0.html * Text Domain: tk-blockmania * * @package tk-blockma...
import React, {useEffect, useRef, useState} from 'react'; import {useParams} from 'react-router-dom'; import {useClient} from "../hooks/useClient"; import ChatMessages from "../components/ChatMessages"; import Form, {FormRequestInput} from "../components/Form"; import BaseLayout from "./BaseLayout"; import {RoomRespons...
/* wdb - weather and water data storage Copyright (C) 2012 met.no Contact information: Norwegian Meteorological Institute Box 43 Blindern 0313 OSLO NORWAY E-mail: wdb@met.no This program is free software; you can redistribute it and/or modify it under the terms of the GNU Gene...
$(function(){ // 基于准备好的dom,初始化echarts实例 var echLeft=document.querySelector('.echarts_left') var echRight=document.querySelector('.echarts_right') var myChart = echarts.init(echLeft); //销量的柱状图 // 指定图表的配置项和数据 var option = { title: { text: '2018年注册人数' }, tooltip: {}, lege...
// // WXBPropertyWrapper.swift // WXBSwift // // Created by WeiXinbing on 2020/8/17. // Copyright © 2020 bing. All rights reserved. // import UIKit /// 将 String Int Double 解析为 String 的包装器 @propertyWrapper struct WXBString { public var wrappedValue: String public init(from decoder: Decoder) throws { ...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <script type="text/template" id="main"> <div id="box" :class="box"> <p>这是我的{{name}},很高兴认识你!</p> </div> </script> <div id="app"> <!--<component :is="role"></component>--> <admin :role="name"...
@import url("https://fonts.googleapis.com/css?family=Raleway:300,500,700"); @import './constants'; /* Global */ * { box-sizing: border-box; } body { color: #090b08; margin: 0; font-family: "Raleway", sans-serif; font-weight: 300; background-color: #ecffe9; } h1 { font-size: 1.7em; font-weight: 700; ...
Machine learning is a field of artificial intelligence that focuses on developing algorithms and models that allow computers to learn from data and make predictions or decisions without being explicitly programmed. ### Key Concepts - **Training Data**: Algorithms learn from a dataset called training data, which consi...
import {MdLocationOn} from 'react-icons/md' import {HiCalendar, HiLogout, HiMinus, HiPlus,HiSearch} from 'react-icons/hi' import { useEffect, useRef, useState } from 'react' import useOutsideClick from '../hooks/useOutsideClick' import 'react-date-range/dist/styles.css'; // main style file import 'react-date-range/dist...
import { useNavigate } from "react-router-dom"; import { useEffect, useState } from "react"; import LoginLight from "../../../assets/images/loginLight.jpg"; import { AiOutlineMail, AiOutlineEyeInvisible, AiOutlineEye, AiOutlineLock, AiOutlineMobile } from "react-icons/ai"; import authService from "....
#include <SFML/Graphics.hpp> #include <iostream> #include <fstream> #include <memory> class DShape { public: std::shared_ptr<sf::Shape> shape; float x = 0.0f, y = 0.0f; float speedX = 0.0f, speedY = 0.0f; sf::Text text; DShape(float x, float y, float speedX, float speedY) : x(x) ,y(y) , speedX(speedX) , spee...
const { Form, Button , Container, Row, Col, Table, ToggleButton, ToggleButtonGroup, Card, Alert} = ReactBootstrap; const maxEnergy = 2000; const minEnergy = 250 function PeriodicTablePage() { const [selectedElement, setSelectedElement] = React.useState(" "); return( <div> <PeriodicTable selectedElement...
<div class="d-none" id="docs-npm"> <h1>NPM</h1> <p><span class="fw-bold">npm</span> is two things: it is an online repository for publishing open-source Node.js projects. It is also a command-line utility for interacting with repositories that helps in package installation, version management, and dependency m...
// Write your code here import {Component} from 'react' import './index.css' class CoinToss extends Component { state = { Total: 0, Heads: 0, Tails: 0, imageURL: 'https://assets.ccbp.in/frontend/react-js/heads-img.png', } getHeadOrTail = () => { const tossResult = Math.floor(Math.random() * ...
package controller import ( "fmt" "github.com/deanchristt/order-service/dto" "github.com/deanchristt/order-service/entity" "github.com/deanchristt/order-service/helper" "github.com/deanchristt/order-service/service" "github.com/dgrijalva/jwt-go" "github.com/gin-gonic/gin" "net/http" "strconv" ) type ProductC...
'use client'; import Link from 'next/link'; import MenuIcon from '@mui/icons-material/Menu'; import { useEffect, useState } from 'react'; import ShoppingBasketIcon from '@mui/icons-material/ShoppingBasket'; import '@/styles/nav.css' function Nav() { const [showMenu, setShowMenu] = useState(false); const [isAd...
<template> <view class="login page bg__white"> <view class="page__bd page__bd_spacing"> <view class="weui-cells__tips">请绑定接收信息手机号</view> <form bindsubmit="loginBtnClick"> <view class="weui-cells__title">手机号</view> <view class="weui-cells weui-cells_after-title"> <view class="weui-cel...
Package in Java is a mechanism to encapsulate a group of classes, sub packages and interfaces. Packages are used for: * Preventing naming conflicts. For example there can be two classes with name Employee in two packages, college.staff.cse.Employee and college.staff.ee.Employee * Making searching/locating and usage ...
#include "dog.h" #include <stdio.h> #include <stdlib.h> /** *init_dog - function that initialize a variable of type struct dog * *@d: pointer to struct dog *@name: pointer to the var name *@age: pointer the to age *@owner: pointer the to owner */ void init_dog(struct dog *d, char *name, float age, char *owner)...
#Script from class exercise test4 <- read.csv("~/Documents/Dropbox/NASCAR Drive/Courses/EPSY 6220/test4.csv") View(test4) library(psych) #now that we have the psych package available, we can ask it to compute the reliability #of the data in test4.csv alpha(test4) #The next thing we would like to do is examine the fa...
create table customer ( id int primary key, first_name varchar(100) not null, last_name varchar(100) not null, city varchar(100), country varchar(100), phone varcha...
<a name="readme-top"></a> <!-- PROJECT SHIELDS --> <!-- *** I'm using markdown "reference style" links for readability. *** Reference links are enclosed in brackets [ ] instead of parentheses ( ). *** See the bottom of this document for the declaration of the reference variables *** for contributors-url, forks-url, et...
package com.poli.meets.mentorship.web.rest; import com.poli.meets.mentorship.domain.MeetingSlot; import com.poli.meets.mentorship.service.dto.MeetingSlotDTO; import com.poli.meets.mentorship.service.MeetingSlotService; import com.poli.meets.mentorship.service.dto.MeetingSlotPostDTO; import com.poli.meets.mentorship.s...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BookShopOnline.Core.Enums { public enum VoucherType { COUPONS = 0, DELIVERY = 1, } /// <summary> /// Tình trạng đơn hàng /// </summary> public enum ...
import { NavScreen } from "../screens/NavScreen"; import { PreNavScreen } from "../screens/PreNavScreen"; import { PauseScreen } from "../screens/PauseScreen"; import { PreGameScreen } from "../screens/PreGameScreen"; import { VictoryScreen } from "../screens/VictoryScreen"; import { SplashScreen } from "../screens/Spl...
<!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>PC Games Shop</title> <link rel="stylesheet" href="css/main.css"> <link rel="stylesheet" href="css/re...
import React from 'react'; import { jobPositions } from '../jobPosition'; const Experience = () => { const nameOfPositionStyle = `sm:text-xl text-lg font-bold mb-1`; const nameOfCompanyStyle = `mr-5 font-bold text-base sm:text-md text-sky-500 tracking-tight`; const period = ` text-slate-500 text-[10px] sm:text-[1...
import QtQuick import QtQuick.Layouts import QtQuick.Controls import "languages.js" as JS import BaseUI as UI import TaskList UI.AppStackPage { id: root title: qsTr("Settings") padding: 0 Flickable { contentHeight: settingsPane.implicitHeight anchors.fill: parent Pane { ...
package com.aurine.cloudx.open.api.inner.feign; import com.aurine.cloudx.open.common.entity.base.OpenApiHeader; import com.pig4cloud.pigx.common.core.util.R; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotati...
/******************************************************************************* * * $Id:: TermForm.java 293593 2017-09-29 16:36:45Z marinca $ * * . * . * * * RRRR * Copyright © 2012 OHIM: Office for Harmonization * * . RR R . in the Internal Market (trade marks and designs...
import React, { useState } from "react"; import { useNavigate } from "react-router-dom"; import { Box, Card, CardActions, CardContent, Collapse, CardMedia, Button, Typography, Rating, TextField, useTheme, } from "@mui/material"; import Header from "components/Header"; import { useGetBlogsQuery, us...
import React, {useState} from 'react'; import { Container, GithubLog, SearchForm } from './styles'; import { useNavigate } from 'react-router-dom'; import { ThemeName } from '../../styles/theme'; interface Props { themeName: ThemeName; setThemeName: (newName: ThemeName) => void; } const Header: React.FC<Props> ...
<template> <div id="reg-model"> <el-card class="box-card"> <h3 class="center">{{ $t("auth.register.title") }}</h3> <el-form autoComplete="on" ref="regForm" label-position="left" label-width="0px" class="card-box" :rules="rules" status-icon :model="form"> <el-form-item...
/* * DATAGERRY - OpenSource Enterprise CMDB * Copyright (C) 2024 becon GmbH * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any la...
"""untangledstrings URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/4.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Cl...
import 'dart:async'; import 'package:flutter/material.dart'; import 'package:flutter_application_1/View/navBar.dart'; class Splash extends StatefulWidget { const Splash({Key? key}); @override State<Splash> createState() => _SplashState(); } class _SplashState extends State<Splash> { double _scale = 1.0; @...
import React, { ChangeEvent, ReactElement } from "react"; import { CartItemType, ReducerAction, ReducerActionType, } from "../context/CartProvider"; type PropsType = { item: CartItemType; dispatch: React.Dispatch<ReducerAction>; REDUCER_ACTIONS: ReducerActionType; }; const CartItem = ({ item, dispatch, RE...
/* * The MIT License (MIT) Copyright (c) 2014 Ordinastie 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, me...
import request from "supertest"; import { Types } from "mongoose"; import app from "../../app"; import { natsClient } from "../../NatsClient"; import { Subjects } from "@nftickets/common"; import { Ticket } from "../../models"; const createTicket = (cookie: string[]) => request(app).post("/api/tickets").set("Cookie...
package com.soa.filter; import com.soa.dto.FilterQueryDto; import com.soa.exception.NotValidParamsException; import lombok.AllArgsConstructor; import org.springframework.stereotype.Service; import java.math.BigDecimal; @Service @AllArgsConstructor public class FilterService { public static void isValidRequestPar...
import React, {useEffect, useRef, useState} from "react"; import Header from "./header"; import {Route, Routes} from "react-router-dom"; import Home from "../pages/home"; import Products from "../pages/products/products"; import Footer from "./footer"; import 'bootstrap/dist/css/bootstrap.min.css'; import '../assets/c...
import { FocusEventHandler, InputHTMLAttributes, forwardRef, useState, } from "react"; import { ErrorMessage } from "./ErrorMessage"; import { v1 } from "uuid"; type InputProps = { label: string; errorMessage: string | undefined; } & InputHTMLAttributes<HTMLInputElement>; export const InputField = forward...
<a name="readme-top"></a> <div align="center"> <img src="logo.svg" alt="logo" width="240" height="auto" /> <br/> <h3><b>Lendsqr_fe_test README </b></h3> </div> # 📗 Table of Contents - [📗 Table of Contents](#-table-of-contents) - [📖 Lendqsr\_fe\_test ](#-lendqsr_fe_test-) - [🛠 Built With Typescri...
import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; const DonatedItem = ({ donation }) => { const { id, picture, title, price, category } = donation; return ( <div> <div className="card rounded-lg card-side bg-base-100 shadow-xl flex gap-3 items-center" style={{ b...
import { FileImageOutlined, MoreOutlined, SendOutlined, SmileOutlined } from "@ant-design/icons"; import { Avatar, Card, Col, Form, List, Row, Skeleton, Space, Input, Button, Select, Typography, theme, Tooltip, FormInstance } from "antd"; import { useEffect, useRef, useState } from "react"; import InfiniteScroll from ...
- [[#2.1 Introduction|2.1 Introduction]] - [[#2.2 The Landau-Ginzburg Hamiltonian|2.2 The Landau-Ginzburg Hamiltonian]] - [[#2.3 Saddle point approximation,and mean-field theory|2.3 Saddle point approximation,and mean-field theory]] ## 2.1 Introduction 上一章中我们说到,临界点的热力学函数可以通过一系列临界指数$\{\alpha,\beta,\gamma,\cdots \}$...
--- type: story layout: ../../layouts/StoryLayout.astro title: "Who builds a blog in 2022? Me" excerpt: I have no intention of making this story sound profound, leaving me with quite the herculean task—considering the profound journey it took to get to this point.. tag: non-technical draft: false pages: 0 author: Favou...
import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { GradoComponent } from './grado/grado.component'; import { RegistrarGradoComponent } from './registrar-grado/registrar-grado.component'; import { ActualizarGradoComponent } from './actualizar-grado/actualizar-grado...
import unittest from app.usecase.repo.user import create_account, authenticate from app.usecase.repo.account import rp_deposit, rp_send_money, rp_withdraw class TestUserAndAccountRepos(unittest.TestCase): def test_all_handlers(self): #Test Account Creation: Should be true when "Account Does Not Exists" sel...
using Microsoft.AspNetCore.Mvc; using System.Collections.Generic; using React.Models; // For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860 namespace React.Controllers { public class HomeController : Controller { private static readonly IList<...
package chapter10.section01 import java.io.BufferedReader import java.io.FileOutputStream import java.io.FileReader import java.io.PrintWriter /* 코틀린 표준 라이브러리(6) - use() - 보통 특정 객체가 사용된 후 닫아야 하는 경우가 생기는데 이때 use()를 사용하면 객체를 사용한 후 close() 등을 자동적으로 호출해 닫아 줄 수 있습니다. - 표준 함수의 정의 ...
import { PlusIcon, MinusIcon } from "@heroicons/react/24/solid"; import { useCtx } from "../../../../context/Ctx"; import { AddPaymentMethod } from "./add-categories"; import { PaymentMethodsListingsItems } from "./payment-methods-listings"; import { COLLECTIONS } from "../../../../utils/firestore-collections"; import ...
<template> <div> <h1>Search Gif</h1> <Search @gif-search="getGifs" /> <Loading v-if="loading" /> <div class="row"> <div v-for="gif in gifs" class="col-12 col-md-4 g-3" :key="gif.id"> <Card :gif="gif" /> </div> </div> </div> </template> <script> import Card from "../component...