text
stringlengths
184
4.48M
package com.example.clinic.service.impl; import com.example.clinic.domain.DoctorsEntity; import com.example.clinic.dto.DoctorsDto; import com.example.clinic.filter.DoctorsFilter; import com.example.clinic.repository.DoctorsRepository; import com.example.clinic.service.DoctorsService; import jakarta.persistence.EntityM...
import React, { useState } from "react"; import DashboardNavbar from "./DashboardNavbar"; import { Container, Row, Col } from "react-bootstrap"; import Form from "react-bootstrap/Form"; import { FiEdit } from "react-icons/fi"; import { faUpload } from "@fortawesome/free-solid-svg-icons"; import "react-toastify/dist/R...
#include <iostream> #include <vector> #include <algorithm> using namespace std; const int MAX_N = 100010; const int MAX_M = 200010; int n, m; vector<int> adj[MAX_N]; int deg[MAX_N]; int edges[MAX_M][2]; int weight[MAX_M]; pair<int, int> witems[MAX_M]; void read_input(){ cin >> n >> m; for (int i = 0 ; i <...
/* * 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...
from dataclasses import dataclass from enum import Flag from typing import Dict, List, Optional import zoti_graph.core as ty from zoti_graph.util import SearchableEnum, default_init, default_repr class Dir(Flag, metaclass=SearchableEnum): """ Bitwise flags denoting port directions. """ NONE = 0 # : 00 (for...
#!/usr/bin/python3 """ N-Queens Puzzle """ import sys def is_safe(board, row, col, N): """ >> Check for queens in the same column. """ for i in range(row): if board[i] == col or \ board[i] - i == col - row or \ board[i] + i == col + row: return Fa...
import React, {useEffect, useState} from "react"; import { Link } from "react-router-dom"; import Doctor from "./../images/doctor.jpg" const Card = ({ name, username, id, guardarElemento}) => { const cardData = { id, name, username }; const [guardado, setGuardado] = useState(false); useEffect(()=> { const c...
package entities; import java.io.Serializable; import java.util.List; import jakarta.persistence.CascadeType; import jakarta.persistence.Entity; import jakarta.persistence.FetchType; import jakarta.persistence.GeneratedValue; import jakarta.persistence.GenerationType; import jakarta.persistence.Id; import jakarta.per...
from collections import namedtuple from datetime import datetime, time from django import forms from django.utils.dateparse import parse_datetime from django.utils.encoding import force_str from django.utils.translation import gettext_lazy as _ from .conf import settings from .constants import EMPTY_VALUES from .util...
package qs.mp.demo.boundary; import io.quarkus.security.Authenticated; import jakarta.annotation.security.RolesAllowed; import jakarta.enterprise.context.RequestScoped; import jakarta.inject.Inject; import jakarta.ws.rs.GET; import jakarta.ws.rs.Path; import jakarta.ws.rs.Produces; import jakarta.ws.rs.core.Context; i...
/** * @license * Copyright (c) 2018 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt * The complete set of contributors may be f...
import PokeCard from "../PokeCard/PokeCard"; import Spinner from "../Spinner/Spinner"; import { selectAllPokemons } from "../../services/pokemonApi"; import { setPokemons, setCurrentPage } from "../../redux/slices/PokemonSlice"; import { useDispatch, useSelector } from "react-redux"; import { useEffect } from "react"; ...
use crate::common::random::Random; use crate::model::board::Board; use crate::model::expansion_result::ExpansionResult; use crate::model::tree::Tree; use crate::model::types::TreeNodeIndex; use crate::move_generator::legal_moves::generate_moves; use crate::move_generator::make_move::make_move; pub fn expand( tree:...
// Copyright 2021 The Brave Authors. All rights reserved. // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at https://mozilla.org/MPL/2.0/. import BraveUI import Foundation import Strings import Swi...
#include "variadic_functions.h" #include <stdlib.h> #include <stdio.h> #include <stdarg.h> /** * print_numbers - print numbers * @separator: string to be printed between numbers * @n: number of integers passed to the fonction */ void print_numbers(const char *separator, const unsigned int n, ...) { unsigned int ...
import * as React from 'react'; import AppBar from '@mui/material/AppBar'; import Box from '@mui/material/Box'; import CssBaseline from '@mui/material/CssBaseline'; import Divider from '@mui/material/Divider'; import Drawer from '@mui/material/Drawer'; import IconButton from '@mui/material/IconButton'; import InboxIcon...
import scrapy from scrapy.http import HtmlResponse from items import JobparserItem class SjruSpider(scrapy.Spider): name = 'sjru' allowed_domains = ['superjob.ru'] start_urls = ['https://www.superjob.ru/vacancy/search/?keywords=python&geo%5Bt%5D%5B0%5D=4'] def parse(self, response): links = r...
import React, { useEffect, useState } from "react"; import { ReactComponent as SearchIcon } from "assets/icons/search.svg"; import { fetchMovies } from "api"; import { createPortal } from "react-dom"; import Overlay from "components/overlay"; import { useSearchParams } from "react-router-dom"; function SearchInput({ s...
// import { Link } from 'react-router-dom' import React from 'react'; import Faq from "../Faq/index"; import { useNavigate } from "react-router-dom"; import "../../globals.css"; import { BookOpenIcon, ClockIcon, ChatBubbleBottomCenterIcon, FingerPrintIcon, } from "@heroicons/react/24/outline"; // import Chatbo...
import 'package:firebase_auth/firebase_auth.dart'; import 'package:flutter/material.dart'; import 'package:google_maps_flutter/google_maps_flutter.dart'; import 'package:cloud_firestore/cloud_firestore.dart'; import 'package:roadcare/pages/login/auth_page.dart'; import 'package:roadcare/pages//user/report_detail_page.d...
<?php namespace frontend\modules\admin\models; use yii\base\Model; use yii\data\ActiveDataProvider; use app\models\Brands as BrandsModel; /** * Brands represents the model behind the search form of `app\models\Brands`. */ class Brands extends BrandsModel { /** * {@inheritdoc} */ public function r...
import {Body, Controller, Get, Post, Req, Res} from "@nestjs/common"; import {Request, Response} from "express"; import {UsersService, LoginException, AuthInfo} from "./users.service"; export interface LoginResponse { type: "error" | "success"; content: string; } export interface LoginDto { login?: string...
// contracts/GLDToken.sol // SPDX-License-Identifier: MIT pragma solidity ^0.8.5; import "@openzeppelin/contracts-upgradeable/token/ERC20/extensions/ERC20SnapshotUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC20/presets...
from contextlib import asynccontextmanager from typing import AsyncIterator from fastapi import FastAPI from apps.dataset_processor.db_service import DatasetDbService from apps.dataset_processor.router import router as dataset_router from config.main import settings @asynccontextmanager async def lifespan(app: Fast...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Document</title> <style> div { width: 300px; height: 100px; margin: 10px; padding: 10px; border: 10px solid gre...
package com.bwell.sampleapp.repository import android.content.Context import androidx.lifecycle.LiveData import androidx.lifecycle.MutableLiveData import com.bwell.BWellSdk import com.bwell.common.models.domain.user.Person import com.bwell.common.models.responses.BWellResult import com.bwell.common.models.responses.Op...
import { useEffect, useState, useMemo } from "react"; import "react-datepicker/dist/react-datepicker.css"; import "./style/style.scss"; import CatItems from "./components/CatItems"; import CatFilter from "./components/CatFilter"; function App() { const [cashbackData, setCashbackData] = useState({}); // cashback co...
import { useEffect, useState } from 'react'; import './App.css'; import List from "./components/list/List"; import Form from "./components/form/Form"; import { Sub } from "./types" interface AppStates { subs: Array<Sub> subsNumber: number } const INITIAL_STATE = [{ nick: "sid", subMonths: 3, avatar: "htt...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Array</title> </head> <body> <h1>Belajar Javascript yokk</h1> <p>Array nih ya yg hari ini kita bahas</p> <script> let temansekelas = [ "Joni Gudel", "...
CREATE DATABASE futbol; USE futbol; CREATE TABLE equipos ( Id_equipo INT NOT NULL AUTO_INCREMENT, Nombre_equipo VARCHAR(45)NOT NULL, Numero_jugadores INT(5)NOT NULL, Fecha_fundacion DATE, Jugador_estrella VARCHAR(45)NOT NULL, PRIMARY KEY(Id_equipo) ); USE futbol; ALTER TABLE equipos ADD Color_camiseta VARCHAR(50) ...
package jdk8.demo02; import java.util.ArrayList; import java.util.List; import java.util.UUID; import java.util.concurrent.TimeUnit; /** * @author liuzhipeng * @description * @create 2019-12-24 11:00 */ public class D09_ParallelStreams { public static void main(String[] args) { int max = 1000000; ...
import { Button, Grid, Typography } from "@mui/material"; import { useTournament } from "../contexts/tournamentContext"; import { Player } from "../types/tournamentTypes"; import { Icon } from "@iconify/react"; import { DataGrid, GridColDef, GridLocaleText, GRID_DEFAULT_LOCALE_TEXT, GridActionsCellItem, Gri...
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreatePurchaseOrdersTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('purchase...
import React, { useState } from "react"; const MemberForm = ({ addMember }) => { const [isOpen, setIsOpen] = useState(false); const [name, setName] = useState(""); const [age, setAge] = useState(""); const [place, setPlace] = useState(""); const [email, setEmail] = useState(""); const handleOpenForm = () ...
package ref import ( "context" "errors" "fmt" "strings" "gitlab.com/gitlab-org/gitaly/v16/internal/git" "gitlab.com/gitlab-org/gitaly/v16/internal/git/localrepo" "gitlab.com/gitlab-org/gitaly/v16/internal/git/updateref" "gitlab.com/gitlab-org/gitaly/v16/internal/gitaly/storage" "gitlab.com/gitlab-org/gitaly/...
<script setup> import InputError from '@/Components/InputError.vue'; import InputLabel from '@/Components/InputLabel.vue'; import PrimaryButton from '@/Components/PrimaryButton.vue'; import TextInput from '@/Components/TextInput.vue'; import { useForm } from '@inertiajs/vue3'; import {onMounted, ref} from 'vue'; const...
import {Description, Runtime, SpawnOptions, Worker} from "@spica-server/function/runtime"; import * as child_process from "child_process"; import * as path from "path"; import {Writable} from "stream"; class NodeWorker extends Worker { private _process: child_process.ChildProcess; private _quit = false; private...
# Sorted Tree ## Difficulty: ![Filled](../resources/star-filled.svg) ![Filled](../resources/star-filled.svg) ![Outlined](../resources/star-outlined.svg) So far, we have constructed trees by manually adding subtrees to nodes. This can be rather tedious. We would like to just add elements to a tree and have the tree dec...
import * as React from "react"; import Card from "@mui/material/Card"; import CardHeader from "@mui/material/CardHeader"; import CardContent from "@mui/material/CardContent"; import CardActions from "@mui/material/CardActions"; import IconButton from "@mui/material/IconButton"; import Typography from "@mui/material/Typ...
from typing import Optional class Node: def __init__(self, x: int, next: 'Node' = None, random: 'Node' = None): self.val = int(x) self.next = next self.random = random def display(self): current_node = self while current_node.next: print(current_node.va...
# ---- formula primitives ----------------------------------------------------- assert_formula <- function(formula) { assert_is(formula,"formula") } #' @keywords internal is_one_sided_formula <- function(formula) { is(formula,"formula") & (length(formula) == 2) } #' @keywords internal is_two_sided_formula <- func...
// Copyright 2024 Google LLC // // 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 ...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Vue</title> </head> <body> <div id="app"> <cpn> <button slot="center">嘿嘿</button> </cpn> <cpn> <button slot="right"...
/* * 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. * * This program is distributed in the hope that it w...
Thursday October 20th 2016 Today's objectives are: Question words Numbers Possessive adjectives there is / there are this, that, these, those adjectives vidaingles.com/app QUESTION WORDS Use question words to ask for different things. what, when, who, where, which, how, how old, why use:...
/** * Sample React Native App * https://github.com/facebook/react-native * * @format */ import React from 'react'; import {PaperProvider} from 'react-native-paper'; import {NavigationContainer, DefaultTheme} from '@react-navigation/native'; import {ScoreProvider} from './context/ScoreContext'; import {RecoilRoot}...
// Copyright 2021-2022, Offchain Labs, Inc. // For license information, see https://github.com/OffchainLabs/nitro-contracts/blob/main/LICENSE // SPDX-License-Identifier: BUSL-1.1 // solhint-disable-next-line compiler-version pragma solidity >=0.6.9 <0.9.0; import "./IOwnable.sol"; interface IBridge { /// @dev Th...
import React, { FC } from 'react' import { Controller, SubmitHandler, useForm } from 'react-hook-form' import { connect } from 'react-redux' import useCSRF from '../../../hooks/useCSRF' import { register } from '../../../redux/reducers/authReducer/asyncActions' import { TDispatch } from '../../../redux/store' import { ...
import type { PropsWithChildren } from 'react'; import { useCallback, useContext, useEffect, useMemo, useState } from 'react'; import type { IThemeContext } from './theme-context'; import { ThemeContext } from './theme-context'; export default function ThemeProvider({ children }: PropsWithChildren) { const [theme, s...
import java.util.ArrayList; public class Flight { private ArrayList<Passenger> passengers; private Plane plane; private String flightNumber; private String destination; private String departureAirport; private String departureTime; public Flight(Plane plane, String flightNumber, String des...
import { createFastContext } from "./create-fast-context"; import styles from './context.module.css' const {Provider, useStore} = createFastContext({ first: "", last: "", }); const TextInput = ({value}: { value: "first" | "last" }) => { const [fieldValue, setStore] = useStore((store) => store[value]); ...
import React from 'react'; const TimestampConverter = ({ timestamp }) => { const months = [ 'jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug', 'sep', 'oct', 'nov', 'dec', ]; const formatDate = (dateString) => { const date = new Date(dateString); const...
/* This SQL script provides a comprehensive analysis of retail sales data, targeting the consumer electronics sector with a focus on monthly sales performance, customer behavior, and product pricing strategies. Through a series of meticulously crafted queries, it reveals insights into sales volume and revenue generatio...
// Link : https://leetcode.com/problems/set-matrix-zeroes // Code: class Solution { public: void setZeroes(vector<vector<int>>& matrix) { int n = matrix.size(); int m = matrix[0].size(); bool isRow = false; bool isCol = false; for(int i = 0;i < n;i++){ ...
import { Component, OnInit } from '@angular/core'; import { NgForm } from '@angular/forms'; import { Reservation } from 'src/app/models/reservation.model'; import { DateService } from 'src/app/services/date.service'; import { ErrorService } from 'src/app/services/error.service'; import { ScheduleService } from 'src/app...
/* eslint-disable react/style-prop-object */ /* eslint-disable react-hooks/exhaustive-deps */ import React, { Fragment, useEffect } from "react"; import { useDispatch, useSelector } from "react-redux"; import { getOneAction } from "redux/actions/actions"; import { getUserId } from "utils"; import * as actionType from "...
# WeBWorK problem written by Alex Jordan # Portland Community College # ENDDESCRIPTION ############################################## DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "parserNumberWithUnits.pl", ); ############################################## TEXT(beginproblem()); Context(...
package com.github.practice.controller; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation...
# t3-a1-workbook ## Introduction As a developer (dev) you are sometimes required to prove your knowledge to prospective clients and employers. ## Brief In order to demonstrate your understanding of fundamental software concepts, you will provide answers to a series of short answer questions. ## Q1 Provide an overvie...
import 'package:flutter/material.dart'; import 'package:google_fonts/google_fonts.dart'; import 'pages/HomePage.dart'; import 'pages/login_page.dart'; void main() { runApp(MyApp()); } class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( //home: Ho...
import { useEffect } from "react"; import { Navigate, Route, Routes, useLocation } from "react-router-dom"; import AdminRoutes from "routes/AdminRoutes"; import HomePage from "pages/Home"; import LoginPage from "pages/Login"; import AdministracaoPage from "pages/Administracao"; import AdicionarProdutoPage from "pages...
import React, {useEffect, useLayoutEffect} from 'react'; import useFetch from "theme/hooks/useFetch.js"; import useStateHandler from "theme/hooks/useStateHandler.js"; import usePagination from "theme/hooks/usePagination.js"; import useQueryFilter from "theme/hooks/useQueryFilter.js"; /** * Выполняет fetch запрос. * ...
import { ApplicationCommandData, ApplicationCommandType, ChatInputCommandInteraction } from "discord.js"; import { IArgData } from "../typings/interfaces/IArgData"; import { ICommandData } from "../typings/interfaces/ICommandData"; import getRealArgType from "../functions/getRealArgType"; import cast from "../functions...
package modelos; public class ContaCorrente extends Conta { private final Double TAXA = 2.0; @Override public void sacar(Double quantia) { Double total = quantia + calculaTaxa(quantia); if (quantia < getSaldo()) { this.setSaldo(total); System.out.println("Saldo ap...
package com.collection; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import java.util.ListIterator; public class ArrayListDemo { public static void main(String[] args) { // TODO Auto-generated method stub List<String> listObject=new ArrayList<String>(); listObject.add("Hello"...
<!-- vision.html --> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Vision Accessibility Feature</title> <!-- Link your vision-specific styles if needed --> <link rel="stylesheet" href="accessibility.css">...
#Created by Yamin Deng, Tao He, and Yuehua Cui et al. #This R code is designed for the paper #"Genome-wide gene-based multi-trait analysis" ######Gene-based analysis for single trait analysis############# rm(list=ls()) ################### # load packages ### ################### library(ttutils) library(methods) libr...
<?php namespace App\Http\Requests; use Carbon\Carbon; use App\Models\Sms; use App\Traits\EnsuresRolloutCompliance; use Illuminate\Foundation\Http\FormRequest; class ProcessScheduledImmediateRequest extends FormRequest { use EnsuresRolloutCompliance; /** * Determine if the user is authorized to make this...
import Services from "./Services"; class KycService extends Services { constructor(init) { super(init); this._name = "KYC"; return this; } // CREATE -------------------------------------------------------------------------------- /** * @function find - Gets one or many users (**Admins only**) ...
// // Created by pc on 2023/8/18. // #pragma once #include "Core/Vulkan.h" #include "Core/Images/ImageView.h" #include "Core/Images/Image.h" struct Mipmap { /// Mipmap level uint32_t level = 0; /// Byte offset used for uploading uint32_t offset = 0; /// Width depth and height of the mipmap ...
import { Injectable } from '@nestjs/common'; import { CreateCatDto } from './dto/create-cat.dto'; import { UpdateCatDto } from './dto/update-cat.dto'; import { InjectRepository } from '@nestjs/typeorm'; import { Cat } from './entities/cat.entity'; import { Repository } from 'typeorm'; @Injectable() export class CatsSe...
#include <stdio.h> #include "main.h" /** * _strncpy - Copies n bytes of src string. * @dest: destination. * @src: source string. * @n: number of characters. * Return: dest. */ char *_strncpy(char *dest, char *src, int n) { int i; i = 0; while (i < n && src[i] != '\0') { dest[i] = src[i]; i++; } while...
from openai import OpenAI import json from preprocess import remove_s, remove_newline from tqdm import tqdm import argparse # Modify the api key with yours client = OpenAI(api_key="OPENAI_API_KEY") parser = argparse.ArgumentParser(description='question answering script') parser.add_argument('--caption-file', type=st...
require 'rails_helper' describe "Static Pages" do describe "Home page" do it "should have the content 'Sample App'" do visit '/static_pages/home' page.should have_content('Sample App') end end describe "contactUs page" do it "should have the content 'contactUs'" do visit '/sta...
import {t} from 'sentry/locale'; import type {Sort} from 'sentry/utils/discover/fields'; import SortableHeader from 'sentry/views/replays/replayTable/sortableHeader'; import {ReplayColumns} from 'sentry/views/replays/replayTable/types'; type Props = { column: keyof typeof ReplayColumns; sort?: Sort; }; function H...
import sys import rclpy from rclpy.node import Node from rclpy.callback_groups import MutuallyExclusiveCallbackGroup from rclpy.executors import MultiThreadedExecutor from environment_interfaces.srv import Reset from f1tenth_control.SimulationServices import SimulationServices from ros_gz_interfaces.srv import SetEnti...
--- title: <frequency> slug: Web/CSS/frequency tags: - CSS - CSS Data Type - Data Type - Reference - Web browser-compat: css.types.frequency --- <div>{{CSSRef}}</div> <p> The <strong><code>&lt;frequency&gt;</code></strong> <a href="/en-US/docs/Web/CSS">CSS</a> <a href="/en-US/docs/Web/CSS/CSS_Types">d...
/* SimpleMQTTClient.ino The purpose of this exemple is to illustrate a simple handling of MQTT and Wifi connection. Once it connects successfully to a Wifi network and a MQTT broker, it subscribe to a topic and send a message to it. It will also send a message delayed 5 seconds later. */ #include "EspMQTTClien...
from Crypto.Cipher import AES from Crypto.Random import get_random_bytes def encrypt_aes(key, plaintext): cipher = AES.new(key, AES.MODE_ECB) padded_plaintext = _pad(plaintext) ciphertext = cipher.encrypt(padded_plaintext) return ciphertext def decrypt_aes(key, ciphertext): cipher = AES.new(key, A...
import React, { useState, useEffect, useContext } from "react"; import { BsPersonCircle } from "react-icons/bs"; import { Link, useNavigate } from "react-router-dom"; import { toast } from "react-hot-toast"; import { register } from "../api/user.api"; import { AuthContext } from "../context/AccountProvider"; function ...
import fs from "fs" import TOML from "@ltd/j-toml" import glob from "glob" import { getTemplate } from "./get_template.mjs" import { normalizeSiteProperties } from "./normalize_site_properties.mjs" import { mergeProperties } from "./merge_properties.mjs" import { showTomlSytaxError } from "./show_toml_syntax_error.mjs"...
/* * National Training and Education Resource (NTER) * Copyright (C) 2012 SRI International * * 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 2 of the License, or (at * you...
"use client"; import { motion } from "framer-motion"; import { useState } from "react"; const lineVariants = { large: { width: 80, backgroundColor: "white" }, small: { width: 40, backgroundColor: "#94a3b8" }, }; const textVariants = { large: { color: "white" }, small: { color: "#94a3b8" }, }; export const Ro...
import { Button } from '../../../../components/global/Button/Button'; import { Form } from '../../../../components/global/Form/Form'; import { Modal } from '../../../../components/global/Modal/Modal'; import { TextInput } from '../../../../components/global/inputs/TextInput/TextInput'; import { UseModal } from '../../....
import { useSession } from "next-auth/react"; import { Button } from "./Button"; import { ProfileImage } from "./ProfileImage"; import { useCallback, useLayoutEffect, useRef, useState } from "react"; import type { FormEvent } from "react"; import { api } from "~/utils/api"; import { updateTextAreaSize } from "~/utils/h...
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/sagemaker/model/UpdateHubRequest.h> #include <aws/core/utils/json/JsonSerializer.h> #include <utility> using namespace Aws::SageMaker::Model; using namespace Aws::Utils::Json; using na...
import { message, Modal, Typography } from 'antd' import songAPI from 'api/songAPI' import { changeValueCommon } from 'features/Common/commonSlice' import React from 'react' import { useMutation, useQueryClient } from 'react-query' import { useDispatch, useSelector } from 'react-redux' function SongModalUpdate() { c...
import * as s from './ContactList.styled'; // import PropTypes from 'prop-types' import { useDispatch } from 'react-redux'; import { useSelector } from 'react-redux'; import { deleteContact } from '../../redux/contacts'; import { selectVisibleContacts } from '../../redux/selectors'; export const ContactList = () =>...
def break_words(stuff): "This function will break up words for us!" words = stuff.split(' ') return words def sort_words(words): return sorted(words) def print_first_word(words): """print first word after popping it off """ word = words.pop(0) # pop = remove item from it position in the list,...
package com.herald.currencyapp.presentation.viewmodels import androidx.lifecycle.LiveData import androidx.lifecycle.MutableLiveData import androidx.lifecycle.ViewModel import androidx.lifecycle.viewModelScope import com.herald.currencyapp.common.Resources import com.herald.currencyapp.domain.models.CurrencyExchange im...
<!DOCTYPE html> <html lang="es"> <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>Pet Paradise - Home page.</title> <link rel="stylesheet" href="/css/styles.css"> <link...
#include <iostream> #include <fstream> #include <string> #include <unordered_map> int main(int argc, char * argv[]) { std::ifstream infile(argv[1]); // Input file named "strings.txt" if (!infile) { std::cerr << "Failed to open the input file." << std::endl; return 1; } // Using an uno...
import {BrowserModule} from '@angular/platform-browser'; import {NgModule} from '@angular/core'; import {AppRoutingModule} from './app-routing.module'; import {AppComponent} from './app.component'; import {environment} from '../environments/environment'; import {AngularFireModule} from '@angular/fire'; import {Angular...
/* Copyright (C) 2014-2017 de4dot@gmail.com This file is part of dnSpy dnSpy 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 numpy as np import tensorflow as tf from tensorflow.keras.preprocessing.text import Tokenizer from tensorflow.keras.preprocessing.sequence import pad_sequences from tensorflow.keras.models import Sequential from tensorflow.keras.layers import Embedding, LSTM, Dense # Загрузка данных из файла with open('training...
import { TestBed, getTestBed } from '@angular/core/testing'; import { HttpClientTestingModule, HttpTestingController } from '@angular/common/http/testing'; import * as moment from 'moment'; import { DATE_TIME_FORMAT } from 'app/shared/constants/input.constants'; import { CaseStatusDetailsService } from 'app/entities/ca...
#include <WiFi.h> #include <ESPAsyncWebServer.h> const char * apSsid = "Smart Config NBY"; const char * apPassword = "12345678"; AsyncWebServer server(80); const String html = "<!DOCTYPE html><html lang=\"en\"><head><meta charset=\"UTF-8\"><meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\"><meta name=\"viewpor...
package com.emirtemindarov.tablesapp.games import androidx.room.* import kotlinx.coroutines.flow.Flow @Dao interface GamesDao { @Upsert suspend fun upsertGame(game: Game) @Delete suspend fun deleteGame(game: Game) @Query("SELECT * FROM game") fun getGamesOrderedByDefault(): Flow<List<Game>> ...
<!DOCTYPE html> <html> <head> <link rel="stylesheet" href="https://cdn.bootcdn.net/ajax/libs/font-awesome/6.4.0/css/all.css"> <style> .item { float: left; margin-right: 16px; } .toolbar { margin: auto; padding: auto; width: 60...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. import assert from "assert"; import { RankedStorageAccountSet } from "../src/rankedStorageAccountSet"; describe("RankedStorageAccountSet", () => { describe("Input validation.", () => { it("Validate registerStorageAccount().", () =>...