text
stringlengths
184
4.48M
// -*- C++ -*- // ObjectGenerator.h // Copyright (C) 2004 Rejean Ducharme // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // 1. Redistributions of source code must retain the above copyright // notice, this...
import { useState } from "react" import { Flex, Spacer,Button,Box,ButtonGroup,Heading } from '@chakra-ui/react' import { Modal, ModalOverlay, ModalContent, ModalHeader, ModalFooter, ModalBody, ModalCloseButton} from '@chakra-ui/react' import { useDisclosure,FormControl,FormLabel,Input } from '@chakra-ui/react' import {...
import React, { useState } from 'react'; interface FormProps { addTask: (task: string) => void; } const Form: React.FC<FormProps> = ({ addTask }) => { const [task, setTask] = useState(''); const handleSubmit = (e: React.FormEvent) => { e.preventDefault(); if (task.trim()) { addTask(task); s...
import { Reply } from "@prisma/client"; import { createContext, useContext, useEffect, useRef, useState } from "react"; import { TextAvatarType, TextCaptcha, TextClose, TextContent, TextDateTime, TextEmail, TextHomepage, TextIAmARobot, TextNewReply, TextNickname, TextNoReply, TextReplies, Text...
import 'package:flutter/material.dart'; import '../../constants.dart'; import '../../model/course.dart'; class CourseSectionCard extends StatelessWidget { const CourseSectionCard({super.key, required this.course}); final Course course; @override Widget build(BuildContext context) { return Padding( ...
/* * Qompose - A simple programmer's text editor. * Copyright (C) 2013 Axel Rasmussen * * 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 opti...
package link /** * Definition for singly-linked list. * type ListNode struct { * Val int * Next *ListNode * } */ type ListNode struct { Val int Next *ListNode } func hasCycle(head *ListNode) bool { if head == nil { return false } var ( fast = head slow = head ) for fast.Next != nil { s...
import { useState } from "react"; import axios from "axios"; import { EnumAlerts, EnumAppointmentConfirmModal, IAppointment, IRoot, } from "../../../redux/interfaces"; import { alertMessageActions, appointmentModalActions, } from "../../../redux/store"; import { useDispatch, useSelector } from "react-redux"...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Web Layout</title> <link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet"> </head> <body class="bg-white"> </sect...
package should_return_request_with_correct_query_params import ( "testing" "github.com/EugeneGpil/httpTester/app/modules/GetRequest" "github.com/EugeneGpil/tester" httpTester "github.com/EugeneGpil/httpTester" ) var key1 = "test_key_1" var expectedValue1 = "test_value_1" var key2 = "test_key_2" var expectedValu...
package mirosha.gui; import java.awt.Graphics2D; import java.awt.event.MouseEvent; import java.util.ArrayList; /** * Класс для работы с GUI кнопками * @author Mirosha * @version 1.0 */ public class PanelButton { /** Поле хранение кнопок из класса {@link #Button}*/ private ArrayList<Button> buttons; /** ...
import {Injectable} from '@angular/core'; import {HttpClient} from '@angular/common/http'; import {Observable} from 'rxjs'; import {Country} from 'src/classes/country'; import {map} from 'rxjs/internal/operators'; import {plainToClass} from 'class-transformer'; @Injectable({ providedIn: 'root' }) export class Restc...
--- title: Diseño de Páginas Web para Concesionarios en Mollet del Vallés date: '2023-10-04' tags: ['Diseño web', 'Concesionarios', 'Mollet del Vallés'] draft: false banner : diseño_paginas_web_concesionarios fondoBanner : diseño_pagina_web_molletdelvallés summary: Bienvenido al artículo que te mostrará cómo el diseño ...
package com.array2d; import java.util.Scanner; class Matrix { private int[][] data; public Matrix(int rows, int columns) { data = new int[rows][columns]; } public void setElement(int row, int col, int value) { data[row][col] = value; } public boolean isSparseMatrix() { ...
\documentclass[11pt]{beamer} \input{../../template/slideTemplate.txt} \renewcommand{\DEBUG}{0} \renewcommand{\PRESENTATION}{1} \subtitle{Qual o resultado?} \usecolortheme[named=slideBlue]{structure} \begin{document} \begin{frame} \titlepage \end{frame} \begin{frame} \tableofcontents \end{frame} \section{Alteraç...
import Link from "next/link"; import Head from 'next/head'; import { useRouter } from "next/router"; import { useState } from "react"; import { toast,Toast, ToastContainer } from "react-toastify"; import 'react-toastify/dist/ReactToastify.css' import axios from "axios"; export default function Register() { const [...
/* Copyright (c) 2006-2009, Tom Thielicke IT Solutions 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. This program is distributed in the hope that it will be useful...
<?php /** * @author Amasty Team * @copyright Copyright (c) 2016 Amasty (https://www.amasty.com) * @package Amasty_Cart */ namespace Amasty\Cart\Controller\Cart; use Magento\Catalog\Api\ProductRepositoryInterface; use Magento\Checkout\Model\Cart as CustomerCart; use Magento\Quote\Model\Quote\Address\Total; use Mage...
Exercise 3.0 - Introduction to AS3 Objective ********* Demonstrate building a virtual server (exactly like the Section 1 Ansible F5 Exercises) with F5 AS3 - Learn about AS3 (`Application Services 3 Extension <https://clouddocs.f5.com/products/extensions/f5-appsvcs-extension/3/userguide/about-as3.html>`__) decla...
/* global inject */ 'use strict'; describe('Controller: MainCtrl', function () { // load the controller's module beforeEach(module('gmitcat')); var MainCtrl, scope; // Initialize the controller and a mock scope beforeEach(inject(function ($controller, $rootScope) { // MainCtrl.todos ...
"use client"; import { DataVerifyEmailProps } from "@/@types"; import { Form, FormControl, FormField, FormItem, FormLabel, FormMessage, } from "@/components/ui/form"; import schema from "@/schemas/verify-email"; import { zodResolver } from "@hookform/resolvers/zod"; import { useRouter } from "next/navigatio...
import { LoginUser, NewUser, User } from "../types/user"; const mockUsers: User[] = [ { id: 1, email: "rokas@gmail.com", password: "rokas", first_name: "Rokas", last_name: "Andreikenas", createdAt: "2023-03-02T20:30:06.000000Z", updatedAt: "2023-03-02T20:30:06.000000Z", }, { id: 2...
package it.leonardo.leonardoapiboot.controller; import io.sentry.Sentry; import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.responses.ApiResponse; import io.swagger.v3.oas.annotations.responses.ApiResponses; import it.leonardo.leonardoapiboot.entity.Livello; import it.leonardo.leonar...
/* Copyright (c) 2018 Kent Yang 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 ...
part of blocs; abstract class EmployerState extends Equatable { const EmployerState(); @override List<Object> get props => []; } class EmployerInitialState extends EmployerState { @override String toString() => "InitializePageState"; } //Employer ContactUs class EmployerContactUsLoading extends EmployerSt...
import { env } from '../src/common/env'; describe('env()', () => { const ENV = process.env; beforeEach(() => { jest.resetModules(); process.env = { ...ENV }; }); afterAll(() => { process.env = ENV; }); it('should return the correct value for an existing environment variable', () => { pro...
import React from "react"; import { BrowserRouter as Router, Route, Routes } from "react-router-dom"; import { Col, Row } from "reactstrap"; import Header from "./components/Header"; import SideNavigation from "./components/SideNavigation"; import Home from "./components/Home"; import UserForm from "./components/User/U...
// Copyright (c) 2014-2017 The Dash Core developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef MASTERNODEMAN_H #define MASTERNODEMAN_H #include <masternode.h> #include <sync.h> using namespace std; class CMas...
// // DetailViewController.swift // Kaipa // // Created by Ariel Waraney on 28/04/22. // import Foundation import UIKit import CoreData class DetailViewController: UIViewController { @IBOutlet weak var itemImage: UIImageView! @IBOutlet weak var itemName: UILabel! @IBOutlet weak var itemSize: U...
<!doctype HTML> <html> <head> <title>codedamn HTML Playground</title> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" href="/style.css" /> </head> <body> <section id="container"> <div class="heading"> ...
import 'dart:async'; import 'dart:io'; import 'dart:convert' as convert; import 'package:firebase_auth/firebase_auth.dart'; import 'package:shared_preferences/shared_preferences.dart'; import '../config/config.dart'; import 'NotificationManager.dart'; import 'package:http/http.dart' as http; class DataService { // p...
import React, { useEffect, useState } from "react"; import { Link } from "react-router-dom"; import { ReactComponent as QTLogo } from "../assets/svg/QT.svg"; import Session from "supertokens-auth-react/recipe/session"; import { useSessionContext } from "supertokens-auth-react/recipe/session"; import { doesSessionExist ...
from django.contrib import admin from .models import Category, Post, Comment # Register your models here. @admin.register(Post) class PostAdmin(admin.ModelAdmin): list_display = ['title', 'category', 'author', 'created', 'is_active'] list_filter = ['created', 'author__username', 'category', 'is_active'] ...
import React, { useState, useRef, useEffect } from "react" import { Link } from "react-router-dom" import Transition from "../utils/transition" import { useAtom } from "jotai" import { clearSessionAtom } from "store/authorization-atom" import useShop from "hooks/use-shop" import { proxyURL } from "utils/urlsigner" fu...
#include <ctype.h> #include <stdarg.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h> typedef enum { TK_RESERVED, // 記号 TK_NUM, // 整数トークン TK_EOF // 入力の終わりを表すトークン } TokenKind; typedef struct Token Token; struct Token { TokenKind kind; // トークンの型 Token *ne...
package org.jetbrains.bsp.bazel.base import ch.epfl.scala.bsp4j.BuildClientCapabilities import ch.epfl.scala.bsp4j.BuildTargetIdentifier import ch.epfl.scala.bsp4j.InitializeBuildParams import ch.epfl.scala.bsp4j.WorkspaceBuildTargetsResult import org.apache.logging.log4j.LogManager import org.jetbrains.bsp.bazel.inst...
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; use Illuminate\Support\Str; use Mews\Purifier\Facades\Purifier; class StoreTouristDestinationRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ pub...
"use client"; import { createClientComponentClient } from "@supabase/auth-helpers-nextjs"; import { useRouter } from "next/navigation"; import { Button } from "@/components/ui/button"; import T from "@/components/translations/translation"; export default function CreateResultButton({ isEnrollmentPhase, participantCo...
import React, { useEffect, useState } from 'react'; import showdown from 'showdown'; import { ReactSurveyModel, StylesManager, Survey } from 'survey-react'; import 'survey-react/survey.css'; import { getSurveyData } from '../../surveyData'; import { svgData } from '../../svgData'; import { PreAttentiveSvgGenerator } fr...
import { useSession } from "next-auth/react"; import React, { useEffect, useState } from "react"; import { AiOutlineConsoleSql } from "react-icons/ai"; import { IoHeartOutline, IoHeartDislikeOutline } from "react-icons/io5"; import useSupabase from "../hooks/useSupabase"; const LikeBtn = ({ id, favList }) => { const ...
import { IDynamicComponent } from './i-dynamic-component'; import { ViewContainerRef, Injector, ComponentRef } from '@angular/core'; import { IComponentMetaData, COMPONENTMETADATA } from './i-component-meta-data'; import { IComponentDiscovery, COMPONENTDISCOVERY } from '../tokens/component-discovery'; import { ICompone...
# Lab 5 - Selecting the data you want # Exercise 1 - Discover the Object in the PowerShell Pipeline. # Step 1: # Run all three cmdlets you discovered in Lab 4, Exercise 1 and record the TypeName # of the Object by pipeing the object to Get-Member. # Step 2: # Open the MSDN document describing the Object from the c...
package doublelinkedlistapp; import java.util.ArrayList; import java.lang.reflect.Array; import java.util.Iterator; /** * * @author Emre */ public class DoubleLinkedList<E> { private Node first, last; private int size = 0; public DoubleLinkedList() { first = last = null; } public Do...
// import React from 'react'; // import Slider from 'react-slick'; // import 'slick-carousel/slick/slick.css'; // import 'slick-carousel/slick/slick-theme.css'; // import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; // import { faGlobe, faArrowLeft, faArrowRight } from '@fortawesome/free-solid-svg-icons';...
<template> <transition name="vc-drawer_animation"> <div v-if="visible" :class="[ 'vc-drawer', { 'vc-drawer__mask': mask }, { 'vc-drawer__center': center } ]" > <div class="vc-drawer_content" v-click-outside="closeDrawer" :style="{ '--max-...
/** * Type definitions adapted from @types/pdf-parse and pdfjs-dist * https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/pdf-parse/index.d.ts * https://github.com/mozilla/pdfjs-dist/blob/master/types/src/display/api.d.ts */ declare module 'pdf-parse' { export = PdfParse; declare function PdfP...
package com.ing.nzy.finance.services; import com.ing.nzy.dto.messages.RechercheCreationEvent; import com.ing.nzy.finance.configurations.MessageQueueConfiguration; import com.ing.nzy.finance.converters.AmendeConverter; import com.ing.nzy.finance.model.Amende; import com.ing.nzy.finance.repositories.AmendeRepository; im...
import { Badge, Button, createTheme, IconButton } from "@mui/material"; import { Box } from "@mui/system"; import MenuItem from "@mui/material/MenuItem"; import React from "react"; import "./Navbar.css"; import AccountCircleIcon from "@mui/icons-material/AccountCircle"; // import FavoriteBorderIcon from "@mui/icons-ma...
/** * And gate: out = Not( Nand(a, b) ) * = Nand( Nand(a, b), Nand(a, b) ) * * a b out * -------- * 0 0 0 * 0 1 0 * 1 0 0 * 1 1 1 * */ CHIP And { IN a, b; OUT out; PARTS: Nand(a=a, b=b, out=andAB); Not(in=andAB, out=out); }
import {createApi} from "@reduxjs/toolkit/query/react"; import {axiosBaseQuery} from "../../query/config.api"; import {ICreateApiBody} from "../../models/json"; export const jsonApi = createApi({ reducerPath: 'api/json', baseQuery: axiosBaseQuery(), tagTypes: ['JSON'], endpoints: build => ({ ge...
/* obs-application.c * * Copyright 2022 Georges Basile Stavracas Neto <georges.stavracas@gmail.com> * * 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 *...
# Java # 目录 # 抽象基类 ## 抽象类简概 - 作用:位于上层的类更具有通用性,甚至可能更加抽象 - 举例:Employee和Student的共同超类为Person - 性质:抽象类不能被实例化 ## 抽象类使用(abstract关键字) - 抽象方法 - 使用abstract关键字,这样就完全不**需要实现超类的方法** ```java public abstract String getDescription(); // no implementation required,不需要实现 ``` - 抽象类 - 为了提高程序的清晰度,包含一个或多个抽象方法的类本身必须被声...
import GrayCard from "@/components/GrayCard"; import CommentCard from "./CommentCard"; import { useEffect, useState } from "react"; import { usePathname, useSearchParams } from "next/navigation"; import PageBar from "./Pagebar"; import { useRouter } from "next/navigation"; import { Oval } from "react-loader-spinner"; ...
import 'package:flutter/material.dart'; import 'package:audio_video_progress_bar/audio_video_progress_bar.dart'; import 'package:musik/controllers/audio_manager.dart'; import 'package:musik/utils/colors.dart'; class PersistentPlayerBar extends StatefulWidget { const PersistentPlayerBar({super.key}); @override S...
use std::sync::Arc; use blockifier::transaction::transaction_types::TransactionType; use blockifier::transaction::transactions::DeployAccountTransaction; use pyo3::prelude::*; use starknet_api::core::{ClassHash, ContractAddress, Nonce}; use starknet_api::data_availability::DataAvailabilityMode; use starknet_api::trans...
import "./style.css"; const app = document.querySelector<HTMLDivElement>("#app")!; // Main page✅ > Search Results Page > Sign Up Page > Sign in window type Property = { id: number; propertyName: string; location: string; image: string; price: number; availableDates: []; owner: string | ""; }; type user...
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'; import { ComponentFixture, TestBed } from '@angular/core/testing'; import { By } from '@angular/platform-browser'; import { of } from 'rxjs'; import { CartService } from 'src/app/services/cart.service'; import { sample_cart } from 'src/data'; import { CartCompone...
import { ComponentFixture, TestBed } from "@angular/core/testing"; import { MatDialogRef } from '@angular/material/dialog'; import { MatDialogMock } from "src/test/mock/components/mat-dialog.mock"; import { ProjectServiceMock } from "src/test/mock/services/project-service.mock"; import { SnackBarServiceMock } from "src...
import {ModerationCause, ProfileModeration, PostModeration} from '@atproto/api' export interface ModerationCauseDescription { name: string description: string } export function describeModerationCause( cause: ModerationCause | undefined, context: 'account' | 'content', ): ModerationCauseDescription { if (!c...
/* Taks are scheduler scripts that are run inside Snowflake environment. In simple words, a task is a scheduler that can help you to schedule a single sql or a stored procedure. A task can be very useful when combined with Streams to make an end-to-end data pipeline. -- Snowflake ensures only one instance of a task...
import React, { Component } from "react"; import { Row, Col, Card, CardBody, Container } from "reactstrap"; import { FaEdit,FaTimes,FaTimesCircle } from 'react-icons/fa'; import { withRouter } from "react-router-dom"; import Breadcrumbs from '../../components/Common/Breadcrumb'; import BootstrapTable from 'react-bootst...
import { useQuery } from "@tanstack/react-query"; import { Issue } from "../interfaces"; import { githubApi } from "../api/githubApis"; export const getIssueInfo = async (issueNumber: number): Promise<Issue> => { const { data } = await githubApi.get<Issue>(`/issues/${issueNumber}`); return data; } export const ge...
(in-package :weblocks) (export 'string-widget) (defwidget string-widget () ((content :type string :accessor string-widget-content :initarg :content) (escape-p :type boolean :accessor string-widget-escape-p :initarg :escape-p :initform t ...
<?php namespace App; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; use Illuminate\Support\Facades\Log; use LaravelFCM\Facades\FCM; use LaravelFCM\Message\PayloadDataBuilder; use LaravelFCM\Message\PayloadNotificationBuilder; use Laravel...
nplots, reftel, IF_index, npage General visibility plotting and editing command. PARAMETERS ---------- nplots - (Optional) Default=0 (All baselines to each station). The number of baselines to be displayed per page. This may be changed interactively. Since only the baselines of one s...
import { Between, DataSource, LessThanOrEqual } from 'typeorm'; import { Cardano, NetworkInfoProvider, epochSlotsCalcFactory } from '@cardano-sdk/core'; import { CurrentPoolMetricsEntity, PoolRegistrationEntity, PoolRetirementEntity, PoolRewardsEntity, STAKE_POOL_REWARDS, StakePoolEntity, StakePoolRewards...
import datetime from rest_framework.views import APIView from rest_framework.response import Response class ImagicaSpecificOutputAPIView(APIView): def get(self, request, file_name, normalization_version, model_version, post_processing_version): """ Get deals data from Imagica service **E...
"use client" import { useState, useEffect } from 'react'; interface Cliente { id: number; nome: string; email: string; telefone: string; coordenada_x: number; coordenada_y: number; } interface Rota { id: 'inicio' | 'fim' | number; coordenada_x: number; coordenada_y: number; } function formatarTelef...
/* * Copyright © 2023 THALES. All rights reserved. */ import Foundation import UIKit import SwiftUI import D1 import LocalAuthentication /// Digital card detail ViewModel. class DigitalCardDetailViewModel: CardViewModel { @Published public var digitalCard: D1.DigitalCard? private var digitalCardId: St...
/** console.cpp * Defines functions to implement the Console class. * More documentation on the functions in the header file. */ #include "console.h" #include <termios.h> #include <unistd.h> #include <stdio.h> #include <chrono> #include <iomanip> #include <iostream> #include <sstream> #include <thread> using namespac...
#!/usr/bin/perl # $File: //depot/libOurNet/BBS/script/bbscomd $ $Author: autrijus $ # $Revision: #1 $ $Change: 3790 $ $DateTime: 2003/01/24 19:08:46 $ $VERSION = '1.62_01'; $REVISION = "rev$1\[\@$2\]" if ('$Revision: #1 $ $Change: 3790 $' =~ /(\d+)[^\d]+(\d+)/); =head1 NAME bbscomd - OurNet BBS Remote Access Da...
import { useQuery } from "react-query"; import { Helmet } from "react-helmet"; import React, { useEffect, useState } from "react"; import { useParams } from "react-router"; import { Link, Route, Routes, useMatch } from "react-router-dom"; import { useLocation } from "react-router-dom"; import styled from "styled-compon...
<?php namespace App\Models; // use Illuminate\Contracts\Auth\MustVerifyEmail; use App\Traits\Filter; use App\Traits\Uuid; use Illuminate\Database\Eloquent\Casts\Attribute; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Relations\BelongsToMany; use Illuminate\Database\Eloquent\...
import viewer # Assuming viewer is a module you have defined elsewhere import numpy as np import matplotlib.pyplot as plt import os import imageio from tqdm import tqdm import nibabel as nib import SimpleITK as sitk import cv2 def readNIftI(which='Labels', set='testing', directory=None): """ Reads NIfTI fil...
import nodemailer from 'nodemailer'; import Mailgen from 'mailgen'; import ENV from '../config.js' // https://ethereal.email/create let nodeConfig = { host: "smtp.ethereal.email", port: 587, secure: false, // true for 465, false for other ports auth: { user: ENV.EMAIL, // generated ethereal us...
/** * @file index file of Pager component * @date 2022-01-06 * @author dualless * @lastModify lidaoping 2022-01-06 */ /* <------------------------------------ **** DEPENDENCE IMPORT START **** ------------------------------------ */ /** This section will include all the necessary dependence for this tsx file */ im...
import { Order } from '../../src/types'; //Imports the order type from src folder. import products from './products'; // Imports the default export from products. import dayjs from 'dayjs'; //Imports the default export from dayjs const now = dayjs(); //assigns dayjs to a variable named now const orders: Order[] = [ /...
import pandas as pd from prettytable import PrettyTable # Cargar el archivo Excel # Se asume que el archivo está en el mismo directorio que este script o se proporcionará la ruta completa. archivo_excel = "roque.xlsx" df = pd.read_excel(archivo_excel) # Auditoría # 1. Contar propiedades (filas) y comparar con un valo...
@extends('layouts.adminMain') @section('content') <div class="content-wrapper"> <section class="content"> <div class="container-fluid"> @if ($message=Session::get('success')) <div class="alert-success alert-block"> <button type="button" class="clos...
import React, { useState, useEffect, useRef } from "react"; import { RadioGroup, Tab } from "@headlessui/react"; import { useParams } from "react-router-dom"; import classNames from "classnames"; import { createOrder, getProductBySlug } from "api"; import { Color, Product, User } from "types"; import ProductImage from...
import React, { useState, useRef } from 'react'; import { useSelector } from 'react-redux'; import { format, parseISO } from 'date-fns'; import translate, { dateLanguage } from '../../locales'; import { unformatNumber, formatPhone, formatCPF } from '../../util/format'; import { SubmitButton, Input, GenderConta...
import time def decorator_time(fn): def wrapper(*args): print(fn) t0 = time.time() for i in range(100): result = fn(*args) dt = (time.time() - t0) / 100 print(f"Delta time: {dt:.10f}") return result return wrapper def power(n=2): return 10_000_...
const { ObjectId } = require("mongodb"); class CartService { constructor(client) { this.Cart = client.db().collection("carts"); this.Account = client.db().collection("accounts"); this.Product = client.db().collection("products"); } extractCartData(payload) { const cart = { ...
import { expect, describe,it, beforeEach} from 'vitest' import { hash } from 'bcryptjs'; import { inMemoryRepository } from '@/repositories/in-memory/in-memory-users-repository'; import { GetUserProfileUseCase } from './getUserProfileUseCase'; import { ResourceNotFoundError } from './errors/resource-not-found-error'; ...
package { import flash.display.MovieClip; import flash.display.Bitmap; import flash.display.BitmapData; import flash.geom.Point; import flash.geom.Rectangle; public class Test extends MovieClip { public function Test() { var bmd: BitmapData = createImage(); var otherBmd: BitmapData = createI...
--- title: Kotlin 和基于令牌的身份验证:高级主题和最佳实践 description: published: true date: 2023-01-31T03:36:19.502Z tags: editor: markdown dateCreated: 2023-01-31T03:36:17.908Z --- > 本文已使用 **Google Cloud Translation API 自动翻译**。 某些文档最好以原文阅读。{.is-info} - [Kotlin and Token-based Authentication: Advanced Topics and Best Practices***Engl...
using Code420.UIOrchestrator.Server.Components.BaseComponents.IconButtonBase; using Code420.UIOrchestrator.Server.Components.BaseComponents.ToolTipBase; using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components.Web; using Syncfusion.Blazor.Popups; namespace Code420.UIOrchestrator.Server.Components....
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0,viewport-fit:cover"> <title>相册</title> <style> * {margin: 0;padding:0} ul { list-style: ...
import AdminWrapper from "../../../components/Others/AdminWrapper"; import { useSelector, useDispatch } from "react-redux"; import { useState, useEffect } from "react"; import useToast from "../../../hooks/useToast"; import { useNavigate } from "react-router-dom"; import { setLogout } from "../../../state"; import { Dn...
#include <stdio.h> #include <stdlib.h> int n = 0; typedef struct Node { int info; struct Node *link; } * node; node create(node nn) { nn = (node)malloc(sizeof(struct Node)); printf("Enter info\n"); scanf("%d", &nn->info); nn->link = nn; n++; return nn; } node insertfront(node p) { ...
-- Nom de la base : Parking_campus -- Nom du fichier : vues_statistique.sql -- Nom de SGBD : ORACLE Version 7.0 -- Date de creation : 20/11/2022 03:32 -- !!!!!! VOUS DEVEZ EXECUTER CES FICHIERS AVANT: -- !!!!!! - base.sql --moyenne du nombre de places disponibles par parking. --so...
<?php * Copyright (c) 2018 Zindex Software * * Licensed under the MIT License namespace Opis\Closure; use Closure; use Serializable; use SplObjectStorage; use ReflectionObject; /** * Provides a wrapper for serialization of closures */ class SerializableClosure implements Serializable { /** * @var C...
import { createAsyncThunk, createSlice } from '@reduxjs/toolkit'; import type { PayloadAction } from '@reduxjs/toolkit'; import axios from 'axios'; export interface pizzaState { items: any[]; status: string; } export const fetchPizzas = createAsyncThunk( 'pizza/fetchPizzaStatus', async (params: any) => { const ...
<template> <div> <loading :active.sync="isLoading"></loading> <div class="text-right my-4"> <button class="btn btn-primary" @click="getOrderList" title="如果沒有資料請點選重新讀取">取得訂單列表</button> </div> <div class="table-responsive"> <table class="table"> <thead> <tr> <th...
import { Context } from "hono"; import { publicKey } from "./handleUserRegistration"; import { userWeeklyAvailability, users } from "../db/schema"; import { db } from ".."; import jwt from '@tsndr/cloudflare-worker-jwt' import { and, eq } from "drizzle-orm"; export const daysofWeek = ['SUN', 'MON', 'TUE', 'WED', 'THU'...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Survey Form</title> <link rel="stylesheet" href="./styles.css"> </head> <body> <div class="container"...
<h1 class="container"> <form> <table> <tr> <td> <mat-form-field appearance="fill"> <mat-label>Type of data</mat-label> <mat-select [(ngModel)]='selected_endpoint' name='selected_endpoint' required> ...
#ifndef lists_h #define lists_h #include <stddef.h> /** * struct listint_node - Represents a node in a singly linked list * @n: Stores an integer value * @next: Points to the next node in the linked list * * Description: Defines the structure of a node within a singly linked list. */ typedef struct listint_node...
package dentisthandler import ( "ck-2/internal/application/service" "ck-2/internal/domain" "ck-2/pkg/web" "errors" "reflect" "strconv" "github.com/gin-gonic/gin" ) type dentistHandler struct { dentistGroup gin.RouterGroup dentistService service.Dentist } func (d *dentistHandler) ConfigureDentistRouter() ...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Roccat Gaming</title> <link rel="stylesheet" href="css/style.css"> <link rel="stylesheet" href=...