text
stringlengths
184
4.48M
import type { StoryObj, Meta } from "@storybook/react"; import * as DocBlock from "@storybook/blocks"; import { createRemixStub } from "@remix-run/testing"; import { http, delay, HttpResponse } from "msw"; import Step3 from "./route"; import { getRegStep2 } from "~/requests/getRegStep2/getRegStep2"; import { postRegS...
using System; using System.Collections.Generic; using System.Data.SqlClient; using System.Data.SqlTypes; using System.Text.Json.Serialization; #nullable enable namespace DirectDesk.Models { public class Employee { public int id { get; set; } public string names { get; set; } public st...
#include <windows.h> #include <iostream> #include <math.h> #include <conio.h> #define PI 3.14159265359 HANDLE hOut; int BUFFER_WIDTH; int BUFFER_HEIGHT; char* TXTBUFFER; bool setConsoleFontSize(int width, int height) { CONSOLE_FONT_INFOEX fontInfo; fontInfo.cbSize = sizeof(fontInfo); if (!GetCurrentCons...
import React, { FC, useEffect, useState } from 'react'; import styled from 'styled-components'; import { ethereumImage } from 'assets'; import { parseEtherUSD } from 'helpers/utilities'; interface IProps { price?: number; showDollars?: boolean; } const Value: FC<IProps> = ({ price = 0, showDollars = true }) => {...
/*---------------------------------------------------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | --------...
package com.kwm0304.cli.template.security; import com.kwm0304.cli.StringUtils; import org.springframework.stereotype.Service; @Service public class UserDetailsServiceImplTemplate { public String genUserDetailsService(String parentDir, String userClass, boolean useLombok) { String convertedParent = StringU...
import supertest, { SuperTest } from 'supertest' import { createModule } from './utils/create-module.util' import { HttpStatus, INestApplication } from '@nestjs/common'; import { AbstractCarRepository } from '../domain/repositories/car.repository'; import { CarDocument } from '../domain/models/car.model'; describe('Ca...
<template> <div class="dropdown"> <div class="selected" :class="{ open: open }" @click="open = !open"> {{ selected }} </div> <div class="items" v-show="open"> <div v-for="(option, index) in options" :key="index" @click="select(option)" > {{ option }} ...
import { createRouter, createWebHistory } from 'vue-router' const router = createRouter({ history: createWebHistory(import.meta.env.BASE_URL), routes: [ { path: '/', redirect: '/home' }, { path: '/home', name: 'Home', component: () => import('@/views/HomeView.vue') }, ...
import datetime def is_leap_year(year): # 判断是否为闰年 if year % 4 == 0 and year % 100 != 0 or year % 400 == 0: return True else: return False def get_num_of_days_in_month(year, month): # 给定年月返回月份的天数 if month in (1, 3, 5, 7, 8, 10, 12): return 31 elif month in (4, 6, 9, 11...
#ifndef PIANO_SERIAL_H #define PIANO_SERIAL_H #include <istream> #include <map> #include <ostream> #include <string> #include <cstdint> class Serial { public: enum Parity { NONE = 0, ODD = 1, EVEN = 2 }; enum StopBits { ONE = 0, ONE_AND_A_HALF = 1, TWO = 2 }; struct Settings { Parity parity; S...
#' Get reference table from package data #' #' The first time, the function will read from disk, the second time from the environment. In the case of a necessary update the new data will be saved to the environment for the current session. #' You can use this table to look at the reference tables and if necessary extra...
import React, { useState, useEffect, createContext } from "react"; import { Outlet } from "react-router"; import { transformRestaurantCategories } from "utils/restaurants.js"; const RestaurantsContext = createContext(); const RestaurantsProvider = () => { const [restaurantsData, setRestaurantsData] = useState([]); ...
<template> <div> <div class="container"> <div> <h1 class="text-primary">SSAFY TUBE</h1> </div> <section v-if="isSelecedVideo" class="mt-4"> <div class="ratio ratio-16x9"> <iframe :src="videoSrc" frameborder="0"></iframe> </div> <div class="video-title s...
<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:p="http://primefaces.org/ui" template="/templates/default.xhtml"> <ui:define name="content"> <f:metadata> ...
import { assert, assertEquals } from "./test_deps.ts"; import { DataFactory, type RDF } from "ldkit/rdf"; import { BindingsFactory, QuadFactory, RDFJSON } from "../library/rdf.ts"; Deno.test("RDF / Quad Factory", () => { const df = new DataFactory(); const quadFactory = new QuadFactory(df); const q = (s: stri...
// // MapPresenter.swift // SevenWindsCoffee // // Created by Mark Golubev on 10/02/2024. // import Foundation protocol MapPresenterProtocol { var router: MapRouterProtocol? {get set} var interactor: MapInteractorPtotocol? {get set} var view: MapViewProtocol? {get set} func fetchCoffeeShops() ...
# more feature engineering mws <- textstat_readability(train$discourse_text, measure = "meanWordSyllables") train <- cbind(train, mws) train %>% tibble() %>% select(-document) -> train # more feature engineering msl <- textstat_readability(train$discourse_text, ...
# Threat Intelligence # Nmap ```bash nmap –help PORT SPECIFICATION AND SCAN ORDER: -p : Only scan specified ports Ex: -p22; -p1-65535; -p U:53,111,137,T:21-25,80,139,8080,S:9 –exclude-ports : Exclude the specified ports from scanning -F: Fast mode – Scan fewer ports than the default scan -r: Scan ports consecutively ...
# Twitter Friends Challenge A web app where people can test how well they know their Twitter friends. As of this writing, it's being hosted at [TwitterFriendsChallenge.com](https://www.TwitterFriendsChallenge.com) Feel free to DM me if you find bugs or have questions: [@jonnykalambay](https://www.twitter.com/jonnykala...
import React, { Dispatch, SetStateAction } from 'react'; import { Trans, useTranslation } from 'react-i18next'; import { SecretPhrase } from '@libs/crypto'; import { SpacingSize, TabPageContainer, TabTextContainer, VerticalSpaceContainer } from '@libs/layout'; import { SecretPhraseWordsView, Typography, ...
/* * @Date: 2023-07-13 * @LastEditors: 854284842@qq.com * @LastEditTime: 2023-07-13 * @FilePath: /algorithm/golang/931_min_falling_path_sum/min_falling_path_sum.go */ // Package main ... package main import ( "testing" "github.com/stretchr/testify/assert" ) func minFallingPathSum(matrix [][]int) int { min :...
/* * POFileType.test.js - test the po file type handler object. * * Copyright © 2021, 2023 Box, 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/lic...
import { Flex } from "@chakra-ui/react"; import { SignupInfo } from "./SignupInfo"; import { SigupForm } from "./SignupForm"; import { useForm } from "react-hook-form"; import { useUserProvider } from "../../providers/UserContext"; import { yupResolver } from "@hookform/resolvers/yup"; import * as yup from "yup"; cons...
MIC calculation In its most minimal form, ``AIgarMIC`` can be used as a simple agar dilution MI calculator. Here, it is up to users to provide growth matrices for each agar dilution plate. Such users can then use :class:`aigarmic.Plate` and :class:`aigarmic.PlateSet` to calculate MICs: >>> from aigarmic import Plat...
from threading import local import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns sns.set_style("darkgrid") sns.set_context("paper") plt.rcParams["font.sans-serif"]='KaiTi' #解决中文乱码问题 plt.rcParams['axes.unicode_minus']=False #解决负号无法显示的问题 df_1 = pd.read_excel('./附件1:长春市COVID-1...
<div> This is the width of the secondary display when it has the same vertical height as the primary display.<br><br> The width of a display is equal to its height multiplied by the aspect ratio. In this case, since the displays have matching height, the width of the secondary display can be based on the prima...
import React, { useState, useEffect } from "react"; import {MapContainer, TileLayer, Marker, Popup} from "react-leaflet"; import "./style.css"; const Map = () => { const [companiesList, setCompaniesList] = useState([]); useEffect(() => { async function handleGetCompanies() { try { const respons...
import { useEffect, useState } from "react"; import { useNavigate } from "react-router-dom"; import IRecruitment from "../../../Interfaces/Recruitment"; import API from "../../../utils/API"; const Jobs = () => { const [jobs, setJobs] = useState<IRecruitment[]>(); const navigate = useNavigate(); const getJobs = a...
package leetcode.LC_Back; import java.util.ArrayList; import java.util.Arrays; import java.util.LinkedList; import java.util.List; public class Solution_39 { /** * 共享信息 */ int n; int[] candidates; List<List<Integer>> res = new ArrayList<>(); LinkedList<Integer> path = new LinkedList<>()...
import { useState } from "react"; import { useDispatch, useSelector } from "react-redux"; import { useHistory } from "react-router-dom"; import { selectMinting, selectPinning } from "../../features/marketplace/selectors"; import { setMinting, setPinning } from "../../features/marketplace/slice"; import { selectDescript...
import { Request, Response } from "express"; import { GetAllUserBySectorUseCase } from "./GetAllUserBySectorUseCase"; import { GetAllUserBySectorRequestSchema, GetAllUserBySectorResponseSchema, UserBySectorResponseDTO } from "./GetAllUserBySectorDTO"; import { ZodError } from "zod"; export class GetAllUserBySectorCont...
import React from 'react'; import { ThemeProvider, createMuiTheme } from '@material-ui/core/styles'; import styled from 'styled-components'; import Typography from '@material-ui/core/Typography'; import Box from '@material-ui/core/Box'; import './styles/App.css'; import ChartToggleGroup from './components/ChartToggleGr...
import re import requests from bs4 import BeautifulSoup from ConcreteScrapers.Bnakaran.BnakaranApartmentScraper import BnakaranApartmentScraper from Protocols import ApartmentScrapingPipeline from Services import ImageLoader import logging class BnakaranScrapingPipeline(ApartmentScrapingPipeline): def __init__(se...
import React from 'react'; import Card from './Card.jsx'; import { useDrop } from 'react-dnd'; const List = ({ name, color, plus, Tasks, setTask }) => { const addTaskToAnotherSection = (id) => { setTask((prev) => { const mtasks = prev.map((t) => { if (t.id === id) { return { ...t, status:...
import type { StayToken } from 'stays-core'; import { useMemo, useState } from 'react'; import * as Icons from 'grommet-icons'; import { Grid, Button, Box, Text } from 'grommet'; import { MessageBox } from '../MessageBox'; import { CustomText, StayVoucherQr } from '../StayVoucherQr'; import { useNavigate } from 'react-...
import { AnyState } from "xstate"; import { Path } from "./path"; import { Segment } from "./segment"; export type OnTransitionFn<TContext extends any[]> = (currentState: AnyState, ...context: TContext) => void | Promise<void>; export type TransitionCallbackMap<TContext extends any[] = []> = { [key: string]: OnTran...
export default class FormValidator { constructor(settings, formEl) { this._settings = settings; this._formEl = formEl; // Find Form Fields this._inputFields = [ ...formEl.querySelectorAll(this._settings.inputSelector), ]; this._submitButton = formEl.querySelector( this._settings.su...
import { isMobile, keybind, router } from 'shared' export default async function main() { router([{ pathname: /novel\/\d+\/catalog/, run: injectDownloadSection }]) if (!window.ReadTools) return resetPageEvent() if (isMobile()) injectMovePageEvent() else injectShortcuts() } export interface SyncProgressEve...
/// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; interface IPancakeRouter02 { function WETH() external pure returns (address); function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swap...
import { safeInject } from '@/providers/inject'; import { pick } from 'lodash'; import { ref, computed, InjectionKey, provide, reactive, toRefs, onBeforeMount, } from 'vue'; import useNetwork from '@/composables/useNetwork'; import localStorageKeys from '@/constants/local-storage.keys'; import symbolKeys...
import { Box, Button, Container, FormControl, FormHelperText, Paper, Stack, TextField } from '@mui/material'; import * as React from 'react'; import { useForm } from 'react-hook-form'; import { useNavigate } from 'react-router-dom'; import NavBar from '../components/NavBar'; import { userRegister } from '../services/ap...
import 'dart:convert'; import 'package:http/http.dart' as http; import 'package:flutter_osm_plugin/flutter_osm_plugin.dart'; import 'package:flutter/material.dart'; class BuildingsApi { final String apiUrl; BuildingsApi(this.apiUrl); Future<List<StaticPositionGeoPoint>> getAllBuildingsAsGeoPoints() async { ...
from tools.defectdojo.defect_dojo_config import DefectDojoConfig class DefectDojoClientV2: base_url = "https://defectdojo.service.csnzoo.com/api/v2" limit = 200 urls = { "": base_url, "products": base_url + "/products", "product": base_url + "/products/{}", "findings": base...
class Node: def __init__(self, data) -> None: self.data = data self.children = [] def busqueda_amplitud(value:str,root:Node) -> Node: toEvaluate = [root] evaluated = [] i = 0 while len(toEvaluate) > 0: current = toEvaluate.pop(0) if(current in evaluated): ...
import React, {useContext, useState} from "react"; import INomination from "../../model/nomination/INomination"; import {Box, Card, CardContent, CardMedia, Tooltip, Typography} from "@mui/material"; import {FavoriteBorder, Favorite} from "@mui/icons-material"; import INominationLike from "../../model/nomination/INomina...
"""804. Unique Morse Code Words""" from typing import List CODES = [ ".-", "-...", "-.-.", "-..", ".", "..-.", "--.", "....", "..", ".---", "-.-", ".-..", "--", "-.", "---", ".--.", "--.-", ".-.", "...", "-", "..-", "...-", "....
# 0.2 Strange Device # You head towards the hill where Cosmo detected the second cipher plate. A narrow trail branches off the main path. You hesitate for a second. # "Don't worry, this forest is not dangerous for humans", Cosmo calms you down. "I suggest that we follow the trail - it will lead us up to that hill." #...
--- layout: post title: "SpiderMonkey Newsletter (Firefox 112-113)" date: 2023-04-14 18:00:00 +0100 --- SpiderMonkey is the JavaScript engine used in Mozilla Firefox. This newsletter gives an overview of the JavaScript and WebAssembly work we’ve done as part of the Firefox 112 and 113 Nightly release cycles. ### �...
import jax import jax.numpy as jnp from jax import grad, value_and_grad from jax.scipy.special import gammaln, logsumexp from jax.scipy.linalg import expm from functools import partial from jax import jit from diffrax import diffeqsolve, ODETerm, Dopri5, PIDController, ConstantStepSize, SaveAt import logging # We ...
<template> <div class="q-pa-none"> <q-table v-if="props.filas.length > 0" class="text-h6 text-grey-8 justify-center" style="max-height: 325px" square flat bordered no-data-label="Datos no disponibles" hide-no-data :rows="props.filas" :columns="props.colu...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta http-equiv="X-UA-Compatible" content="ie=edge" /> <title>FrontBidon</title> <link rel="stylesheet" href="style.css" /> </head> <body> <div class="...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <link rel="stylesheet" src="//normalize-css.googlecode.com/svn/trunk/normalize.css" /> <link rel="stylesheet" href="css/styles.css" /> <link rel...
import java.util.Iterator; import java.util.List; import java.util.stream.Collectors; import java.util.stream.Stream; public class GFG { // Function to print N Fibonacci Number static void Fibonacci(int N) { int num1 = 0, num2 = 1, count = 0; while (count < N) { System.out.print(num1 + " "); int num3 = num...
--- layout: post title: "[파이썬] collections Counter의 most_common 활용" description: " " date: 2023-09-08 tags: [python,collections] comments: true share: true --- Python's built-in `collections` module provides the `Counter` class, which is a powerful tool for counting and analyzing elements in an iterable. One of the mo...
#!/usr/bin/env python3 """DB module """ from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker from sqlalchemy.orm.session import Session from sqlalchemy.orm.exc import NoResultFound from sqlalchemy.exc import InvalidRequestError from user import Base, User class DB: """DB class """ ...
async function loadErp(){ const data= await getGames(); renderToERP(data) } async function loadGameStore(){ const data= await getGames(); renderToGameStore(data) } function handleErpLoad(){ loadErp(); } function handleGameStoreLoad(){ loadGameStore(); } async functio...
import React, { useState } from "react"; import { NavLink } from "react-router-dom"; import { HiOutlineHashtag, HiOutlineHome, HiOutlineMenu, HiOutlinePhotograph, HiOutlineUserGroup, } from "react-icons/hi"; import { RiCloseLine } from "react-icons/ri"; import { logo } from "../assets"; const links = [ { ...
class Node { int data; Node? left; Node? right; Node(this.data); } class BinaryTree { Node? root; // Insertion operation void insert(int data) { Node newNode = Node(data); if (root == null) { root = newNode; return; } Node? currentNode = root; while (true) { if (da...
const morgan = require("morgan"); const express = require("express"); const passport = require("./utils/passport"); const app = express(); const cors = require("cors"); const loginRouter = require("./routes/loginRouter"); const registerRouter = require("./routes/registerRouter"); const dashBoardRouter = require("./rout...
import Box from '@material-ui/core/Box'; import Container from '@material-ui/core/Container'; import Grid from '@material-ui/core/Grid'; import Tooltip from '@material-ui/core/Tooltip'; import Typography from '@material-ui/core/Typography'; import useMediaQuery from '@material-ui/core/useMediaQuery'; import Button from...
package com.company; public class Rotated_Sorted_Array_With_Duplicate_Values { static int findPivot(int[] arr){ int start = 0; int end = arr.length-1; while (start<=end){ int mid = start + (end-start)/2; // 4 cases over here if (mid < end && arr[mid]>arr[...
const Critters = require("critters"); const { join } = require("path"); const fs = require("fs"); const { parse } = require("node-html-parser"); const CryptoJS = require("crypto-js"); const { minify } = require("csso"); // Recursive function to get files function getHTMLFiles(dir, files = []) { // Get an array of al...
package ArchivosTexto; /** * * @author aleag */ import org.w3c.dom.Document; import org.w3c.dom.Element; import org.w3c.dom.Text; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.transform.Transformer; import javax.xml.transform.TransformerFactory; import ...
/* eslint-disable no-param-reassign */ /* eslint-disable no-shadow */ import React from 'react'; import { View } from 'react-native'; import { useSelector } from 'react-redux'; import { Button, Layout, Text, Spinner, Input, } from '@ui-kitten/components'; import { USER_DETAILS, } from 'utils/constants'; imp...
#importing csv as dataframe Mecha_data <- read.csv('MechaCar_mpg.csv') #grabbing dplyr library to work with library(dplyr) #linear regression formula lm(mpg ~ vehicle_length + vehicle_weight + spoiler_angle + ground_clearance + AWD, Mecha_data) #summary of linear regression summary(lm(mpg ~ vehicle_length + vehicle_...
#pragma once #include "libraries.h" /** * @brief Función que pide al usuario valores del grafo a usar. * @param &graph `std::vector<std::vector<int>>` * @param n ´int´ tamaño de grafo * @note `Time complexity - O(n²)` * @result Matriz modificada con valores del usuario */ void getGraph(int n, std::vector<std::ve...
<!doctype html> <head> <title>Hikima - Profile</title> <link rel="stylesheet" href="{{ url_for('static', filename='bootstrap/css/bootstrap.min.css') }}"> <link rel="shortcut icon" href="{{ url_for('static', filename='favicon.ico') }}"> <link rel="stylesheet" href="https://unpkg.com/tailwindcss@2.2.19/di...
import {apiPlayerActionToPlayerAction, tableArrayToView} from "./mappers"; import {Announce} from "tarot-game-engine"; import {Table} from "../games/table"; import {MockedTarotPlayerAtTable} from "../games/__mock__/mocked-tarot-player-at-table"; describe(`Mapper`, () => { test(`Given an announce api player action ...
import "animate.css/animate.min.css"; import "rc-slider/assets/index.css"; import * as React from "react"; import ScrollAnimation from "react-animate-on-scroll"; import withTheme, { InjectedThemeProps } from "../../theme/withTheme"; import featureBlockStyle from "./FeatureBlockStyle"; interface State { } export inter...
import ForgotPasswordEmailForm from "@/components/authComponents/ForgotPasswordEmailForm"; import ForgotPasswordOtpTokenForm from "@/components/authComponents/ForgotPasswordOtpTokenForm"; import ForgotPasswordSetPasswordForm from "@/components/authComponents/ForgotPasswordSetPasswordForm"; import { ScrollArea } from "@...
import pandas as pd import numpy as np import random as rnd import os import seaborn as sns import matplotlib.pyplot as plt from sklearn.linear_model import LogisticRegression from sklearn.svm import SVC, LinearSVC from sklearn.ensemble import RandomForestClassifier from sklearn.neighbors import KNeighborsClassifier ...
// // ManualCodeGenerator.swift // Walletsmith // // Created by Juan Rodríguez on 10/1/23. // import SwiftUI struct ManualCodeGenerator: View { @Environment(\.colorScheme) var colorScheme let dismissNavigationView: DismissAction? var completion: (Barcode) -> Void @StateObject var bar...
import { useContext } from "react" import "./checkout.css" import { AuthContext } from "../../contexts/AuthContext" import { useForm } from "../../hooks/useForm" const customerFromKeys = { Email: 'email', Name: 'name', CreditCard: { Name: 'name', CardNumber: 'cardNumber', Expiratio...
import { environment } from '../../environments/environment'; import { Injectable } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { Observable } from 'rxjs'; import { Employer } from '../model/Employer'; @Injectable({providedIn: 'root'}) export class EmployerService { private URI =...
"Use Strict"; var Promise = require("bluebird"); var assert = require('assert'); var proxyquire = require('proxyquire').noCallThru(); var manager = require('../../Managers/RunthroughManager.js'); var blank = undefined; describe('Runthrough Manager', function () { var fakeDatabase = {}; var fakeManager = proxyquire...
<template> <div class="registration-form"> <Form ref="userForm" :model="userModel" :rules="validateUserRules"> <div class="registration-form-group"> <h3 class="registration-form-group__title"> {{ $tr('registration.profileTitle') }} </h3> <div class="row"> <FormIte...
<!doctype html> <html lang="<?php echo e(str_replace('_', '-', app()->getLocale())); ?>"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- CSRF Token --> <meta name="csrf-token" content="<?php echo e(csrf_token()); ?>"> <title><?php echo e(con...
import { type } from "@testing-library/user-event/dist/type"; import React from "react"; import "./App.css"; function App() { let 이름: string = "kim"; let 이름들: string[] = ["kim", "lee", "Part"]; let 복합: string | number = 123; function 함수(num: number): number { return num * 2; } 함수(1); type Name = st...
import { proto } from '@whiskeysockets/baileys'; import union from 'lodash.union'; import RoleModel from '../../models/Role'; import { ResolverFunction, ResolverFunctionCarry, ResolverResult } from '../../types/resolver'; export const assignUserToRole: ResolverFunctionCarry = (matches: RegExpMatchArray): ResolverFun...
import { ChatInputCommandInteraction, Client, Events, REST as DiscordRestClient, Routes, } from "discord.js"; import { inject, injectable } from "inversify"; import { CommandsHandler } from "../handlers/command"; import { TYPES } from "../types"; import { Logger } from "../utils"; @injectable() export class ...
/* * Copyright 2012 PRODYNA AG * * Licensed under the Eclipse Public License (EPL), Version 1.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.opensource.org/licenses/eclipse-1.0.php or * http://www.nabucco.org/License....
// Asynchronous timeout function. Returns a Promise, which throws an Error // with the given |message| if |ms| milliseconds passes. Also returns a // timeout id, can be used to cancel the timeout. export function createAsyncTimeout<T>(message: string, ms: number): [Promise<T>, NodeJS.Timeout] { let timeoutId: NodeJS....
package com.example.workschedule.data.database.trainrun import androidx.room.ColumnInfo import androidx.room.Entity import androidx.room.PrimaryKey import androidx.room.TypeConverters import com.example.workschedule.data.database.DateTimeConverter import com.example.workschedule.data.database.PeriodicityConverter impo...
<?php include 'includes/header.php'; class Transporte { public function __construct(protected int $ruedas, protected int $capacidad){ } public function getInfo() : string { return "El transporte tiene ". $this->ruedas . " y una capacidad de " . $this->capacidad . " personas "; } public f...
# Endpoint An endpoint is one single REST endpoint that can be hit. It is limited to one REST method. To have one endpoint with multiple methods, see Group. ## Properties ```typescript type endpoint = { method: HTTPMethod; response: Data; body?: Data; path: String; description?: String; error?: Data; ...
import { Component } from '@angular/core'; import { MenuItem } from 'primeng/api'; @Component({ selector: 'app-header', templateUrl: './header.component.html', styleUrls: ['./header.component.css'] }) export class HeaderComponent { items!: MenuItem[]; ngOnInit() { this.items = [ { label: ...
import { Component, OnDestroy, OnInit } from '@angular/core'; import { Edition } from '../../../models/entities/edition'; import { ActivatedRoute, Router } from '@angular/router'; import { WpService } from '../../../services/wp.service'; import { Title } from '@angular/platform-browser'; import { Subscription, concatMa...
package poo.exercicio1; public abstract class Conta { private int agencia; private int conta; private String titular; private int limite; private double saldo; private int valorLimite; public Conta(int agencia, int conta, String titular, int limite, int valorLimite) { thi...
import React from "react"; import PropTypes from "prop-types"; import styled, { css } from "styled-components"; import { doNothing } from ".."; const StyledLink = styled.a` ${({ color, active, hover, visited }) => css` color: ${color}; cursor: pointer; transition: color 0.2s linear; :hover { ...
<template> <div id="app"> <button @click="changeTheme">theme switch</button> <button @click="changeLang">language switch</button> <img alt="Vue logo" src="./assets/logo.png" /> <HelloWorld :msg="$t('helloworld.main_title')" /> </div> </template> <script> import HelloWorld from "./components/HelloWo...
@model CustomerRegisterViewModel; @{ ViewData["Style"] = "Style.css"; } <!-- Start Register --> <section class="ec-page-content section-space-p"> <div class="container"> <div class="row"> <div class="col-md-12 text-center"> <div class="section-title"> <h2...
import { ChangeDetectionStrategy, Component } from '@angular/core'; import { Paths } from 'src/app/app-routing.module'; import { HistoryPage } from 'src/app/shared/abstract-sources/history-page.component'; @Component({ selector: 'app-academic-history', templateUrl: './academic-history.component.html', styleUrls:...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; contract Register { string public github; address public owner; struct Referral { address referralAddress; string referralString; } Referral[] public referrals; constructor() { github = "Cummingloud";...
/* eslint-disable @next/next/no-img-element */ "use client"; import NavLink from "./NavLink"; import { useEffect, useState } from "react"; import { usePathname } from "next/navigation"; import Link from "next/link"; import clsx from "clsx"; import useMobile from "@/hooks/useMobile"; const navigation = [ { title...
/* * * This file is part of Kopycat emulator software. * * Copyright (C) 2022 INFORION, LLC * * 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 y...
--- title: ReportBuildOptions Enum linktitle: ReportBuildOptions articleTitle: ReportBuildOptions second_title: Aspose.Words för .NET description: Aspose.Words.Reporting.ReportBuildOptions uppräkning. Anger alternativ som styr beteendet förReportingEngine medan du bygger en rapport i C#. type: docs weight: 4720 url: /s...
@extends('layouts.app') @section('content') <div class="container"> <div class="row justify-content-center"> <div class="col-md-8"> <div class="card"> <div class="card-header d-flex justify-content-between"> {{ $channel->name }} ...
<!DOCTYPE html> <html lang="zh"> <head> <title>接雨水 II</title> <link rel="shortcut icon" href="/static/favicon.ico"> <link href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/5.1.0/css/bootstrap.min.css" rel="stylesheet"> <link href="https://cdn.bootcdn.net/ajax/libs/font-awesome/5.15.4/css/all.min...
// 36. Crie uma classe chamada "Conta" com os atributos número da conta, saldo e titular da conta. Implemente um construtor para esta classe. Crie um método para verificar se a conta está em débito (saldo negativo) e outro para depositar dinheiro na conta. Crie objetos de contas e teste os métodos. class Conta { c...