text
stringlengths
184
4.48M
/* https://docs.nestjs.com/controllers#controllers */ import { Controller, Delete, Get, Param, Post, Query, Res, UploadedFile, UseInterceptors, } from '@nestjs/common'; import { FileInterceptor } from '@nestjs/platform-express'; import { ApiBasicAuth, ApiTags } from '@nestjs/swagger'; import { Curren...
// function genericConstraint1<T>(arg: T): T { // console.log(arg.length) TIDAK BISA KARENA DATA DINAMIS/GENERIC // return arg // } interface Length { length: number } function genericConstraint1<T extends Length>(arg: T): T { console.log(arg.length) return arg } const generic = genericConstra...
import { useEffect, useState } from "react"; import { createQuestion, getSubjects } from "../../utils/QuizService"; const AddQuestion = () => { const [question, setQuestion] = useState(""); const [questionType, setQuestionType] = useState("single"); const [choices, setChoices] = useState([""]); const [correct...
@extends('main') @section('title', '| Edit Blog Post') @section('stylesheets') {!! Html::style('css/select2.min.css') !!} <script src="//cloud.tinymce.com/stable/tinymce.min.js"></script> <script> tinymce.init({ selector: 'textarea', plugins: 'link code', menubar:...
import React, { useState, useEffect } from 'react'; import { useRouter } from 'next/router'; import { useDebounce } from '@/hooks/useDebounce'; import signupStyle from '../styles/Signup.module.css'; import { timeToString } from '@/utils/CommonUtils'; import axios from 'axios'; //mui notification import Snackbar from '...
/* ''' Print all K-length binary strings without consecutive 1s Given an integer *maxLen*, print all binary strings of size *maxLen* that don't have 1s next to each other. That is, no string should contain the substring 11, 111, 1111, 11111, etc. You can assume *maxLen* > 0. EXAMPLE(S) printBinaryWithoutConsecutive...
/******************************************************************************* * Copyright (c) 2005, 2010 Andrea Bittau, University College London, and others * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompan...
import { action, makeObservable, observable } from 'mobx'; import { TGroup, TGroupAdd } from 'model/api/groups/types'; import { TUser, TUserAdd, UsersRolesEnum } from 'model/api/users/types'; import { GroupsService } from 'model/services/groups'; import { ProjectsService } from 'model/services/projects'; import { Users...
from django.conf import settings from django.db import models from django.utils.functional import cached_property from django.utils.translation import gettext_lazy as _ from ..querysets import UserStudentMappingQuerySet class UserStudentMapping(models.Model): objects = UserStudentMappingQuerySet.as_manager() ...
import axios, { CancelTokenSource } from "axios"; import { useDispatch, useSelector } from "react-redux"; import { CustomerDetails } from "../store/customerManagement/customer/types"; import { clearDialog, selectDialogState, setDialogOpen } from "../store/dialog/actions"; import map from "lodash/map"; import { MeetingL...
/* * TeamStats by Mats Bovin (tsppc@mbovin.com) * v1.3.0 February 2007 * Copyright (c) 2004-07 Mats Bovin * * Android / Java port by Hayden Pronto-Hussey * v0.1 August 2012 * * This file is part of TeamStats. * * TeamStats is free software; you can redistribute it and/or modify * it under the terms of the ...
module Animate { /** A very simple class to represent tool bar buttons */ export class ToolBarButton extends Component { private _radioMode: boolean; private _pushButton: boolean; private _proxyDown: any; constructor( text : string, image : string, pushButton : boolean = false, parent?: Component ) { ...
/* CLIQUE NO SINAL DE "+", À ESQUERDA, PARA EXIBIR A DESCRIÇÃO DO EXEMPLO * * Copyright (C) 2014 - UNIVALI - Universidade do Vale do Itajaí * * Este arquivo de código fonte é livre para utilização, cópia e/ou modificação * desde que este cabeçalho, contendo os direitos autorais e a descrição do programa, * se...
import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { HomeComponent } from './home/home.component'; import { LoginComponent } from './login/login.component'; import { OrderComponent } from './order/order.component'; import { SignUpComponent } from './sign-up/sign-up....
/* * Copyright The Cryostat Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
using System.Text.RegularExpressions; using AdventOfCode.Lib; using Microsoft.Extensions.Configuration; using Serilog; using TextCopy; namespace AdventOfCode.Cli; public sealed partial class Application( IConfiguration config, ILogger logger, IHttpClientFactory httpClientFactory, IClipboard clipboard...
package com.jsrdev.jsrconsulthub import com.jsrdev.jsrconsulthub.data.network.services.MedicService import com.squareup.moshi.kotlin.reflect.KotlinJsonAdapterFactory import com.squareup.moshi.Moshi import kotlinx.coroutines.runBlocking import okhttp3.HttpUrl import org.junit.Assert.assertEquals import org.junit.Assert...
<?php class WPRT_Socials extends WP_Widget { // Holds widget settings defaults, populated in constructor. protected $defaults; // Constructor function __construct() { $this->defaults = array( 'title' => '', 'width' => '', 'height' => '', 'gap' =>...
/*---------------------------------------------------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | www.openfoam.com \\/ M anipulation | -----------------------------------...
<!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 href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css" rel...
<template> <div id="app"> <ejs-grid :dataSource="data" height='315' :rowDataBound='rowDataBound'> <e-columns> <e-column field='OrderID' headerText='Order ID' textAlign='Right' width=90></e-column> <e-column field='CustomerID' headerText='Customer ID' width=120></e-column> ...
class Node { constructor(val, left = null, right = null) { this.val = val; this.left = left; this.right = right; } } class BinarySearchTree { constructor(root = null) { this.root = root; } /** insert(val): insert a new node into the BST with value val. * Returns the tree. Uses iteration. ...
import { types, getSnapshot, unprotect, protect, applySnapshot, } from "mobx-state-tree"; // Entities and Their Many Names // 1. entity / type / interface / class / object / | set theory discrete mathematics // 2. They are all pretty similar in theory and concept // MobX Tree (Living Tree - Mutable Sta...
import React from 'react' import '@testing-library/jest-dom/extend-expect' import { screen, render } from '@testing-library/react' import userEvent from '@testing-library/user-event' import BlogForm from './BlogForm' test('BlogForm calls the event handler with the right details when submitted', async () => { const c...
package com.example.mymusicplayer1_01; import android.app.Service; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.content.SharedPreferences; import android.media.AudioManager; import android.media.MediaPlayer;...
// SPDX-License-Identifier: MIT pragma solidity >=0.7.6; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; /** * @title ERC721Mock * This mock just provides a public safeMint, mint, and burn functions for testing purposes */ contract ERC721Mock is Ownabl...
import pytest from src.scraper.utils import extract_product_id_from_url def test_extract_product_id_from_url(): # Test cases with various URLs test_cases = [ ("https://tienda.mercadona.es/product/3505.2/14-sandia-baja-semillas-14-pieza", 3505.2), ("https://tienda.mercadona.es/product/15691.1/...
<!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="stylesheet" href="style.css" /> <title>Form Validation Redone</title> </head> <body> ...
import { formatDate } from '@angular/common'; import { Component, ElementRef, OnInit, ViewChild } from '@angular/core'; import { FormBuilder, FormGroup, Validators } from '@angular/forms'; import { Router } from '@angular/router'; import { IdentityInfo } from 'src/app/interfaces/identityInfo'; import Swal from 'sweetal...
import React, { useEffect, useState } from 'react'; import styles from './SceneEditTitle.module.scss'; import { CheckMark32Icon, Cross32Icon, Edit32Icon } from '../../../icons'; import { updateSceneIdAndTitle } from '../../../api/scene'; const SceneEditTitle = ({ sceneData }) => { const [editMode, setEditMode] = use...
import 'package:bibleapp/widgets/headers/verse_header.dart'; import 'package:bibleapp/widgets/verse/verse.dart'; import 'package:flutter/material.dart'; import '../../models/chapter/chapter.dart'; import '../../models/verse/verse.dart'; class Verses extends StatelessWidget { final List<VerseModel> verses; final L...
package com.clone.springbootredditbackend.service; import com.clone.springbootredditbackend.Exception.PostNotFoundException; import com.clone.springbootredditbackend.Exception.SubredditNotFoundException; import com.clone.springbootredditbackend.domain.*; import com.clone.springbootredditbackend.mapper.PostMapper; impo...
import "./App.css"; import { BrowserRouter as Router, Routes, Route } from "react-router-dom"; import Home from "./pages/Home"; import CreatePost from "./pages/CreatePost"; import ReadPost from "./pages/ReadPost"; import Login from "./pages/Login"; import Register from "./pages/Register"; import Header from "./componen...
#!/usr/bin/env python3 ''' Copyright 2023 David Dovrat Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in...
/* This file is part of Cyclos (www.cyclos.org). A project of the Social Trade Organisation (www.socialtrade.org). Cyclos 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 th...
package com.example.myapplication; import androidx.appcompat.app.AppCompatActivity; import androidx.recyclerview.widget.LinearLayoutManager; import androidx.recyclerview.widget.RecyclerView; import android.app.DatePickerDialog; import android.content.Intent; import android.os.Bundle; import android.view.View; import ...
const { parse } = require("csv-parse"); const path = require("path"); const fs = require("fs"); const planetModel = require("../model/planets.mongo"); const inhabitablePlanet = (planet) => { return ( planet["koi_disposition"] === "CONFIRMED" && planet["koi_insol"] > 0.36 && planet["koi_insol"] < 1.11 &&...
<?php // Function to update product descriptions by category function update_product_descriptions_by_category($category_id, $new_description) { // Query arguments $args = array( 'post_type' => 'product', 'posts_per_page' => -1, 'tax_query' => array( array( 'ta...
import React, { useContext, useState } from 'react'; import { addDoc, serverTimestamp } from 'firebase/firestore'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { faComments } from '@fortawesome/free-solid-svg-icons'; import '../AddPost/AddPostLayout.css'; import { UserContext, needHelpPost...
import axiosInstance from '../helper/axiosIntance'; import { useState, useEffect, useRef } from 'react'; const useAxios = ({url, config = {}}) => { const [callFetch, setCallFetch] = useState(false); const [datas, setDatas] = useState(null); const [isLoading, setIsLoading] = useState(true); const [error...
"use client"; import { useRef, useEffect } from "react"; import { Chart } from "chart.js/auto"; import "chartjs-adapter-date-fns"; export default function LineChart({ traffic }) { const chartRef = useRef(null); //content가 "0:00"인 데이터 걸러내기 let filterTimeZeroData = traffic.map((item) => item.filter((obj) => ob...
/* Copyright 2017 Eric Aubanel * This file contains code implementing Algorithm 6.1 * using indexed min priority queue, i.e. Dijkstra's algorithm, in * Elements of Parallel Computing, by Eric Aubanel, 2016, CRC Press. * * This program is free software: you can redistribute it and/or modify * it under the terms of...
import React, { useEffect, useState } from 'react' import { Link } from 'react-router-dom' import ExteriorAPI from '../services/ExteriorAPI' import RoofAPI from '../services/RoofAPI' import WheelsAPI from '../services/WheelsAPI' import InteriorAPI from '../services/InteriorAPI' import convertible from '../assets/conver...
defmodule MuResponse.Endpoint do use Phoenix.Endpoint, otp_app: :mu_response socket "/socket", MuResponse.UserSocket # Serve at "/" the static files from "priv/static" directory. # # You should set gzip to true if you are running phoenix.digest # when deploying your static files in production. plug Plug...
import { Injectable, BadRequestException, NotFoundException } from '@nestjs/common'; import { UserRepository } from './user.repository'; import { InjectRepository } from '@nestjs/typeorm'; import { MapperService } from '../../shared/mapper.service'; import { UserDto } from './dto/user.dto'; import { User } from './user...
<h1 class="command">ZRANGE</h1> <pre>ZRANGE key start stop [BYSCORE|BYLEX] [REV] [LIMIT offset count] [WITHSCORES]</pre> <div class="metadata"> <p><strong>Available since 1.2.0.</strong></p> <p><strong>Time complexity:</strong> O(log(N)+M) with N being the number of elements in the sorted set and M the number of elem...
// // Created by jglrxavpok on 29/06/2023. // #pragma once #include <Jolt/Physics/Collision/ObjectLayer.h> #include <Jolt/Physics/Character/CharacterBase.h> #include <Jolt/Physics/Character/Character.h> #include <engine/physics/Types.h> #include <engine/physics/Colliders.h> #include <glm/glm.hpp> #include "BodyUserDa...
const socket = new WebSocket('ws://localhost:8081'); // Create a promise resolver map to handle different message types const resolvers = {}; socket.onmessage = function(event) { const data = event.data; const type = data.charCodeAt(0); const success = data.charCodeAt(1); if (resolvers[type]) { ...
/* * Copyright © 2021 - 2022 * Author: Pavel Matusevich * Licensed under GNU AGPLv3 * All rights are reserved. * Last updated: 10/30/22, 7:57 PM */ package by.enrollie import by.enrollie.annotations.UnsafeAPI import by.enrollie.data_classes.* import by.enrollie.providers.* import kotlinx.coroutines.CoroutineSco...
<!-- <form [formGroup]="form" (submit)="submit()"> <mat-dialog-content class="mat-typography"> <section> <div class="form-group"> <input type="text" placeholder="Passenger Name" formControlName="name"> </div> <ngx-intl-tel-input [cssC...
#include <iostream> #include <list> using namespace std; void PrintList(const list<int>&L) { for(_List_const_iterator<int> it=L.begin(); it != L.end(); it++) { cout<<*it<<" "; } cout<<endl; } //list 容器的大小操作 void test01() { list<int>L1; L1.push_back(10); L1.push_back(20); L1.pus...
@c This is part of the Emacs manual. @c Copyright (C) 1985, 1986, 1987, 1993, 1994, 1995, 1997, 2001, 2002, @c 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. @c See file emacs.texi for copying conditions. @iftex @chapter Characters, Keys and Commands This chapter explains the character se...
<link rel="import" href="../polymer/polymer.html"/> <link rel="import" href="px-vis-behavior-common.html" /> <link rel="import" href="px-vis-behavior-d3.html" /> <link rel="import" href="px-vis-svg.html" /> <link rel="import" href="px-vis-canvas.html" /> <!-- Element which creates an Canvas element and context #####...
/** * include structuredClone in test environment. * @jest-environment ../../../../shared/test.environment.ts */ import { of, firstValueFrom } from "rxjs"; import { awaitAsync, trackEmissions } from "../../spec"; import { distinctIfShallowMatch, reduceCollection } from "./rx"; describe("reduceCollection", () => {...
// Flight booking fullname function // When a user books a flight they write their firstname and surname, but when the ticket is printed a fullname should be displayed. // Created a function which generate a full name from firstName, surname and useFor function getFullName(firstName, surname, useFormalName, isMale) {...
# https://www.baeldung.com/java-liskov-substitution-principle from abc import abstractmethod """ Current proposed design. BankingAppWithdrawalService | ...
import { z } from 'zod'; import { getServerSession } from 'next-auth'; import { authOptions } from '@/lib/auth/auth'; import { addUserToFriendsList, checkIfUserHasAFriendRequest, checkIfUserIsFriend, getUserById, removeUserFriendRequest, } from '@/lib/redis/api'; import { addFriendTrigger } from '@/...
package com.wmx.service.impl; import com.wmx.entity.TV; import com.wmx.repository.TVRepository; import com.wmx.service.TVService; import com.wmx.service.TVServiceExt; import org.springframework.data.domain.Sort; import org.springframework.stereotype.Service; import javax.annotation.Resource; import javax.transaction....
import {Row, Space} from 'antd'; import React, {useEffect} from 'react'; import ScrollContainer from 'react-indiana-drag-scroll' import CardItem from './CardItem'; import '../index.css' import * as Constant from "@/utils/constant"; const ListCard = ( { data, onChange}) => { const handleActive = (id) => { o...
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>My Three.js Portfolio</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" type="text/css" href="style.css" /> </head> <body> <header> <h1>Marlon Mountjoy</h1> <nav> <...
.\" Copyright (c) 1999 .\" Nick Hibma <n_hibma@FreeBSD.org>. 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 .\" no...
<html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Contactanos | Maximiliano Ramos Zwenger</title> <link rel="shortcut icon" href="favicon.png"> <link rel="stylesheet" href="css/estilos.css"> <link href="https://cdn.jsdelivr.net/n...
import { GlobeAltIcon, InformationCircleIcon, PencilSquareIcon, } from '@heroicons/react/24/outline' import { Link } from '@remix-run/react' import clsx from 'clsx' import { useMemo, useState } from 'react' import { Collapse, Link as DaisyLink } from 'react-daisyui' import { ClubStats } from '~/api/clubs' import ...
import { html, TemplateResult, customElement, state, property, LitElement, } from 'lit-element'; import {retrieveSupabase} from '../luna-orbit'; import {WebsiteSettingsDB} from '../parts/dashboard/settings'; import {loader} from '../parts/dashboard/home'; /** * Website footer */ @customElement('website-f...
# Задание: Создайте функцию, которая принимает двумерный массив (лабиринт) и начальную и конечную точки. # Функция должна возвращать путь от начальной до конечной точки или сообщение, что путь невозможен. # Входные данные: # Двумерный массив размера MxN, где '0' - это проход, а '1' - это стена. # Координаты начальной и...
import org.w3c.dom.css.Rect fun main() { val point = Point(10,20) //Destructure data class val (x,y) = point println("$x, $y") // Destructure an Array val numbers = intArrayOf(1,2,3) val(a,b,c) = numbers println("a: $a, b: $b, c: $c") // //Destructuring maps // val person =...
import 'package:shared_preferences/shared_preferences.dart'; import 'package:sqflite/sqflite.dart'; import '../../models/database_helper.dart'; import '../../widgets/Bouton.dart'; import '../../widgets/appbar.dart'; import 'package:flutter/material.dart'; import 'experience_home_page.dart'; class ExperiencePage7 ext...
import React from "react"; import { Link } from "react-router-dom"; export interface DropdownItem { text: string; path: string; } export interface DropdownProps { options: DropdownItem[]; } const Dropdown: React.FC<{ props: DropdownProps }> = ({ props }) => { const options = props.options; const items = (...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; contract DAOMembership { mapping(address => bool) public whitelist; address public owner; constructor() { owner = msg.sender; } function addMember(address _member) public { require(msg.sender == owner, "Only owner can add mem...
package homeworks.hw19.StreamAPI; import homeworks.hw19.Product.*; import homeworks.hw19.Test.AfterSuite; import homeworks.hw19.Test.BeforeSuite; import homeworks.hw19.Test.Test; import java.time.LocalDate; import java.util.ArrayList; import java.util.Arrays; import java.util.List; public class StreamApiMethodsTest ...
<!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"> <!-- https://fonts.google.com font-family: 'Raleway' and 'Roboto' --> <link rel="preconnect" href="https://fonts...
<!--Two way binding--> <!-- here we use ngModel which is a directive = an instruction you place on an html element--> <!-- ngModel listens to the user input and emit the data to us and store that data in the text area--> <!-- ngModel is not included in core angular package so we need to import it--> <!-- we need to bin...
package ru.shutov.library.models; import jakarta.persistence.*; import jakarta.validation.constraints.Min; import jakarta.validation.constraints.NotEmpty; import java.util.Date; @Entity @NamedEntityGraph(name = "Book.owner", attributeNodes = @NamedAttributeNode("owner")) @Table(name = "book") public class Book { ...
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_marginLeft="4dp" android:layout_marg...
package com.celements.tag.controller; import static java.util.stream.Collectors.*; import java.util.List; import java.util.Map; import java.util.Optional; import java.util.Set; import javax.annotation.concurrent.Immutable; import javax.inject.Inject; import org.springframework.http.ResponseEntity; import org.spring...
import { memo,useState,useCallback } from "react"; function App(){ const[count,setCount]=useState(0); const inputFunction=useCallback(()=>{ console.log("re-render"); },[]) return <div> <ButtonComponent inputFunction={inputFunction}></ButtonComponent> <button onClick={()=>{ setCount(count+1); }}>C...
% figure331 - Display leakage of Haar wavelet variance % compared to other estimators % % Usage: % run figure331 % % $Id: figure331.m 569 2005-09-12 19:37:21Z ccornish $ % Load the data [X, x_att] = wmtsa_data('msp'); base_depth = 350.0; delta_depth = 0.1; depth = base_depth + delta_depth * ([0:1:length(X)-1]);...
package com.java.sravan.WS_RSMessenger.model; import java.util.Date; import java.util.HashMap; import java.util.Map; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlTransient; @XmlRootElement //We tell JAX-B as a clue that this is the xml root element public class Comment { pri...
;;; literef.el --- the main module. ;; Copyright(C) 2017-2018 Meir Goldenberg ;; 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, or (at ;; your option) any later version. ;;...
import CircularProgress from '@material-ui/core/CircularProgress'; import Fab from '@material-ui/core/Fab'; import Tooltip from '@material-ui/core/Tooltip'; import { green } from '@material-ui/core/colors'; import { createStyles, makeStyles, Theme } from '@material-ui/core/styles'; import CheckIcon from '@material-ui/i...
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html> <html lang="ru" xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://xmlns.jcp.org/jsf/html" xmlns:f="http://xmlns.jcp.org/jsf/core" xmlns:p="http://primefaces.org/ui" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLo...
class CreateSettings < ActiveRecord::Migration[4.2] def self.up unless ActiveRecord::Base.connection.table_exists? 'settings' create_table :settings do |t| t.string :var, null: false, unique: true t.text :value, null: true t.integer :thing_id, null: true, unique: tr...
@page "/add-category" @inject NavigationManager NavigationManager @inject IAddCategory AddCategoryUseCase <h3>Add Category</h3> <br/> @if(category != null) { <EditForm Model="@category" OnValidSubmit="@HandleValidSubmit"> <DataAnnotationsValidator/> <ValidationSummary/> <div class="form...
<!doctype html> <html lang="en-US"> <head> <meta charset="utf-8"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <link rel="preload" as="font" href="https://kaban.my.id/fonts/vendor/jost/jost-v4-latin-regular.woff2" ...
package com.example.local.dao import androidx.paging.PagingSource import androidx.room.Dao import androidx.room.Insert import androidx.room.OnConflictStrategy import androidx.room.Query import com.example.local.entities.PokemonDetailEntity import com.example.local.entities.PokemonDetailEntity.Companion.POKEMON_DETAIL_...
package com.van589.mooc.commons.utils; import com.van589.mooc.commons.persistence.BeanCopyUtilCallBack; import org.springframework.beans.BeanUtils; import java.util.ArrayList; import java.util.List; import java.util.function.Supplier; import static org.springframework.beans.BeanUtils.copyProperties; /** * 对 BeanUt...
#include<WiFi.h> #include<ESPAsyncWebServer.h> #include<Update.h> #include<SPIFFS.h> #include<ESPmDNS.h> const char * ssid="TOTOLINK N150RT"; const char * password="0422876333"; const char * host="blanka"; AsyncWebServer server(80); void handleUpdate(AsyncWebServerRequest *req,String filename,size_t index,uint8_t *d...
<!DOCTYPE HTML> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <title>Linux的服务管理 | Shadow</title> <meta name="viewport" content="width=device-width, initial-scale=1,user-scalable=no"> <meta name="author" content="Shadow"> <meta name="description" content="介绍服务的分类、如何查看系统已安装的服务、启动服...
<h1>Post</h1> <p>Earlier today I decided to write up a quick wrapper to the <a href="https://www.ibm.com/watson/developercloud/tone-analyzer.html">IBM Watson Tone Analyzer</a> using <a href="https://developer.ibm.com/openwhisk/">OpenWhisk</a>. It ended up being so incredibly trivial I doubted it made sense to even blo...
import { useState, useRef } from 'react'; import { Button, Label, Spinner, Textarea, TextInput } from 'flowbite-react'; import useAnalyzeTransactions from '~/hooks/analyze-transactions'; const AnalyzeTransactionsForm = ({ accountId, setOpenModal }) => { const ref = useRef(null); const [form, setForm] = useState...
import {RequestHandler} from 'express'; import {validationResult} from 'express-validator'; import bcrypt from 'bcryptjs'; import jsonwebtoken from 'jsonwebtoken'; import HttpError from '../errors/HttpError'; import NotFoundError from '../errors/NotFoundError'; import {PrismaClient} from '@prisma/client'; const prisma...
<template> <div class="proForm"> <div class="proForm_wrapper"> <h2>{{titleName}}</h2> <el-form ref="proForm" :model="proForm" :rules="rules" label-width="130px" :label-position="labelPosition"> <el-form-item label="商品标识:" ...
import TextInput from '@/components/common/TextInput/TextInput'; import { ArticlesController } from '@/http/articles'; import { CreateArticleInput } from '@/types/articles'; import { errorHandler } from '@/utils/errorHandler'; import { Button, Paper, Typography } from '@mui/material'; import { useState } from 'react'; ...
import { PrismaClient } from "@prisma/client"; import createOrders from "./Order"; import createProducts from "./Product"; import createProductLines from "./ProductLine"; import createUsers from "./User"; const prisma = new PrismaClient(); async function main() { console.log("Start seeding ..."); createProductLine...
<!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 rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.1.3/dist/css/bootstrap.min...
import Client from '../database'; export type Orderproduct = { id?: string|number; order_id: string|number; products_id: string|number; quantity: number, } export class OrderproductStore { async index(): Promise<string | Orderproduct[]> { try { const conn = await Client.connect() ...
@extends('layouts.index') @section('content') <div class="d-flex"> @include('components.navigation') <div class="container"> @include('components.navbar') @php $eventStatus = [ ['name' => 'scheduled', 'label' => 'Scheduled'], ...
/* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company * * 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 th...
/** * @file sys_data.h * @copyright * @license * @version 1.0.0 * @date 20/03/2024 * @author Kha Nguyen * * @brief system data process data from user by uart */ /* Define to prevent recursive inclusion ------------------------------ */ #ifndef INC_SYSTEM_SYS_UART_H_ #define INC_SYSTEM_...
// // FMDatePickerView.swift // FMAccountBook // // Created by yfm on 2023/3/15. // import UIKit let kDatePickerHeight: Double = 250.0 let kPickerHeight: Double = 290.0 let selectedColor = UIColor.color(hex: "#FA5252") let bgColor = UIColor.color(hex: "#F6F6F6") class FMDatePickerView: UIView { var conf...