text
stringlengths
184
4.48M
import React from 'react' import Navbar from './navbar' import img from './1682586072.png' import img1 from './hand.png' import img2 from '../component/../fa.avif' import img3 from '../component/../download (2).png' import { NavLink } from 'react-router-dom' export default function News1(){ return( <div cla...
# coding=utf-8 # # average_past_single.py - Calculates the average of past measurements for a single channel # # Copyright (C) 2015-2020 Kyle T. Gabriel <mycodo@kylegabriel.com> # # This file is part of Mycodo # # Mycodo is free software: you can redistribute it and/or modify # it under the terms of the GNU Genera...
import React, {useEffect, useRef, useState} from "react"; import {addTodo, getTodo, patchTodo} from "../utils/api"; import {useDispatch} from "react-redux"; import {add_todo} from "../store/actions"; import {IFetchTodo, ITodoListProps} from "../utils/interfaces"; import { useNavigate, useParams} from "react-router-dom"...
Setting a Schema Registry ID rangeCloudera Docs Setting a Schema Registry ID range Learn how to set an ID range for schemas in Schema Registry using Cloudera Manager. An ID range that is unique to a Schema Registry instance can be set in Cloudera Manager on the Schema Registry service’s configu...
import { Component } from "react"; import Axios from "axios"; import Cookies from "universal-cookie"; import md5 from "md5"; import { ToastContainer, toast } from "react-toastify"; import "react-toastify/dist/ReactToastify.css"; import { useState } from "react"; import { loginFields } from "../constants/formFields"; ...
// // EditTableViewController.swift // ConvenienceStore // // Created by jr on 2022/10/26. // import UIKit import Foundation class EditTableViewController: UITableViewController, UITextFieldDelegate { var thing:Item? var isSelectedPhoto = false //是否選擇相片 var pkvStore:UIPickerView! var pkvComme...
import { useNavigate } from 'react-router-dom'; import React from "react"; function HomePage(){ const navigate = useNavigate() const [showModal, setShowModal] = React.useState(false) return( <div> <div className='bg-green-300 max-w-xs p-5 rounded-md mx-auto my-24 flex flex-col ite...
package com.chslcompany.moviesapp.feature_movies.presentation import androidx.compose.foundation.ExperimentalFoundationApi import androidx.compose.foundation.Image import androidx.compose.foundation.background import androidx.compose.foundation.combinedClickable import androidx.compose.foundation.layout.Box import and...
--- layout: post title: counting paths date: 2014-09-19 ... Consider the grid below. If you can only move right and down, how many distinct paths are possible from the upper left corner to the lower right corner? ![](./assets/grid.svg) This problem can be solved in a number of ways. The most obvious is to manually c...
"use client" import React, { useEffect, useState } from 'react'; async function loadServices() { const response = await fetch('/api/services'); const data = await response.json(); return data.services; } function ServicesList() { const [services, setServices] = useState([]); useEffect(() => { const fe...
package com.ohgiraffers.section01.object.run; import com.ohgiraffers.section01.object.book.Book; public class Application1 { // Object 클래스의 toString public static void main(String[] args) { /* * Object * * 모든 클래스는 Object 클래스의 후손이다. * 따라서 Object 클래스가 가진 메소드를 자신의 것처럼 사용...
import jQuery from 'jquery'; import { Model } from '../model'; import { buildSearchResults } from './searchResults'; function getPaginationHtml() { // const pagesCount = Model.pagesCount; // const currentPage = Model.currentPage; const { currentPage, pagesCount } = Model; const prevButton = ` <li class="js-bt...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; //*----------------------------- using SalonBelleza.EntidadesDeNegocio; using SalonBelleza.AccesoADatos; namespace SalonBelleza.LogicaDeNegocio { /// <summary> /// Esta clase es de la entidad...
// React import React, { useState } from 'react'; import { FormProvider, useForm } from 'react-hook-form'; import { useDispatch } from 'react-redux'; // MUI import { styled } from '@mui/styles'; import { Stack, Box, Grid, Typography } from '@mui/material'; // App Components import Fade from 'components/Common/Fade'; im...
import { AsyncPipe } from '@angular/common'; import { ChangeDetectionStrategy, Component } from '@angular/core'; import { takeUntilDestroyed } from '@angular/core/rxjs-interop'; import { ColumnConfig, ColumnType, TableComponent as TableComponentFromLib } from '@bolzplatzarena/components'; import { TranslateModule } fro...
<!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>Create Product</title> </head> <!--LIBRERIAS --> <!--Librería cdn que provee bootstrap, permite acceder a to...
package com.sample.pianoguide import android.app.Activity import android.bluetooth.BluetoothAdapter import android.bluetooth.BluetoothManager import android.bluetooth.le.BluetoothLeScanner import android.bluetooth.le.ScanCallback import android.bluetooth.le.ScanResult import android.content.Context import android.cont...
import unittest import types import asyncio import random # 1. 普通汉书 def function(): return 1 # 2. 生成器函数 def generator(): yield 1 # 3. 异步函数(协程) async def async_function(): return 1 # 4. 异步生成器 async def async_generator(): yield 1 def run(coroutine): try: coroutine.send(None) except S...
"use client"; import { NextPage } from "next"; import Link from "next/link"; import { usePathname } from "next/navigation"; import s from "@/components/ui/header/navigation/navigation.module.scss"; type Link = { path: string; label: string; }; interface Props { links: Link[]; } const Navigation: NextPage<Pro...
const baseUrl = 'https://pokeapi.co/api/v2/pokemon/'; let currentPokemonIndex = 1; function displayPokemon() { const url = `${baseUrl}${currentPokemonIndex}`; fetch(url) .then(response => response.json()) .then(data => { const name = data.name; const number = data.i...
import './style.css' import { Todo } from './model/todo.ts' import LocalStorage from './storage/localstorage.ts' import ModelRepository from './repository/modelRepository.ts' import todoTemplate from './model/todoTemplate.html?raw' import render from './templates/template.ts' const repository = new ModelRepository(Tod...
from diffusion_kinetics.optimization.forward_model_kinetics import forwardModelKinetics from diffusion_kinetics.optimization.forward_model_kinetics import calc_lnd0aa from diffusion_kinetics.optimization.dataset import Dataset import math as math import torch as torch import numpy as np class DiffusionObjective: ...
<!DOCTYPE html> <html lang="en"> <head> <title>Portfolio Website-Brad</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- linking css file --> <link rel="stylesheet" href="style.css"> <!-- bootstrap CDN --> <link href="https://cdn.jsdelivr.net/npm/boots...
#include <bits/stdc++.h> using namespace std; void tabulateLCS(vector<vector<int>>& dp, string& text1, string& text2) { int n = dp.size() - 1; int m = dp[0].size() - 1; for (int i = 0; i <= n; ++i) { for (int j = 0; j <= m; ++j) { if (i == 0 || j == 0) dp[i][j] = 0;...
package frc.robot.subsystems; import edu.wpi.first.wpilibj2.command.SubsystemBase; import edu.wpi.first.wpilibj.motorcontrol.Spark; import frc.lib.bluecrew.util.BlinkinValues; import frc.robot.Constants; import frc.lib.bluecrew.util.RobotState; public class BlinkinSubsystem extends SubsystemBase implements Const...
package FindMedian; /** * The FindMedian class contains methods for finding the median value of an array of integers. If the array has an odd * number of elements, the median is the middle element. If the array has an even number of elements, the median is the * average of the two middle elements. The class uses th...
> McKusick, Marshall K., et al. "A fast file system for UNIX." ACM Transactions on Computer Systems (TOCS) 2.3 (1984): 181-197. # ffs “a fast file system for unix”: alternative implementation of the unix file system (ufs) with better performance. other sources: - implementation: https://github.com/openbsd/src/blob/...
--- output: html_document runtime: shiny title: Law of Large Numbers --- ```{css, echo = FALSE} .shiny-frame{height: 810px;} ``` ```{r, echo=FALSE, warning = FALSE} # Load libraries library(shiny) library(ggplot2) plot_law_of_large_numbers <- function(simulations, repetitions, distribution) { set.seed(42) # Set...
# Direct messages **Direct messages (DMs)** are conversations with other users that happen outside of a [stream](/help/streams-and-topics). DMs work well for one-off messages, usually with just one or two others. If you find yourself frequently conversing with the same person or group, it often works better to [creat...
<template> <Message :msg="msg" v-show="msg" /> <div> <form id="Contato" method="POST" @submit="createConjunto"> <div class="input-container"> <label for="nome">Nome</label> <input type="text" id="nome" name="nome" v-model="nome"> </div> <div class="input-container"> ...
/* * The MIT License * * Copyright 2013 RBC1B. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, m...
import React from "react" import axios from "axios" const qs = require("qs") function Oppurtunities() { const [val, setVal] = React.useState({ fullName: "", email: "", number: "", about: "" }); const [finalVal, setIt] = React.useState("Apply for your dream job today") ...
const express = require("express"); const app = express(); const mongoose = require("mongoose"); const Product = require("./test/product.model"); const productRoute = require("./routes/product.route"); // middleware app.use(express.json()); app.use(express.urlencoded({ extended: false })); // routes app.use("/api/pro...
// requires const express = require('express'); const path = require('path'); const Get = require('./Controllers/Read'); const Create = require('./Controllers/Create'); const Delete = require('./Controllers/Delete'); const Update = require('./Controllers/Update'); const Middlewares = require('./Controllers/MiddleWares'...
use std::{ fs::File, io::{Read, Write}, path::Path, sync::Arc, }; use zarrs::{ array::{Array, ZARR_NAN_F32}, array_subset::ArraySubset, storage::{ReadableStorageTraits, ReadableWritableStorageTraits}, }; // const ARRAY_PATH: &'static str = "/array"; const ARRAY_PATH: &str = "/"; fn write_...
<template> <!-- 通用数据字典下拉列表 用法 <com-dict :val.sync="data.value" dict-name="thatName" :is-all="false" /> editor lianglei --> <el-select :value="val" v-bind="$attrs" @change="onChange" @clear="onClear" > <el-option v-for="item in options" :key="item.value" :label="ite...
package com.ruoxu.pattern.observer; import java.util.ArrayList; import java.util.List; /** * Created by wangli on 16/12/23. */ public class ObservableImp<T> implements Observable { private List<T> datas; private List<Subscriber> subscribers = new ArrayList<>(); @Override public void registerObser...
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ProductRegistration.aspx.cs" Inherits="WebAppAssignmnet10.ProductRegistration" %> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.1/dist/css/bootstrap.min.css" rel="...
import type { Meta, StoryObj } from "@storybook/react"; import { fn } from "@storybook/test"; import { DemoButton } from "./DemoButton"; // More on how to set up stories at: https://storybook.js.org/docs/writing-stories#default-export const meta = { title: "Example/Button", component: DemoButton, parameters: { ...
using Dapper; using Discount.API.Entities; using Microsoft.Extensions.Configuration; using Npgsql; using System.Threading.Tasks; namespace Discount.API.Repositories { public class DiscountRepository : IDiscountRepository { private readonly IConfiguration _configuration; public DiscountReposito...
import SwiftUI import Foundation import Firebase class RestaurantManager: ObservableObject { @Published var restaurants: [Restaurant] = [] private var groupId: String init(groupId: String) { self.groupId = groupId fetchRestaurants() } func fetchRestaurants() { let ...
<template> <div> <checkView ref="checkRef" title="提现余额" @confirmHandle="confirmHandle" > <template v-slot:content> <div> <div class="withdraw-money">可提现金额:{{ balance / 100 || 0 }}元</div> <a-form layout="vertical" :model="formState"> <a-form-item label="本次提现金额"> ...
import React, { useState, useCallback, useEffect, useRef } from 'react'; import useEventListenerMemo from '../../../hooks/useEventListenerMemo'; import useQuery from '../../../hooks/useQuery'; import { LoopTimebarBackground, LoopTimebarContainer, LoopPins, LoopTimebarEnabled, Backdrop, } from './StyledCompon...
import React from 'react'; import { useEffect } from 'react'; import { useState } from 'react'; import { useParams } from 'react-router-dom'; import { baseUrl, getUserLogado } from '../../auth/auth'; import Botao from '../../components/Botao/Botao'; import Header from '../../components/Header/Header'; import Modal from...
import { render, screen } from '@woographql/testing'; import { ProductImage } from '.'; import { useProductContext, ProductContext } from '@woographql/client/ProductProvider'; // Mock hooks and components jest.mock('@woographql/client/ProductProvider', () => ({ useProductContext: jest.fn(() => ({ get: jest.fn(),...
<!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>CSS 예제</title> <script src="../js/jquery.min.js"></script> <style> .box{ width: 300px; height: 300px; border: 1px ...
import 'package:flutter/material.dart'; class ReclamationCard extends StatelessWidget { final String title; final String description; final bool status; final String createdAt; final String updatedAt; final VoidCallback onUpdateStatus; final VoidCallback ondelete; ReclamationCard({ required this.t...
# CI/CD Product Recipe Product Compatibility: IWX 5.3.1 ## Introduction This product recepie is responsible for migration of Infoworks artifacts from lower environment(Dev/QA) to higher environment(Prod). <br> Supports Infoworks version 5.2 onwards ## Table of Contents - [Introduction](#introduction) - [Prerequisit...
import { useState } from "react"; import { StackingClient } from "@stacks/stacking"; import { Form, Formik } from "formik"; import { useNavigate } from "react-router-dom"; import { ErrorAlert } from "@components/error-alert"; import { useNetwork } from "@components/network-provider"; import { useGetAccountBalance, ...
<% if user_signed_in? %> <table class="table table-striped table-bordered table-hover" > <thead class="table-dark"> <tr> <th>Name</th> <th>Phone</th> <th>Email</th> <th>Twitter</th> <%# <th>User Id</th> %> <%# <th>Show</th> %> <%# <th>Edit</th> %> ...
@extends('back.parent.layout') @section('breadcrumb') @include('back.parent.partial.breadcrumb', [ 'parent' => 'Parametres', 'parent_route' => '#', 'child' => 'Configurations', ]) @endsection @section('css') <style> #holder img { height: 100%; widt...
import { MagnifyingGlassIcon } from '@heroicons/react/24/outline'; import { PencilIcon, UserPlusIcon } from '@heroicons/react/24/solid'; import { Card, CardHeader, Input, Typography, Button, CardBody, Chip, CardFooter, Tabs, TabsHeader, Tab, Avatar, IconButton, Tooltip, } from '@material-tai...
from models import db, Commodity, CommodityPrice from app import app app.app_context().push() import requests import json import os from datetime import datetime from flask_sqlalchemy import SQLAlchemy base_currency = 'EUR' endpoint = 'timeseries' symbols = 'POTATOES' todaysDate = '2023-03-09' aYearAgo = '2023-01-09...
import { useState } from "react"; import Message from "./Message"; import InputEmoji from "react-input-emoji"; import { selectHMSMessages, useHMSActions, useHMSStore, } from "@100mslive/react-sdk"; import { selectPeers } from "@100mslive/react-sdk"; import { IoMdChatboxes } from "react-icons/io"; import {FaUsers}...
.. Khungulanga Backend API Documentation Overview -------- The Khungulanga backend API serves as the server-side component for the Khungulanga mobile application. It provides the necessary functionality for early diagnosis of skin diseases using the ResNet50v2 architecture. The API allows users to interact with the ...
<template> <div> <div class="mb-4"> <FiltersMenu :group-by="groupByOptions" :filter-by="filterOptions" @searchStringChange="searchString = $event" @filtersChange="onFiltersChange" @groupByChange="groupBy = $event" @reset="onFiltersReset" /> </div> <di...
# Contribution Guidelines 🙌 This documentation contains a set of guidelines to help you during the contribution process of this project. I'm happy to welcome all the contributions from anyone willing to add new scripts to this repository. Thank you for helping out and remember, No contribution is too small. ## Steps...
<template> <div class="theme-picker"> <button v-for="(item, index) in options" :key="index" :class="item.active ? '-active' : ''" :aria-pressed="item.active" @click="setTheme(item.id)" >{{ item.name }}</button> </div> </template> <script> export default { name: 'Th...
import { Body, Controller, Delete, Get, HttpCode, Param, Post, Put, UseInterceptors } from '@nestjs/common'; import { plainToInstance } from 'class-transformer'; import { BusinessErrorsInterceptor } from '../shared/interceptors/business-errors/business-errors.interceptor'; import { AlbumService } from './album.service'...
--- title: "Competition_Forecast_RMD" author: "Nannaphat Sirison, Lynn Wu" date: "2023-04-03" output: pdf_document: default html_document: default --- ## INTRODUCTION ```{r} knitr::opts_chunk$set(warning = FALSE, message = FALSE) #Installing required packages library(lubridate) library(ggplot2) library(forecast)...
package com.YK.social_media.controllers; import com.YK.social_media.models.Message; import com.YK.social_media.models.User; import com.YK.social_media.services.FriendService; import com.YK.social_media.services.MessageService; import com.YK.social_media.services.UserService; import io.swagger.v3.oas.annotations.Operat...
package com.bunny.groovy.ui.fragment.wallet; import com.bunny.groovy.api.SubscriberCallBack; import com.bunny.groovy.base.BasePresenter; import com.bunny.groovy.model.ResultResponse; import com.bunny.groovy.model.WalletBean; import com.bunny.groovy.utils.AppCacheData; import java.util.List; /** * Created by bayin o...
package gb.endpoints; import static gb.testlang.fixtures.CommentsFixtures.ANON_NAME_DIV_TEXT; import static gb.testlang.fixtures.CommentsFixtures.EXISTING_ID; import static gb.testlang.fixtures.CommentsFixtures.USERNAME_DIV_TEXT; import static gb.testlang.fixtures.CommentsFixtures.buildAnonCommentInput; import static...
import { isReadonly, readonly, isProxy } from "../reactive"; describe("readonly test", () => { it("readonly", () => { const user = readonly({ name: "bojack", age: 10, }); console.warn = jest.fn(); expect(user.age).toBe(10); user.age = 11; expect(console.warn).toBeCalled(); ex...
| **Inicio** | **atrás 6** | **Siguiente 8** | | --------------------- | ----------------------------------------------------------------- | ------------------------------------------------...
"""server Serves the following endpoints: GET /jobs Return an HTML page containing a table of all jobs, sorted by most recent first. POST /jobs Create a new job. The request body must be a form containing the following fields: - "proxy" is the kind of proxy, i.e. eit...
import mongoose, { Schema, Types } from 'mongoose'; // Document interface export interface UserInterface { _id: Types.ObjectId; firstName: string; lastName: string; email: string; password: string; profilePicture?: string; bio?: string; friends?: Types.ObjectId[]; posts?: Types.ObjectId[]; notifica...
import { Command } from "../command.ts"; import { dim, italic } from "../deps.ts"; import { FishCompletionsGenerator } from "./_fish_completions_generator.ts"; /** Generates fish completions script. */ export class FishCompletionsCommand extends Command<void, void, { name: string }> { readonly #cmd?: Command; p...
import PropTypes from 'prop-types'; import { HiPlusSm } from 'react-icons/hi'; import Container from './styles'; const Card = ({ name, id, logo, handleButton }) => ( <Container type="button" onClick={() => handleButton(id)} existproduct={name}> {name ? ( <> <img src={logo} alt="logo" /> <p>{name}</p> ...
import io.github.bonigarcia.wdm.WebDriverManager; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.chrome.ChromeOptions; import org.openqa.selenium.firefox.FirefoxDriver; import org.openqa.selenium.firefox.FirefoxOptions; import org.openqa.selenium.firefox...
/* This file is part of solidity. solidity 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. solidity is distributed in the hope that i...
 # Port Access Control in SONiC # Table of Contents - **[List of Tables](#list-of-tables)** - **[Revision](#revision)** - **[About this Manual](#about-this-manual)** - **[Definitions and Abbreviations](#definitions-and-abbreviations)** - **[1 Feature Overview](#1-feature-overview)** - [1.1 Port Access Control](#11-...
/* Root CSS variables with fallback */ :root { --main-bg-color: #f4f4f9; --main-text-color: #2e4a60; /* Fallback color */ --accent-color: color(srgb 0.1 0.2 0.8); --button-color: #84713E; } /* General styling */ body { font-family: 'Arial', sans-serif; color: var(--main-text-color, grey); ...
// src/pages/Login.jsx import { useState, useEffect, useRef } from "react"; import { useNavigate } from "react-router-dom"; import { gsap } from "gsap"; import styles from "../pages/styles/login.module.css"; const Login = () => { const [email, setEmail] = useState(""); const [password, setPassword] = useState("")...
Sistema de ideas Bonindea: De El Investigador de las Ideas. (https://investigadorid.wordpress.com/). Versión 1.4. Por cuestiones de gusto y comodidad se sigue escribiendo en un nuevo renglón cada vez que se llega a la columna 60. Finalidad: Crear un formato para esquematizar en forma de texto a ideas posibilitando ...
from contextlib import contextmanager import pytest from flask import g, request from core.common.exceptions import APIError from takumi.auth import SIGNATURE_HEADERS, _get_signature, task from takumi.models import ApiTask class UrlRule: def __init__(self, endpoint): self.endpoint = endpoint def test...
import React, {useState} from 'react'; import {action} from '@storybook/addon-actions'; import {Accordion, AccordionPropsType} from './Accordion'; import {Story} from '@storybook/react'; export default { title: 'Accordion stories', component: Accordion }; const callback = action('accordion mode change event...
import './App.css'; import React from "react"; import { Routes, Route } from "react-router-dom"; import Layout from "./components/Layout"; import AboutMe from "./pages/AboutMe"; import PostPage from "./pages/PostPage"; import LoginPage from "./pages/LoginPage"; import MyBlog from './pages/MyBlog'; import NewPostForm fr...
package org.leondorus.remill.domain.notifgroups import org.leondorus.remill.domain.model.NotifGroup import org.leondorus.remill.domain.model.NotifGroupId import org.leondorus.remill.domain.model.UsePattern import org.leondorus.remill.domain.platfromnotifications.PlatformNotificationEditUseCase class NotifGroupEditUse...
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
// Copyright 2022: // GobySoft, LLC (2013-) // Community contributors (see AUTHORS file) // File authors: // Toby Schneider <toby@gobysoft.org> // // // This file is part of the Goby Underwater Autonomy Project Libraries // ("The Goby Libraries"). // // The Goby Libraries are free software: you can redistribute t...
<template> <app-modal name="digital-certificate-modal" @before-open="beforeOpen" :title="title" width="70%" hide-footer> <div class="container-fluid"> <div class="row"> <div class="col-sm-12 mb-4 text-right"> <button class="btn btn-primar...
@page "/pagewithloading" @using System.Text.Json.Serialization; @using BlazorAppRadzenLoading.Models; @inject DialogService DialogService <PageTitle>Index</PageTitle> <!-- LOADING COMPONENT --> <BlazorAppRadzenLoading.Components.LoadingIndicator DoLoadDataCallback="LoadDataAsync" ...
import '../community/communityMain.dart'; import 'package:image_picker/image_picker.dart'; import 'communityService.dart'; import 'package:flutter/material.dart'; class CommunityEditAppBar extends StatelessWidget implements PreferredSizeWidget { int postId; String inputTitle; String inputContent; List<XFil...
import {useEffect} from 'react'; import Alert from 'sentry/components/alert'; import Button from 'sentry/components/button'; import {t} from 'sentry/locale'; import {Organization, Project, SeriesApi} from 'sentry/types'; import {defined} from 'sentry/utils'; import trackAdvancedAnalyticsEvent from 'sentry/utils/analyt...
import React, { useState, useEffect } from 'react'; import { allProducts } from './test'; // Импорт данных import CardInfo from './CardInfo'; import './shopContent.css'; const ShopContent = ({ onProductClick, currentPath }) => { const itemsPerPage = 9; // Количество товаров на странице // Закомментировала код...
/* * Temple Library for ActionScript 3.0 * Copyright © MediaMonks B.V. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * 1. Redistributions of source code must retain the above copyright ...
const sqlite3 = require('sqlite3').verbose(); class Database { constructor(dbFilePath) { this.db = new sqlite3.Database(dbFilePath); this.initDatabase(); } initDatabase() { const createSpecialtyTable = ` CREATE TABLE IF NOT EXISTS Specialty ( id INTEGER ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace TemplateProject2 { class Program { static void Main(string[] args) { string intsum = sum<int>(10, 20); Console.WriteLine(intsum); string strsum = sum<string>("He...
package com.example.duck; import com.example.behaviour.FlyBehaviour; import com.example.behaviour.QuackBehaviour; public abstract class Duck { FlyBehaviour flyBehaviour; QuackBehaviour quackBehaviour; public Duck(FlyBehaviour flyBehaviour,QuackBehaviour quackBehaviour){ this.flyBehaviour = flyBehav...
import {tryUntil} from '../../async'; /** * This is a promise-based version of scrollIntoView(). * Method scrolls the element's parent container such that the element on which * scrollIntoView() is called is visible to the user. The promise is resolved when * the element became visible to the user and scrolling st...
package test; import queue.Queue; import task.Task; /** Each cpu is composed of a queue. Each cpu can be assigned with some tasks and then perform its own tasks. */ public class Cpu { private Queue queue; // Must specify a queue to create a cpu. Cpu(Queue queue) { this.queue = queue; } /** * Assign or load...
<div class="grid"> <div class="col-12"> <div class="card px-6 py-6"> <p-toast></p-toast> <p-toolbar styleClass="mb-4"> <ng-template pTemplate="left"> <div class="my-2"> <button pButton pRipple label="New" icon="pi pi-plus" class="p-button-success mr-2" (clic...
import * as yup from 'yup'; import { RegistrationBody } from '../types'; const registrationBodyValidationSchema: yup.ObjectSchema<RegistrationBody> = yup.object({ email: yup.string() .required('email is required') .email('incorect email format'), password: yup.string() .required('password is required'...
from django.contrib.auth.decorators import login_required from django.forms import ModelForm from django.http import HttpResponseRedirect from django.shortcuts import render from django.urls import reverse from django.utils.text import slugify from blogdjango.models import Post from django.views.generic import ListVi...
import 'package:flutter/material.dart'; import 'package:provider/provider.dart'; import 'package:todo_list_provider/app/core/ui/theme_extensions.dart'; import 'package:todo_list_provider/app/models/task_filter_enum.dart'; import 'package:todo_list_provider/app/models/total_tasks_model.dart'; import 'package:todo_list_p...
<?php use Illuminate\Support\Facades\Route; /* |-------------------------------------------------------------------------- | Web Routes |-------------------------------------------------------------------------- | | Here is where you can register web routes for your application. These | routes are loaded by the Route...
import fs from "fs/promises"; /** * Open a file gracefully and return it if possible. * * If the file read was unsuccessful, the result will be `undefined`. * * @param {string} filename the filename * @returns {Promise<string | undefined>} the file output */ export const openGracefully = async (filename: string...
<!DOCTYPE html> <html lang="en"> <head> <!-- Required meta tags --> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <!-- Bootstrap CSS --> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/css/bootstrap.min.css" rel="...
/** * */ package HowCanIHelp; import java.util.Calendar; /** * @author dweintraub * */ public abstract class Item { /** * The Item class is an abstract class that holds general data about goods or * services that have been inputed into the How Can I Help? database. Classes * representing specific types ...