text
stringlengths
184
4.48M
# HTMLAreaElement.pathname The `HTMLAreaElement.pathname` property is a [`USVString`](../usvstring) containing an initial `'/'` followed by the path of the URL not including the query string or fragment (or the empty string if there is no path). ## Syntax // Getter string = area.pathname; // Setter a...
/* Finish the specification of this reservation concept, including its events, scenarios, and operational principles. */ sig Resource {} sig User { var reservations : set Resource } var sig Available in Resource {} pred reserve[u : User, r : Resource] { // Make a reservation //guarda r in Available //effect...
import React, { useMemo } from "react" import { useLocation, matchPath } from "react-router-dom"; import { FormType } from "../types/FromType"; export default function PostForm(props: { inputData: (e: React.ChangeEvent<HTMLInputElement>) => void, btnFnc: () => void, data: FormType }) { const { inpu...
# Solar Explorer App Welcome to Solar Explorer, a Flutter mobile application that takes you on a journey through our solar system. This app features an animative UI, Firebase authentication, and interactive login and signup pages. ## Table of Contents - [Installation](#installation) - [Features](#features) - [Fireba...
<div class="col-sm-12"> <button class="btn btn-primary btn-sm" ng-back><i class="fa fa-arrow-left fa-lg"></i> Back </button> </div> <br><br> <br> <div class="col-sm-12"> <div class="panel profile-panel"> <div class="panel-heading panel-background"> <h3 class="panel-title">Upd...
## ESP32 Rapberry Pico Zero Example This is similar the [pizero to pizero](https://github.com/jouellnyc/UART/tree/main/pizero_simple) example, here we we add an esp32. ## Prerequisites - An esp32 - A Pi Zero W These are the same we've been using in the previous projects. # Why? This is another physically conn...
<template> <main v-if="data"> <DataTime :text="title" :dataDate="data.Date"/> <DataBox :stats="stats"/> <CountrySelect @get-country="setCountry" :countries="data.Countries" /> <button v-if="stats.Country" @click="clearCountry" class="w-full mb-6 bg-blue-700 text-white rounded p...
package com.yatish.presentation.ui.character_list import androidx.lifecycle.ViewModel import androidx.lifecycle.viewModelScope import com.yatish.domain.Result import com.yatish.domain.usecase.GetAllCharactersUseCase import com.yatish.presentation.base.ViewIntent import com.yatish.presentation.di.IoDispatcher import co...
// This file isn't processed by Vite, see https://github.com/vikejs/vike/issues/562 // Consequently: // - When changing this file, you needed to manually restart your server for your changes to take effect. // - To use your environment variables defined in your .env files, you need to install dotenv, see https://vike...
// This example illustates basic use of the NMEA library. // It assumes that a GPS receiver is connected to serial // port 'Serial1' at 4800 bps, and that a LED is connected // to digital i/o pin 0. // // A GPS data connection of type GPRMC is created, and // used to get distance to a destination. If the distance // is...
module Cloudflare::Caching class Scanner getter options : Options getter entries : Hash(IPAddress, Set(Entry)) getter lastCleanedUp : Time getter mutex : Mutex def initialize(@options : Options) @entries = Hash(IPAddress, Set(Entry)).new @lastCleanedUp = Time.local @mutex = Mute...
import { app, db, auth } from "./initFirebase"; import { signInWithEmailAndPassword, createUserWithEmailAndPassword, onAuthStateChanged } from "firebase/auth"; import { collection, setDoc, doc } from "firebase/firestore"; const userEmail = document.querySelector("#em"); const userPass = document.querySelector("#pass")...
const chai = require('chai'); const chaiHttp = require('chai-http'); const { server } = require('./Server'); // Importing the server instance const e = require('express'); const { before } = require('mocha'); const { expect } = chai; chai.use(chaiHttp); // Test suite for the Tic Tac Toe Server describe('Tic Tac Toe Se...
import React from 'react'; import { Navigate, useNavigate, useParams } from 'react-router-dom'; import SuperInputText from '../../../components/SuperInputText/SuperInputText'; import SuperButton from '../../../components/SuperButton/SuperButton'; import s from '../CommonAuthStyles.module.scss'; import { useFormik } fro...
<template> <section class="bg-white" > <b-container class="pt-5 pb-5"> <b-row> <b-col class="text-center"> <h3> User Info </h3> <hr class="primary"> </b-col> </b-row> <b-row class="justify-content-center"> <b-col sm="6" clas...
/* * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to * this file be licensed under the Apache-2.0 license or a * compatible open source license. */ package org.opensearch.flowframework.model; import org.opensearch.commons.auth...
/* * Copyright (c) 2013, DIY-Remote Contributors * 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 { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { CurrencyAccountComponent } from './components/currency-account/currency-account.component'; import { HomeComponent } from './components/home/home.component'; import { ForgotPasswordComponent } from './components/l...
import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:page_transition/page_transition.dart'; import 'package:recipe_app/models/recipe.dart'; import 'package:recipe_app/pages/NavPage.dart'; import 'package:recipe_app/pages/landing.dart'; import 'package:recipe_app/pages/login.da...
import { ActionRowBuilder, APISelectMenuOption, ApplicationCommand, ApplicationCommandData, ApplicationCommandType, AttachmentBuilder, ButtonBuilder, ButtonStyle, CacheType, ChatInputCommandInteraction, ForumChannel, OverwriteType, PermissionFlagsBits, SortOrderType, StringSelectMenuBuilder, ThreadAutoArchiveDuration }...
import React, { useContext, useEffect, useState } from "react"; import PosContext from "../../../../../context/posContext"; import { getPlatosByCategoriaId } from "../../../../../services/categoriaService"; import PosPlato from "./PosPlato"; const PosPlatos = () => { const [platos, setPlatos] = useState([]); const...
#region using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; using ITC.Application.AppService.SystemManagers.ServerFileManagers; using ITC.Application.Helpers; using ITC.Domain.Core.Bus; using ITC.Domain.Core.ModelShare.NewsManagers.NewsContentManagers; usi...
import 'dart:async'; import 'dart:math'; import 'package:flutter/material.dart'; import 'package:seerbit_flutter/new/customization.dart'; import 'package:seerbit_flutter/new/methods.dart'; import 'package:seerbit_flutter/new/payload.dart'; Future main() async { WidgetsFlutterBinding.ensureInitialized(); runApp(M...
sqrtMeanScaledRows <- function(X, genes_use, sigma, mu) { if (missing(genes_use)) { genes_use <- rownames(X) } else { if (!all(genes_use %in% rownames(X))) { l_orig <- length(genes_use) genes_use <- intersect(genes_use, rownames(X)) warning(sprintf('removing s...
package com.placementcell.services; import java.util.ArrayList; import java.util.List; import java.util.stream.Collectors; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.placementcell.dto.StudyMaterialResponse; import com.placementcell.entitie...
from pathlib import Path import folium import pandas as pd import geopandas as gpd import numpy as np import streamlit as st from polygeohasher import polygeohasher from streamlit_folium import st_folium #--- PATH SETTINGS --- current_dir = Path(__file__).parent if "_file_" in locals() else Path.cwd() css_file = curre...
--- title: Relay Module Reference sidebar_label: wokwi-relay-module --- Electrically operated switch ![Relay-Module](wokwi-relay-module.svg) ## Pin names | Name | Description | | ---- | ------------------------------------------- | | VCC | Supply voltage ...
import { APIResult } from "./api_result"; import { WeeklyExpenses } from "./expense"; export interface Calculations { /** * Gibt das restliche "Guthaben" für diesen Monat aus. * Abzüglich der kommenden und der getätigten Ausgaben. * @param month * @param year */ calculate_leftover( ...
{-# LANGUAGE FlexibleInstances #-} module Rearrange where import Test.QuickCheck data Sum a b = First a | Second b instance Functor (Sum e) where fmap _ (First a) = First a fmap f (Second b) = Second $ f b data Company a b c = DeepBlue a c | Something b instance Functor (Company e e') wher...
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> <%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" ...
/// © Max Shemetov, 2023 // ignore_for_file: unused_local_variable import 'package:positive_num/positive_num.dart'; void examplePositiveInt(int someNumber) { final (:error, :instance) = PositiveInt.create(someNumber); if (instance != null) { final positiveInt = instance; print('Created a PositiveInt, val...
package game import ( "context" "fmt" "github.com/dark-enstein/crise/internal/tetra" utils2 "github.com/dark-enstein/crise/internal/utils" "github.com/hajimehoshi/ebiten/v2" "log" "sync" ) const ( MAX_TETROMINO_ONSCREEN = 300 ACCELERATION_FACTOR = 0.5 ) // TetrominoManager manages the spawn and despqwn o...
import { JSBI, Pair, Percent } from '@jediswap/sdk' import { darken } from 'polished' import React, { useState } from 'react' import { ChevronDown, ChevronUp } from 'react-feather' import { Link } from 'react-router-dom' import styled from 'styled-components' import { useTotalSupply } from '../../data/TotalSupply' impo...
callirhoe - high quality calendar rendering (c) 2012-2015 George Tzoumas https://geotz.github.io/callirhoe/ QUICK INSTALLATION GUIDE CONTENTS 1) FROM COMPRESSED ARCHIVE 2) FROM GITHUB 3) INSTALLING INTO BINARY PATH 4) INSTALLATION FOR ARCH LINUX (rough installation guide for novice users...) 1) F...
<template > <h2 style="margin-top: 30px;margin-left: 40px;">การบันทึกเข้า-ออกงาน</h2> <v-container> <v-row> <v-col sm="12" md="4"> <v-card style="margin-top: 100px;padding: 18px; border-radius: 16px;" elevation="3"> <div v-for="item in empolyinformation" :key="item.name"> ...
/********************************************************* * UNION TYPE IN TYPESCRIPT * All the possible type which a variable can store. */ let user: { name: string, age: number } | null = null; function getUser(): { name: string, age: number | null } { const uname = 'Shani'; const uage = 34; user = { name: ...
import { useState } from "react"; import { FormItem, FormContainer } from "@/components/ui/Form"; import Button from "@/components/ui/Button"; import Alert from "@/components/ui/Alert"; import PasswordInput from "@/components/shared/PasswordInput"; import ActionLink from "@/components/shared/ActionLink"; import { apiRe...
package logic.card; import logic.game.CardColor; import logic.game.CardSymbol; import logic.game.GameLogic; public class DrawFourCard extends EffectCard { // Constructors public DrawFourCard() { super(null, CardSymbol.DRAW_FOUR); } // Methods @Override public String toString() { ...
import { useState } from "react"; import { useNavigate } from "react-router-dom"; import "../PledgeForm/PledgeForm.css"; function ProjectForm(props) { const { project } = props; //State const [projectDetails, setprojectDetails] = useState({ title: "", description:"", goal: "", ...
from project.formula_teams.formula_team import FormulaTeam from project.formula_teams.mercedes_team import MercedesTeam from project.formula_teams.red_bull_team import RedBullTeam class F1SeasonApp: valid_team_names = ["Mercedes", "Red Bull"] def __init__(self): self.red_bull_team: RedBullTeam or Non...
import argparse import numpy as np import os import time import matplotlib.pyplot as plt from sklearn.metrics import roc_auc_score, auc from tqdm import tqdm import torch import torch.nn as nn from torch.utils.data import DataLoader from mvtec import * from fag import * from networks import * from tools import * torc...
import { inject, injectable } from "tsyringe"; import { hash } from 'bcryptjs'; import User from "../../infra/typeorm/entities/User"; import IUsersRepository from "../../repositories/IUsersRepository"; import { HttpException, HttpStatusCode } from "../../../../shared/exceptions/HttpException"; import { IRequest } from ...
red(s) = { return(concat("\e[31m", concat(s, "\e[0m"))); } green(s) = { return(concat("\e[32m", concat(s, "\e[0m"))); } blue(s) = { return(concat("\e[34m", concat(s, "\e[0m"))); } print("Tonelli x^2 = a mod (p): Usage Tonelli(a,p)"); print("Bestimmung einer Wurzel"); Tonelli(a,p) = { if (p <=2, printf(red...
#' Try to intelligently reduce a large palette down to a reasonable smaller #' set of colors #' #' Given a palette and a desired number of colors to use, this function will #' compute CIEDE2000 and attempt to reduce the input set to a disctinct #' smaller set of colors based on color distances. #' #' @param pal input p...
import React, {useState, useEffect } from 'react'; import styled from 'styled-components'; import { Link, useNavigate } from 'react-router-dom'; import Logo from '../assets/logo.png'; import {ToastContainer, toast} from 'react-toastify'; import axios from 'axios'; import "react-toastify/dist/ReactToastify.css" import {...
package com.sw.设计模式.行为型模式.memento.blackBox; import com.sw.设计模式.行为型模式.memento.whiteBox.RoleStateMemento; /** * @author Wang Hao * @date 2022/9/22 22:31 * @description 游戏角色类(发起人) */ public class GameRole { /** * 生命值 */ private int vit; /** * 攻击值 */ private int atk; /** ...
const Sequelize = require('sequelize'); module.exports = (sequelize) => { const Usuario = sequelize.define('Usuario', { id: { type: Sequelize.INTEGER, primaryKey: true, autoIncrement: true, }, email: { type: Sequelize.STRING, allowNull: false, unique: true, validate...
package com.charlye934.shoppinliverpool.home.presenter.ui import android.os.Bundle import android.view.LayoutInflater import android.view.Menu import android.view.MenuInflater import android.view.MenuItem import android.view.View import android.view.ViewGroup import androidx.core.view.MenuProvider import androidx.core...
#include "ops.h" EncoderOp::EncoderOp(vector<TensorObj> inputs_, vector<TensorObj> outputs_) : Ops(inputs_, outputs_) {} void EncoderOp::forward() { int B = inputs[0].shape[0]; int T = inputs[0].shape[1]; int C = inputs[1].shape[1]; for (int b = 0; b < B; b++) { for (int t = 0; t < T; t++)...
<?php /** * "Loop After Content" Functions * * @package Saved * @subpackage Functions * @copyright Copyright (c) 2017, ChurchThemes.com * @link https://churchthemes.com/themes/saved * @license GPLv2 or later * @since 1.0 */ // No direct access if ( ! defined( 'ABSPATH' ) ) exit; /**********...
import React, { useEffect, useState } from "react"; import "./App.scss"; import Home from "./containers/home"; import { createBrowserRouter, Navigate, BrowserRouter as Router, RouterProvider, } from "react-router-dom"; import Login from "./containers/login"; import { ChakraProvider } from "@chakra-ui/react"; im...
use std::iter::Iterator; pub fn array_demo() { let arr = [1, 3, 66]; for (i, &n) in arr.iter().enumerate() { println!("arr[{}] = {}", i, n); } println!("The usual array = {:?}", arr); let numbers = [1; 5]; println!("Array with default args = {:?}", numbers); let fruits: [&s...
import com.application.weather.data.WeatherData import com.application.weather.database.WeatherDatabase import com.application.weather.database.WeatherEntity import com.application.weather.network.WeatherService import com.application.weather.repository.WeatherRepository import io.kotest.core.spec.style.FunSpec import ...
/* * Copyright 2010 Google Inc. * * 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...
/* Copyright Contributors to the Open Cluster Management project */ import { Namespace, NamespaceDefinition } from '../resources' import { nockIgnoreApiPaths, nockRBAC } from './nock-util' import { getAuthorizedNamespaces, isAnyNamespaceAuthorized } from './rbac-util' import { waitForNocks } from './test-util' const ...
define(['jquery', 'mustache', 'crossroads', 'hasher'], function(jq, Mustache, crossroads, hasher) { function JsAutoP(s) { if (!s || s.search(/\n|\r/) == -1) { return s; } var X = function(x, a, b) {return x.replace(new RegExp(a, 'g'), b)}; var R = function(a, b) {return s = X(s, a, b)}; var block...
use serde::{Deserialize, Serialize}; use serde_json::json; use std::collections::HashMap; use std::path::Path; use crate::error::{Er, E}; #[derive(Clone, Debug, Deserialize, Serialize)] pub struct Metadata { pub name: String, pub url: String, pub license: String, pub audio: String, pub native: Str...
# Neon Velocity Game Documentation ## Table of Contents 1. [Introduction](#introduction) 2. [Game Overview](#game-overview) 3. [Gameplay Mechanics](#gameplay-mechanics) 4. [Game World Narrative](#game-world-narrative) 5. [Core Loops](#core-loops) 6. [Objectives and Progression](#objectives-and-progression) 7. [Game Sy...
/* * (C) Copyright 2001, 2002, 2003 * Wolfgang Denk, DENX Software Engineering, wd@denx.de. * Keith Outwater, keith_outwater@mvis.com` * Steven Scholz, steven.scholz@imc-berlin.de * * See file CREDITS for list of people who contributed to this * project. * * This program is free software; you can redistribute ...
import { Button, Container, Grid, Heading, Image, Input, Select, VStack } from '@chakra-ui/react' import React, { useState } from 'react' import Sidebar from '../Sidebar' import cursor from '../../../assets/images/cursor2.png' import { fileUploadCss } from '../../Auth/Register' const CreateCourse = () => { const [...
import type { Collection, Document as MongoDBDocument } from "mongodb"; import { VectorStore } from "./base.js"; import { Embeddings } from "../embeddings/base.js"; import { Document } from "../document.js"; export type MongoDBAtlasVectorSearchLibArgs = { collection: Collection<MongoDBDocument>; indexName?: string...
#' Numeric app inputs #' #' @param df a `data.frame` or `tibble` #' #' @return a named character vector of integer and double column names #' @export pull_numeric_cols #' #' @importFrom purrr compact list_c set_names #' #' @examples #' require(palmerpenguins) #' require(dplyr) #' pull_numeric_cols(palmerpenguins::pengu...
class Annotator.Plugin.Document extends Annotator.Plugin $ = Annotator.$ events: 'beforeAnnotationCreated': 'beforeAnnotationCreated' pluginInit: -> this.getDocumentMetadata() # returns the primary URI for the document being annotated uri: => uri = decodeURIComponent document.location.hre...
import os import cv2 import pandas as pd from matplotlib import pyplot as plt import seaborn as sns from utilities import get_root_path import numpy as np # templ: bool showing if it is template def get_file_data_cleaned(fp, templ, only_angles=True): MLid = int(os.path.basename(fp)[2:6]) FPS = 30 if MLid...
<?php namespace App; use Laravel\Passport\HasApiTokens; use Illuminate\Notifications\Notifiable; use Illuminate\Contracts\Auth\MustVerifyEmail; use Illuminate\Foundation\Auth\User as Authenticatable; class User extends Authenticatable { use HasApiTokens, Notifiable, ModelConfig; /** * Increment OFF ...
--- id: 61fd719788899952e67692b9 title: Schritt 9 challengeType: 0 dashedName: step-9 --- # --description-- Das `thead`- und `tbody`-Element werden verwendet, um anzugeben, welcher Teil deiner Tabelle der Header ist und welcher Teil die Primärdaten oder den Inhalt enthält. Füge ein `thead` und `tbody` zu deinem erst...
// SPDX-License-Identifier: LGPL-3.0-only /* solhint-disable one-contract-per-file */ pragma solidity >=0.7.0 <0.9.0; import {SafeStorage} from "../libraries/SafeStorage.sol"; import {Guard} from "../base/GuardManager.sol"; import {ISafe} from "../interfaces/ISafe.sol"; /** * @title Migration Contract for Safe Upgra...
########################################################################### # # Implements the Matrix class. # # @@@ Still needs lots of work @@@ =head1 Value::Matrix class References: MathObject Matrix methods: L<http://webwork.maa.org/wiki/Matrix_(MathObject_Class)> MathObject Contexts: L<http://webwork.maa....
'use client'; import { Disclosure, DisclosureButton, DisclosurePanel, } from '@headlessui/react'; import { Bars3Icon, CloudIcon, XMarkIcon } from '@heroicons/react/24/outline'; import { Link } from '../ui'; const navigation = [ { name: 'Dashboard', href: '/', }, { name: 'Acerca de', href: '...
# @param {Integer} column_number # @return {String} CHARS = ("A".."Z").to_a def convert_to_title(column_number) result = "" quotient = column_number until quotient.zero? quotient, remainder = (quotient - 1).divmod(26) result << CHARS[remainder] end result.reverse end
import random def jogar_forca(): imprime_mensagem_abertura() palavra_secreta = carregar_palavras_secretas() letras_acertadas = inicializa_letras_acertadas(palavra_secreta) print(letras_acertadas, "\n") enforcou = False acertou = False erros = 0 # Enquanto não en...
import Head from "next/head"; import styles from '../../styles/Premium.module.css' import {useState} from 'react' import {FontAwesomeIcon} from "@fortawesome/react-fontawesome"; import {faTimesCircle, faCheckCircle} from "@fortawesome/free-solid-svg-icons"; import QuestionAnswer from "../../components/QuestionAnswer"; ...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="initial-scale=0.8, width=device-width"> <!-- http://getbootstrap.com/docs/4.5/ --> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/css/bootstrap.min.css" in...
.- help for ^omninorm^ (Statalist distribution 26 Mar 2001) .- Omnibus Test for Univariate and Multivariate Normality ------------------------------------------------------ ^omninorm^ varlist [^if^ exp] [^in^ range] varlist may contain time-series operators; see help @varlist@. Description -----------...
/** * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ /** * @module ui/dropdown/dropdownpanelview */ import View from '../view'; import { logWarning } from '@ckeditor/ckeditor5-utils'; /** * Th...
// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
/************************************************************************ * File name : Tutorial.cpp * Project name : APEX * Author Primary author : Wonju cho * Secondary author : Junseok Yang * Others : Haewon Shon, Jookyung Lee * * Functions for Tutorial Level * All c...
import 'package:consorcios/src/repositories/authentication_repository/authentication_repository.dart'; import 'package:equatable/equatable.dart'; import 'package:flutter_bloc/flutter_bloc.dart'; import 'package:formz/formz.dart'; import 'package:bloc/bloc.dart'; import '../models/models.dart'; part 'login_event.dart'...
# Copyright (C) 2007-2016 by the Free Software Foundation, Inc. # # This file is part of GNU Mailman. # # GNU Mailman 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 you...
import { render, screen, waitFor, } from "../../../test-utils/testing-library-utils"; import OrderEntry from "../OrderEntry"; import { server } from "../../../mocks/server"; import { rest } from "msw"; test("handle errors for scoops & toppings routes", async () => { // reset handler to make it return error (co...
package com.example.jwt_customize.service; import com.example.jwt_customize.repository.UserRepository; import com.example.jwt_customize.request.RegisterRequest; import com.example.jwt_customize.service.UserService; import com.example.jwt_customize.common.Role; import com.example.jwt_customize.entity.User; import org.h...
import React, { useState, useEffect } from "react"; import style from "./forgetpassword.module.css"; import ModalWrap from "../ModalWrapper/ModalWrap"; import { CgCloseO } from "react-icons/cg"; import { Formik } from "formik"; import { useGetPasswordMutation } from "../../../state/services/ForgetPasswordApi"; import {...
<?php namespace App\Models; use Illuminate\Database\Eloquent\Collection; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Season extends Model { protected $fillable = ['number']; public $timestamps = false; public function anime() { return $thi...
library(dplyr) library(ggplot2) library(patchwork) library(purrr) library(rstatix) theme_set(theme_bw(base_size = 14) + theme(panel.grid = element_blank())) source("./R_data-cleaning/EEMs/code/clean-EEMs.R") eems <- bp_doc_eems() DOC_lab <- expression(paste("DOC concentration (mg L"^-1*")")) SUVA_lab <- expression(...
library(lubridate) library(MASS) library(moments) #import data datClose10 <- read.csv('D:/study/Y3.1/AUCC/FE+SML+EDA/dataset/Priceclose_2y_10.csv',header = T) head(as.data.frame(datClose10)) #change chr -> date datClose10 = datClose10 %>% mutate(Date = mdy(Date)) %>% arrange(Date) head(datClose10) str(datClose10) #s...
<?php namespace App\Http\Livewire\Venta; use App\Models\Producto; use App\Models\Tipo; use App\Models\Venta; use App\Models\Caja; use Illuminate\Support\Facades\DB; use Livewire\Component; use Throwable; use Jantinnerezo\LivewireAlert\LivewireAlert; class Modificar extends Component { use LivewireAlert; pub...
package io.ensueno.kafka.consumer; import org.apache.kafka.clients.consumer.ConsumerConfig; import org.apache.kafka.common.serialization.ByteArrayDeserializer; import org.apache.kafka.common.serialization.StringDeserializer; import java.util.ArrayList; import java.util.List; import java.util.Properties; import java.u...
--- layout: '../../layouts/Post.astro' title: Is Coding For You? description: Before you jump into it, it's important to weigh the pros and cons and understand the reality of what it takes to become a successful programmer. publishDate: April 18, 2023 featuredImage: '/assets/images/blog/is-coding-for-you/featured.png' ...
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\BelongsTo; use Illuminate\Database\Eloquent\Relations\HasMany; class ProcessRecord extends Model { use HasFactory; /** * @var string ...
import { inject } from '@angular/core'; import { TestBed } from '@angular/core/testing'; import { CalculadoraService } from './calculadora.service'; describe('CalculadoraService', () => { let service: CalculadoraService; beforeEach(() => { TestBed.configureTestingModule({}); service = TestBed.inject(Calc...
import React, { useState, useEffect } from 'react'; import Header from './components/Header' import Formulario from './components/Formulario' import Error from './components/Error' import Clima from './components/Clima' function App() { //state Principal (en lugar de 1 state grande, lo divido en varias piezas) c...
import { IsEmail, IsNotEmpty, IsOptional, IsString } from 'class-validator'; import { ERole } from 'src/core/enum/default.enum'; export class VUserRegisterDto { @IsString() @IsNotEmpty() name: string; @IsEmail() @IsNotEmpty() email: string; @IsString() @IsNotEmpty() password: string; @IsString()...
import BaseService from '@/core/api/BaseService'; import moment from 'moment'; import GamesService from '@/app/services/gameService'; class HomeService extends BaseService { request: any; BASE_URL = process.env.BASE_URL; constructor(params?: any) { super(params); this.setRequest(); } getTagsPopular...
import { createContext, useReducer } from "react"; import Cookies from "js-cookie"; export const Store = createContext(); const initialState = { cart: Cookies.get('cart') ? JSON.parse(Cookies.get('cart')) : { cartItems: [], shippingAddress: {} }, }; function reducer(state, action) { switch (action.type) ...
'use client'; import React, { useState } from 'react'; import { useAppDispatch } from '@/lib/hooks'; import { fetchGeo } from '@/lib/features/geoSlice'; import Formulario from './_components/Formulario'; import Resultados from './_components/Resultados'; import dynamic from 'next/dynamic'; const MapaComponent = dynam...
import Segment from "./Segment"; export default interface FareCalculator { next?: FareCalculator; calculate (segment: Segment): number; } export class NormalFareCalculator implements FareCalculator { FARE = 2.1; constructor (readonly next?: FareCalculator) { } calculate(segment: Segment): number { if (!segm...
/* * Conditions Of Use * * This software was developed by employees of the National Institute of * Standards and Technology (NIST), an agency of the Federal Government. * Pursuant to title 15 Untied States Code Section 105, works of NIST * employees are not subject to copyright protection in the United States * and are...
import { useState, useEffect } from "react"; import { Button, Form } from "react-bootstrap"; const Login = ({ setShowForm, setUser }) => { const [admins, setAdmins] = useState([]); const [error, setError] = useState(); const [userInfo, setUserInfo] = useState({ username: "", password: "", }); const...
/** * @ (#) HospitalFeedbackAction.javaSep 20, 2005 * Project : TTK HealthCare Services * File : HospitalFeedbackAction.java * Author : Chandrasekaran J * Company : Span Systems Corporation * Date Created : Sep 20, 2005 * * @author : Chandrasekaran J * Modified by : Nagaraj D V...
// // File.swift // // // Created by Murph on 2022/9/1. // import Foundation extension Algorithm { ///Di jkstra 算法,没有权值为负的边 /// 从一个点出发,计算从该点到所有点的路径最小值 public static func DIJkstra(head: GNode) -> [GNode: Int] { var distanceMap = [GNode: Int]() var lockedSet = Set<GNode>() var re...