text
stringlengths
184
4.48M
// Final Project Milestone 4 // // Version 1.0 // Date 2023-04-03 // Author Ching Wei Lai // Description // This program test the student implementation of the PosApp class // for submission. // #define _CRT_SECURE_NO_WARNINGS #include <cstring> #include <iostream> #include <iomanip> #include <string> #include <cctyp...
# Copyright (c) 2020-present, Royal Bank of Canada. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # from typing import Tuple, Dict import numpy as np from ssl import constants as c from ssl.loader import datautils from ...
#include <chrono> #include <iostream> #include <sstream> #include <thread> #include <benchmark/benchmark.h> void func1() { std::string a = "hello"; std::string b = "world"; std::string c = ""; for (int i = 0; i < 10000; i++) { c = a + b; } } void func2() { std::string a = "hello"; std::string b = "...
################## -Explicacion General del funcionamiento- ############################ ######################################################################################## -Archivo Principal (app.js): -Ajusta el Canvas a la pantalla (que la cubra hasta abajo) -Se encarga de los cambios de GameMode. Y de ...
import React, { useEffect, useState, useRef } from "react"; import { useNavigate, useOutletContext } from "react-router-dom"; import PostService from "../services/PostService"; import ShopService from "../services/ShopService"; import AuthService from "../services/AuthService"; const AddProduct = () => { const navig...
<!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="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.1/css/all.min.css" integrity="sha512-+4zCK9k+qNFUR5X+cKL9EIR+ZOh...
import XCTest @testable import SeaShell @testable import BasicMath final class SeaShellTests: XCTestCase { let seaShell = SeaShell(math: Math()) func testAdd() throws { XCTAssertEqual(seaShell.add(a: 1, b: 2), 3) } func testSubtract() throws { XCTAssertEqual(seaShell.subtract(a: 2...
import { useEffect, useState } from "react"; import { Form } from "./Form"; import { uid } from "uid"; import List from "./components/List"; import useLocalStorageState from "use-local-storage-state"; import "./styles.css"; function App() { const [emoji, setEmoji] = useState("⏳"); const [temp, setTemp] = useState(...
/* * Copyright 2022 storch.dev * * 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 i...
import { Routes } from "@angular/router"; import { HomeComponent } from "./home/home.component"; import { ErrorPageComponent } from "./error-page/error-page.component"; import { JourneysComponent } from "./journeys/journeys.component"; import { JourneyFormComponent } from "./journey-form/journey-form.component"; import...
import pygame from configs import width, height # Item 클래스 class Item: def __init__(self, x, y): self.image = pygame.image.load('item.png') self.size = [30, 30] self.image = pygame.transform.scale(self.image, (self.size[0], self.size[1])) self.x = x self.y = y self....
import { TestBed } from '@angular/core/testing'; import { RouterTestingModule } from '@angular/router/testing'; import { AppComponent } from './app.component'; import { MatFormFieldModule } from '@angular/material/form-field'; import { MatInputModule } from '@angular/material/input'; import { MatButtonModule } from ...
import { playwrightExpect } from '../utils/fixtureHooks'; /* The above code is a generic class which is used to call the playwright expect methods but its all generic. */ export abstract class ExpectGenericCoreCalls { public static negativeAssertion: boolean = false; /** * toHaveLength * * To check if the o...
from datetime import datetime, timedelta from airflow import DAG from airflow.operators.python_operator import PythonOperator import pandas as pd from sqlalchemy import create_engine import tempfile import os import ccxt def create_dataframe(**kwargs): exchange = ccxt.binance() bars = exchange.fetch_ohlcv("BT...
package chaperone.com.securityConfig; import org.springframework.beans.factory.annotation.Value; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.security.authentication.AuthenticationManager; import org.springframework.security...
import React from "react"; import { Paper, Title, Text, TextInput, Button, Container, Group, Anchor, Center, Box } from "@mantine/core"; import { showNotification } from "@mantine/notifications"; import { ArrowLeft } from "tabler-icons-react"; import { Link } from "react-router-dom"; import { useStyles } from "../../s...
import { useReducer } from "react"; import { MemoryGameContext } from "../contexts/MemoryGameContext"; import { shuffle } from "../util"; import Card from "./Card"; import leagueLogo from "../assets/league-logo.png"; function reducer(state: MemoryGame, action: GameCardAction): MemoryGame { function resetCards() { r...
import React, { useEffect, useState } from 'react'; import raw from '../files/day10.txt'; import { readFile } from '../utils'; const Day10 = () => { const [input, setInput] = useState(); const [part, setPart] = useState(); const [part1Result, setPart1Result] = useState(); const [part2Result, setPart2Result] = ...
const video = document.getElementById('video') Promise.all([ faceapi.nets.tinyFaceDetector.loadFromUri('/models'), faceapi.nets.faceLandmark68Net.loadFromUri('/models'), faceapi.nets.faceRecognitionNet.loadFromUri('/models'), faceapi.nets.faceExpressionNet.loadFromUri('/models') ]).then(GetBrightness) // func...
import { AccountBox, DarkMode, Group, Home, ModeNight, Pages, Settings, Shop, VerifiedUserSharp, } from "@mui/icons-material"; import { Box, List, ListItem, ListItemButton, ListItemIcon, ListItemText, Switch, } from "@mui/material"; import React from "react"; const SideBar = ({ mode, se...
import { FunctionComponent } from 'react'; import styled from 'styled-components'; import { Palette } from '@/types/theme'; import InputFieldWrapper, { BaseInputProps } from '../inputFieldWrapper'; type BaseCheckboxProps = Omit<JSX.IntrinsicElements['input'], 'type' | 'checked'>; type Props = BaseInputProps & BaseChec...
# Algoritmo De Ordenaçao QuickSort. O algoritmo QuickSort é um eficiente algoritmo de ordenação que segue a abordagem "divide e conquista" para ordenar uma lista de elementos. Ele foi desenvolvido por Tony Hoare em 1959 e é amplamente utilizado devido à sua eficiência e velocidade em muitos casos. - A ideia fundament...
package main /** * Represents a SelfClosingElement entity within a ParentElement structure. * This class implements the [Element] interface. * * @property name The name of the SelfClosingElement entity. * @property content The content associated with the SelfClosingElement entity. * @property parent The parent Pa...
const passport = require('passport'); const { Strategy: LocalStrategy} = require('passport-local'); const bcrypt = require('bcrypt'); const { User } = require('../models'); module.exports = () => { passport.use(new LocalStrategy({ usernameField: 'email', //여기가 아이디 칸. req.body에서 받아오는 것의 이름. 만약 id이면 id로 ...
---CURSOR THAT UPLOADS ALL THE ENTRIES INSIDE CRC_CHECKED OF TABLE UPLAODS TO "YES" DECLARE total_rows number(3); BEGIN UPDATE UPLOADS SET CRC_CHECKED = 'YES'; IF sql%notfound THEN dbms_output.put_line('No DATA selected'); ELSIF sql%found THEN total_rows := sql%rowcount; dbms_...
import { AppError } from "@shared/errors/AppError"; import HttpStatusCode from "@shared/errors/HttpStatusCode"; import { Request, Response } from "express"; import { container } from "tsyringe"; import { CreateSpecificationUseCase } from "./CreateSpecificationUseCase"; /** NOTE TSyringe * * container.resolve() é us...
import PropTypes from "prop-types"; import { forwardRef } from "react"; import { SelectContainer, SelectLabel, StyledSelect } from "./styles"; const SelectDespacho = forwardRef( ({ labelText, helperText, inputName, data, ...props }, ref) => { return ( <SelectContainer> <SelectLabel htmlFor={inputNa...
# Validando Endereços IP (IPv4) com Expressões Regulares em Python 3 **Introdução:** A validação de endereços IP (IPv4) é uma tarefa comum em programação, e uma maneira eficiente de realizar essa validação é através do uso de expressões regulares em Python 3. Expressões regulares são padrões de busca em strings, permi...
import { Button, Grid, Paper, Typography } from "@mui/material"; import { CardElement, Elements, ElementsConsumer } from "@stripe/react-stripe-js"; import { loadStripe } from "@stripe/stripe-js"; import { useContext } from "react"; import CommerceHandler from "../../../contexts/commerce-context"; import styles from "....
<script> import axios from 'axios'; import { endpoint } from '../data'; import AppLoader from '../components/AppLoader.vue'; import ApartmentCard from '../components/apartments/ApartmentCard.vue'; import AppHeader from '../components/AppHeader.vue'; import AppHero from '../components/AppHero.vue'; export default { ...
import React, { useEffect, useState } from "react"; import { XrplClient } from "xrpl-client"; import ListedNFT from "./ListedNFT"; const client = new XrplClient(); type AccountNfts = { Issuer: string; NFTokenID: string; NFTokenTaxon: number; nft_serial: number; flags: number; TransferFee: number; URI?: ...
# 10.1 객체지향 쿼리 소개 Criteria / queryDSL 등은 결국 JPQL을 편리하게 다루도록 해주는 기술이므로 JPQL을 잘 숙지해야 한다. --- EntityManager.find() 메소드를 사용해서 식별자로 엔티티 하나를 조회 할 수 있고, 조회된 엔티티에 객체 그래프 탐색으로 연관된 엔티티들을 조회할 수 있다. 하지만 이 기능만으로 어플리케이션을 개발하기는 힘들다. 예를 들어 나이 30살 이상의 미필 남자만 검색하는 방법이 필요하다. 식별자로 모든 회원을 메모리에 올리고 컬렉션을 필터링 하는 방법은 현실성이 없다. SQL로 결국에 ...
from pydantic import BaseModel, Field from datetime import datetime from typing import Optional class ServiceModel(BaseModel): id: int = Field(default = None) name: str company_id: int description: str price: float created_at : datetime = Field(default = None) class ServicePostModel(BaseModel)...
import { ChatInputCommandInteraction, SlashCommandBuilder, SlashCommandNumberOption, SlashCommandStringOption, TextChannel, } from "discord.js"; import { ExtendedClient } from "../interfaces/ExtendedClient"; import * as ShopUtils from "../models/Shop"; import { isAdmin } from "../utils/isAdmin"; export const...
/** * @param {string} text1 * @param {string} text2 * @return {number} */ var longestCommonSubsequence = function(text1, text2) { // text1, text2 길이 비교 // dp const m = text1.length, n = text2.length; // edge case 를 위해 m+1, n+1로 dp 배열 생성 let dp = new Array(m+1).fill().map(() => new Array(n+1).fil...
# Automatización de Reportes Diarios y Distribución de Correos Electrónicos ## Descripción General Este script automatiza el proceso de descarga de reportes diarios desde Google Drive, procesamiento de datos desde archivos Excel, generación de reportes resumen y envío de estos reportes por correo electrónico a las tie...
import { RequestHandler } from "express"; import ErrorCodes from "../utils/ErrorCodes"; import { STATUS_CODES } from "http"; export const svcErr: RequestHandler = function (req, res, next) { res.svcErr = function (error: { code: number; data: any }) { const httpsStatusCode: number = error?.code && !!STATUS...
from django.shortcuts import render from django.http import HttpResponse from django.conf import settings from channels.generic.websocket import AsyncWebsocketConsumer import cv2 import os import face_recognition import asyncio prototxt = "/home/edmartinez/Documents/UTPL/Septimo Ciclo/Inteligencia Artificial/Deteccion...
import { useForm } from "react-hook-form"; import { yupResolver } from "@hookform/resolvers/yup"; import { useNavigate } from "react-router-dom"; import { addForm, addSchema } from "../../models/category"; import { addCategory } from "../../api/category"; const AddCategory = () => { const navigate = useNavigate(); ...
<div class="container"> <div class="alert alert-danger" *ngIf="errorMsg"> {{ errorMsg }} </div> <!--form for number of tickets--> <form #UserFrom="ngForm" *ngIf="!submitted" (ngSubmit)="submit()"> <h1>Select Your Tickets here!</h1> <br /> <div class="row"> <div class="col"> <h6>V...
Duck class Goal: - to deal with vary behaviours through subclasses: - flying_behaviours - quack_sound Design Principle 1: "Take what varies and “encapsulate” it" if you’ve got some aspect of your code that is changing, saywith every new requirement, then you know you’ve got a behaviour that needsto be pulled out and...
// *********************************************** // This example commands.js shows you how to // create various custom commands and overwrite // existing commands. // // For more comprehensive examples of custom // commands please read more here: // https://on.cypress.io/custom-commands // ***************************...
import { createApi, fetchBaseQuery } from '@reduxjs/toolkit/query/react' import { CreateNotificationDto } from '../../interfaces/CreateNotificationDto' const notificationsApi = createApi({ reducerPath: 'messageLogs', baseQuery: fetchBaseQuery({ baseUrl: process.env.REACT_APP_API_BASE_URL, }), endpoints(bui...
import { SortAZ } from "assets/icons/SortAZ"; import axios from "axios"; import Image from "components/image/image"; import moment from "moment"; import { useRouter } from "next/router"; import React, { useState } from "react"; import Table from "react-bootstrap/Table"; import { FormattedMessage } from "react-intl"; im...
describe('API Response after Submit Button Click', () => { it('captures the response of an API call after clicking on submit button', () => { // Intercept the API call cy.intercept('POST', '/signup').as('submitRequest'); // Visit the webpage cy.visit('https://automationexercise.com...
from django.shortcuts import render # Create your views here. """ Views for the recipe APIs """ from rest_framework import viewsets from rest_framework.authentication import TokenAuthentication from rest_framework.permissions import IsAuthenticated from core.models import Recipe,Tag from recipe import serializers fr...
--- tags: - SigmaScheduling --- # Float To Sigmas ## Documentation - Class name: `FloatToSigmas` - Category: `KJNodes/noise` - Output node: `False` Transforms a list of float values into a tensor of sigmas, facilitating the conversion of numerical data into a format suitable for noise generation and manipulation with...
<!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="style.css" /> <script> function validateForm() { var firstName = document.getElementById("fname").value; var lastName...
import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { HttpClientModule } from '@angular/common/http' import { AppRoutingModule } from './app-routing.module'; import { AppComponent } from './app.component'; import { NoopAnimationsModule } from '@angular/platform-br...
import { Module } from "@nestjs/common"; import { UserModule } from "./user/user.module"; import { OrganizationModule } from "./organization/organization.module"; import { WebsiteModule } from "./website/website.module"; import { PageModule } from "./page/page.module"; import { PageSectionModule } from "./pageSection/p...
package baekjoon_01001_02000; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.FileInputStream; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.PriorityQueue; import java.util.S...
import Link from "next/link"; import { type FC } from "react"; import { RegisterForm } from "@/app/features/register/registerForm"; import { I18nProps } from "@/app/i18n/props"; import { ERoutes } from "@/app/shared/enums"; import { createPath } from "@/app/shared/utils"; import { ETypographyVariant, Typography, } ...
import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { PedidosComponent } from './components/vistas/pedidos/pedidos.component'; import {FormComponent} from './components/vistas/form/form.component'; import { AddressFormComponent } from './components/vistas/address-for...
import React from "react"; import "./filialinner.scss"; import Footer from "../../footer/Footer"; import Navbar from "../../navbar/Navbar"; import { ApiFuncsContext } from "../../../anyFunc/apiFuncs"; import { useParams } from "react-router-dom"; const FilialInner = ({ match }) => { const { filials } = React.useCont...
import 'package:flutter/material.dart'; import 'package:get/get.dart'; import 'package:shop_getx/controllers/admin/category_controller.dart'; import 'package:shop_getx/controllers/client/shopping_cart_controller.dart'; import 'package:shop_getx/core/app_colors.dart'; import 'package:shop_getx/core/app_sizes.dart'; impo...
import { createReducer, on } from '@ngrx/store'; import { User } from '../models/user'; import * as fromAuthActions from './auth.actions'; export const authFeatureKey = 'auth'; export interface State { user: User | null; error: any; isLoggedIn: boolean | null; } export const initialState: State = { ...
// // CNAccountInputView.m // HYNewNest // // Created by cean.q on 2020/7/13. // Copyright © 2020 james. All rights reserved. // #import "CNAccountInputView.h" @interface CNAccountInputView () <UITextFieldDelegate> @property (weak, nonatomic) IBOutlet UILabel *tipLb; @property (weak, nonatomic) IBOutlet UITextFi...
package by.itacademy.ganina.core.sorter.impl; import by.itacademy.ganina.core.sorter.SortingReader; import by.itacademy.ganina.core.sorter.SortingReaderException; import by.itacademy.ganina.core.sorter.SortingType; import by.itacademy.ganina.web.model.Transport; import java.util.ArrayList; import java.util.Comparator...
--- title: Accélération des téléchargements de Brand Portal seo-title: Speed up the Brand Portal downloads description: Améliorez les performances de téléchargement à partir de Brand Portal et des liens partagés. seo-description: Enhance download performance from Brand Portal and the shared links. uuid: 2871137e-6471-4...
/* * Copyright 2015 Philip Gasteiger * * 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...
<?php namespace Database\Factories; use Illuminate\Database\Eloquent\Factories\Factory; /** * @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Service> */ class ServiceFactory extends Factory { /** * Define the model's default state. * * @return array<string, mixed> */ ...
<!DOCTYPE html> <html lang="en"> <header> <meta charset="UTF-8"> <title>Парный тег</title> <link rel="stylesheet" href="../../../css/DeskBook.css"> </header> <head> <table width="100%" border="0" cellspacing="3" cellpadding="0"> <tr align="center"> <td> <img align="left" src="../../../im...
import React from "react"; import styles from "./UserDetail.module.scss"; import classNames from "classnames"; import moment from "moment"; import UserCommonBtn from "./common/UserCommonBtn"; import { useSelector } from "react-redux"; const UserDetails = ({ setStep, setTab }) => { const { userDetails } = useSelector...
% Dynamic Macroeconomics % Author: Edinson Tolentino % Ramsey Cass-Koopmans % FIRST METHODS clc; clear all; clear close; % parameters % ------------------------------------------------- alpha = 0.35; k0 = 0.075; beta = 0.985; tol = 0.00001; T = 30; % steady stacionary %----------------------...
package by.yLab; import static by.yLab.util.SelectionItems.*; import by.yLab.inOut.*; import by.yLab.util.Action; import by.yLab.util.FormatDateTime; import by.yLab.entity.Audit; import by.yLab.entity.Exercise; import by.yLab.entity.NoteDiary; import by.yLab.entity.User; import by.yLab.dto.ExerciseDto; import by.yLab...
import tkinter as tk import nltk from nltk import bigrams, FreqDist from nltk.probability import ConditionalFreqDist import os from tkinter import ttk from nltk.tokenize import word_tokenize import re import numbers import Levenshtein from tkinter import scrolledtext import string root = tk.Tk() file_path = "C:/........
import axios from 'axios'; import firebase from 'firebase'; import inquirer from 'inquirer'; import { log } from '../../utils'; import { AUTH_SITE_ID, FB_DATABASE_URL, FB_WEB_API_KEY, } from '../config'; import readUserConfig from '../helpers/readUserConfig'; import saveUserConfig from '../helpers/saveUserConfig'...
import { Sprite } from '@pixi/sprite'; import i18n from '../../config/i18n'; import { Button } from '../basic/Button'; import { Window as BasicWindow } from '../basic/Window'; import { game } from '../../Game'; import { GameScreen, GameTypes } from '../../screens/GameScreen'; import { LayoutOptions } from '@pixi/layout...
import React, { useState, useEffect, useRef } from "react"; // @material-ui/core components import { makeStyles } from "@material-ui/core/styles"; // core components import GridItem from "../../components/Grid/GridItem.js"; import GridContainer from "../../components/Grid/GridContainer.js"; // import Card1 from "../.....
package com.groupe6.babycare.activities.dialogs; import android.app.Dialog; import android.content.Context; import android.os.Bundle; import android.view.Window; import android.widget.Button; import android.widget.Toast; import androidx.annotation.NonNull; import com.google.android.material.textfield.TextInputEditTe...
//------------------------------------------------ // 逐顶点光照案例,实现逐顶点的漫反射光照 // 缺点:背光面和向光面交界处有锯齿 //------------------------------------------------ Shader "GameLib/Light/DiffuseVertexLevel" { Properties { //材质的漫反射颜色 _Diffuse ("Diffuse", Color) = (1, 1, 1, 1) } SubShader { ...
import javax.swing.*; import java.awt.*; import java.io.InputStream; import java.net.URL; public class ImagePanel extends JPanel { private Image backgroundImage; public ImagePanel(String resourcePath) { try { // Using getClass().getResource() to get the URL of the resource URL ...
import React from 'react'; import { Redirect, Route, Switch } from 'react-router-dom'; import { getParrots } from '../data/parrotResource'; import HomePage from '../pages/HomePage'; import CreateAParrot from '../pages/CreateAParrot'; import AddAPhrase from '../pages/AddAPhrase'; import PickAParrot from '../pages/PickAP...
--- unique-page-id: 18874767 description: Impostazione delle fasi del boomerang - [!DNL Marketo Measure] - Documentazione del prodotto title: Impostazione delle fasi del boomerang exl-id: 00dd2826-27a3-462e-a70e-4cec90d07f92 feature: Boomerang source-git-commit: 8ac315e7c4110d14811e77ef0586bd663ea1f8ab workflow-type: t...
import 'package:calorie_tracker/src/views/tracking/plan_calculators/CustomPlan.dart'; import 'package:calorie_tracker/src/views/tracking/plan_calculators/MifflinStJeorCalculator.dart'; import 'package:flutter/material.dart'; import 'package:flutter_gen/gen_l10n/app_localizations.dart'; class PlanCalculators extends St...
import axios from 'axios' import { AxiosInstance } from 'axios' import { ElLoading } from 'element-plus' import { JHRequestInterceptors, JHRequestConfig } from './type' import { LoadingInstance } from 'element-plus/lib/components/loading/src/loading' import { commentlike, commentReply, LikeMusic, UserSub, Use...
package com.yy.codebasecase.ui.screens.propertylist import androidx.lifecycle.ViewModel import androidx.lifecycle.viewModelScope import com.yy.codebasecase.domain.usecase.GetPropertiesUseCase import com.yy.codebasecase.utils.Resource import dagger.hilt.android.lifecycle.HiltViewModel import kotlinx.coroutines.flow.Mut...
@extends('layouts.app') @section('content') <div class="section-header"> <h1>Carousel</h1> <div class="section-header-breadcrumb"> <div class="breadcrumb-item"><a href="{{ route('home') }}">Dashboard</a></div> <div class="breadcrumb-item"><a href="{{ route('konfigurasi') }}">Konfigurasi</a></di...
import React from 'react' import styled from 'styled-components' import { useLcdText } from '../../hooks' const NUM_COLS = 16 const NUM_ROWS = 2 const DisplayOuter = styled.div` display: flex; border: 1px solid #b8b8b82b; background-color: #0f0f0f; padding: 20px; ` const DisplayInner = styled.div` flex-gro...
package com.example.demo.items.model; import com.example.demo.users.model.User; import com.fasterxml.jackson.annotation.JsonBackReference; import jakarta.persistence.*; import jakarta.validation.constraints.Min; import jakarta.validation.constraints.NotBlank; import jakarta.validation.constraints.Size; import lombok.D...
import React from 'react'; import {FontAwesomeIcon} from "@fortawesome/react-fontawesome"; import {faEnvelope} from "@fortawesome/free-solid-svg-icons"; import {faPhone} from "@fortawesome/free-solid-svg-icons"; import {faLocationDot} from "@fortawesome/free-solid-svg-icons"; import './Contact.css' const Contact = () ...
import React, { Component } from 'react' import '../../assets/index.css' // 导入图片 import tx from '../../assets/images/avatar.png' // 导入moment import mt from 'moment' class App extends Component { // B站评论数据 state = { // 新增评论输入 content: '', // hot: 热度排序 time: 时间排序 tabs: [ { id: 1, ...
// Copyright 2022 The SiliFuzz 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or a...
<?php namespace Tests\Feature; use Database\Factories\Authorized_usersFactory; use Database\Factories\UserFactory; use Illuminate\Foundation\Testing\DatabaseTransactions; use Tests\TestCase; class NavigationTest extends TestCase { use DatabaseTransactions; public function test_normal_user_nav_links() { ...
// import { configureStore } from '@reduxjs/toolkit'; // import { persistReducer } from "redux-persist"; // import storage from "redux-persist/lib/storage"; // import userReducer from './slices/userSlice'; // import newsReducer from './news/news-slice'; // export const store = configureStore({ // reducer: { // ...
<?php /* * Debugging Tools for weird content * * @since 2.4 */ // if this file is called directly abort if ( ! defined( 'WPINC' ) ) { die; } class LWTV_Debug { /** * Sanitize social media handles * @param string $usename Username * @param string $social Social Media Type * @return string sa...
<script> import axios from "axios"; import {onMount} from "svelte" import {handleCloseModal} from "../hooks.js" import CloseSrc from '../../public/icons/close_24.svg'; import { isAddList, pathname, API_URL, allLists, inProgressLists, doneLists } from "../store.js"; import Calendar from "./Calen...
using System.Collections; using System.Collections.Generic; using UnityEngine; public class BirdMovementScript : MonoBehaviour { [SerializeField] private float moveSpeed = 5.0f; [SerializeField] private float jumpForce = 5.0f; [SerializeField] private float decelerationSpeed = 5.0f; [SerializeField] pr...
import React, { useMemo } from 'react'; import { getShapeInfo } from '../../lib/utils'; const LeftSideBar = ({ allShapes }) => { const memoizedShapes = useMemo( () => ( <section className='hidden bg-[#1F2937] md:flex flex-col w-[200px] h-full select-none overflow-y-auto pb-20'> <h3 className='px-5 ...
<template> <div> <Menu as="div" class="relative"> <MenuButton v-slot="{ open }" class="flex items-center justify-center p-1 text-gray-400 rounded-full" > <transition mode="out-in" name="fade"> <Icon v-if="open" name="bi:x" size="20" /> <Icon v-else name="bi:three-dots-vertical" size="20" ...
var createError = require("http-errors"); var express = require("express"); var path = require("path"); var cookieParser = require("cookie-parser"); var logger = require("morgan"); const { createCanvas, loadImage } = require("canvas"); const { writeFileSync } = require("fs"); var indexRouter = require("./routes/index")...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> <link href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet"> </head> <!-- <ul id="friends"></ul>...
import java.util.Arrays; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); // 알파벳 개수만큼 arr 배열 생성하고 // 알파벳 번호인 인덱스에 ++ String input = sc.next().toUpperCase(); // 대문자로 바꿔주기 int[] arr = new int[26]; // 이중 for문 for (int i = 0; i ...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #ifndef __MPLANE_EXTERNAL_IO_H__ #define __MPLANE_EXTERNAL_IO_H__ #include <stdbool.h> #include <stdint.h> #include <unistd.h> ...
<html> <h1> Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones 2023 Best Book </h1> <p> Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones is a self-help book by James Clear, published in 2018. The book has been translated into more than 40 languages and has sold over 5...
import { useState, useEffect } from 'react'; import Section from 'components/Section'; import Statistics from 'components/Statistics'; import FeedbackOptions from 'components/FeedbackOptions'; import Notification from 'components/Notification'; import Container from './app.styled'; export const App = () => { const [...
// 5-payment.test.js const sinon = require('sinon'); const chai = require('chai'); const expect = chai.expect; const sendPaymentRequestToApi = require('./5-payment'); const Utils = require('./utils'); describe('sendPaymentRequestToApi', function () { let consoleLogSpy; beforeEach(function () { // Crea...
import { useEffect, useState } from 'react'; import React from 'react'; import './css/Header.css'; function Header() { const [word, setWord] = useState(''); const [wordIndex, setWordIndex] = useState(0); const [letterIndex, setLetterIndex] = useState(0); const [isEndOfWord, setIsEndOfWord] = useState(false); /...
import { observer } from "mobx-react-lite"; import { useEffect, useState } from "react"; import { Button, Divider, Dropdown, Header, Segment } from "semantic-ui-react"; import { useStore } from "../../../app/stores/store"; import { NavLink, useHistory, useParams } from 'react-router-dom'; import LoadingComponent from "...
<template lang="pug"> div(:class="$style.archive" ref="wrapper" :style="styles") div(@click="selectTab($event, 1)" @mouseover="mouseOver($event, 1)" @mouseleave="mouseLeave" :class="[$style.tab, {[$style.active]: isActive === 1}]") div(:class="$style.inner") span Categories div(:class="$styl...