text
stringlengths
184
4.48M
import React from "react"; import { IMG_URL, MOVIE_DETAIL_URL, options } from "../../../app/constants"; import styles from "./movie-info.module.scss"; import MovieCredits from "./movie-credits"; import Image from "next/image"; import getBase64 from "../../../utils/getBase64"; import LikeButton from "../../likes/like-b...
import pandas as pd import numpy as np import matplotlib.pyplot as plt import seaborn as sns from sklearn.cluster import KMeans import streamlit as st # Membaca data dari file CSV df = pd.read_csv('Mall_Customers.csv') # Mengganti nama kolom untuk kemudahan df.rename(columns={'Annual Income (k$)': 'Income', 'Spe...
import mock_catalyst #@UnusedImport from vocollect_core_test.base_test_case import BaseTestCaseCore from vocollect_core.scanning import ScanMode from vocollect_core.dialog.float_prompt import FloatPromptExecutor from vocollect_core.utilities import util_methods, class_factory, obj_factory from vocollect_core.dialog.fun...
import random from higher_lower_data import data from higher_lower_art import logo, vs def format_data(account): """ Takes the account data into printable format """ account_name = account["name"] account_descr = account["description"] account_country = account["country"] return f"{account_name}, a...
import { render, RenderResult, screen, fireEvent } from '@testing-library/react' import ActionButton, { ActionButtonProps } from '../ActionButton' describe('ActionButton', () => { const getProps = (): ActionButtonProps => ({ text: 'ANY_BUTTON_TEXT', onClick: jest.fn(), }) const renderActi...
<template> <div> <!-- <h1 class="header">通过您的ID登录</h1> <div id="hiddenContainer1" style="display:none;"></div> --> <div> <el-form label-width="100px" style="max-width: 460px;position: relative;margin: auto;"> <el-form-item label="账号" > <el-input type="tel" v-model="loginUsername" ...
/* * Nightfall - Real-time strategy game * * Copyright (c) 2008 Marcus Klang, Alexander Toresson and Leonard Wickmark * * This file is part of Nightfall. * * Nightfall 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 Sof...
// This file is a part of Chroma. // Copyright (C) 2016-2018 Matthew Murray // // 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 late...
import { faVolumeMute, faVolumeUp } from "@fortawesome/free-solid-svg-icons"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { useState } from "react"; type SpeechButtonProps = { text: string; }; const SpeechButton = ({ text }: SpeechButtonProps) => { const [isSpeaking, setIsSpeaking] = ...
import seedrandom from "seedrandom"; import { NumberLiteralType } from "typescript"; import { IHero, IResource, IStory } from "../storage/types"; import { addHero, selectHeroes, openAdventure, openStory, updateNPCs, addSpells, selectSpells, addResources, generateDeck, generateEnemy, generateEnemyD...
#include <stdio.h> #include <stdlib.h> // Chj: // This program does experiment as p89 suggests: we call __syncthreads() // for odd threads only, but NOT for even threads. Let's see whether // the "odd"(pun) __syncthreads() would freeze/hang. // // The code body is adapted from add_loop_gpu.cu . #include "../common/b...
import useForm from 'src/core/hooks/use-form'; import useSubmit from 'src/core/hooks/use-submit'; import { memo, useEffect, useState } from 'react'; import Modal from 'src/core/components/modal/modal'; import Form from 'src/core/components/form/form'; import Grid from 'src/core/components/grid/grid'; import Button from...
// SnakeGame.tsx import React, { useState, useEffect, useRef, KeyboardEvent } from 'react'; import './SnakeGame.css'; interface Snake { x: number; y: number; } interface Food { x: number; y: number; } const generateFoodPosition = (): Food => { const x = Math.floor(Math.random() * 10); const y = Math.floo...
import { Injectable } from '@angular/core'; import { HttpClient, HttpResponse } from '@angular/common/http'; import { Observable } from 'rxjs'; import { map } from 'rxjs/operators'; import dayjs from 'dayjs/esm'; import { isPresent } from 'app/core/util/operators'; import { ApplicationConfigService } from 'app/core/co...
package model import ( "testing" "github.com/stretchr/testify/assert" ) func TestCounterGetStringValue(t *testing.T) { tests := []struct { name string want string metric CounterMetric }{ { name: "pozitive number", metric: CounterMetric{Name: "", Value: 1}, want: "1", }, { name: ...
import { BottomSheetModalProvider } from '@gorhom/bottom-sheet'; import React, { Suspense } from 'react'; import { StyleSheet } from 'react-native'; import FlashMessage from 'react-native-flash-message'; import { GestureHandlerRootView } from 'react-native-gesture-handler'; import { SafeAreaProvider } from 'react-nativ...
import { ArrowLeft, Bell, Menu, Mic, Search, Upload, User } from "lucide-react"; import logo from "../assets/logo.svg"; import secondLogo from "../assets/logo-without-name.svg"; import Button from "./Button"; import { useState } from "react"; import { useSidebarContext } from "../contexts/SidebarContext"; const Header ...
import { IsNotEmpty, MaxLength } from 'class-validator'; import { Column, Entity } from 'typeorm'; import { AbstractEntity } from '../vendors/base/abstract.entity'; export enum OS { NA = 'N/A', IOS = 'iOS', ANDROID = 'Android', } export enum STATUS { AVAILABLE = 'Available', LEASED = 'Leased', BROKEN = 'B...
import { useContext, useState } from "react"; import AuthContent from "../components/Auth/AuthContent"; import { authenticate } from "../util/auth"; import LoadingOverlay from "../components/ui/LoadingOverlay"; import { Alert } from "react-native"; import { AuthContext } from "../store/auth-context"; function LoginScr...
######################################################################## # # # This software is part of the ast package # # Copyright (c) 1982-2012 AT&T Intellectual Property # # Copyright (c) 202...
package com.komorowskidev.tuicodechallenge.githubrepo.api import com.komorowskidev.tuicodechallenge.githubrepo.domain.GithubRepoService import com.komorowskidev.tuicodechallenge.githubrepo.domain.type.Repository import org.springframework.http.MediaType import org.springframework.web.bind.annotation.GetMapping import ...
import React, { useState } from "react" const ToBeDeleted=()=> { // React Hooks declarations const [searches, setSearches] = useState([]) const [query, setQuery] = useState("") const handleClick = () => { // Save search term state to React Hooks // Add the search term to the list onClick of Search but...
import request from 'supertest'; import jwt, { Secret } from 'jsonwebtoken'; import app from '../../app'; import { users } from '../../seeds/inmemDB'; import User from '../../models/dto/User'; import MockDB from '../../services/mockDbservice'; const db = new MockDB(); let adminToken: string; let simpleToken: string; ...
import React from 'react'; import { Link } from 'react-router-dom'; import { useEffect } from 'react'; import { useDispatch, useSelector } from 'react-redux' import SearchBar from '../SearchBar/SearchBar'; import { getAllGames, getGenres, setGenreFilter, setOriginFilter, setOrders } from '../../redu...
<!DOCTYPE html> <html lang="en"> <head> <!-- Required meta tags --> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <!-- Bootstrap CSS --> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="styleshe...
import UIKit class CommentBottomTextView: UITextView { // MARK: - Properties let placeholderLabel: UILabel = { let label = UILabel() label.font = UIFont.systemFont(ofSize: 16) //label.font = UIFont(name: "NanumMuGungHwa", size: 25) label.textColor = .darkGray label....
import Link from "next/link"; type Props = { title: String; description: String; date: String; slug: String; tags: String[]; }; function SinglePost(props: Props) { const { title, description, date, slug, tags } = props; return ( <Link href={`post/${slug}`}> <div className="p-7"> <div c...
/* * 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 required by app...
import { Body, Controller, Delete, Get, Param, Post, Query, UploadedFiles, UseInterceptors, } from '@nestjs/common'; import { FileFieldsInterceptor } from '@nestjs/platform-express'; import { ObjectId } from 'mongoose'; import { AlbumService } from './album.service'; import { CreateAlbumDto } from './...
"use client" import React from "react" import { zodResolver } from "@hookform/resolvers/zod" import { useForm } from "react-hook-form" import * as z from "zod" import { newsletter } from "@/lib/airtable" import { cn } from "@/lib/utils" import { Button } from "@/components/ui/button" import { Form, FormControl, ...
document.addEventListener('DOMContentLoaded', () => { const chatDisplay = document.getElementById('chat-display'); const messageForm = document.getElementById('message-form'); const messageInput = document.getElementById('message'); const termsModal = document.getElementById('terms-modal'); const a...
import * as RadixCollapsible from "@radix-ui/react-collapsible"; import { useCallback, useState } from "react"; import { collapsibleContentAnimation } from "./styles.css"; import type { ReactNode } from "react"; export type CollapsibleProps = { /** * Dialog content */ children: ReactNode | Array<Re...
using System.Collections.Generic; using UnityEngine; using System; using UnityEditor; using AstralCandle.Entity; using System.Linq; using AstralCandle.Animation; using UnityEngine.Events; /* --- This code has has been written by Joshua Thompson (https://joshgames.co.uk) --- --- Copyright ©️ 2024-2025 AstralCan...
import React from 'react'; import { CarContainer, HeaderContainer, LogoContainer, Menu, MenuOpenUser } from './style/HeaderStyle'; import Logo from '../../assets/logo/logo.svg'; import Burger from '../../assets/header/burger.svg'; import { Link } from 'react-router-dom'; import { GlobalCon...
// Copyright 2022 - 2023 Wenmeng See the COPYRIGHT // file at the top-level directory of this distribution. // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/licenses/LICENSE-2.0>, at your // option. This file may not be copied, modified, or distributed // except accordin...
import 'package:flutter/material.dart'; import '../common/mask_layer.dart'; /// 遮罩层 class MaskLayerWidget extends StatelessWidget { const MaskLayerWidget({ super.key, required this.maskLayer, }); final MaskLayer maskLayer; @override Widget build(BuildContext context) { return InkWell( on...
--- title: การจัดการภาพ linktitle: การจัดการภาพ second_title: Aspose.Page .NET API description: ค้นพบพลังของ Aspose.Page สำหรับ .NET ผ่านบทช่วยสอนการจัดการรูปภาพของเรา ครอบตัดและปรับขนาดภาพ EPS ได้อย่างง่ายดายเพื่อผลลัพธ์ที่น่าทึ่งและแม่นยำ type: docs weight: 26 url: /th/net/image-manipulation/ --- ## การแนะนำ คุณพร้อ...
import java.util.Scanner; abstract class shape__{ final double pi=3.14; Scanner sn=new Scanner(System.in); abstract void findArea(); } class Rectangle__ extends shape__{ int l,b; Rectangle__(){ System.out.print("Enter length and breadth : "); l=sn.nextInt(); b=sn.nextInt(); ...
# Retail Example As a result of having to invest in omnichannel capabilities during the pandemic, the retail industry should be better placed to integrate GAI into existing digital platforms. Such integration could be particularly important as companies look for new ways to differentiate and personalise products, ...
/** * https://leetcode-cn.com/problems/sort-colors/ * 颜色分类 */ /** * 【冒泡排序】 * ① 从头开始比较每一对相邻元素,如果第1个比第2个大,就交换它们的位置 * 执行完一轮后,最未尾那个元素就是最大的元素 * ② 忽略①中曾经找到的最大元素,重复执行步骤①,直到全部元素有序 */ let sortColors = function sortColors(nums: number[]): void { for (let i = 0; i < nums.length; i++) for (let j = nums.length ...
import React, { Component } from "react"; import { Switch, Route, Redirect } from "react-router-dom"; import { connect } from "react-redux"; import { HomePage } from "../pages/homepage"; import { ShopPage } from "../pages/shop"; import { SignInAndSignUpPage } from "../pages/SignIn_and_SignUp"; import { Header } from "...
/* eslint-disable key-spacing */ import { AggregateRoot } from '@nestjs/cqrs'; import { LiteralObject, Utils } from '@aurorajs.dev/core'; import { IamRoleId, IamRoleName, IamRoleIsMaster, IamRolePermissionIds, IamRoleAccountIds, IamRoleCreatedAt, IamRoleUpdatedAt, IamRoleDeletedAt, } fro...
// // Copyright 2020 Electronic Arts Inc. // // TiberianDawn.DLL and RedAlert.dll and corresponding source code 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 y...
import { v4 as uuidv4 } from 'uuid'; import { comparing, hashing } from '../utils/bcrypto'; import { IUser, IUserUpdate } from '../types/user.type'; import { User } from '../entities/User'; export class UserService { async findAll(): Promise<User[]> { return User.find(); } async delete(id: string): Promise<...
package cn.lzj66.service; import cn.lzj66.dao.ClassesDao; import cn.lzj66.dao.StudentDao; import cn.lzj66.dao.SubjectDao; import cn.lzj66.dao.TaskDao; import cn.lzj66.dao.TaskItemDao; import cn.lzj66.dao.TeacherClassesDao; import cn.lzj66.dao.TeacherDao; import cn.lzj66.entity.Classes; import cn.lzj66.entity.Student; ...
import { lz, lzc } from 'lazy-init' import type { LazyOptions } from '../src/options' const satisfiesOptions = (a: object, b: object, options: LazyOptions) => { const { cache = false, freeze = false } = options expect(Object.isFrozen(a)).toBe(freeze) expect(Object.isFrozen(b)).toBe(freeze) if (cache) { ...
const routes = [ { path: '/', component: () => import('layouts/MainLayout.vue'), children: [ { path: '', component: () => import('pages/IndexPage.vue'), name: 'index', meta: { requiresAuth: true } }, { path: '/item', component: () => import('pages/ItemsPage.vue'), name: 'items', meta: { requir...
<div align="center"> <img width="400px" src="https://github.com/minimal-lang/.github/assets/82233337/802b8cc5-03ba-42f3-bfff-a6808830e434"> # 𝙼𝚒𝚗𝚒𝚖𝚊𝚕 𝙻𝚊𝚗𝚐𝚞𝚊𝚐𝚎 𝙰 𝚗𝚎𝚠 𝚠𝚊𝚢 𝚝𝚘 𝚝𝚑𝚒𝚗𝚔 𝚊𝚋𝚘𝚞𝚝 𝚙𝚛𝚘𝚐𝚛𝚊𝚖𝚖𝚒𝚗𝚐. </div> > #### 𝚀𝚞𝚒𝚌𝚔 𝙰𝚍𝚟𝚒𝚌𝚎 > The language is under heavy de...
import 'package:hydrated_bloc/hydrated_bloc.dart'; import 'package:lets_go_with_me/core/util/network_Info.dart'; import 'package:lets_go_with_me/core/util/shared_preference_util.dart'; import 'package:lets_go_with_me/data/repositories/auth_repo.dart'; import '../../core/util/user_preferences.dart'; part 'auth_state.d...
<script setup lang="ts"> import { computed } from 'vue' interface Gradient { '0%'?: string '100%'?: string from?: string to?: string direction?: 'right'|'left' } interface Props { width?: number|string // 进度条总宽度 percent?: number // 当前进度百分比 strokeColor?: string|Gradient // 进度条的色彩,传入 string 时为纯色,传入 object...
import React, { useState } from "react"; import axios from "axios"; import { Link, useNavigate } from "react-router-dom"; export default function AddStaff() { let navigate = useNavigate(); const [staff, setStaff] = useState({ first_name: "", last_name: "", phone_number: "", email: "", role: ""...
import React, { useEffect, useState } from 'react'; import { fetchUser, fetchTrips } from "../api.js"; import { Link, useNavigate } from "react-router-dom"; import Navbar from "../components/Navbar/Navbar.jsx"; import Footer from "../components/Footer/Footer.jsx"; import TrajetProfil from '../components/Trajets/TrajetP...
// ArduinoJson - https://arduinojson.org // Copyright © 2014-2024, Benoit BLANCHON // MIT License #include <ArduinoJson.h> #include <catch.hpp> #include <sstream> #define SHOULD_WORK(expression) REQUIRE(DeserializationError::Ok == expression); #define SHOULD_FAIL(expression) \ REQUIRE(DeserializationError::TooDeep...
# KaziNasi KaziNasi is a web application designed to connect individuals seeking casual labor with available workers in their local area. The platform aims to simplify the process of finding and hiring workers for short-term tasks such as cleaning, gardening, moving, and more. ## Table of Contents - [Introduction](#...
import { StyleSheet, View } from "react-native"; import Text from "../utils/Text.jsx"; import React from "react"; import theme from "../../theme.js"; import ReviewActions from "./ReviewActions.jsx"; const styles = StyleSheet.create({ circle: { alignItems: "center", justifyContent: "center", borderRadius:...
const mangasData = require("../../infrastructure/mangas/data"); import { IMangaRepository } from "../../domain/repository/MangaRepository"; import { Manga } from "@/domain/entity/manga/model"; export class Mangas { constructor(readonly mangaRepository: IMangaRepository) {} public async getAllMangas(): Promise<any...
package com.study.security_bosung.web.controller.api; import java.io.IOException; import java.nio.charset.StandardCharsets; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import java.util.List; import org.springframework.beans.factory.annotation.Value; import org.springframework.co...
/* * 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 ...
/* * AMRIT – Accessible Medical Records via Integrated Technology * Integrated EHR (Electronic Health Records) Solution * * Copyright (C) "Piramal Swasthya Management and Research Institute" * * This file is part of AMRIT. * * This program is free software: you can redistribute it and/or modify * it under the terms...
import * as React from 'react'; import { Slider } from '@miblanchard/react-native-slider'; import { Button, StyleSheet, Text, View } from 'react-native'; import { ExcludeSystemGestureAreaView } from '../../src'; import { NavigationContainer, useNavigation } from '@react-navigation/native'; import { createStackNavigato...
/* * This code is released under Creative Commons Attribution 4.0 International * (CC BY 4.0) license, http://creativecommons.org/licenses/by/4.0/legalcode . * That means: * * You are free to: * * Share — copy and redistribute the material in any medium or format * Adapt — remix, transform, and ...
from transformers import AutoTokenizer, AutoModelForCausalLM,BitsAndBytesConfig,StoppingCriteriaList import transformers import torch from typing import Dict,List,Tuple from byzerllm.utils import (generate_instruction_from_history, compute_max_new_tokens,tokenize_stopping_sequences,StopSequencesCriteria) from typing i...
import { Injectable, OnDestroy } from '@angular/core'; import { webSocket, WebSocketSubject } from 'rxjs/webSocket'; import { Observable } from 'rxjs'; import { environment } from 'src/environments/environment'; import { WsEchoService } from './echo-ws.service'; import { Logger } from 'src/app/core/logger'; /* Exam...
#[starknet::interface] trait IHelloWorld<IContractState> { fn read_hello_world(self: @IContractState) -> felt252; fn write_hello_world(ref self: IContractState, new_message: felt252); } #[starknet::contract] mod contract { #[storage] struct Storage { hello_world: felt252, } #[construc...
<?php /* 1. Write a script to create XML file named “Teacher.xml”. <Department> <Computer Science> <Teacher Name>…</Teacher Name> <Qualification>….</Qualification> <Subject Taught>…</Subject Taught> <Experience>…</Experience> </Computer Science> </Department> Store the details of 5 teachers who are having qualification...
/** * 상태 : (offsetX, offsetY, size) = 좌표 (offsetX, offsetY)에서 시작하여 가로 길이와 세로 길이가 size인 정사각형을 압축했을 때 남아 있는 0과 1의 개수 * 종료 조건 : 상태가 나타내는 범위의 크기와 관계없이 범위 안 원소들이 모두 0이거나 1이면 하나의 수자로 압축 * - 0의 개수가 zero, 1의 개수가 one 이라면 * {0 : 1, 1 : 0} -> 모든 원소가 0 * {0 : 0, 1 : 1} -> 모든 원소가 1 * 점화식 : (offsetX, offsetY, size) = (offsetX,...
import { useState } from "react"; import Bookings from "./Bookings/Bookings"; import Restaurant from "../../assets/images/restaurant.jpg"; import SeasoningDish from "../../assets/images/seasoning-dish.jpg"; import WarningIcon from "../../assets/icons/warning.png"; import AsteriskIcon from "../../assets/icons/asterisk.p...
import React, { useEffect, useState } from "react"; // import { useDispatch, useSelector } from "react-redux"; import { useDispatch, useSelector } from "react-redux"; import Footer from "./Foot"; import "../index.css"; import { getTodos, handleCompleted, removeToDo } from "./TodoSlice"; function ToDoList() { cons...
import { TimelineOutlined } from "@mui/icons-material"; import { Box, Button, TextField, Typography, useMediaQuery, useTheme } from "@mui/material"; import { DataGrid } from "@mui/x-data-grid"; import axios from "axios"; import { Formik } from "formik"; import { useEffect, useState } from "react"; import { Notification...
""" Test module for file_to_dict.py Module contains test cases for the functions in file_to_dict.py using pytest. """ from file_to_dict import file_to_dict def test_file_to_dict(): """ Test if the text file is reads into dictionary. Examples: - Read a file into a dictionary ('dict.txt'). - Read a...
/* This file is part of Helio Workstation. Helio 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. Helio is distribut...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2016 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef BITCOIN_VALIDATIONINTERFACE_H #define BITCOIN_VALIDATIONINTERFACE_H #inc...
import "./App.css"; import { useState } from "react"; import { Routes, Route, useNavigate } from "react-router-dom"; import { getUser } from "../../utilities/users-service"; import Auth from "../AuthPage/AuthPage"; import NewOrder from "../NewOrderPage/NewOrderPage"; import OrderHistory from "../OrderHistoryPage/OrderH...
// Fill out your copyright notice in the Description page of Project Settings. #pragma once #include "CoreMinimal.h" #include "Components/ActorComponent.h" #include "SurvivalGame/Components/Inventory/Data/InventoryTypes.h" #include "SGInventoryComponent.generated.h" DECLARE_DELEGATE(FOnInventoryChangedSignature); U...
from art import logo import random cards = [11, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10] def choose_random_card(): card = random.choice(cards) return card def start_game(): player = [] computer = [] total_player_score = 0 total_computer_score = 0 print(logo) # Initial player.appen...
import 'package:fireauth/data/custom_widget_page.dart'; import 'package:fireauth/data/firebase_helper.dart'; import 'package:fireauth/screen/login_page.dart'; import 'package:flutter/material.dart'; class SingUpPage extends StatefulWidget { const SingUpPage({Key? key}) : super(key: key); @override State<SingUpP...
# forms.py from django import forms from django.core.exceptions import ValidationError class CourseFilterForm(forms.Form): search = forms.CharField(label='Search', required=False) # Add more filter fields as needed class Estilos(forms.TextInput): CSS = {'all': ('red_estilos.css')} class EstilosInput():...
import { useContext, useEffect } from "react"; import style from "./Drawer.module.scss"; import { Context } from "../../Context"; import { nanoid } from "nanoid"; import { Editor } from "react-draft-wysiwyg"; import "react-draft-wysiwyg/dist/react-draft-wysiwyg.css"; import { convertToHTML } from "draft-convert"; impor...
import React, { useEffect } from "react"; import "./AddedQuestions.css"; import { useNavigate } from "react-router-dom"; import { useCollection } from "../../hooks/useCollection"; import { useAuthContext } from "../../hooks/useAuthContext"; import { useStyles } from "../../hooks/useStyles"; import { useFirestore } from...
import java.util.Random; import java.util.List; import java.util.ArrayList; import java.util.stream.Collectors; //all stats here are as of the end of the 2023 season /** * This class simulates a 162-game baseball season for two different teams modeled after two different hitters.<br> These hitters have either the sam...
import { useRouter } from 'next/router' import { useConfig } from 'nextra-theme-docs' import Logo from "src/components/assets/logo"; import LogoFull from 'src/components/assets/logoFull'; // eslint-disable-next-line import/no-anonymous-default-export export default { logo: <span>Kreatifika Kitab ChatGPT</span>, ...
import { useGitHubAutomatedRepos, ProjectIcons, StackIcons } from 'github-automated-repos'; import { useTheme } from '../ui/theme-provider'; function GitHub() { const data = useGitHubAutomatedRepos("nerigleston", "deploy"); const { theme } = useTheme(); const isDarkTheme = theme === 'dark' || (theme ==...
> Все сочетания описаны для VS Code на Windows > ↓ / ↑ / ← / → — стрелки вниз, вниз и т.д. > ЛКМ / ПКМ / СКМ — левая, правая, средняя кнопки мышки соответственно. 1. **Shift + Tab** — сместить табуляцию на один шаг влево. Если вы пишете на Python, то табуляция или четыре пробела — ваш неизменный спутник. Но мало к...
<!DOCTYPE html> <html lang="zh-CN> <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,min-width:1.0,max-width:1.0,user-scalable:0 "> <title>Document</title> <style> div { /* 弹性布局 不需要浮动也能一排 这里是父盒子,可...
package es.uca.iw.views.Reclamaciones; import com.vaadin.flow.component.button.Button; import com.vaadin.flow.component.dialog.Dialog; import com.vaadin.flow.component.formlayout.FormLayout; import com.vaadin.flow.component.grid.Grid; import com.vaadin.flow.component.html.H2; import com.vaadin.flow.component.html.Span...
class MessageBox { constructor(typeMessage) { this.typeMessage = typeMessage this.durationId = null; } calcProgressBar() { let width = 100 this.durationId = setInterval(() => { this.progressBar.style.width = `${width}%`; if (width < 0) { ...
import React from 'react' import BaseModal from './BaseModal' import { FaTrash } from 'react-icons/fa'; import { IoClose } from "react-icons/io5"; import { Spinner } from '../Common'; interface Props{ open: boolean handleClose:()=>void; children: React.ReactNode; deleteAction: ()=>void; isLoading:b...
import React from 'react'; import {View} from 'react-native'; import styled from 'styled-components/native'; import {Theme} from '../theme'; interface Props { label: string; value: string | number; onChange: (text: string) => void; error?: string; style?: any; secure?: boolean; } const Input = ({ label...
import { CART_ACTION_TYPES, CartItem } from './cart.types'; import { createAction, ActionWithPayload, withMatcher } from '../../utils/reducer/reducer.utils'; import { CategoryItem } from '../categories/categories.types'; export const addCartItem = ( cartItems: CartItem[], cartItemToAdd: CategoryItem, cartItemToA...
use sodigy_intern::InternedString; use sodigy_parse::Punct; mod endec; mod fmt; #[derive(Clone, Copy)] pub enum PrefixOp { Not, Neg, } impl TryFrom<Punct> for PrefixOp { type Error = (); fn try_from(p: Punct) -> Result<Self, ()> { match p { Punct::Sub => Ok(PrefixOp::Neg), ...
// // NetworkErrorHandler.swift // Pods // // Created by Elliot Schrock on 9/11/17. // // import Foundation import ReactiveSwift public protocol ErrorMessage { var message: String { get } var forCode: Int { get } } public protocol NetworkErrorHandler { var disposable: ScopedDisposable<CompositeDisposa...
package com.strongit.oa.bo; import java.io.Serializable; import javax.persistence.CascadeType; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persistence.JoinColumn; import javax.p...
CKEDITOR.dialog.add( 'mathjaxDialog', function( editor ) { return { title : 'Math Input Dialog', minWidth : 400, minHeight : 200, contents: [ { id: 'input-tab', label: 'Eingabe', elements:[ { //input ele...
<!DOCTYPE html> <html lang="en"> {% load static %} {% load widget_tweaks %} <head> <meta charset="utf-8"> <meta content="width=device-width, initial-scale=1.0" name="viewport"> <title>Login</title> <meta content="" name="description"> <meta content="" name="keywords"> <!-- Favicons --> <link href="{% stat...
def dfs(): global cnt while stack: i, j, origin_d = stack.pop() if arr[i][j] == 0: # 현재 칸이 아직 청소되지 않은 경우, 현재 칸을 청소한다. arr[i][j] = -1 # -1은 청소 완료의 의미 cnt += 1 # 카운트 # 인접 칸 탐색 is_blank = False # 빈칸이 있는지 확인할 변수 for offset_d in range(...
//! Creation of archives are defined here use std::ops::Sub; use std::time::Instant; use borgbackup::asynchronous::CreateProgress; use borgbackup::common::{CommonOptions, CompressionMode, CreateOptions}; use borgbackup::output::create::Create; use byte_unit::Byte; use common::{CreateStats, ErrorReport, State}; use lo...
import { TokenAmount, Pair, Currency, ProtocolName } from '@amaterasu-fi/sdk' import { useMemo } from 'react' import { abi as IUniswapV2PairABI } from '@foxswap/core/build/IUniswapV2Pair.json' import { Interface } from '@ethersproject/abi' import { useActiveWeb3React } from '../hooks' import { useMultipleContractSingl...
<div class="grid-100 row controls"> <div class="grid-30"> <!-- TODO Add directives to the select elememt in order to populate the list with the categories from the database. You'll also need to add directives to handle when the user selects a new category so that you can refresh the recipes list...
Task: Напишите программу, которая будет преобразовывать переводы строк из формата Windows в формат Unix. Данные в формате Windows подаются программе в System.in, преобразованные данные должны выводиться в System.out. На этот раз вам надо написать программу полностью, т.е. объявить класс (с именем Main — таково ограниче...
# Electrónica IV - TP - Arquitectura de Computadora Este trabajo práctico debe realizarse en modalidad *individual*. *Plazo*: **1 Semana**. ## 1. Objetivos Al completar este trabajo habras estudiado y elaborado tus propias conclusiones sobre las siguientes cuestiones. 1. ¿Qué es una computadora? 2. ¿Qué es la arqu...