text
stringlengths
184
4.48M
/* if(true){ const myName ='vaish' } console.log(myName) //here it throws an error it says myName is not defined */ /* if(true){ const myName ='vaish' console.log(myName) //vaish //so let and const declared variables can only be accessed in the block they are declared in } */ /* function sco...
import React, {useEffect, useState} from "react"; import {Table} from "react-bootstrap"; import {getUsers} from "../services/UserService"; import '../App.css'; import Pagination from "./Pagination"; import pagination from "./Pagination"; const Home = () => { const [users, setUsers] = useState([]); const [curre...
/* import React from "react"; class Contador extends React.Component { } */ import React, { Component } from "react"; import './Contador.css' import Display from "./Display"; import PassoForm from "./PassoForm"; import Botoes from "./Botoes"; export default class Contador extends Component { /* constructor(pro...
--- title: "[New] Find Rich Ambiance for Video Content" date: 2024-05-31T12:45:17.619Z updated: 2024-06-01T12:45:17.619Z tags: - ai video - ai youtube categories: - ai - youtube description: "This Article Describes [New] Find Rich Ambiance for Video Content" excerpt: "This Article Describes [New] Find Rich Ambi...
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package es.uvigo.esei.pro2.core; import java.io.FileOutputStream; import java.io.IOException; import nu.xom.Document; import nu.xom.El...
/* * JBoss, Home of Professional Open Source. * Copyright 2013, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free software; you can redistribute it and/or modify it * unde...
import { ProductCardContainer, ProductFooter, ProductTags } from "./styled"; import { useEffect, useState } from "react"; import { api } from "../../../../services/api"; import { AddToCartQtd } from "../../../../components/AddToCartQtd"; import { CartProps } from '../../../../contexts/cartContext' export function Prod...
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Customer extends Model { use HasFactory; protected $fillable = [ 'id', 'user_id', 'first_name', 'last_name', 'job_title', 'city', ...
import { useParams, Navigate } from 'react-router-dom'; import apartments from '../datas/apartments.json'; import Profile from '../components/Profile.jsx'; import Collapse from '../components/Collapse.jsx'; import ElementsList from '../components/ElementsList.jsx'; import Rating from '../components/Rating.jsx'; import ...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Destructuring</title> </head> <body> <script> //menggunakan destructuring pada array untuk mengambil data { const nama = ["Dzikri", "Fa...
import React, { Component } from "react"; import axios from "axios"; export default class Search extends Component { search = () => { // 获取输入结构并重命名 const { keyWordEle: { value: keyWord }, } = this; this.props.updateAppState({ isLoading: true, isFirst: false }) axios.get(`ht...
#include "variadic_functions.h" #include <stdarg.h> #include <stdio.h> /** *print_numbers - function that prints numbers *@separator: separates between numbers *@n: the number of arguments * */ void print_numbers(const char *separator, const unsigned int n, ...) { unsigned int i; int res; va_list ap; v...
//{ Driver Code Starts //Initial Template for C++ #include <bits/stdc++.h> using namespace std; // } Driver Code Ends //User function Template for C++ class Solution{ public: void insertbottom(stack<int>&s, int element) { if(s.empty()) { s.push(element); return; ...
--- permalink: api/reference_element_api_getfipsreport.html sidebar: sidebar keywords: fips,report,get,getting,getfipsreport,feature,support summary: È possibile utilizzare il metodo GetFipsReport per controllare lo stato di supporto della funzionalità di crittografia FIPS 140-2 di tutti i nodi nel cluster di storag...
function do_preprocessing(config_file, num) %%% Function to copy the raw images for the source directory into the %%% directory for the experiment and perform various normalizations on them %%% in the process. %%% Currently the function normalizes all images to a fixed size %%% (specificed in Preprocessing.Imag...
/* * Copyright (c) 2014-2017 National Technology and Engineering * Solutions of Sandia, LLC. Under the terms of Contract DE-NA0003525 * with National Technology and Engineering Solutions of Sandia, LLC, * the U.S. Government retains certain rights in this software. * * Redistribution and use in source and binary ...
package com.demo.englishdectionary.data.local.words800 import androidx.room.Dao import androidx.room.Insert import androidx.room.OnConflictStrategy import androidx.room.Query import kotlinx.coroutines.flow.Flow @Dao interface Words800Dao { @Query("SELECT * FROM words800entity WHERE id = :letter") fun getWords...
/** * ***************************************************************************** Copyright (c) 2000, * 2014 IBM Corporation and others. All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 which accompanies this * distribution, a...
@testable import Book import XCTest final class BookTests: XCTestCase { private var bookUrl: URL { get throws { guard let url = URL(string: "https://books.apple.com/Fus/Fbook/F12-rules-for-life") else { throw URLError(.badURL) } return url } }...
// https://stackoverflow.com/a/11832950 export function round(float: number, { precision }: { precision: number } = { precision: 0 }) { const magnitude = 10 ** precision return Math.round((float + Number.EPSILON) * magnitude) / magnitude } export function clamp(float: number, { min, max }: { min: number, max: number...
"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { t...
different commits and see how they are displayed on the Github website. Even though all the commands below will be pushed using exclusively the f4k3usr Github account, some of the commits will look like they were submitted by my real pjbgf account— however, bear in mind that my real credentials were not at all used. To...
package me.hapyl.fight.game.attribute.temper; import com.google.common.collect.Maps; import me.hapyl.fight.game.attribute.AttributeType; import me.hapyl.fight.game.attribute.EntityAttributes; import me.hapyl.fight.game.entity.LivingGameEntity; import me.hapyl.fight.util.collection.ConcurrentTable; import javax.annota...
import 'package:flutter_riverpod/flutter_riverpod.dart'; import '../data/model/image_model.dart'; import '../provider/state/image_state.dart'; import '../repository/image_repository.dart'; final imageControllerProvider = StateNotifierProvider<ImageListController, ImageState>((ref) { final repository = ref.watch...
namespace RepoM.Api.Tests.IO.Methods; using RepoM.Api.IO.Methods; using FluentAssertions; using Xunit; public class IsNullMethodTests { private readonly IsNullMethod _sut = new(); [Theory] [InlineData("IsNull", true)] [InlineData("isnull", true)] [InlineData("IsNullx", false)] [InlineData("",...
{ NameGenerator @author(Name <jan@subkonstrukt.at>) @abstract(a short description) @created(2017-07-07) this is supposed to give somehow usefull names for things that could spawn inspired by http://www.godpatterns.com/2005/09/name-generators-for-npcs-to-populate.html the plants are fixed and are based on ...
import { useRouter } from 'expo-router' import useEntryFlow from 'hooks/useEntryFlow' import { Pressable } from 'react-native' import { Text, XStack } from 'tamagui' import { Feed } from 'types' import Favicon from 'components/Favicon' export default function SourceItem({ item, onPress, }: { item: Feed onPress...
import {User} from "../entities"; import ApiError from "../exceptions/ApiError"; import {UserDto} from "../dtos/userDto"; import jwtService from "./jwtService"; import {compare, hash} from "bcryptjs"; class UserService { async registration(phone: string, password: string, name?: string) { const existingUse...
public static void main(String[] args) throws IOException { OptionParser parser = new OptionParser(); parser.accepts("help", "print usage information"); parser.accepts("cluster", "[REQUIRED] path to cluster xml config file").withRequiredArg().describedAs("cluster.xml"); parser.accepts("stores", "[REQUIR...
/* * Copyright (c) 2006 Kapelonis Kostis <kkapelon@freemail.gr> * * 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....
using UnityEngine; namespace SPWN // SpawnCampGames.com { /// <summary> /// Utility class for calculating global transformation data of a GameObject and its parent hierarchy. /// </summary> public static class GlobalTransform { /// <summary> /// Calculates the global position, rotat...
import 'dart:convert'; import 'package:flutter/material.dart'; import 'package:student_link/constant.dart'; import 'package:student_link/models/users/user.dart'; import 'package:http/http.dart' as http; import '../../../login/auth.dart'; class RequestUsersMap { static const String _baseUrl = Request.endpoint; st...
// createSlice For Create State And Required Methods For Articles Delete/Update/create/read import { createSlice } from "@reduxjs/toolkit"; // Import Fetching Data Function import { fetchBlogs } from "./actions"; // Fetching Data Statuses Object export const STATUSES = { IDLE: "idle", LOADING: "Loading", ERROR:...
<!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"> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha...
# coding=utf-8 # rewritten, Copyright (c) 2021, Ming Ding. All rights reserved. # Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved. # # 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 a...
"""controller for course level""" # pylint: disable=redefined-builtin,broad-exception-raised import os import json from services.lu_inference import LearningUnitService from services.validations import check_valid_request from common.utils.kf_job_app import (kube_create_job, kube_...
/* * Copyright (C) 2018 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...
library("tidyverse") # Load tidyverse package library(gtools) #Create a list with the alpha and beta(missing - LATER) #Alpha data list Base_alpha <- list.files(path = "/home/constantin/windows/", pattern="boot_base_alpha", recursive = TRUE) Base_alpha <- mixedsort(Base_alpha) Base_alpha #Alpha-error list Error_alpha...
"use client"; import React, { useContext } from "react"; import { HomeContext } from "./context/HomeContext"; import { FaPause, FaPlay } from "react-icons/fa"; import videos, { Video } from "./data/video"; import { AiFillSound } from "react-icons/ai"; import { convertTimeToString } from "./utils/Utils"; export defaul...
import React from 'react'; import { useFormik } from 'formik'; import { useNavigate } from "react-router-dom"; import sma from '../assets/sma.png' import Button from '../elements/Button'; import bg from '../assets/bg.jpeg' const validate = values => { const errors = {}; if (!values.password) { errors....
<?php // $Id$ /** * @file template.preprocess-page.inc */ /** * Override or insert variables into page templates. * * @param $vars * A sequential array of variables to pass to the theme template. * @param $hook * The name of the theme function being called. */ global $theme, $theme_info, $user, $languag...
import { buildLogger, logger as pluginLogger } from "../../src/plugins/logger.plugin"; describe('plugins/logger.plugin.ts', () => { test('buildLogger should return a function logger', () => { const logger = buildLogger('test') expect(typeof logger.log).toBe('function') expect(typeof logge...
import '/backend/backend.dart'; import '/components/app_bar_custom_copy_widget.dart'; import '/flutter_flow/flutter_flow_animations.dart'; import '/flutter_flow/flutter_flow_icon_button.dart'; import '/flutter_flow/flutter_flow_theme.dart'; import '/flutter_flow/flutter_flow_util.dart'; import 'package:cached_network_i...
import {Button, Card, CardFooter, CardHeader, Image} from '@nextui-org/react' import React from 'react' import Student from '../static-images/student-signup.jpg'; import Teacher from '../assets/teacher.png'; import Recruiter from '../assets/recruiter.jpeg'; import BackgroundImage from '../assets/welcomeBackground.svg';...
package io.unitycatalog.server.base.table; import io.unitycatalog.client.ApiException; import io.unitycatalog.client.model.*; import io.unitycatalog.server.base.BaseCRUDTest; import io.unitycatalog.server.base.ServerConfig; import io.unitycatalog.server.base.schema.SchemaOperations; import io.unitycatalog.server.persi...
<!-- @component @param {number} [lines=1] - Lines property, Default: `1` @param {string} [width="100%"] - CSS string denoting width of the Skeleton **Examples:** `10px` | `5rem` | `100vh`, Default: `"100%"` @param {string} [height="auto"] - CSS string denoting height of the Skeleton **Examples:** `10px` | `5r...
/* * Copyright (c) 2004-2022, University of Oslo * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this * list of cond...
import { REPLY_OWNER_CONTEXT_ERROR } from "../../../commons/constants/domains/replies/reply-owner-context-error"; import { ReplyOwnerContext } from "./reply-owner.context"; describe("ReplyOwnerContext entities", () => { it("should be able to create the replyOwnerContext object correctly", () => { const payload =...
#ifndef BOOK_H_ #define BOOK_H_ #include <string> using namespace std; /***** Complete this file. *****/ /** * The Book class. */ class Book { public: /** * Book categories. */ enum class Category { FICTION, HISTORY, TECHNICAL, NONE }; /** * Default constructor. */ Book(); ...
############################################# # IUCN Status Category and Population Trend # ############################################# library(rredlist) library(tidyverse) ##################################### # FUNCTION retrieve_IUCN_data <- function(speciesList){ IUCN_status <- data.frame(Species = character(...
<div x-data="imagesPicker()" x-init="handleInit" x-ref="imagesPicker" class="images-picker" > <input x-ref="inputFile" class="images-picker__input" type="file" name="{{$name ?? 'files'}}[]" accept="image/*" multiple x-on:change="handleChange" ...
import React from 'react'; import { CloseButton } from '../../CloseButton'; import { FeedbackType, feedbackTypes } from '..'; import { ArrowLeft, Camera } from 'phosphor-react'; import { ScreenshotButton } from '../ScreenshotButton'; import { api } from '../../../lib/api'; import { Loading } from '../../Loading'; inte...
// // SearchViewController.swift // Root // // Created by Jayden Garrick on 1/13/18. // Copyright © 2018 Jayden Garrick. All rights reserved. // import UIKit import MapKit protocol SearchViewControllerDelegate : class { func updateLongLat(long: Double, lat: Double) } class SearchViewController: UIViewContr...
import type { SharedDevConfig, NormalizedSharedDevConfig } from './dev'; import type { SharedHtmlConfig, NormalizedSharedHtmlConfig } from './html'; import type { SharedOutputConfig, NormalizedSharedOutputConfig, } from './output'; import type { SharedSourceConfig, NormalizedSharedSourceConfig, } from './source...
<?php namespace Illuminate\Cache; use Illuminate\Contracts\Cache\Store; class TaggedCache extends Repository { use RetrievesMultipleKeys; /** * The tag set instance. * * @var \Illuminate\Cache\TagSet */ protected $tags; /** * Create a new tagged cache instance. * ...
import { combineReducers } from 'redux' import { configureStore } from '@reduxjs/toolkit' import { StateType } from 'typesafe-actions' // それぞれ slice.reducer を default export している前提 import accountSlice from './AccountSlice' import NavigationSlice from './NavigationSlice' import UtilSlice from './UtilSlice' import calen...
import { ITooyeaTextureImages } from "@tooyea/types"; import { fabric } from "fabric"; import { TooyeaRepeatGroup } from "./elements/repeat-group"; import { asyncGetImageFromURL, asyncClone } from "./utils/index"; export class TooyeaCanvasOperator { constructor({ el, images, updateCanvas, }: { el: ...
<template> <div class="panel-content"> <div class="panel-top"> <div class="panel-title"> <h1>История</h1> </div> <div class="panel-nav"> <NavSearch v-model="search" /> <NavFilter v-model="sort" :sort-list="sortList" /> <div class="exel"...
--- title: Microsoft Intune 中适用于 Windows 10 设备的电子邮件设置 - Azure | Microsoft Docs description: 创建使用 Exchange 服务器的设备配置电子邮件配置文件,并从 Azure Active Directory 检索属性。 还可启用 SSL,并使用 Microsoft Intune 在 Windows 10 设备上同步电子邮件和日程安排。 keywords: '' author: MandiOhlinger ms.author: mandia manager: dougeby ms.date: 05/14/2020 ms.topic: refere...
import React, { useEffect, useState } from "react"; import { calendarIcon } from "Base/SVG"; import { motion } from "framer-motion"; import Slider from "react-slick"; const flexibleDatesList = [ { id: "1", date: "Mar 9 - Mar 18", day: "Sab - Lun • 8 notti", price: "156€", save: "76€", }, { ...
package com.viaversion.viaversion.libs.fastutil.objects; import java.util.function.*; import java.io.*; import com.viaversion.viaversion.libs.fastutil.*; import java.util.*; public class Object2ObjectOpenHashMap<K, V> extends AbstractObject2ObjectMap<K, V> implements Serializable, Cloneable, Hash { private static...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Complete Responsive Online Study Website Design Tutorial</title> <!-- google fonts cdn link --> <link rel="preconnect" href="https://fonts.gstatic.com"> ...
/******************************************************************************* * Copyright (c) 2013 -- WPI Suite * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at ...
/* Copyright 2016 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, ...
/**************************************************************** * Licensed to the Apache Software Foundation (ASF) under one * * or more contributor license agreements. See the NOTICE file * * distributed with this work for additional information * * regarding copyright ownership. The ASF licenses this...
syntax = "proto3"; option go_package = "proto/ratelimiter"; package ratelimiter; import "google/api/annotations.proto"; service RateLimitService { rpc CreateRateLimiter (CreateRateLimiterRequest) returns (RateLimiter){ option (google.api.http) = { post: "/ratelimiter" body: "rate...
= Data Affinity Data affinity ensures that related entries exist on the same member. If related data is on the same member, operations can be executed without the cost of extra network calls and extra wire data. This feature is provided by using the same partition keys for related data. == PartitionAware **Co-locati...
from .. import constants, logger from . import base_classes, api class Object(base_classes.BaseNode): """Class that wraps an object node""" def __init__(self, node, parent=None, type=None): logger.debug("Object().__init__(%s)", node) base_classes.BaseNode.__init__(self, node, parent=parent, ty...
/** * The MIT License (MIT) * * Igor Zinken 2023 - https://www.igorski.nl * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, including without limitation the rights to * u...
package handler import ( "encoding/json" "net/http" "github.com/leonardfreitas/golang-cloud-run/internal/usecase" ) type GetPlaceTemperaturesHandler struct { uc usecase.GetPlaceForecast } func NewGetPlaceTemperaturesHandler(uc usecase.GetPlaceForecast) GetPlaceTemperaturesHandler { return GetPlaceTemperaturesH...
package com.example.toy_jetpack import android.os.Bundle import androidx.activity.ComponentActivity import androidx.activity.compose.setContent import androidx.compose.foundation.layout.Column import androidx.compose.material3.Text import androidx.compose.runtime.Composable import androidx.compose.ui.res.painterResour...
# Todo List **Todo List** is an App that lets Users keep records of tasks they wish to accomplish. # Description The ToDo-List App is an App that can help Users to organize and keep track of their daily Tasks and Goals. There is also the option to add Reminders for specific Tasks that the User wishes to accomplish. ...
#region Copyright Notice & License Information // // Memory.cs // // Author: // Matthew Davey <matthew.davey@dotbunny.com> // // Copyright (c) 2013 dotBunny Inc. (http://www.dotbunny.com) // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documen...
import { ImageBackgroundProviderBase } from '$backgrounds/common-image/provider-base'; import { logger } from '$lib/logger'; import { storage } from '$stores/storage'; import pDebounce from 'p-debounce'; import type { Settings } from './settings'; import { minutesToMilliseconds, secondsToMilliseconds, millisecondsToSec...
import { ChangeEvent } from "react" import { TaskType } from "./Todolist" import { EditableSpan } from "./EditableSpan" import IconButton from "@mui/material/IconButton" import DeleteIcon from '@mui/icons-material/Delete' import Checkbox from "@mui/material/Checkbox" import styled from "styled-components" import List f...
<?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_heigh...
import React from "react"; import { useState } from "react"; import { useNavigate } from "react-router-dom"; import GoogleLogo from "../images/google.jpg"; import FacebookLogo from "../images/facebook.png"; import Screen from "../components/Screen"; import AuthFinder from "../apis/AuthFinder"; function Login(props) ...
RECURSION: time : O(2^N)+more space : O(N) code : int helper(int idx, int cap ,vector<int> &profit, vector<int> &weight){ if(idx==0){ if(cap%weight[0]==0) return profit[0]*cap/weight[0]; return 0; } int notTake = helper(idx-1 ,cap , profit , weight); int take = ...
from django.db import models from django.contrib.auth.models import User # Create your models here. # news_api/models.py class Article(models.Model): id = models.CharField(primary_key=True, max_length=32) title = models.CharField(max_length=200) author = models.CharField(max_length=100, null=True, blank=T...
import { useState } from 'react'; import LogoTitle from '../../assets/images/logo-title.png' import { Link } from 'react-router-dom' import './index.scss'; import AnimatedLetters from '../AnimatedLetters'; import { useEffect } from 'react'; import MyPhoto from '../../assets/images/my-photo.jpg' import Logo from './Logo...
# [605. 种花问题](https://leetcode.cn/problems/can-place-flowers/description/) ## 说明 > 假设有一个很长的花坛,一部分地块种植了花,另一部分却没有。可是,花不能种植在相邻的地块上,它们会争夺水源,两者都会死去。 > 给你一个整数数组 flowerbed 表示花坛,由若干 0 和 1 组成,其中 0 表示没种植花,1 表示种植了花。另有一个数 n ,能否在不打破种植规则的情况下种入 n 朵花?能则返回 true ,不能则返回 false 。 > 示例 1: > > ``` > > 输入:flowerbed = [1,0,0,0,1], n = 1 > > ...
#include <iostream> class Treap { private: struct Node { int64_t key; int64_t priority; int64_t size; Node* left; Node* right; Node* parent; int64_t result; explicit Node(int64_t key) : key(key), priority(std::rand()), size(1), left(nullptr), right(nullptr), parent(nullptr) ...
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import { BrowserRouter, Route, Switch } from 'react-router-dom'; import promise from 'redux-promise'; import './style.css'; import 'bootstrap'; import './scss/app.sc...
from database.models import Student from database.query import is_user from database.manipulate import commmit_student from telegram import InlineKeyboardButton, InlineKeyboardMarkup from telegram.ext import ( CallbackQueryHandler, CommandHandler, Filters, ConversationHandler, MessageHandler, ) #...
<!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"> <link rel="stylesheet" href="style.css"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/fon...
"use client" import React, { useContext, useEffect } from 'react'; import Head from 'next/head'; import { useMetaMask } from "metamask-react"; import styles from '../styles/Home.module.css'; import Link from 'next/link'; export default function Homepage() { const { status, connect, account } = useMetaMask(); ...
package ohrman.max; import java.util.Map; import java.util.TreeMap; public class Basket { private final String name; private final Map<StockItem, Integer> list; public Basket(String name) { this.name = name; this.list = new TreeMap<>(); } /** * Method adds item of quantity t...
package com.example.restapi_skillfactory.controller; import com.example.restapi_skillfactory.dto.UserBalanceDTO; import com.example.restapi_skillfactory.mapper.OperationMapper; import com.example.restapi_skillfactory.mapper.UserBalanceMapper; import com.example.restapi_skillfactory.repository.OperationRepository; impo...
import { mustBeStringOrFail } from '../string.utils'; describe('StringUtils', () => { describe('mustBeStringOrFail', () => { const expectedErrorMessage = 'Provided value must be a string.'; describe('when no value is passed', () => { it('should throw error', () => { expect(() => mustBeStringOr...
#!/usr/bin/env perl use exact -cli, -conf; use QuizSage::Model::Meet; use QuizSage::Model::Season; use YAML::XS 'LoadFile'; my $opt = options( qw{ context|c=s id|i=i region|r=s season|e=s name|n=s location|l=s start|s=s days|d=i password|p=s yaml|y=s action|a=s } ); $opt->{...
import { GraphicItem, GraphicItemOpt } from "./GraphicItem"; import { GeoPoint } from "../../../Utils/GeoPoint"; import { GraphicGroup } from "./GraphicGroup"; /** * @类型 外部使用类 * @描述 点几何体绘制对象 */ export declare class PointGraphic extends GraphicItem { protected _opt: PointGraphicOpt; protected _type: string; ...
import { SlashCommand } from '../../structures/SlashCommand'; import { client, distube } from '../..'; import { ApplicationCommandOptionType } from 'discord.js'; import { formatTimeDisplay, trimString } from '../../utils'; export default new SlashCommand({ data: { name: 'seek', description: 'Przewi...
// _____ _ _ _ _ _ _ // | ___(_)_ __ ___ (_)_ __ | |_| |__ ___ | | __ _| | _____ // | |_ | | '__/ _ \ | | '_ \ | __| '_ \ / _ \ | | / _` | |/ / _ \ // | _| | | | | __/ | | | | | | |_| | | | __/ | |__| (_| | < __/ // |_| |_|_| \___| |_|_| |_| \__|_| |_|\_...
<template> <a-modal :title="title" :width="width" :visible="visible" :confirmLoading="confirmLoading" @ok="handleOk" @cancel="handleCancel" :destroyOnClose="true" cancelText="关闭"> <a-spin :spinning="confirmLoading"> <a-form :form="form"> <a-form-item label="创建人" :lab...
import { ChevronDownIcon } from "@heroicons/react/outline"; import { signOut, useSession } from "next-auth/react"; import React, { useEffect, useState } from "react"; import { shuffle } from "lodash"; import { playlistIdState, playlistState } from "../atoms/playlistAtom"; import { useRecoilState, useRecoilValue } from ...
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { faBed, faBath, faUsers, faStar, } from "@fortawesome/free-solid-svg-icons"; import { Link, useLocation } from "react-router-dom"; import likeIcon from "../assets/icon.png"; import pinkLikeIcon from "../assets/pink-icon.png"; const Apart...
import 'package:flutter/material.dart'; import 'package:intl/intl.dart'; import 'package:attendance_in/services/auth.dart'; import 'package:attendance_in/shared/constants.dart'; import 'package:attendance_in/shared/loading.dart'; class SignIn extends StatefulWidget { final Function toggleView; SignIn({required thi...
let count = 360; //30 529 let rock; let paper; let scissor; let rocks = []; let papers = []; let scissors = []; let numRocks = count; let numPapers = count; let numScissors = count; let numOverall = count * 3; let picks = ["Rock", "Paper", "Scissor"]; function preload() { rock = loadImage("Draws/Rock.png"); pa...
// Copyright 2022 a76yyyy && CloudWeGo Authors // // 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 ...
import { Query } from "@/application/types"; import { rideEntityMock } from "@/slices/ride/entities/RideEntity.spec"; import { UpdateRideRepository } from "@/slices/ride/repositories"; import { mock, MockProxy } from "jest-mock-extended"; import MockDate from "mockdate"; import { updateRide, updateRideUsecase } from "....