text
stringlengths
184
4.48M
'use client'; import React, { useEffect, useState } from 'react'; import { Formik, Form, Field } from 'formik'; import formatTime from '@/app/helpers/time'; import { loadState, saveState } from '@/app/helpers/presist'; interface Props { questionsData: Question[]; currentQuestionId: number; remainingTime: number...
import React, { useState, useEffect } from "react"; import { useQuery } from "react-query"; import axios from "axios"; const retrievePosts = async () => { const response = await axios.get("https://jsonplaceholder.typicode.com/posts"); return response.data; }; const AxiosUseQuery = () => { const [startTime, setS...
// BinarySearch.jsx import React, { useState } from "react"; import VisualizeHeader from "../../../../Components/VisualizeHeader"; import "../../../../index.css"; import Description from "../../../../Components/Description"; import VisualizePageReplacement from "../../../Visualizations/VisualizePageReplacement"; con...
# Homeopathy Clinic Management System This project is a comprehensive management system for homeopathy clinics, developed using the Laravel framework. It streamlines various administrative and clinical processes, including patient registration, appointment scheduling, treatment history tracking, billing, and inventory...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # """evohome-async - validate the handling of vendor APIs (URLs).""" from __future__ import annotations import logging from http import HTTPMethod, HTTPStatus import pytest import pytest_asyncio import evohomeasync as evohome from evohomeasync.broker import URL_HOST # ...
--- permalink: online-help/reference-health-all-nodes-view.html sidebar: sidebar keywords: summary: 'The Health/Nodes inventory page enables you to view detailed information about the nodes in a selected cluster.' --- = Health/Nodes inventory page :icons: font :imagesdir: ../media/ [.lead] The Health/Nodes inventory ...
import { useFirestoreCollection } from "hooks"; import React, { useState } from "react"; import { createAndPostTweet } from "./utils/createAndPostTweet"; import { Tweet } from "types"; type TProps = { author: string; }; const TweetCreator = ({ author }: TProps) => { const [, , tweetsCollectionReferece] = useFiresto...
// SPDX-License-Identifier: AGPL-3.0-or-later /* solhint-disable one-contract-per-file */ pragma solidity ^0.8.8; import {PermissionLib} from "../../permission/PermissionLib.sol"; import {IPluginSetup} from "../../plugin/setup/IPluginSetup.sol"; import {PluginSetup} from "../../plugin/setup/PluginSetup.sol"; import {...
import 'dart:async'; import 'dart:io' as io; import 'package:android_intent_plus/android_intent.dart'; import 'package:android_intent_plus/flag.dart'; import 'package:extended_image/extended_image.dart'; import 'package:file_picker/file_picker.dart'; import 'package:file_saver/file_saver.dart'; import 'package:flutter...
/****************************************************************************** START Glitch hello-app default styles The styles in this section do some minimal CSS resets, set default fonts and colors, and handle the layout for our footer and "Remix on Glitch" button. If you're new to CSS they may seem a little comp...
import React, {useState} from "react"; import {useNavigate} from "react-router"; import s from "../Heroes.module.css"; import ImageSlider from "../../ImagesSlider/ImagesSlider"; //deck import card1 from '../../../images/heroes/beowulf-and-red-hood/beowulf/beowulf-deck/epic-poem.png' import card2 from '../../../images...
import Game from "./Game"; import LocalStorageWrapper from "../utils/LocalStorageWrapper"; import GameUtils from "./GameUtils"; import soundOnSrc from "/volume_up.svg"; import soundOffSrc from "/volume_mute.svg"; import { GAME_DIFFICULTY, GAME_MODE, PADDLE_POSITION, } from "../utils/constants"; import { BoxSize...
<?php namespace Modules\Stats\Providers; use Illuminate\Support\ServiceProvider; use Illuminate\Database\Eloquent\Factory; use Route; class StatsServiceProvider extends ServiceProvider { protected $defer = false; protected $moduleSvc; /** * Boot the application events. */ public function ...
/** * \file * \author Aznam Yacoub (aznam.yacoub@lis-lab.fr) * \date Sept. 9 2020 * \version 1.0 * \brief This file provides an implementation of the application. * \details This file implements the main application. */ /* Project Includes */ #include "../../../include/missionplanner/robot.hpp" #include "....
#ifndef __outputstream_h #define __outputstream_h #include <stdarg.h> #include "dmapiexport.h" /** * Simple interface that allows output to be written to the implementing object. */ class DMAPI_API IOutputStream { public: virtual void writeToStdOut(const char *fmt, ...) = 0; virtual void writevToStdOut(long t...
import React, { Component } from "react"; import { ImageSearch } from "./Searchbar"; import { ImageCard } from "./ImageGallery"; import { fetchImages } from "../services/api"; import { ImageModal } from "./Modal"; const ERROR_MSG = `Something went wrong, please reload the page`; export class App extends Component{ ...
"use client"; import { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator, } from "@/components/ui/dropdown-menu"; import { supabaseBrowser } from "@/lib/supabase/browser"; import { useState } from "react"; import { useRouter } from "next/navigation"; import { use...
/** * * Wrapper for props functions validating that they exist * and are actual functions before calling them. * * @param {Function} propFct Function to be tested / called * @param {String} fctName Name of the function (for logging purposes) * @param {String} compName Name of the component (for logging purposes)...
package org.ylan.service.impl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.google.common.collect.Queues; import jakarta.annotation.PostConstruct; import jakarta.annotation.PreDestroy; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.springframework....
package com.example.admin.arouterdemo.dialog; import android.app.Activity; import android.graphics.drawable.ColorDrawable; import android.support.v4.view.ViewPager; import android.view.Gravity; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.view.WindowManage...
<template lang="pug"> .curso-main-container.pb-3 BannerInterno .container.tarjeta.tarjeta--blanca.p-4.p-md-5 .titulo-principal.color-acento-botones(data-aos="flip-up") .titulo-principal__numero span 2 h1 Compositor p.mb-4 Los nodos de composición (figura1) permiten mejorar las ...
<!DOCTYPE html> <html lang="en" xmlns:th="http://www.thymeleaf.org"> <head th:replace="fragments/commons::head"> </head> <body> <header th:replace="fragments/commons::navigation"></header> <main role="main"> <div class="jumbotron"> <div class="d-flex justify-content-center h-100"> <div cla...
package com.shobhit97.filmflicks.feature_movie.presentation.util import com.shobhit97.filmflicks.feature_movie.data.dto.movie_details.ProductionCompanyModel import com.shobhit97.filmflicks.feature_movie.domain.model.movie_details.GenreModel import java.text.SimpleDateFormat import java.util.Locale fun String.toLangu...
"use client"; import { LoadingSpinner } from "@/app/_components"; import Modal from "@/app/_components/Modal"; import dynamic from "next/dynamic"; import NotFound from "./not-found"; import { useSingleCategoryHook } from "@/app/_category/[id]/SingleCategoriesHook"; import SingleCategoryRenderCandidate from "@/app/_com...
import React from "react"; import { useDispatch } from "react-redux"; import { Route } from "react-router-dom"; import { MortuaryUIProvider } from "./CoffinUIContext"; import { CoffinEditDialog } from "./coffin-edit-dialog/CoffinEditDialog"; import { CoffinDeleteDialog } from "./coffin-delete-dialog/CoffinDeleteDialog"...
#include<iostream> #include"Vehiculo.h" using namespace std; class Furgoneta : protected Vehiculo{ private: string carga; public: Furgoneta(string marca,string color,string modelo,string carga) : Vehiculo(marca,color,modelo){ this->carga = carga; } string getCarga(){ return carga; } string mostrarMarca...
import { useState, useRef, useEffect } from 'react'; import { Link, useNavigate } from 'react-router-dom'; import { useLogout } from '../../features/authentication/useLogout'; import Hamburger from 'hamburger-react'; import useOutsideClick from '../../hooks/useOutsideClickforNav'; import Button from '../Button'; import...
import 'package:flutter/material.dart'; class MyTextField extends StatelessWidget { final TextEditingController controller; final String hintText; final bool obscureText; final Widget? suffixIcon; // Nuevo parámetro para el icono al final del TextField const MyTextField({ Key? key, required this.con...
// implement MovieLibrary component here import React from 'react'; import PropTypes from 'prop-types'; import './components.css'; import AddMovie from './AddMovie'; import SearchBar from './SearchBar'; import MovieList from './MovieList'; class MovieLibrary extends React.Component { constructor(props) { super(p...
#include <stdio.h> #include <string.h> #include "3-calc.h" /** * get_op_func - check operator and select function * @s: operator char * Return: selected function or NULL */ int (*get_op_func(char *s))(int, int) { op_t ops[] = { {"+", op_add}, {"-", op_sub}, {"*", op_mul}, {"/", op_div}, {"%", op_mod}, ...
// Copyright (C) 2017 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause pragma ComponentBehavior: Bound import QtQuick //! [0] Window { id: window //! [0] width: 360 height: 640 visible: true Item { id: statesItem visible: false state...
//fazer entrada de dados notas de alunos cadastrar alunos e notas, exibir relatório de notas e alunos.exibir aprovado ou nao usando array e switch case.usar for e while. //biblioteca de entrada de dados. const prompt = require("prompt-sync")({ sigint: true }); let alunos = []; // array vazio. // menu para melhorar ...
import { WebSocketGateway, OnGatewayInit, OnGatewayConnection, OnGatewayDisconnect, SubscribeMessage, WebSocketServer, } from '@nestjs/websockets'; import { Logger, Controller } from '@nestjs/common'; import { Server } from 'socket.io'; import * as os from 'os'; import * as diskinfo from 'diskinfo'; @Contr...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" href="./CSS/style.css"> <link rel="preconnect" href="https://fonts.googleapis.com"> <link href="https://fonts.googleapis.com/css2?family=Poppins:wg...
package com.xili.loinfo.blog.controller; import com.xili.loinfo.blog.domain.Authority; import com.xili.loinfo.blog.domain.User; import com.xili.loinfo.blog.service.AuthorityService; import com.xili.loinfo.blog.service.UserService; import org.springframework.beans.factory.annotation.Autowired; import org.springframewor...
import React, { useContext } from "react"; import "./Card.css"; import { themeContext } from "../../Context"; const Card = ({ emoji, heading, detail, color }) => { const theme = useContext(themeContext); const darkMode = theme.state.darkMode; return ( <div className="card" style={{ border...
const LEVA_STRELICA = 37; const DESNA_STRELICA = 39; const SPACE = 32; const IGRA_SIRINA = 800; const IGRA_VISINA = 600; const IGRAC_SIRINA = 40; const IGRAC_MAX_BRZINA = 500; const LASER_MAX_BRZINA = 300; const LASER_COOLDOWN = 0.5; const NEPRIJATELJI_PO_REDU = 10; const NEPRIJATELJ_HORIZONTAL_PADDING = 80; const ...
import { HttpErrorResponse } from '@angular/common/http'; import { Component, OnInit } from '@angular/core'; import { MatSnackBar, MatSnackBarConfig } from '@angular/material/snack-bar'; import { ActivatedRoute, Router } from '@angular/router'; import { LoanApi } from 'src/app/api/loan-api'; import { LoanModel } from '...
package router import ( "fmt" "go-networking/ginh/file" "go-networking/ginh/global" "go-networking/ginh/helloworld" "go-networking/ginh/user" "go-networking/log" "time" "github.com/gin-gonic/gin" ) func InitRouter(r *gin.Engine) { log.Info("Init router") r.Use(gin.CustomRecovery(global.ErrorHandler)) r.Us...
const express = require ('express'); const app = express (); //captura de datos// app.use(express.urlencoded({extended:false})); app.use(express.json()); //invoco a dotenv// const dotenv = require ('dotenv'); dotenv.config({path: './env/.env'}); //directorio public// app.use('/resources', express.static('public'));...
/* LibISDB Copyright(c) 2017-2020 DBCTRADO 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 your option) any later version. This program is distr...
from pydantic import BaseModel, Field from typing import List, Dict, Any, Union class AddSource(BaseModel): file_link: str = Field(description="The link to the data source you wish to add") file_type: str = Field( description="The type of data source you wish to add. Currently the choices are Doc, Pdf...
<template> <div class="toolbar-container"> <div class="title" v-if="props.title">{{ props.title }}</div> <div class="button"> <el-space wrap> <el-button type="primary" v-if="state.refresh" @click="emits('refresh')"> <iconify-icon icon="ci:refresh" /> </el-button> <el-bu...
package common import ( "net/http" "net/url" "testing" "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "a.yandex-team.ru/portal/avocado/libs/utils/base/models" "a.yandex-team.ru/portal/avocado/libs/utils/staticparams" ) func TestHTTPRequestWrapper_i...
package rs.etf.sab.student; import rs.etf.sab.operations.TransactionOperations; import java.math.BigDecimal; import java.sql.*; import java.util.ArrayList; import java.util.Calendar; import java.util.List; public class TransactionOperationsImpl implements TransactionOperations { private static final Connection ...
package main import "fmt" // Define a struct named Book to represent book information. type Book struct { Title string Author string Year int } func main() { // Create a map to store information about books. library := make(map[string]Book) // Add books to the library. library["001"] = Book{"The Great Gat...
### # @format # ----- # Project: grand_theft_auto # File: install.py # Path: /install.py # Created Date: Sunday, December 3rd 2023 # Author: Jonathan Stevens (Email: jonathan@resnovas.com, Github: https://github.com/TGTGamer) # ----- # Contributing: Please read through our contributing guidelines. Included are directio...
<?php namespace App\Models\Models; use App\Traits\AttributeTrait; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use GuzzleHttp\Client; class Mercadolivre extends Model { use HasFactory, AttributeTrait; protected $fillable = [ 'access_token', 'token_ty...
import { rest } from 'msw'; import { IBoard } from '@interfaces/boards'; import { IJob } from '@interfaces/jobs'; const baseUrl = 'http://localhost:3001'; const boardsData: IBoard[] = [ { id: 1, name: "Lorna's Board", created: '2023-02-07T15:58:11.689Z', lastModified: '2023-03-10T12:41:14.930Z', }, { id:...
--*****PLEASE ENTER YOUR DETAILS BELOW***** --T1-mns-schema.sql --Student ID: 32729286 --Student Name: Daisuke Murakami --Unit Code: FIT2094 --Applied Class No: 2 /* Comments for your marker: */ -- Task 1 Add Create table statements for the white TABLES below -- Ensure all column comments, and constraints (othe...
'use client' import { useRouter } from 'next/navigation' import React, { useState } from 'react'; import { Menu, message } from 'antd'; import LoginForm from '../Forms/loginForm'; import PostForm from '../Forms/postForm'; import RegistrationForm from '../Forms/registrationForm'; import { useAuth } from '@/app/auth-cont...
import os from 'os' import { promisify } from 'util' import { chmod } from 'fs' import { filesystem, print, system } from 'gluegun' import { INSTALL_DIR, INSTALL_PATH, EXPORTS_FILE_PATH, getProfilePath, XSBUG_LOG_PATH, } from './constants' import upsert from '../patching/upsert' import { execWithSudo } from '...
/* * Created on 11-Feb-2004 at 23:30:01. * * Copyright (c) 2004 Robert Virkus / Enough Software * * This file is part of J2ME Polish. * * J2ME Polish 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; ei...
package org.sopt.mvvmdiaryexample.data.executor import android.os.Handler import android.os.Looper import java.util.concurrent.Executor import java.util.concurrent.Executors class DispatchExecutors( val ioThread: Executor = IoThreadExecutor, val mainThread: Executor = MainThreadExecutor, ) { companion obj...
#include <iostream> #include <list> int menu(); int* agregarArray(); void mostrarArray(int arrayNums[], int tamano); void continuar(); int busquedaLineal(int arrayNums[], int size, int buscado); int validarNum(); void cambiarLugar(int& a, int&b); int particionar(int arrayNums[], int bajo, int alto); void quickSort(in...
package com.simplefinance.feature.news.presentation.viewmodel import androidx.lifecycle.ViewModel import androidx.lifecycle.viewModelScope import com.simplefinance.common.model.ErrorEntity import com.simplefinance.common.ui.BaseUiModel import com.simplefinance.feature.news.data.model.News import com.simplefinance.feat...
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title></title> <style> td { font: 20px 宋体; width: 80px; background-color: white; } </style> <script type="tex...
import React, { useState } from 'react' import { KeyboardAvoidingView, View } from 'react-native' import { Button, HelperText, TextInput, Title } from 'react-native-paper' import { cores } from '../../../globalStyles' import { useHeaderHeight } from '@react-navigation/elements'; import API from '../../api/service' imp...
/* eslint-disable camelcase */ import { useCallback } from 'react' import { Contract } from '@ethersproject/contracts' import { PoHContractABI, UBIV2ContractABI, PoH_CONTRACT_ADDRESS, UBIv2_CONTRACT_ADDRESS, } from '@constants' import { useWallet } from '@hooks' const GAS_LIMIT = 200 * 21000 // const fetcher...
import { Actions } from "@/types"; import { CommandInteraction, InteractionType, SlashCommandBuilder, } from "discord.js"; import { member, role, server } from "./infos"; export const data = new SlashCommandBuilder() .setName("info") .setDescription("Info related commands") .addSubcommand((subcommand) => ...
from django.shortcuts import render, get_object_or_404, redirect from django.views import View from django.views.generic import CreateView, FormView, ListView, RedirectView from django.urls import reverse_lazy from django.contrib.auth import login, logout from datetime import datetime from django.contrib import message...
//Modules import _ from "lodash"; import React, { Component, ReactNode } from "react"; import { withRouter, Prompt, RouteComponentProps } from "react-router-dom"; import { Formik, Form, FormikHelpers, FormikProps } from "formik"; import { diff } from "deep-object-diff"; import { ObjectSchema } from "yup"; //Components...
import { FC, useState } from "react"; import Cards from "../components/Cards"; import { CustomDrawer } from "../components/Drawer"; import EmptyElement from "../components/EmptyElement"; import Menu from "../components/Menu"; import Modal from "../components/Modal"; import Table from "../components/Table"; import { use...
<?php namespace App\Http\Controllers; use App\Models\Category; use Illuminate\Http\Request; class CategoryController extends Controller { /** * Display a listing of the resource. */ public function index() { $categories = Category::all(); $data = [ 'categories' => $...
import { useRef, useState } from "react"; import React from 'react'; import { useAuth } from "../contexts/AuthContext"; import { Link, useNavigate } from 'react-router-dom' import { Form, Button, Card, Alert } from "react-bootstrap" function Login(){ const emailRef = useRef() const passwordRef = useRef() const ...
<html> <head> <title>Snake</title> <style> body{ display: flex; justify-content: center; align-items: center; height: 100vh; margin: 0; } canvas{ border:1px solid black...
export interface Forms{ name: string; url: string } export interface Sprites{ back_default: string; back_female: string; back_shiny: string; back_shiny_female: string; front_default: string; front_female: string; front_shiny: string; front_shiny_female: string; } export interfa...
import os import numpy as np from qgis.core import ( QgsProject, QgsPrintLayout, QgsTextFormat, QgsLayoutItemMap, QgsLayoutExporter, QgsStyle, QgsClassificationJenks, QgsGraduatedSymbolRenderer, QgsSymbol, QgsRendererRange, QgsLayoutItemLabel, QgsLayoutItemLegend, QgsMapLayerLegendUtils, QgsRectangle,Qg...
import 'dart:ffi'; import 'dart:ui'; import 'package:flutter/material.dart'; import 'package:planoclock/brain.dart'; import 'Constants.dart'; import 'package:intl/intl.dart'; class Home extends StatefulWidget { @override _HomeState createState() => _HomeState(); } class _HomeState extends State<Home> { final Da...
class ScatterPlot { constructor(data) { this.data = data; this.setup(); } setup() { this.data.forEach((d) => { d.x = +d.x; d.y = +d.y; }); const parentDiv = document.getElementById("ScatterPlotContainer"); const parentDivRect = parentDiv.getBoundingC...
/** * @file driver * @author jungkwang.lee (ntoskrnl7@google.com) * @brief * * @copyright Copyright (c) 2022 NT Template Library Authoers. * */ #pragma once #ifndef _NTDDK_ #include <wdm.h> #endif #ifndef ClearFlag #define ClearFlag(_F, _SF) ((_F) &= ~(_SF)) #endif #include "device" #include "except" #include ...
# The Array#zip method takes two arrays, # and combines them into a single array in which each element is a two-element array where the first element is a value from one array, # and the second element is a value from the second array, in order. # For example: [1, 2, 3].zip([4, 5, 6]) == [[1, 4], [2, 5], [3, 6]] #...
"use client"; import React, { useState, useRef, useEffect } from "react"; import { Toolbar } from "primereact/toolbar"; import { Button } from "primereact/button"; import { Dialog } from "primereact/dialog"; import { Toast } from "primereact/toast"; import { suspendOutdatedMembers } from "@components/Members/member"; ...
import React, { useContext } from 'react'; import PropTypes from 'prop-types'; import { getFoodFilter, getMealName } from '../../../services/API'; import MyContext from '../../../Context'; export default function Button({ strCategory }) { const { setFood, nome, setNome } = useContext(MyContext); const handleClick...
import m3l from dataclasses import dataclass import csdl import numpy as np @dataclass class DampingRatios: damping_long_11 : m3l.Variable damping_long_12 : m3l.Variable damping_long_21 : m3l.Variable damping_long_22 : m3l.Variable damping_lat_11 : m3l.Variable damping_lat_12 : m3l.Variable ...
package com.justwayward.renren.ui.adapter; import android.support.annotation.LayoutRes; import android.support.annotation.Nullable; import android.text.TextUtils; import android.widget.ImageView; import com.bumptech.glide.Glide; import com.chad.library.adapter.base.BaseQuickAdapter; import com.chad.library.adapter.ba...
const express = require("express"); const app = express(); const http = require("http"); const { Server } = require("socket.io"); const ACTIONS = require("./action"); const server = http.createServer(app); const io = new Server(server); const userScoketMap = {}; function getAllClients(roomId) { return Array.from(...
<?php namespace Magpie\Queues\Providers; use Exception; use Magpie\Commands\CommandRegistry; use Magpie\Exceptions\ClassNotOfTypeException; use Magpie\Exceptions\NotOfTypeException; use Magpie\Exceptions\SafetyCommonException; use Magpie\General\Factories\ClassFactory; use Magpie\Queues\QueueConfig; use Magpie\System...
using AutoMapper; using Avancerad.NET_Projekt.Services; using Avancerad.NET_Projekt_ClassLibrary.Models; using Avancerad.NET_Projekt.Methods; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Authen...
## ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ## ## --- A comparison of machine learning and statistical species distribution models: --- ## -- when overfitting hurts interpretation -- ## ## --- February 2023 --- ## ## --- Emma Chollet, Andrea...
import 'package:flutter/material.dart'; import 'package:online_shop_app/constents.dart'; import 'package:online_shop_app/models/Product.dart'; import 'package:online_shop_app/screens/details/details_screen.dart'; import 'package:online_shop_app/screens/home/components/categories.dart'; import 'item_card.dart'; class ...
@page @using TheCrewCommunity.Data.GameData @model TheCrewCommunity.Pages.Motorfest.ProSettings.AddCarProSettings @{ } <form id="proSubmitForm" method="post" asp-page-handler="SubmitProSettings"> <div class="vehicleSelectionBox"> <div class="selectWrapper"> <label for="discipline">Discipl...
#include "hzpch.h" #include "GameObject.h" #include "Components/Transform.h" #include "Components/CameraComponent.h" #include "UUID.h" #include <glm/gtc/matrix_transform.hpp> namespace Hazel { GameObject::GameObject(const std::shared_ptr<Scene>& ps, const entt::entity & entity, const std::string& name) : m_Scene(p...
package lt.artsysoft.compiler.interpreter; import lt.artsysoft.compiler.analyzer.AnalyzerConfParseHelper; import lt.artsysoft.compiler.beans.Variable; import lt.artsysoft.compiler.beans.classifiers.VariableTypes; import lt.artsysoft.compiler.semantic_analizer.SemanticAnalizer; import lt.artsysoft.compiler.semantic_ana...
# frozen_string_literal: true RSpec.describe(HTTP::Auth0) do subject(:config) { described_class.config } let(:client_id) { Faker::Internet.unique.password } let(:client_secret) { Faker::Internet.unique.password } let(:domain) { Faker::Internet.domain_name(subdomain: true) } after { described_cla...
<!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"> <!-- 上述3个meta标签*必须*放在最前面,任何其他内容都*必须*跟随其后! --> <title>vmlist</title> <!-- Bootstrap --> <link href="/st...
// package.json var name = "anywidget"; var version = "0.7.1"; // src/widget.js function is_href(str) { return str.startsWith("http://") || str.startsWith("https://"); } async function load_css_href(href, anywidget_id) { let prev = document.querySelector(`link[id='${anywidget_id}']`); if (prev) { let newLink...
package leet import ( "testing" ) func maxSubarrayLength(nums []int, k int) int { l, r := 0, 0 max := 1 nmap := make(map[int]int) for l < len(nums) { nmap[nums[l]] += 1 for nmap[nums[l]] > k { nmap[nums[r]] -= 1 r += 1 } if l-r+1 > max { max = l - r + 1 } l++ } return max } func Test2958...
import React, { useState } from "react"; import styled from "styled-components"; import "./accountIndex.css"; import { LoginForm } from "./loginForm"; import { SignupForm } from "./signupForm"; import { motion } from "framer-motion"; import { AccountContext } from "./accountContext"; import logo from "../../assets/gabi...
```html <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Mi primera página en HTML</title> </head> <body> <h1>Título de la página</h1> <p>Mi primer Iframe en HTML</p> <iframe src="https://linkedin.com" width="500" height="800"></iframe> </body> </html> ``` Este fragmento de código HTML incluye ...
import { hashPassword, comparePasswords, createJWT, validateJWT, httpMethod, isJWTVerifyPayload, getUserFromCookie, validateCookie, } from './auth'; import bcrypt from 'bcrypt'; import { NextApiRequest, NextApiResponse } from 'next'; import { assertType } from '@/helpers/utils'; import { SignJWT, jwtVer...
<!DOCTYPE html> <html xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro"> <head> <meta charset="UTF-8"> <title>批量导入企业</title> <meta name="renderer" content="webkit"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <link rel="shortcut icon" type="ima...
const { ethers } = require("hardhat") const BigNumber = require('bignumber.js'); const { COUNT, INITIALINDEX, MNEMONIC } = require("../hardhat.config.perf"); const { expect } = require("chai"); const hre = require("hardhat"); const accountsNum = parseInt(process.env.ACCOUNTSNUM) const depositAmount = parseFloat(proces...
package main import ( "tafexpr/variablecontext" "testing" "github.com/stretchr/testify/assert" ) func SetupVariableContext() variablecontext.IVariableContext { v := &variablecontext.VariableContext{} v.Init(true) var context variablecontext.IVariableContext = v return context } func SetupMockVariableContext...
#!/usr/bin/python3 """ Prints square using '#' """ def print_square(size): """ function to print square of given size Args: size: size of square Raises: TypeError: when size is not a valid integer """ if not isinstance(size, int): raise TypeError("size must be an integ...
# TSON Patch > Statically typed JSON Patch operations ## Usage You have some kind of nested data that you want to work with. It could look something like this: ```typescript export type User = { id: string; name: { first: string; last?: string; } friends: { [from: string]: Array<{ name: string }> } }; ``...
import { AddAccountRepository } from '../../../../data/protocols/db/account/add-account-repository' import { AccountModel } from '../../../../domain/models/account' import { AddAccountModel } from '../../../../domain/usecases/account/add-account' import { map, mapAccounts } from './account-mapper' import { LoadAccountB...
/* * Copyright (C) 2014 - 2017 Contributors as noted in the AUTHORS.md file * * 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)...
import torch from torch import nn # EMBEDDINGS class TimeEmbd(nn.Module): """ Do the time embedding changing from a scalar value to a vector of size C (the amount of channels). The resulting vector will be added across the CHANNELS of the representation of the image. Input: - channels: inte...
import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import { HttpClientModule } from '@angular/common/http'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { MatVideoModule } from 'mat-video'; import { AppComponent } from './app....