text
stringlengths
184
4.48M
import 'package:amplify_auth_cognito/amplify_auth_cognito.dart'; import 'package:amplify_flutter/amplify_flutter.dart'; import 'package:estonedge/amplifyconfiguration.dart'; import 'package:estonedge/ui/auth/login/login_screen.dart'; import 'package:estonedge/ui/auth/signup/signup_screen.dart'; import 'package:estonedg...
<!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" /> <link rel="preconnect" href="https://fonts.googleapis.com" /> <link rel="preconnect" href="https://fonts...
import { Component, OnInit } from '@angular/core'; import { FormBuilder, FormGroup, FormsModule, ReactiveFormsModule, Validators } from '@angular/forms'; import { ActivatedRoute } from '@angular/router'; import { BookService } from '../../../../services/book.service'; import { CategoryService } from '../../../../servic...
import { useState } from 'react'; import { useDispatch, useSelector } from 'react-redux'; import { Menu, IconButton, Icon } from '@mui/material'; import authSelectors from 'src/modules/auth/authSelectors'; import { getHistory } from 'src/modules/store'; import authActions from 'src/modules/auth/authActions'; import { i...
/* eslint-disable no-new */ import { Cell } from './cell' import { Colors } from './colors' import { Bishop } from './figures/bishop' import { King } from './figures/king' import { Knight } from './figures/knight' import { Pawn } from './figures/pawn' import { Queen } from './figures/queen' import { Rook } from './figu...
import React, { useState } from "react"; import { ImQuotesRight } from "react-icons/im"; import { FaChevronLeft, FaChevronRight } from "react-icons/fa"; import reviews from "../../data"; const Review = () => { const [index, setIndex] = useState(0); const { name, job, image, text } = reviews[index]; const nextIt...
import { Controller, Get, Post, Body, Patch, Param, Delete, UploadedFile, UseInterceptors, BadRequestException, Res } from '@nestjs/common'; import { FilesService } from './files.service'; import { FileInterceptor } from '@nestjs/platform-express'; import { diskStorage } from 'multer'; import { fileFilter, fileNamer } ...
import React, { Component } from "react"; import { Form, Button } from "react-bootstrap"; import { AiOutlineSend } from "react-icons/ai"; import { GoFileMedia } from "react-icons/go"; import { getDatabase, ref, push, set, child } from "../../firebase-config"; import MediaModal from "./MediaModal"; export default class...
import DITranquillity import Combine import UIKit final class CatalogPart: DIPart { static func load(container: DIContainer) { container.register(CatalogPresenter.init) .as(CatalogEventHandler.self) .lifetime(.objectGraph) } } // MARK: - Presenter final class CatalogPresenter ...
--- title: Updated Ditch the Limits Installing Linux on Your Chromebook (Updated 2023) for 2024 date: 2024-04-29T19:43:34.936Z updated: 2024-04-30T19:43:34.936Z tags: - video editing software - video editing categories: - ai - video description: This Article Describes Updated Ditch the Limits Installing Linux...
import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { ReactiveFormsModule } from '@angular/forms'; import { NgbModule } from '@ng-bootstrap/ng-bootstrap'; import { HttpClientModule, HTTP_INTERCEPTORS } from '@angular/common/http'; import { AppComponent } from './...
# frozen_string_literal: true require "rails_helper" RSpec.describe ApplicationJob do describe "saving and restoring the current user" do let(:user) { create(:user, name: "Background User") } let(:buffer) { StringIO.new } let(:logs) { buffer.string } let(:job_class) do Class.new(::Application...
from patchwork.common.utils.utils import exclude_none_dict from patchwork.step import Step from patchwork.steps.CallLLM.CallLLM import CallLLM from patchwork.steps.ExtractModelResponse.ExtractModelResponse import ( ExtractModelResponse, ) from patchwork.steps.LLM.typed import LLMInputs from patchwork.steps.PrepareP...
# Trollus Discord Bot 🎵 A Discord bot for playing YouTube sounds in voice channels with customizable volume and per-server sound management. ## Features 🚀 - **Add Sound**: `/trollus addus` - Add a sound from a YouTube URL. - **Play Sound**: `/trollus playus` - Play a sound with optional voice channel selection. - ...
// SSNFinder.h : Declaration of the CSSNFinder #pragma once #include "resource.h" // main symbols #include <AFCategories.h> #include <IdentifiableObject.h> #include <string> #include <list> using namespace std; struct StringSegmentType { int iStartIndex; int iEndIndex; }; // CSSNFinder class ATL_NO_VTA...
<template> <div class="photoinfo-container"> <h3>{{photoinfo.title}}</h3> <p class="subtitles"> <span>发表时间: {{photoinfo.add_time | dateFormat}}</span> <span>点击: {{photoinfo.click}}次</span> </p> <hr> <!-- 缩略图区域 --> <div class="thumbs"> ...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2017, AdaCore -- -- -- -- ...
/** * @module Card */ export default class Card { /** * @description * <div class="exapmle" data-module="card" data-example='[{"simple":"250-420"},{"collapse":"330-620"},{"function":"280-750"},{"img":"1030-570"},{"outline":"230-350"},{"width":"520-800"},{"simpleComponent":"470-300"}]'></div> * @pro...
#include <stdio.h> #include <stdlib.h> #define rep(y,x) for(int i=y;i<x;i++) int c_size=0; typedef struct Node ll; struct Node{ int data; struct Node *next; }; ll*head=NULL; //Creating initial LinkedList void createNode(){ ll *temp,*ptr; temp = (ll *)malloc(sizeof(ll)); if(temp==NULL){ ...
const request = require('supertest') const express = require('express') // mock authenticateToken in router const auth = require("../lib/authenticate") jest.spyOn(auth, 'authenticateToken').mockImplementation( (req, res, next) => { const { published } = req.query; if (published && published === 'true') { ...
import os import logging # Add logging import import streamlit as st from main import process_query from agent_manager import AgentManager from dotenv import load_dotenv from langchain.chat_models import ChatOpenAI import numpy as np import sounddevice as sd import soundfile as sf import time import matplotlib matplot...
from crispy_forms.helper import FormHelper from crispy_forms.layout import Submit from django import forms from django.contrib.auth.forms import UserCreationForm from django.urls import reverse_lazy from .models import CustomUser class CustomUserCreationForm(UserCreationForm): manager_dropdown = forms.ModelChoic...
export interface ISampleReq { id: string; } export interface ISampleRes { data: { name: string }; } export interface ISampleLoginReq { userId: string; password: string; } export interface ISampleLoginRes { createDate: string; modifiedDate: string; id: string; password: string; result: string; // ...
using System.Collections.Generic; using System.Linq.Expressions; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Content; using Microsoft.Xna.Framework.Graphics; using Editor.Engine.Interfaces; using System.IO; using Game_Tools_Week4_Editor; using System.Windows.Forms; namespace Game_Tools_Week4_Editor {...
Nome: detector event api Contexto: Uma API que recebe por sistema eventos de detectores de amônia e os armazena em banco de dados com data e hora desses eventos. Os detectores disparam sistema registrador quando etes detectam concentraçao acima de 20ppm, armazenando qual detector (id), concentração máxima detectada, ...
import type { NextPage } from "next"; import { useTodos, useTodosDispatch } from "src/state/todo"; const Home: NextPage = () => { const todos = useTodos(); const { toggleIsDone } = useTodosDispatch(); return ( <div> <h3>Todo一覧</h3> {todos.map((todo) => ( <div key={todo.id}> <la...
import { makeStyles } from "@mui/styles"; import { Paper, Typography, CircularProgress, Box, Table, TableBody, TableCell, TableContainer, TableHead, TableRow, Grow, Pagination, } from "@mui/material"; import { useState, useEffect } from "react"; import useCurrentLeague from "../../../hooks/useCu...
import React from 'react'; import UserBar from './UserBar'; import FileBrowser from './FileBrowser'; import AddPanel from '../Panel/addPanel/AddPanel'; import '../../stylesheets/FileSystem.css'; class FileSystem extends React.Component { constructor(props) { super(props); this.state = { username: this.props.u...
import streamlit as st import ibis import json import pyodbc import duckdb import pandas as pd from pathlib import Path from typing import Optional, Dict, Any import os def detect_delimiter(file_path: str) -> str: """Detect the delimiter in a CSV file""" try: # Read first few lines of the file ...
"use client"; import { motion } from "framer-motion"; import Image from "next/image"; import HeroSection from "./component/HeroSection"; import Navbar from "./component/Navbar"; import Aboutsection from "./component/Aboutsection"; import ProjectSection from "./component/ProjectSection"; import EmailSection from "./comp...
import { auth, database } from "../firebase"; interface IUser { clientId?: string; activity?: string; address?: string; addressCompany?: string; birthdate?: string; companyActivity?: string; companyAddress?: string; companyName?: string; companyPhone?: string; companySiren?: string; companySocial...
package com.example.spring_jwt_tutorial.model; import jakarta.persistence.*; import lombok.*; import java.io.Serializable; import java.util.List; @Entity @Setter @Getter @AllArgsConstructor @NoArgsConstructor public class Role implements Serializable { @Id @GeneratedValue(strategy = GenerationType.IDENTITY)...
import React, { useContext, useRef, useState } from 'react' import axios from 'axios'; import { UserContext } from '../context/userContext'; import Cookies from 'universal-cookie'; import { useNavigate } from 'react-router-dom'; import Swal from 'sweetalert2'; const App = () => { const cookies = new Cookies(null, { ...
import React, { useState } from 'react'; import { format, differenceInBusinessDays } from 'date-fns'; import { HolidayType } from '../types/holiday'; import type { DateRange } from 'react-day-picker'; interface HolidayFormProps { selectedDate: Date | undefined; selectedRange: DateRange | undefined; onSubmit: (ty...
import { Lead } from '../../entities/lead.entity'; import { Repository, UpdateResult } from 'typeorm'; import { InjectRepository } from '@nestjs/typeorm'; import { FindAllLeadCommand, ILead } from '../find-all-lead.command'; import { CommandHandler, ICommandHandler } from '@nestjs/cqrs'; import { Injectable, BadRequest...
import 'package:flutter/material.dart'; import 'package:nb_utils/nb_utils.dart'; import '../../../../components/cached_image_widget.dart'; import '../../../../components/price_widget.dart'; import '../../../../components/view_all_label_component.dart'; import '../../../../main.dart'; import '../../../../models/booking...
package Marketplace.Types.MsgToOrderFn; import Marketplace.Constant.Constants; import Marketplace.Constant.Enums; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.ObjectMapper; import lombok.Getter; import lombok.Setter; im...
import React, {useState, useEffect} from 'react'; import {View, Text, StyleSheet, Image, TouchableOpacity} from 'react-native'; import {RouteProp, useRoute} from '@react-navigation/native'; import axios from 'axios'; import {API_URL} from '@env'; import {RecommendItemParamList} from '../../components/Recommend/Recommen...
import {RegistrationStore} from './registration.js'; import {DatasetStore, extractIri, extractIris} from './dataset.js'; import {dereference, fetch, HttpError, NoDatasetFoundAtUrl} from './fetch.js'; import DatasetExt from 'rdf-ext/lib/Dataset'; import Pino from 'pino'; import {Valid, Validator} from './validator.js'; ...
test.sy0{ -- Basic tests without core -- Type definitions public all x ~~ foo[x] ~> tree[x]. public option[x] ::= .none | .some(x). public boolean ::= .true | .false. -- Tree type public tree[x] ::= .empty | .node(foo[x],x,tree[x]). -- Person type public person ::= .noone | someone{ n...
A web app built with [React](https://reactjs.org/) and [Express](https://expressjs.com/). # What does empocketer do? _Empocketer_ allows anyone with a [Pocket](https://getpocket.com) account to log in to the app, and create lists of sites with RSS or Atom feeds. Every two hours it checks all those feeds for new conte...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Edit Kegiatan - Manajemen Tugas</title> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet"> <style> ...
import React from 'react'; import {BrowserRouter, NavLink, Route} from 'react-router-dom' import UsersPage from './components/UsersPage'; import TodosPage from './components/TodosPage'; import UserItemPage from './components/UserItemPage'; import TodoItemPage from './components/TodoItemPage'; const App = () => { re...
// // SearchBookInteractor.swift // Book-RIBs // // Created by 이서준 on 2023/04/07. // import RIBs import RxSwift import RxCocoa protocol SearchBookRouting: ViewableRouting { // TODO: Declare methods the interactor can invoke to manage sub-tree via the router. func routeToBookDetail(of isbn13: String) fu...
library(grid) library(nara) #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # Load the spritemap for pacman and the ghosts #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ spritemap <- png::readPNG("image/game-sprites.png") if (FALSE) { dim(spritemap) ...
import 'package:ucpc_inventory_management_app/exports.dart'; class Product { final String? id; final String name; final String description; final List imageUrls; final String? supplierId; final double price; final int quantity; final bool isPopular; final bool isHidden; final String barcode; fina...
import React, { useState, useEffect } from 'react' import TripCard from './TripCard' export default function TripList () { const [trips, setTrips] = useState([]) function removeTrip (id) { setTrips(trips.filter(trip => trip.id !== id)) } useEffect(() => { fetch('http://localhost:3000/api/v1/trips').th...
from torch.utils.data import Dataset from pathlib import Path import os import cv2 import open3d as o3d import numpy as np import torch import MinkowskiEngine as ME from omegaconf import DictConfig import hydra import json from ncut.SensorData_python3_port import SensorData def color_images_from_sensor_data(sens: Se...
package com.commercetools.sync.taxcategories; import com.commercetools.api.client.ProjectApiRoot; import com.commercetools.api.models.tax_category.TaxCategory; import com.commercetools.api.models.tax_category.TaxCategoryDraft; import com.commercetools.api.models.tax_category.TaxCategoryUpdateAction; import com.commerc...
import "./topbar.css"; import { Search, Person, Chat, Notifications } from "@material-ui/icons"; import {Link, useHistory} from "react-router-dom"; import {useContext, useRef} from "react"; import { AuthContext } from "../../context/AuthContext"; import axios from "axios"; export default function Topbar() { const { ...
class MenuItemPricesController < ApplicationController # GET /menu_item_prices # GET /menu_item_prices.xml def index @menu_item_prices = MenuItemPrice.all respond_to do |format| format.html # index.html.erb format.xml { render :xml => @menu_item_prices } end end # GET /menu_item_pri...
/* eslint-disable no-unused-vars */ /* eslint-disable no-undef */ import React, { useState, useEffect } from 'react'; import { Form, InputGroup } from 'react-bootstrap'; import { useDispatch, useSelector } from "react-redux"; import { useNavigate } from 'react-router-dom'; import { RegisterUser, reset } from "../featur...
--- description: "Langkah Mudah untuk Membuat Roti sobek lembut oven tangkring Anti Gagal" title: "Langkah Mudah untuk Membuat Roti sobek lembut oven tangkring Anti Gagal" slug: 1061-langkah-mudah-untuk-membuat-roti-sobek-lembut-oven-tangkring-anti-gagal date: 2020-04-18T18:27:38.393Z image: https://img-global.cpcdn.co...
import { Injectable } from '@angular/core'; import { BehaviorSubject, tap } from 'rxjs'; import { HttpClient, HttpHeaders } from "@angular/common/http"; import { SessionStorageService } from "../session-storage/session-storage.service"; import { User } from '../../../models/user'; import { LoginResult, RegisterResult }...
from datetime import datetime, timedelta from sqlalchemy.orm import Session from sqlalchemy import func, and_ from fastapi import HTTPException from contacts.database.models import Contact, User from contacts.schemas import ContactBase, ContactUpdate, ContactCreate async def get_contact( id: int, us...
import json import psycopg2 from django.conf import settings from ofirio_common.states_constants import states_from_short from ofirio_common.enums import PropClass2 from common.utils import get_is_test_condition, get_pg_connection from common.base_urlgen_command import BaseUrlgenCommand from common.klaviyo.feed impor...
PostgreSQL: Documentation: 15: 42.1. Installing Procedural Languages Home About Download Documentation Community Developers Support Donate Your account 9th February 2023: PostgreSQL 15.2, 14.7, 13.10, 12.14, and 11.19 Released! Documentation → PostgreSQL 1...
import React, { useState, useEffect, useRef } from 'react'; import styled from 'styled-components'; import axios from 'axios'; import Contacts from '../components/Contacts'; import Welcome from "../components/Welcome" import { useNavigate } from 'react-router-dom'; import { allUsersRoute, host } from '../utils/APIRoute...
use super::{BufStream, SizeHint}; use bytes::Buf; use futures::Poll; /// Limits the stream to a maximum amount of data. #[derive(Debug)] pub struct Limit<T> { stream: T, remaining: u64, } /// Errors returned from `Limit`. #[derive(Debug)] pub struct LimitError<T> { /// When `None`, limit was reached ...
<div style=" background-image: url('/assets/img/slika39.jpg');background-size: cover; background-position: center center;background-repeat: no-repeat;"> <div class="register-form" > <div class="text-center mb-3 mt-5"> <img src="/assets/img/logo.png" width="150px" alt="Company Logo"> </div> ...
#include <stdlib.h> #include <ctype.h> #include <stdio.h> #include "allocation.h" void* log_calloc(FILE* MemoryLogFile, size_t nMemb, size_t size) { void* ptr = calloc(nMemb, size); if (MemoryLogFile) { ON_HTML(fprintf(MemoryLogFile, "<p>" "Called calloc ...
<!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>JS비동기 : 3. 프라미스 연습1</title> <script> function 화면뿌려(이거) { document.querySelector("#s...
import React, { useState } from 'react'; import { User, Phone, Mail, Lock, ChevronRight } from 'lucide-react'; import { useNavigate } from 'react-router-dom'; const Signup = () => { const navigate = useNavigate(); const [formData, setFormData] = useState({ name: '', gender: '', mobile: '', email: '...
import React, { useEffect, useState } from 'react'; import { useParams } from 'react-router-dom'; import { PageLayout } from '../components/layout/PageLayout'; import { Card } from '../components/ui/Card'; import { Badge } from '../components/ui/Badge'; import { AuthorBadge } from '../components/blog/AuthorBadge'; impo...
import CloudUploadIcon from '@mui/icons-material/CloudUpload'; import { TextField } from '@mui/material'; import Button from '@mui/material/Button'; import { styled } from '@mui/material/styles'; import MDBox from 'components/MDBox'; import MDButton from 'components/MDButton'; import useVirusTotal from 'hooks/virustota...
package com.example.demo; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.security.config.annotation.web.builders.HttpSecurity; import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity; import o...
package com.example.dicodingevent.data.network.dto import com.example.dicodingevent.domain.model.Event import com.squareup.moshi.Json import com.squareup.moshi.JsonClass @JsonClass(generateAdapter = true) data class EventDto( @Json(name = "id") val id: Int, @Json(name = "name") val name: String, ...
import * as React from 'react'; import { Button, Box, Field, Flex, Popover, Typography, useComposedRefs, } from '@strapi/design-system'; import { CaretDown } from '@strapi/icons'; import { useField, type InputProps, type FieldValue } from '@strapi/strapi/admin'; import { HexColorPicker } from 'react-colo...
local spritesheet = require('spritesheet') local pickable = require('src.pickable') local timer = require('src.system.timer') local inventory = require('src.pickables.inventory') -- Initialize player variables player = { x = 0, y = 0, -- Vertical velocity (initially zero) yVelocity = 0, -- Flag to ...
/** * Definition for a binary tree node. * public class TreeNode { * int val; * TreeNode left; * TreeNode right; * TreeNode() {} * TreeNode(int val) { this.val = val; } * TreeNode(int val, TreeNode left, TreeNode right) { * this.val = val; * this.left = left; * ...
// // StorageManager.swift // Drunkard 1.0 // // Created by USER on 01.08.22. // import Foundation import FirebaseStorage final class storageManager { static let shared = storageManager() private let storage = Storage.storage().reference() /* /images/(safeEmail)_profile_pircute.png /imag...
// // Maxheapify.c // // // // #include <stdio.h> #include <stdlib.h> typedef struct newstruct { int size; int array[100]; }heap; void printHEAP(heap * A) { for(int i =0; i<A->size; i++){ printf("%d ",A->array[i]); } printf("\n\n"); } int parent(int i){ return (i-1)/2; } int le...
import { DatePipe } from '@angular/common'; import { HttpClient } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { Observable, catchError, throwError } from 'rxjs'; import { User } from '../models/user'; @Injectable({ providedIn: 'root' }) export class UserService { private base...
import React, { useState, useEffect } from 'react'; import { useNavigate, useLocation } from 'react-router-dom'; import io from 'socket.io-client'; import BootStrap from './BootStrap'; const socket = io.connect("http://localhost:8000"); export default function ChattingRooms() { const [rooms, setRooms] = useState(...
"use client" import Link from "next/link" import { usePathname } from "next/navigation" const Links = [ { name: "Home", path: '/', }, { name: "About Me", path: "/about", }, { name: "Services", path: "/services", }, { name: "Work", ...
--- id: integrations-llamaindex title: LlamaIndex sidebar_label: LlamaIndex --- ## Quick Summary LlamaIndex is a data framework for LLMs that facilitates the ingestion of data from various sources such as APIs, databases, and PDFs, and indexes it for later retrieval in RAG-based LLM applications. ## Evaluating Llama...
{% import 'utils/macros.html.twig' as macros %} {% for project in projects %} <article class="uk-comment"> {{ macros.statusColor(readerList, project.itemId) }} <header class="uk-comment-header uk-margin-remove uk-flex"> <div class="items-checkbox uk-margin-right uk-margin-top uk-hidden...
<template> <section class="md:min-w-[750px] md:max-w-[820px] w-[90vw] min-h-[80vh] bg-[#222222] mx-auto mt-10 rounded-lg"> <div v-if="loggingOut" class="w-[300px] mx-auto"> <div class="absolute w-[300px] h-[30px] rounded-md bg-green-500 -mt-[20px]"> <p class="text-center text-[16...
<script setup lang="ts"> import {hideOnClickMenu} from "~/composables/shared/HideOnClickMenu"; import {useRouter} from "nuxt/app"; import {useAuthStore} from "~/store/auth/auth"; import {useAuth} from "~/composables/auth/useAuth"; const {logout} = useAuth(); const router = useRouter(); const user = computed(() => useA...
use derive_builder::Builder; use gitlab::api::Endpoint; use reqwest::Method; use std::borrow::Cow; #[derive(Debug, Builder)] pub struct DeleteKey { pub key_id: u64, } impl DeleteKey { /// Create a builder for the endpoint. pub fn builder() -> DeleteKeyBuilder { DeleteKeyBuilder::default() } } impl Endpoint for...
using FluentAssertions; using NUnit.Framework; namespace DataStructures.Tree.BinarySearchTree { [TestFixture] public class CustomBinarySearchTreeTests { [Test] public void BinarySearchTree_InsertNodes_RootAndChildrenCorrect() { // arrange var bst = new Custo...
[CmdletBinding(DefaultParameterSetName = 'Value')] Param( [Parameter(Mandatory = $true, ValueFromPipeline = $true)] [object]$VM, [Parameter()] [string]$ComputerName, [Parameter(Mandatory = $true, ParameterSetName = 'Value')] [string]$Name, [Parameter(Mandatory = $true, ParameterSetName = 'Value')] [string]$Valu...
import PropTypes from 'prop-types'; import css from 'components/statistics/Statistics.module.css'; export const Statistics = ({ good, neutral, bad, total, positivePercentage, }) => { return ( <ul> <li> <p className={css.stat}>Good: {good}</p> </li> <li> <p className={c...
/* StarPU --- Runtime system for heterogeneous multicore architectures. * * Copyright (C) 2010-2012 Université de Bordeaux * * StarPU is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either versio...
// Tests that replaying the oplog entries during the startup recovery also writes to the change // collection. // @tags: [ // requires_fcv_62, // ] import {configureFailPoint} from "jstests/libs/fail_point_util.js"; import {verifyChangeCollectionEntries} from "jstests/serverless/libs/change_collection_util.js"; con...
/** \file MouseEvents.h */ #pragma once #include "Event.h" namespace Engine { /** \class MouseButtonEvent mouse events */ class MouseButtonEvent : public Event { protected: int m_Button; MouseButtonEvent(int button) : m_Button(button){} public: virtual int getCategoryFlags() const override { return Event...
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package vista.swing.vista; import controlador.datos.Facade; import hibernate.dto.Alojamiento; import hibernate.dto.VistaActividadesAlo...
import React, { useState } from 'react'; import axios from 'axios'; const AddEmployeeForm = ({onAddEmployee}) => { const [formData, setFormData] = useState({ firstName: '', lastName: '', dob: '', position: '', salary: '', }); const [loading, setLoading] = useState(false); ...
import type { Event } from '@prisma/client' import { events, event, createEvent, updateEvent, deleteEvent } from './events' import type { StandardScenario } from './events.scenarios' // Generated boilerplate tests do not account for all circumstances // and can fail without adjustments, e.g. Float. // Pleas...
If you want to import files from the OpenJDK into `libcore/`, you are reading the right documentation. # Concept ```text ---------A----------C------------ expected_upstream \ \ -----------B----------D---------- master ``` The general idea is to get a change from OpenJDK into libcore in AOSP by...
import { useMemo, useState, useEffect } from "react"; import Card from "components/Card"; import { useTranslation } from "react-i18next"; import { useHistory, useParams } from "react-router-dom"; import { Input } from "alisa-ui"; import Form from "components/Form/Index"; import * as yup from "yup"; import { useFormik }...
<?php /** * Nooku Framework - http://nooku.org/framework * * @copyright Copyright (C) 2007 - 2014 Johan Janssens and Timble CVBA. (http://www.timble.net) * @license GNU GPLv3 <http://www.gnu.org/licenses/gpl.html> * @link https://github.com/nooku/nooku-framework for the canonical source repository */...
<?php namespace App\Exports; use Illuminate\View\View; use Illuminate\Database\Eloquent\Collection; use Maatwebsite\Excel\Concerns\FromView; use Maatwebsite\Excel\Concerns\ShouldAutoSize; use Maatwebsite\Excel\Concerns\WithProperties; class BugExport extends BaseExport implements FromView, WithProperties, ShouldAuto...
import React, { useState} from 'react'; import { Container, Typography, TextField, Button, Box, } from '@mui/material'; import axios from 'axios'; import { useNavigate, useParams } from 'react-router-dom'; //Formulario de contacto const Response = ({ onSubmit }) => { const {idMessage} = useParams("idMessa...
# JSON Viewer ## Description This web application allows you to upload a JSON file, view and edit its contents, apply filters to highlight specific attributes, and export the edited JSON file. ## Features - **Upload JSON**: Upload a JSON file from your local machine. - **View JSON**: Display the JSON data in a struct...
"""Component providing support for Reolink select entities.""" from __future__ import annotations from collections.abc import Callable from dataclasses import dataclass import logging from typing import Any from reolink_aio.api import ( Chime, ChimeToneEnum, DayNightEnum, HDREnum, Host, Spotl...
import React, { useState } from 'react'; import {Box} from '../../contents/Box' import {FormField, FormItem, FormBtn, FormTitle, FormInput} from '../FormContacts/FormContacts.styled' export default function FormContacts({onSubmit}) { const [name, setName] = useState(''); const [number, setNumber] = useState(''); ...
/* (1) Synchronous:- Store in Main stack (2) Asynchronous: stored in Side stack, always return a promise (3) Async-Await:- async function always return a promise (4) Syntax:- async function myFunc(){....} (5) Await:- A keyword used to pause the execution of an async function until the Promise is set...
import 'package:equatable/equatable.dart'; import '../../domain/entities/season.dart'; class SeasonModel extends Equatable { SeasonModel({ required this.airDate, required this.episodeCount, required this.id, required this.name, required this.overview, required this.posterPath, required...
import React from 'react'; import { Row, Col, Button, Input } from "antd"; type Callback = (error?: Error) => void; type AddHandler = (name: string, callback: Callback) => void; const NOOP_ADD_HANDLER = (name: string, callback: Callback) => callback(); type TaskFormProps = { nameValue?: string; onAdd?: AddHandl...