text
stringlengths
184
4.48M
import math import pygame as pg from src.constants import WINDOW_SIZE class Body: def __init__(self, rect: pg.Rect, collidables: list = None): self.is_jumping = False self.on_ground = False self.gravity = .35 self.friction = -.12 self.rect = rect self.collidables =...
<div class="auth-wrapper"> <div class="auth-card card"> <form [formGroup]="resetPasswordForm" (submit)="resetPassword()"> <div class="card-body"> <h3 class="fw-bold text-center mb-4 pb-2">{{'resetPassword.title' | translate}}</h3> <!-- <p class="text-center text-gray mb-4"> {{'rese...
<script> import axios from 'axios'; import { isJwtExpired } from 'jwt-check-expiration'; import bar from '@/components/Navbar.vue' import foot from '@/components/Footer.vue' export default { name: "forget", components: { bar, foot }, data: () => ({ error: "" }), methods:...
import type { Meta, StoryObj } from "@storybook/react"; import { INITIAL_BUILD_PAYLOAD } from "../buildSteps"; import { buildStep, completeStep, initializeStep, snapshotStep, uploadStep, verifyStep, } from "../screens/VisualTests/mocks"; import { withFigmaDesign } from "../utils/withFigmaDesign"; import { ...
import { Button } from "@relume_io/relume-ui"; import type { ButtonProps } from "@relume_io/relume-ui"; type Props = { heading: string; description: string; buttons: ButtonProps[]; }; export type Cta7Props = React.ComponentPropsWithoutRef<"section"> & Partial<Props>; export const Cta7 = (props: Cta7Props) => {...
package com.dama.cerbero.controller; import java.io.BufferedReader; import java.io.File; import java.io.IOException; import java.io.InputStreamReader; import java.net.URI; import java.net.http.HttpClient; import java.net.http.HttpRequest; import java.net.http.HttpRequest.BodyPublishers; import java.net.http.HttpRespon...
import React from 'react'; import styles from './Progress.module.scss'; import TrackProgress from '@/components/track/trackProgress/TrackProgress'; import { motion } from 'framer-motion'; import { usePlayerStore } from '@/stores/playerStore'; import { audio } from '@/components/track/tracklist/TrackList'; import { form...
<template> <el-tabs @tab-click="changeTab" v-model="editableTabsValue" type="card" class="demo-tabs" closable @tab-remove="removeTab"> <el-tab-pane v-for="item in editableTabs" :key="item.path" :label="item.title" :name="item.path"> {{ item.content }} </el-tab-pane> </el-tabs> </template> <script setu...
import { StarIcon } from "@heroicons/react/solid"; import Button from "./ui/Button"; import { useNavigate } from "react-router-dom"; function BookGrid({ image, title, author, price, rating }) { const navigate = useNavigate(); const handleClickImage = () => { navigate(`/book/${title.split(" ").join("-")}`); }...
import { useEffect, useState } from "react"; import { useParams } from "react-router-dom"; import styled from "styled-components"; import { Link } from "react-router-dom"; import {motion} from "framer-motion" function Searched() { const [searchedRecipes, setSearchedRecipes] = useState([]); const params = usePa...
import { Test, TestingModule } from '@nestjs/testing'; import { PropertyType } from '@prisma/client'; import { Filter } from 'src/interfaces/home'; import { PrismaService } from 'src/prisma/prisma.service'; import { HomeService } from './home.service'; const homes = [ { id: 6, address: 'C81, Al-Falah near Se...
@extends('layouts.app') @section('content') <div class="card card-body"> <div style="display: flex" class="mb-3"> <div style="flex: 1"> <h4 id="section1" class="mg-b-10">Edit Company</h4> </div> <div> <a href="{{route('module.'.$moduleName...
/** * Wraps a function with a timeout. * If the function does not complete within the specified time, the promise will be rejected. * * @template Return - The return type of the wrapped function. * @template Err - The error type that can be thrown by the wrapped function or the error callback. * @param {(...args:...
from textnode import TextNode import re from htmlnode import LeafNode, text_node_to_html_node, ParentNode block_type_paragraph = "paragraph" block_type_heading = "heading" block_type_code = "code" block_type_quote = "quote" block_type_unordered_list = "unordered list" block_type_ordered_list = "ordered list" def spli...
import React, { useState, useEffect } from "react"; export default function Alert(props) { const [showAlert, setShowAlert] = useState(true); useEffect(() => { const timeout = setTimeout(() => { setShowAlert(false); }, 2000); // Clear the timeout when the component unmounts return () => clea...
import {useState} from 'react'; import './styles/AddPage.css'; import MovieItem from './MovieItem' function AddPage(props) { const [data, setData] = useState({ title: '', img: '', content: '' }); const add = async () => { const messageBox = document.getElementById('addTitle'); messageBox....
<!DOCTYPE HTML> <html> <head> <title>Algorithme - Saison 6 - Exo 2</title> <?php include "../commun/head.html" ?> <script src="../js/saison6.js"></script> </head> <body> <div id="page"> <!--header start --> <header> <?php include "../commun/header.html" ?> </header> <!-...
// // LoadingButton.swift // wheels_Andrew // // Created by Andrew on 12.08.21. // import Foundation import UIKit import TinyConstraints class LoadingButton: UIButton { private var originalButtonText: String? var activityIndicator: UIActivityIndicatorView! func showLoading() { originalButt...
最短路径算法是图论中的经典问题之一,用于寻找图中两个顶点之间的最短路径。常见的最短路径算法包括: 1.Dijkstra算法:用于解决单源最短路径问题,即从图中的一个顶点出发,求解到其他所有顶点的最短路径。Dijkstra算法采用贪心策略,逐步确定从起始顶点到其他顶点的最短路径,确保每次迭代都选择距离起始顶点最近的未访问顶点,并通过更新距离数组来实现。 在这个示例中,我们定义了一个DijkstraAlgorithm类,其中包含了实现Dijkstra算法的方法dijkstra。该方法接受一个加权邻接矩阵和源节点的索引,并返回一个包含从源节点到每个节点的最短距离的数组。然后,在main方法中,我们创建了一个示例图,并使用源节点0调用d...
#ifndef SHELL_H #define SHELL_H #include <stddef.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #include <sys/types.h> #include <sys/wait.h> #include <sys/stat.h> #include <limits.h> #include <fcntl.h> #include <errno.h> /** *struct list_s - singly linked list *@str: string - (mal...
import { View, Text, StyleSheet, ScrollView } from 'react-native'; import React, { useState, useEffect } from 'react'; import ParkingCardComponent from './ParkingCardComponent'; const ParkingListComponent = () => { const [inactiveSessions, setInactiveSessions] = useState([]); const [parkingSpot, setParkingSpot] = ...
package com.twitter.config import com.amazonaws.auth.AWSStaticCredentialsProvider import com.amazonaws.auth.BasicAWSCredentials import com.amazonaws.client.builder.AwsClientBuilder import com.amazonaws.regions.Regions import com.amazonaws.services.sqs.AmazonSQSAsync import com.amazonaws.services.sqs.AmazonSQSAsyncClie...
package com.example.android.popularmovies.ui; import android.Manifest; import android.app.DownloadManager; import android.arch.lifecycle.LiveData; import android.arch.lifecycle.Observer; import android.arch.lifecycle.ViewModelProviders; import android.content.ContentResolver; import android.content.Context; import and...
import attachUser from '../../src/middlewares/attachUser'; import UserModel from '../../src/models/user'; afterEach(() => { jest.restoreAllMocks(); }); let email: string; let req: any; let res: any; let next: any; const setUpTest = () => { email = 'test@gmail.com'; req = { token: { data: { em...
/* Copyright 2012-2014 Kasper Skårhøj, SKAARHOJ, kasper@skaarhoj.com This file is part of the Sony Deck Control RS-422 Client library for Arduino The ClientSonyDeckControlUDP library 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...
package server; import java.util.concurrent.locks.Lock; import java.util.concurrent.locks.ReadWriteLock; import java.util.concurrent.locks.ReentrantReadWriteLock; /** * An abstract class representing a collection which can be locked using * a read/write lock, allowing for thread safe accesses to it */ public abstr...
{# /** * @file * Theme override to display primary and secondary local tasks. * * Available variables: * - primary: HTML list items representing primary tasks. * - secondary: HTML list items representing primary tasks. * * Each item in these variables (primary and secondary) can be individually * themed in men...
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { faXmark } from "@fortawesome/free-solid-svg-icons"; import { Link } from "react-router-dom"; import CardBookingRecap from "./BookingWithSteps/CardBookingRecap"; const dataLabels = [ "Date", "Time", "Dinners", "Occasion", "Seating opti...
import { useTranslations } from "next-intl"; import { NextIntlClientProvider, useMessages } from 'next-intl'; export default function LocaleLayout({ children, params: {locale} }: { children: React.ReactNode; params: {locale: string}; }) { const t = useTranslations('nav'); const messages = useMessages(); ...
Этот проект собирает текущие цены на криптовалюты с API Binance, распределяет запросы между несколькими воркерами (горрутинами) для повышения производительности и отображает обновленные цены на консоль в реальном времени. Программа также корректно обрабатывает сигналы остановки, позволяя безопасно завершить работу. Дл...
<?php namespace App\Http\Resources\Cuti; use App\Helpers\Datetime; use Illuminate\Http\Resources\Json\JsonResource; class CutiKebijakanDetailResource extends JsonResource { public function toArray($request) { return [ "id"=> $this->id, "title"=> $this->title, "star...
'use client' interface ButtonProps{ label: string; // label name of the button onClick: (e: React.MouseEvent<HTMLButtonElement>) => void; // function to handle the click event center?: boolean; } const UpdateButton: React.FC<ButtonProps> = ({ label, onClick, center }) => { const justifyContentClass = center ...
# Libraries library(tidyquant) library(tidyverse) library(timetk) library(openxlsx) # Draws stock data from three individual industries (Tech, Heath, & Retail) # Calculates portfolio value, portfolio cost, and positioning # time_series_analysis graphs of the stocks by industry # snapshots and archives the data into...
import { DocSectionCode } from '@/components/doc/common/docsectioncode'; import { DocSectionText } from '@/components/doc/common/docsectiontext'; import { Calendar } from '@/components/lib/calendar/Calendar'; import { useState } from 'react'; export function ButtonBarDoc(props) { const [date, setDate] = useState(n...
const hi = 'HELLO' const alphaL = 'abcdefghijklmnopqrstuvwxyz' const alphaU = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' const alpha = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' function deliverHouse1() { setTimeout( () => { console.log('House 1 delivered'); }, 3000) } function deliverHouse2(){ se...
@extends('layouts.master') @section('content') <div class="container"> <div class="row justify-content-center"> <div class="col-md-4"> <h4 class="form-header">{{ __('Sign In') }}</h4> <section class="form-container"> <form method="POST" action...
import { useContext, useState, useEffect } from "react"; import { ImSpinner10 } from "react-icons/im"; import PropTypes from "prop-types"; import { useNavigate } from "react-router-dom"; import { Form, Input } from "antd"; import AuthContext from "../contexts/auth_context"; import usePrivateAxios from "../../configs/ne...
import React, { useContext, useEffect, useState } from "react"; import { useNavigate, useParams } from "react-router-dom"; import { toast } from "react-toastify"; import Loader from "../../Common/Loader/Loader"; import { useForm } from "react-hook-form"; import "./ProfessorVocabulary.css"; import { UserContext } from "...
const BaseModel = require('../../base-model'); const { createLoaders } = require('./loaders'); const { countryCreateError, statusTypes, reverseAddressError } = require('../root/enums'); const { find } = require('lodash'); const { addLocalizationField, transformToCamelCase, formatError, } = require('../../lib/util...
<?php namespace App\Http\Controllers; use Illuminate\Foundation\Auth\Access\AuthorizesRequests; use Illuminate\Foundation\Bus\DispatchesJobs; use Illuminate\Foundation\Validation\ValidatesRequests; use Illuminate\Routing\Controller as BaseController; class Controller extends BaseController { use AuthorizesReques...
<template> <div class="request-result"> <div> <el-row :gutter="8" type="flex" align="middle" class="info"> <el-col :span="2"> <div class="method"> {{request.method}} </div> </el-col> <el-col :span="8"> <el-tooltip effect="dark" :content="requ...
package telegram_ai_bot import ( "encoding/base64" "encoding/json" "fmt" "github.com/go-telegram-bot-api/telegram-bot-api/v5" "io" "net/http" "strings" ) const gptOpenAiUrl = "https://api.openai.com/v1/chat/completions" func explainImage(message *tgbotapi.Message, gptModel string) { imageBytes := DownloadLat...
![logo](icon/logoEmuTesting.png "logo") ## About `Termux-box MOD` es simplemente [Termux-box](https://github.com/olegos2/termux-box) pero con varias modificaciones sobre rendimiento y compatibilidades. Tiene las mísmas características: (rootfs preconfigurado con [Box86](https://github.com/ptitSeb/box86), [Box64](https...
'use client' import React, { useRef, useEffect } from 'react' import s from './HorizontalScrollContainer.module.scss' type HorizontalScrollContainerProps = { children: React.ReactNode } const HorizontalScrollContainer: React.FC<HorizontalScrollContainerProps> = ({ children, }) => { const containerRef = u...
import { Button, Card } from "react-bootstrap"; import { HiOutlineLocationMarker } from "react-icons/hi"; import { BsCalendar3 } from "react-icons/bs"; import { BsInfoCircle } from "react-icons/bs"; import { BsQrCode } from "react-icons/bs"; import { BsPeopleFill } from "react-icons/bs"; import "./CardEvent.scss" impo...
import { useNavigation } from "@react-navigation/native"; import { MapPin, Star } from "phosphor-react-native"; import { View, Text, Image, TouchableOpacity } from "react-native"; import { urlFor } from "../../sanity"; interface RestaurantCard { id: number; bannerUrl: string; token: string; title: string; ra...
import { useState } from 'react'; import {FiSearch} from 'react-icons/fi'; import {BsFiletypePdf} from 'react-icons/bs'; import clientesPDF from './Reports/Clientes/Clientes'; import './style.css'; import api from './services/api'; function App() { const [input, setInput] = useState(''); const [cep, setCep] = ...
const mongoose = require('mongoose'); const { Schema } = mongoose; const ItemSchema = new Schema({ name: { type: String, required: true, minLength: 4, maxLength: 100 }, description: { type: String, required: true, minLength: 10, maxLength: 500 }, category: [{ type: Schema.ObjectId, ref: 'Category', required: tr...
/** * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the Free * Software Foundation, either version 3 of the License, or (at your option) * any later version. * * This program is distributed in the hope that it will b...
import React from "react"; import PropTypes from "prop-types"; import css from "./select.module.scss"; class Select extends React.Component { static propTypes = { confirmationMessage: PropTypes.string, defaultValue: PropTypes.string, label: PropTypes.string, name: PropTypes.string, onChange: Pro...
import { Collider } from '../Collider'; import { gameResourses } from '../Resources'; import { GameResourses } from '../Resources/types'; import { SceneManager } from '../SceneManager'; import { Add } from './Add'; import { defaultGameConfig } from './defaultGameConfig'; import { TimeStep } from './TimeStep/TimeStep'; ...
'// CheckInserts.bas '//------------------------------------------------------------------ '// CheckInserts - Check target COA sheet(s) for insertion available. '// 7/3/20. wmk. '//------------------------------------------------------------------ public function CheckInserts(psMonth As String, psAcct1 As String,_ ...
package leetCode; import java.util.*; import java.util.stream.Collectors; public class LongestSubString { public static void main(String[] args) { System.out.println("abcabcbb -> " + lengthOfLongestSubstring("abcabcbb")); System.out.println("bbbbb -> " + lengthOfLongestSubstring("bbbbb")); ...
<template> <v-card class="profile_reminder"> <v-row> <v-col cols="4"> <div class="row"> <div class="mr-5"> <img class="avatar" src="../assets/icon/avatar.png" alt="avatar" /> </div> <div class="column"> <div class="text-weight mb-2"> ...
!--------------------------------------------------------------------------------------------------! ! CP2K: A general program to perform molecular dynamics simulations ! ! Copyright (C) 2000 - 2018 CP2K developers group ! !----------------...
import BlissTheme import ComposableArchitecture import Dependencies import InputOutput import JsonPrettyClient import SharedModels import SwiftUI public struct JsonPrettyReducer: ReducerProtocol { public init() {} public struct State: Equatable { var inputOutput: InputOutputAttributedEditorsReducer.Sta...
using Test using Checkpointing using LinearAlgebra using DataStructures # All tested AD tools using Zygote, Enzyme abstract type ADtools end struct ZygoteTool <: ADtools end struct EnzymeTool <: ADtools end adtools = [ZygoteTool(), EnzymeTool()] @testset "Checkpointing.jl" begin @testset "Enzyme..." begin ...
package application import ( "ddd-demo/domain/entity" "ddd-demo/domain/repository" ) type userApp struct { us repository.UserRepository } //UserApp implements the UserAppInterface var _ UserAppInterface = &userApp{} type UserAppInterface interface { SaveUser(*entity.User) (*entity.User, map[string]string) GetU...
import React, { Component } from 'react'; import { Text, View, StyleSheet, TextInput, Button, ScrollView, Image, } from 'react-native'; import { connect } from 'react-redux'; import * as actions from './../actions'; class AddPerson extends Component { static navigationOptions = { tabBarLabel: 'Add...
/* * Copyright 2017 The Mifos Initiative. * * 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 a...
use std::{collections::HashMap, iter::Peekable, str::Chars}; use crate::token::Token; macro_rules! try_pop_next { ($s: ident, $x:expr) => { if $x { $s.pop(); true } else { false } }; } #[derive(Debug, Clone, PartialEq)] pub struct ScannerItem { ...
package org.broadinstitute.ddp; import static com.google.common.net.HttpHeaders.X_FORWARDED_FOR; import static spark.Spark.afterAfter; import static spark.Spark.awaitInitialization; import static spark.Spark.before; import static spark.Spark.delete; import static spark.Spark.internalServerError; import static spark.Sp...
# Import Pandas import pandas as pd # Load Movies Metadata metadata = pd.read_csv('../sample_data/movies_metadata.csv', low_memory=False) # print(metadata['overview'].head()) # Import TfIdfVectorizer from scikit-learn from sklearn.feature_extraction.text import TfidfVectorizer # Define a TF-IDF Vectorizer Object. R...
**命令:curl** \\ 在Linux中curl是一个利用URL规则在命令行下工作的文件传输工具,可以说是一款很强大的http命令行工具。它支持文件的上传和下载,是综合传输工具,但按传统,习惯称url为下载工具。\\ \\ 语法:# curl [option] [url]\\ 常见参数:\\ \\ <code> -A/--user-agent <string> 设置用户代理发送给服务器 -b/--cookie <name=string/file> cookie字符串或文件读取位置 -c/--cookie-jar <file> 操作结束后把cookie写入到这个...
--- # 0.5 - API # 2 - Release # 3 - Contributing # 5 - Template Page # 10 - Default search: boost: 10 --- # Fanout Exchange The **Fanout** Exchange is an even simpler, but slightly less popular way of routing in *RabbitMQ*. This type of `exchange` sends messages to all queues subscribed to it, ignoring any argument...
<template> <div class="row" ref="inventory"> <div class="col s12 l6"> <div class="row"> <div class="col s12"> <div class="card"> <div class="card-content"> <span class="card-title"> Average age of ESXi servers {{ getAverageServersAge() }} ...
import Models import Services import SwiftUI import Views import WebKit import Utils struct SafariWebLink: Identifiable { let id: UUID let url: URL } @MainActor final class WebReaderViewModel: ObservableObject { @Published var articleContent: ArticleContent? @Published var errorMessage: String? @Published v...
import unittest from unittest import TestCase from certification_script import read_from_file, convert_to_float, compare, certificate, create_and_write_to_xlsx import pytest class Test(TestCase): """ Тесты для certification_automation.py """ @pytest.fixture(autouse=True) def _pass_fixtures(self, ...
package com.msawady.tandemtrack.db import cats.effect.IO import cats.syntax.all.* import com.msawady.tandemtrack.models.User import com.msawady.tandemtrack.models.User.UserId import skunk.* import skunk.data.* import skunk.codec.* import skunk.codec.all.varchar import skunk.implicits.* object UserDao { val idCodec...
import {NgModule} from '@angular/core'; import {RouterModule, Routes} from '@angular/router'; import {LoginComponent} from './auth/login/login.component'; import {RegisterComponent} from './auth/register/register.component'; import {AuthGuardService} from './auth/auth-guard.service'; const routes: Routes = [ {path: ...
#' Generate table with random values #' #' @param n_rows Number of rows. #' generate_data <- function(r_rows) { tibble( V01 = rbeta(r_rows, shape1 = 1.5, shape2 = 0.9), V02 = rbeta(r_rows, shape1 = 0.9, shape2 = 1.5), V03 = rbeta(r_rows, shape1 = 1, shape2 = 2), V04 = rnorm(r_rows), V05 = c(rnorm...
> Задача 1. Да се намери резултатът от изпълнението на програмата: ```c++ #include<iostream> using namespace std; class A{ public: void printMessage(); }; void A::printMessage(){ cout<< "Hello!\n"<<endl; } int main(){ A a; a.printMessage(); return 0; } ``` > Задача 2. Да се намери резулт...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.10; import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import {IDepositController} from "../interfaces/IDepositController.sol"; import {IERC20Metadata} from "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import {IMerkleTreeVerifier}...
import { format } from 'date-fns'; import React, { useEffect, useState } from 'react'; import BookingModal from './BookingModal'; import Service from './Service'; const AvailableAppoinment = ({ date }) => { const [services, setServices] = useState([]); const [treatment, setTreatment] = useState({}); useEff...
<template> <el-row :gutter="20"> <el-col :span="6"> <el-card shadow="hover" :body-style="{ padding: '0px' }"> <div class="card-content"> <div class="card-left"> <el-icon><user /></el-icon> </div> ...
const mongoose = require('mongoose'); const Card = require('../models/card'); const { STATUS_CODES } = require('../utils/constants'); const RequestError = require('../errors/RequestError'); const NotFoundError = require('../errors/NotFoundError'); const ForbiddenError = require('../errors/ForbiddenError'); const creat...
<template> <v-card> <link rel="preload" as="style" type="text/css" onload="this.rel = 'stylesheet'" href="https://unpkg.com/katex@0.6.0/dist/katex.min.css" /> <v-toolbar dark color="primary"> <v-btn icon dark @click="close()" class="mr-2"> <v-icon>{{ mdiClose }}...
// Copyright 2020 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. library fuchsia.lowpan.device; using fuchsia.lowpan; /// Protocol for returning the results of a network scan operation. /// /// Closing the client end o...
import { OccupationalHealthcareEntry } from "../types"; import WorkIcon from "@mui/icons-material/Work"; const OccupationalEntry: React.FC<{ entry: OccupationalHealthcareEntry; getDiagnosisText: (code: string) => string; }> = ({ entry, getDiagnosisText, }: { entry: OccupationalHealthcareEntry; getDiagnosis...
import os import pymongo from dotenv import load_dotenv from flask import Flask, jsonify, request, render_template from scrapers.singer import getSingerData from scrapers.abans import getAbansData from scrapers.damro import getDamroData from scrapers.singhagiri import getSinghagiriData from scrapers.softlogic import ge...
import React, { useState, useEffect } from 'react'; import { Link } from 'react-router-dom'; import Logo from './logo'; import SearchBar from './search_bar'; import NavbarTabItem from './navbar_tab_item'; import NavbarCreateItem from './navbar_create_item'; import NavbarMessengerItem from './navbar_messenger_item'; imp...
// Countdown setup using moment-timezone const endDate1 = moment.tz("2025-01-19 23:59:59", "America/New_York").valueOf(); const endDate2 = moment.tz("2025-04-19 23:59:59", "America/New_York").valueOf(); function updateCountdown1() { const now = moment().tz("America/New_York").valueOf(); const distance = endDate1 -...
import Link, { LinkProps } from 'next/link'; import type { FunctionComponent } from 'react'; import { Stack } from 'components/layouts/Stack'; import { useClassNames } from 'hooks/useClassNames'; import type { StackProps } from 'types'; import { linkStackClassName } from './linkStack.css'; type LinkStackProps = (Sta...
// // AppDelegate.swift // Culinary // // Created by Sergey Nazarov on 01.12.2019. // Copyright © 2019 Sergey Nazarov. All rights reserved. // import UIKit import CoreData import Moya import RxSwift import YandexMapKit import VK_ios_sdk import FBSDKCoreKit @UIApplicationMain class AppDelegate: UIResponder, UIApp...
-> A strong analysis depends on the integrity of the data. If the data you're using is compromised in any way, your analysis won't be as strong as it should be. -> Data integrity is the accuracy, completeness, consistency, and trustworthiness of data throughout its lifecycle. -> When data integrity is low, it can cau...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> <link rel="stylesheet" href="bootstrap-5.2.3-dist/css/bootstrap.css"> <link rel="s...
#include "dog.h" #include <stdlib.h> /** * new_dog - creates new dog * * @name: name of the dog * @age: age of the dog * @owner: name of the dog owner * * Return: pointer to new dog. */ dog_t *new_dog(char *name, float age, char *owner) { dog_t *dog; int i = 0, j = 0, k; if (!name || !owner) return (NULL)...
import { useState, useEffect } from "react"; import { useRouter } from "next/router"; import Modal from "react-modal"; import styles from "../../styles/Video.module.css"; import { getYoutubeVideoById } from "../../lib/videos"; import { NavBar } from "../../components/nav/navbar"; import Like from "../../components/icon...
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { TimesheetDataTableComponent } from './timesheet-data-table.component'; import { TimesheetModule } from '@features/timesheet/timesheet.module'; import { TestBaseModule, mockTimesheet, mockTimesheet2 } from 'src/app/spec/data-service-test...
def axes(self, axes): '''Set the axes for this object's degrees of freedom. Parameters ---------- axes : list of axis parameters A list of axis values to set. This list must have the same number of elements as the degrees of freedom of the underlying ODE object. ...
<?php namespace Database\Seeders; use Illuminate\Database\Console\Seeds\WithoutModelEvents; use Illuminate\Database\Seeder; use Illuminate\Support\Carbon; use Illuminate\Support\Facades\DB; use Faker\Factory; use Illuminate\Database\Query\Builder; class GamesSeeder extends Seeder { /** * Run the database se...
// Importing React, useEffect, and useState from React library import React, { useEffect, useState } from "react"; // Importing Button and Modal components from react-daisyui import { Button, Modal } from "react-daisyui"; // Importing social media share buttons and icons from react-share import { FacebookShareButton,...
Feature: This feature describes the parameterization in Cucumber Scenario: Passing numeric parameter to the Gherkin step Given I have 15 and 62 When I add them Then print result @Regression @Smoke Scenario: Passing String parameter to the gherkin step Given I have two words like "India hello" and "China hi" Then ...
package com.devdavidm.invoicemanagerapp.productspage import android.widget.Toast import androidx.activity.compose.BackHandler import androidx.compose.foundation.background import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Sp...
import { Box, Stack, Typography, colors } from "@mui/material"; import React from "react"; import CheckIcon from "@mui/icons-material/Check"; import { red } from "@mui/material/colors"; function Card({ cardImage, cardHeading, cardContent1, cardContent2, cardContent3, cardContent4, }) { return ( <div ...
#include "base.h" class Solution { public: int climbStairs(int n) { if (n == 1) { return 1; } if (n == 2) { return 2; } vector<int> climb_ways(n + 1); climb_ways[0] = 1; climb_ways[1] = 1; for (size_t i = 2; i <= n; ++i) { climb_ways[i] = climb_ways[i - 1] + climb_w...
#if UNITY_EDITOR using UnityEditor; using UnityEngine; using UnityEngine.Rendering; using System.Collections.Generic; namespace GSpawn { public static class MeshCombiner { private class MaterialInstance { public Material material; public List<MeshInstance> ...
From: John Wehle <john@feith.com> Date: Thu, 21 Oct 1999 19:56:53 -0400 (EDT) Message-Id: <199910212356.TAA12563@jwlab.FEITH.COM> To: schaefer@vulcan.alphanet.ch Subject: Bash version of Vgetty.pm Cc: kas@fi.muni.cz Content-Type: text I found that starting the perl interpeter from vgetty takes too long (at least on th...
'use client' import { Button } from 'flowbite-react'; import React, { useEffect, useState } from 'react'; function Liveclass() { const [classes, setClasses] = useState([]); useEffect(() => { fetch('https://db-lern-server.vercel.app/liveclass') .then((response) => response.json()) .then((data) => s...
// // ProfileAddSummaryVC.swift // workntour // // Created by Chris Petimezas on 14/11/22. // import UIKit import SharedKit class ProfileAddSummaryVC: BaseVC<ProfileAddSummaryViewModel, ProfileCoordinator> { // MARK: - Outlets @IBOutlet weak var mainView: UIView! { didSet { mainView.l...