text
stringlengths
184
4.48M
import React, { useState, useEffect } from "react"; import leftArrow from "../icons/arrow-left-solid.svg"; import rightArrow from "../icons/arrow-right-solid.svg"; import image1 from "./images/dog1.jpg"; import image2 from "./images/dog2.jpg"; import image3 from "./images/dog3.jpg"; import image4 from "./images/dog4.jp...
import React from 'react' import { BrowserRouter as Router, Routes, Route } from 'react-router-dom' import { Navbar, Sidebar, Footer } from './components' import { Home, Products, SingleProduct, About, Cart, Error, Checkout, Private } from './pages' function App() { return ( <Router> <Navbar/> ...
# InventoryPart The `InventoryPart` adds basic inventory management capabilities to a product. Requires [`ProductPart`](product-part.md) to be present on the content type as well. ## Fields and properties - **AllowsBackOrder** (`BooleanField`): When set to true, product can be ordered even when the Inventory field's ...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> <script typea="text/javascript" src="../../js/vue.js"></script> </head> <body> <div id="root"> <h1>插值语法</h1> <h3>hello,{{nam...
<?php /********************************************************************************* * By installing or using this file, you are confirming on behalf of the entity * subscribed to the SugarCRM Inc. product ("Company") that Company is bound by * the SugarCRM Inc. Master Subscription Agreement (“MSA”), which is vi...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title> Cara Menghitung Determinan Matriks </title> <style>:root{--border-radius:5px;--box-shadow:2px 2px 10px;--color:#118bee;--color-accent:#118bee15;--colo...
package PracticePrograms; import PracticePrograms.Utility.PrintArray; public class MergeSortFive { public static void main ( String[] args) { int[] array = {12,98,87,76,65,43,45,56,67,78}; PrintArray.printArray(array); mergeSort( array,0,array.length-1); PrintArray.printArray(array); } private ...
(ns isbn-verifier) (defn- valid-format? [s] (and (= s (re-find #"[0-9]{9,10}X*" s)) (= 10 (count s)))) (defn- mod11 [n] (mod n 11)) (defn isbn? [isbn] (let [char-value (fn [ch] (if (= \X ch) 10 (- (int ch) (int \0)))) checksum-chars (->> isbn (remove #(= \- %)) (apply str))] (and (valid...
import 'package:flutter/material.dart'; import '../../../../core/constants.dart'; import '../../../../domain/models/booking.dart'; import '../../../widgets/table_row.dart'; class PriceDetails extends StatelessWidget { final Booking booking; final int sum; const PriceDetails({ super.key, required this.bo...
<template> <div style="padding-bottom:100px;"> <spin v-if="loading"></spin> <a-skeleton active :loading="loading" v-show="exactSearch.length > 0"> <a-row type="flex" justify="start" style="margin:16px 0"> <a-col :span="4" :offset="1" v-for="(ar, idx) in exactSearch"...
import discord from discord.ext import commands import mysql.connector # Connect to the MySQL database db_connection = mysql.connector.connect( host="localhost", user="root", password="root@1234", database="discord_bot_db" ) # Create a cursor object to interact with the database db_cursor = db_connect...
import { asc, count, desc, ilike } from 'drizzle-orm' import { userTable } from '../../database/schema' const inputFormat = z.object({ filter: z.string().optional(), limit: z.number().min(1).max(100).default(10).optional(), offset: z.number().min(0).default(0).optional(), orderBy: z.enum(['username']).default(...
import 'dart:async'; import 'package:flutter/material.dart'; import 'package:google_maps_flutter/google_maps_flutter.dart'; import 'package:location/location.dart'; class HomeScreen extends StatefulWidget { const HomeScreen({super.key}); @override State<HomeScreen> createState() => _HomeScreenState(); } class ...
# Курс Валюты Django-приложение ## Задание: - Предлагаем вам создать "голый" джанго проект, который по переходу на страницу /get-current-usd/ бужет отображать в json формате актуальный курс доллара к рублю (запрос по апи, найти самостоятельно) и показывать 10 последних запросов (паузу между запросами курсов должна бы...
const expect = chai.expect; import Vue from 'vue' import Toast from '../src/toast' Vue.config.productionTip = false Vue.config.devtools = false describe('Toast 组件', () => { it('存在', () => { expect(Toast).to.exist }) describe('props 测试', function () { it('接受 autoClose', (done) => { const div = doc...
import * as a from 'fp-ts/lib/Array' import * as o from 'fp-ts/lib/Option' import * as e from 'fp-ts/lib/Either' import { readSync, CASELESS_SORT } from 'readdir'; import { pipe } from 'fp-ts/lib/pipeable'; import { Mutation, MutationType } from '../../core/definitions/mutation.definition'; import { Analyzer as analyze...
<template> <div ref="el" class="relative !h-full w-full overflow-hidden" /> </template> <script lang="ts" setup> import { nextTick, onMounted, onUnmounted, ref, unref, watch, watchEffect } from 'vue'; import { useDebounceFn } from '@vueuse/core'; import { useAppStore } from 'fe-ent-core/es/store'; import { u...
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* Maybe.hpp :+: :+: :+: ...
import { expect } from 'chai'; import { BigNumber, Contract, ContractFactory, Transaction } from 'ethers'; import { ethers } from 'hardhat'; import { SignerWithAddress } from '@nomiclabs/hardhat-ethers/signers'; import { beforeEach } from 'mocha'; const { constants, provider, utils } = ethers; const { AddressZero, Max...
import { Website } from "@prisma/client"; import classNames from "classnames"; import Image from "next/image"; const MobileDisplay = ({ theme, website, links, }: { theme: string; website: Website; links: { linkedWebsite: { type: string; link: string; icon: JSX.Element; } | null; ...
/* * HashSum * * Copyright (c) 2023 chatgptdev * * This software was written mostly by ChatGPT 4.0 using instructions by * @chatgptdev. It is provided under the Apache License, Version 2.0 * (the "License"); you may not use this software except in compliance with * the License. You may obtain a copy of the L...
package com.itgate.ProShift.entity; import javax.persistence.*; import com.fasterxml.jackson.annotation.JsonIgnore; import lombok.AllArgsConstructor; import lombok.Getter; import lombok.NoArgsConstructor; import lombok.Setter; import java.util.Date; @Entity @Getter @Setter @NoArgsConstructor @AllArgsConstructor pub...
// // MovieDetailViewController.swift // TMDB Challenge // // Created by Agustin Russo on 25/04/2022. // import UIKit protocol MovieDetailDelegate { func showLoading() func hideLoading() func movieData(movie: MovieDetail) func showError() } class MovieDetailViewController: UIViewController { ...
import { DBManager, Version } from '@pwrdrvr/microapps-datalib'; import { AppVersionCache } from './app-cache'; import { RedirectToDefaultFile } from './redirect-default-file'; jest.mock('./app-cache'); describe('RedirectToDefaultFile', () => { const mockDbManager = {} as DBManager; afterEach(() => { jest.cl...
--- title: Best Ways on How to Unlock/Bypass/Swipe/Remove Realme 12+ 5G Fingerprint Lock date: 2024-04-02 15:27:47 updated: 2024-04-05 12:29:58 tags: - unlock - remove screen lock categories: - android description: This article describes Best Ways on How to Unlock/Bypass/Swipe/Remove Realme 12+ 5G Fingerprint Lo...
#' Extracts Notes and Annotations #' Read, format, and merge Notes and Annotations from Black Box Analyzer #' @param x EM data annotations/notes with geographic coordinates in decimal as lon/lat #' @param by.year Are the files sorted by year (default)? #' @return A dataset with all notes/annotations in long format, whe...
// Copyright Epic Games, Inc. All Rights Reserved. #pragma once #include "IKRigDefinition.h" #include "IKRetargeter.generated.h" struct FIKRetargetPose; struct UE_DEPRECATED(5.1, "Use URetargetChainSettings instead.") FRetargetChainMap; USTRUCT() struct IKRIG_API FRetargetChainMap { GENERATED_BODY() FRetargetCh...
# Chapter 5 Exercises Below are my solutions to the exercises presented at the end of chapter 5 of Hands-On Machine Learning with Scikit-Learn, Keras, and TensorFlow. ### 1. What is the fundamental idea behind support vector machines? The idea befind support vector machines is to fit a decision boundary in between cla...
# # (C) Tenable Network Security, Inc. # # The descriptive text and package checks in this plugin were # extracted from Debian Security Advisory DSA-1759. The text # itself is copyright (C) Software in the Public Interest, Inc. # include("compat.inc"); if (description) { script_id(36052); script_version("$Revi...
package com.android.burdacontractor.feature.suratjalan.presentation.main import android.app.Dialog import android.content.DialogInterface import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.FrameLayout import androidx.appcompat.conten...
package com.example.lab5 import android.graphics.Typeface import android.os.Bundle import android.view.View import android.widget.LinearLayout import android.widget.RadioButton import android.widget.RadioGroup import android.widget.TextView import android.widget.Toast import androidx.appcompat.app.AppCompatActivity im...
<script lang="ts"> import { createEventDispatcher } from 'svelte' import { getCurrencyFormatter, getDateTimeFormatter } from '$shared/formatter' export let entry: Entry const dispatcher = createEventDispatcher<TableEvents<Entry>>() const select = () => dispatcher('select', entry) const remove = () => dispatcher...
package br.com.sicredi.votacao.application.config.handler; import br.com.sicredi.votacao.core.exception.*; import com.fasterxml.jackson.annotation.JsonProperty; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang3.StringUtils; import org.hibernate.validator.internal.engine.path.PathImpl; import org.spring...
/* 발상 참조 https://www.acmicpc.net/board/view/2249 x^n 을 구하는 걸 O(log n) 으로 할 수 있다. 예를들어 f(7,100,11)을 구한다면 실행되는 함수는 f(7,50,11), f(7,25,11), f(7,24,11), f(7,12,11), f(7,6,11), f(7,3,11), f(7,2,11), f(7,1,11), f(7,0,11) 이렇게 실행되고, log n 이다. 바텀업으로도 가능할 듯함 */ import java.io.*; import java.util.StringTokenizer; public class...
/* * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template */ package Controlador; import Conexion.Conexion; import com.mysql.jdbc.PreparedStatement; import java.io.BufferedReader; ...
--- layout: post title: Building A Portable Lab --- ## Introduction This post will show you how to setup a portable lab that can house all your day to day security tools. For quite a while I maintained two labs, one for work and one for home. Both had sets of tools that would expand apart from one another and after ...
/* * Copyright 2017 Google LLC * * 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 ...
import math import random import shutil import warnings import numpy as np import pandas as pd import matplotlib.pyplot as plt from tqdm import tqdm from pathlib import Path from typing import List, Tuple, Optional from argparse import ArgumentParser from typing import Any, Callable, Dict, List, NewType, Optional, Tup...
@page "/report" @using System.Net.Http.Json @using MudBlazor.Examples.Data.Models @inject HttpClient httpClient <div class="container-fluid px-5"> <div class="row"> <div class="col-12"> <MudTable class="customize-mud-table" Items="@Elements" Dense="true" Hover="true" Bordered="@bordered" Stri...
import { Entity } from './Entity.entities'; import { Ball } from './Ball.entities'; import { randomNb, WIDTH, HEIGHT, BONUS_LIFETIME, X_BONUS_LIMIT, Y_BONUS_LIMIT, BONUS_WIDTH, BONUS_HEIGHT, SIZE_DECREASE_PATH, SIZE_INCREASE_PATH, REVERSE_KEYS_BONUS_PATH, SLOWER_BONUS_PATH, SNIPER_BONUS_PATH } from './util...
<?php namespace App\View\Components\site; use App\Models\Admin\Article; use Illuminate\View\Component; class articlecategory extends Component { public $articles; /** * Create a new component instance. * * @return void */ public function __construct($category) { $this->a...
import { useNavigate } from "react-router-dom"; import PhoneIphoneIcon from "@mui/icons-material/PhoneIphone"; import LaptopIcon from "@mui/icons-material/Laptop"; import LiveTvIcon from "@mui/icons-material/LiveTv"; import CoffeeIcon from "@mui/icons-material/Coffee"; import ChildFriendlyIcon from "@mui/icons-material...
# Share Recipes App ## Table of Contents - [Introduction](#introduction) - [Features](#features) - [Technologies Used](#technologies-used) - [Installation](#installation) - [Usage](#usage) - [Admin Panel](#admin-panel) ## Introduction Welcome to "Share Food"! This application allows users to share their favorite re...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.10; contract Alumnado { string private Nombre; string private Apellido; string private Curso; address private Docente; mapping (string => uint8) private NotasMaterias; string[] private NombreMaterias; constructor(string memory nombre...
import 'dart:convert'; import 'package:auto_pro/view_taxi.dart'; import 'package:flutter/material.dart'; import 'package:flutter/src/widgets/framework.dart'; import 'package:flutter/src/widgets/placeholder.dart'; import 'package:http/http.dart'; import 'package:shared_preferences/shared_preferences.dart'; import 'co...
"use client" import Link from 'next/link' import '../app/app.css' import {RxCross2} from 'react-icons/rx' import {useState} from 'react' import React, { FormEvent } from 'react'; import { useRouter } from 'next/navigation' interface EditFormProps { title: string; link: string; topic: string; diffic...
<template> <div class="meedu-main-body"> <back-bar class="mb-30" title="直播课程分类"></back-bar> <div class="float-left mb-30"> <p-button text="新建分类" @click="addCategory" type="primary" p="addons.Zhibo.course_category.store" > </p-button> </div> <div class...
package com.rarible.protocol.union.integration.ethereum.converter import com.rarible.core.test.data.randomAddress import com.rarible.core.test.data.randomBigDecimal import com.rarible.core.test.data.randomBigInt import com.rarible.protocol.dto.Erc20DecimalBalanceDto import com.rarible.protocol.dto.EthBalanceDto import...
import React, { Component } from "react"; import { getAnnotations } from "../../services/annotationServices"; import ReactTable from "react-table"; import selectTableHOC from "react-table/lib/hoc/selectTable"; import treeTableHOC from "react-table/lib/hoc/treeTable"; import "react-table/react-table.css"; const SelectT...
// example store // ------------- // a simple collection of points of interest (poi) read from a JSON file // the collection is exposed as a Svelte store, and implemented with a JS Map (to support id-based lookup) // the collection is also indexed with fuse.js in order to support full-text searching import { readable,...
import React, { useState, SyntheticEvent } from "react"; import TitleActionForm from "./title-action-form"; import styled from "@emotion/styled"; import actionButtonData from "../data/actionButtonData"; import { ActionButtonType } from "./add-action-button"; import MuiCard from "@mui/material/Card"; import IconButton f...
import React, { useState } from "react"; import { Link } from "react-router-dom"; const Navbar = () => { const [isNavOpen, setIsNavOpen] = useState(false); const toggleNav = () => { setIsNavOpen(!isNavOpen); }; return ( <nav className="navbar navbar-expand-lg navbar-light bg-light"> <button cla...
package com.example.algorithm.sort; import com.example.algorithm.array.ArrayFactory; import java.util.Arrays; /** * @author jitwxs * @date 2024年05月04日 15:37 */ public class MergeSort { public static int[] sort(int[] arr) { if (arr != null && arr.length > 1) { int[] left = slice(arr, 0, ar...
// (C) University College London 2017 // This file is part of Optimet, licensed under the terms of the GNU Public License // // Optimet 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...
<?php namespace App\Entity; use App\Repository\ReservationRepository; use Doctrine\DBAL\Types\Types; use Doctrine\ORM\Mapping as ORM; use Symfony\Component\Validator\Constraints as Assert; use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity; /** * @ORM\Entity(repositoryClass=ReservationRepository::class)...
<?php namespace Drupal\iiif_media_source\Plugin\Field\FieldWidget; use Drupal\Core\Field\FieldItemListInterface; use Drupal\Core\Field\WidgetBase; use Drupal\Core\Form\FormStateInterface; use Drupal\Core\Plugin\ContainerFactoryPluginInterface; /** * IIIF ID Widget. * * @FieldWidget( * id = "iiif_id_widget", *...
/* * Project: Car Rev Alarm and Gear Indicator * Author: Zak Kemble, contact@zakkemble.co.uk * Copyright: (C) 2017 by Zak Kemble * License: GNU GPL v3 (see License.txt) * Web: http://blog.zakkemble.co.uk/car-rev-alarm-and-gear-indicator/ */ #include <mcp_can.h> #include <SPI.h> #include <EEPROM.h> #include <avr/...
<template> <q-dialog ref="dialogRef" @hide="onDialogHide"> <q-card class="q-dialog-plugin q-pa-xl"> <h6 class="q-mb-lg q-mt-sm">New recipe</h6> <div class="flex row justify-between"> <q-input v-model="row.title" label="Title" style="width: 45%;"/> <q-input v-model="row.ingred...
import { NgModule } from '@angular/core'; import { RouterModule } from '@angular/router'; import { HomeComponent } from './components/home/home.component'; import { ProfileComponent } from './components/profile/profile.component'; import {AuthGuard} from './auth.guard'; @NgModule({ imports: [ RouterMod...
using System; using System.Diagnostics; using System.IO; using System.Net; using System.Net.Sockets; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace _04_A_Sockets_Async { public partial class Form1 : Form { public Form1() { InitializeComponent(); } pri...
import { Component, OnInit, OnDestroy } from '@angular/core'; import { ActivatedRoute, Router } from '@angular/router'; import { Subscription } from 'rxjs/Rx'; import { EventManager, ParseLinks, PaginationUtil, JhiLanguageService, AlertService } from 'ng-jhipster'; import { Blog } from './blog.model'; import { BlogSer...
import React from 'react'; import { View, Text, StyleSheet, ScrollView, TextInput, Image, Pressable } from 'react-native'; import { SafeAreaView } from 'react-native-safe-area-context'; import { useSelector } from 'react-redux'; import { SelectPosts } from '../../redux/posts/postsSlice'; import { useState, useEffect } ...
package com.sdk.itjobs.initializer; import com.sdk.itjobs.database.entity.user.User; import com.sdk.itjobs.database.repository.user.UserRepository; import com.sdk.itjobs.util.constant.enumeration.UserRole; import jakarta.annotation.PostConstruct; import lombok.RequiredArgsConstructor; import org.springframework.securi...
//create schema import { gql } from "apollo-server-core"; //Query is written as what the client will query // if he query greet we will return a string //! is used for madatory const typeDefs = gql` type Query{ users:[User] user(_id:ID!):User quotes:[QuoteWithName] quote(by:ID!):[Quotes] } type Mut...
package com.mobius.software.telco.protocols.diameter.primitives.mm10; /* * Mobius Software LTD * Copyright 2023, Mobius Software LTD and individual contributors * by the @authors tag. * * This program is free software: you can redistribute it and/or modify * under the terms of the GNU Affero General Public Licens...
using System; using Microsoft.AspNetCore.Mvc; using System.Diagnostics; using Microsoft.EntityFrameworkCore; using OPCUAServerManager.Data; using OPCUAServerManager.Models; using OPCUAServerManager.Helpers; namespace OPCUAServerManager.Services { public class OPCUAServerService : IOPCUAServerService { private read...
#ifndef ZIPTHREAD_H #define ZIPTHREAD_H #include <QThread> //! Classe du thread qui zip le dossier suite à la sauvegarde d'une base /*! Cette classe héritant de \a QThread et réimplémentant naturellement la méthode \a run(), exécutée lors du lancement du thread par start(). */ class ZipThread : public QThread { Q...
// // EditView.swift // BucketList // // Created by Peter Molnar on 12/05/2022. // import SwiftUI struct EditView: View { enum LoadingState { case loading, loaded, failed } @Environment(\.dismiss) var dismiss @StateObject private var viewModel: EditViewModel var onSa...
<section class="countdown"> <div class="countdown-days"> <span class="countdown-number">--</span> <span class="countdown-label">dagar</span> </div> <div class="countdown-hours"> <span class="countdown-number">--</span> <span class="countdown-label">timmar</span> </div> <div class="countdown-mi...
/* * 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 ...
function initMap() { const map = new google.maps.Map(document.getElementById("map"), { zoom: 4, center: { lat: 43.4643, lng: 80.5204 }//Waterloo, ON, }); const directionsService = new google.maps.DirectionsService(); const directionsRenderer = new google.maps.DirectionsRenderer({ draggable: ...
// Productive keywords export const productivityKeywords = [ "tutorial", "how-to", "lecture", "educational", "course", "training", "workshop", "seminar", "skills", "learning", "professional development", "certification", "guide", "diy", "productivity tips", "motivational speech", "know...
import { FormEvent, ChangeEvent, createRef, useContext, useEffect, useState } from "react"; import "./chat.css"; import { StateContext } from "../../../context"; import { Button, Col, Row, Form, Card, InputGroup } from "react-bootstrap"; import { EmojiConvertor } from "emoji-js"; interface ChatProps { roomName: st...
#include <check.h> #include <stdio.h> #include "../lib/buffer.h" #include "../lib/leech.h" START_TEST(test_LCH_Buffer) { LCH_Buffer *buffer = LCH_BufferCreate(); ck_assert_ptr_nonnull(buffer); for (int i = 0; i < 10; i++) { ck_assert(LCH_BufferPrintFormat(buffer, "Hello %s!\n", "buffer")); } char *act...
import React, {useState} from 'react'; import {Button, TextInput, StyleSheet, View, Text, ScrollView, FlatList} from 'react-native'; export default function App() { const [enteredGoalText, setEnteredGoalText] = useState(''); const [courseGoals, setCourseGoals] = useState([]); const goalInputHandler = (enteredTe...
<template> <b-modal :id="modalId" centered hide-footer hide-header> <div class="customModal"> <div class="modalHeader"> <button class="closeModal" @click="$bvModal.hide(modalId)"> <font-awesome-icon :icon="['fas', 'times']" /> </button> </div> <div class="modalBody"> ...
// // NewItemView.swift // MC1GD // // Created by Leonard Theodorus on 24/04/23. // import SwiftUI import Combine let dateNotif = PassthroughSubject<Date, Never>() struct NewItemView: View { private let categories = ["Makanan dan Minuman", "Transportasi", "Barang"] @Binding var showSheet : Bool @StateOb...
//===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
from rest_framework import serializers from .models import BestDeals from likes.models import DealLike class BestDealsSerializer(serializers.ModelSerializer): owner = serializers.ReadOnlyField(source='owner.username') is_owner = serializers.SerializerMethodField() profile_id = serializers.ReadOnlyField(so...
seminar1 Что напечатает следующая программа. Ответ записывается с учетом строки форматирования, указанной при вызове функции printf. #include <stdio.h> int main(void) { int a[] = {0, 1, 2, 3, 4}; int i, *p; for (p = &a[0]; p <= &a[4]; p++) printf("%d ", *p); // 0 1 2 3 4 printf("\n"); ...
import React, { useState } from "react"; const defaultContext = { isLoggedIn: false, setLoginStatus: (arg: boolean) => {}, }; export const AuthContext = React.createContext(defaultContext); type Props = { children: JSX.Element; }; export default function AuthContextProvider({ children }: Props) { const [isLo...
package baza; import model.*; import java.sql.*; import java.time.LocalDate; import java.util.ArrayList; import java.util.List; import java.util.stream.Collectors; public class BazaKonekcija { private static String DB_user = "root"; private static String DB_password = ""; private static String connection...
// // Created by jarod on 2020/2/20. // #include "util/tc_clientsocket.h" #include "gtest/gtest.h" using namespace tars; class UtilEndpointTest : public testing::Test { public: //添加日志 static void SetUpTestCase() { // cout<<"SetUpTestCase"<<endl; } static void TearDownTestCase() { // ...
import { Avatar, Divider, ListItem, ListItemAvatar, ListItemText, Typography } from "@mui/material"; import * as React from "react"; import { MessageWithPersonsDto } from "../../types"; import convertDate from "../../utils/dates"; export default function Message(props: { message: MessageWithPersonsDto }) { return ( ...
import { useRef } from "react"; import Accordion from "./Accordion"; import useParams from "../hooks/useParams"; function ZipAccordion() { const inputRef = useRef<HTMLInputElement | null>(null); const { append, removeKeyValue, searchParams, resetPagination } = useParams(); const zips = searchParams.getAll("zipCo...
import * as flubber from "flubber"; import React from "react"; const tri = [ [1, 0], [2, 2], [0, 2], ]; const rect = [ [0, 0], [0, 2], [2, 2], [2, 0], ]; const interpolator = flubber.interpolate(tri, rect); function FlubberExam() { const [motionValue, setMotionValue] = React.useState<number>(0); Re...
= Module Description = This module explains the complete approach of Web Application Security when developping or deploying web applications as part of the [[:Category:OWASP Education Project|Education Project]]. There is no silver bullet when it comes to securing web applications. This problem has to be addressed from...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Katlik</title> <link rel="stylesheet" href="./css/style.css"> </head> <body> <!-- header/navbar --> <header id="navigation-bar" > <div class="header"> <h2 cl...
import { Injectable } from '@nestjs/common'; import { InjectModel } from '@nestjs/sequelize'; import { Op } from 'sequelize'; import { BoilerParts } from './boiler-parts.model'; import { IBoilerPartsFilter, IBoilerPartsQuery } from './types'; @Injectable() export class BoilerPartsService { constructor( @InjectMo...
package util import ( "context" "fmt" "net/http" "os" "runtime" "connectrpc.com/connect" "github.com/grafana/dskit/httpgrpc" "github.com/grafana/dskit/middleware" "github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus/promauto" httputil "github.com/grafana/pyrosco...
"use client"; import React, { useEffect, useRef, useState } from "react"; import { Table, TableBody, TableCaption, TableCell, TableHead, TableHeader, TableRow, TableFooter, } from "@/components/ui/table"; import { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTi...
// // MusicListView.swift // YouTube Music // // Created by 은서우 on 2023/10/10. // import SwiftUI struct MusicListView: View { @State private var columns: [GridItem] = [GridItem(.flexible())] @State private var rows: [GridItem] = [GridItem(.flexible())] var body: some View { VStack(ali...
from argparse import ArgumentParser import numpy as np import pandas as pd import random, math import networkx as nx import logging, os, time, csv from dateutil.parser import parse from datetime import datetime, timezone import calendar, time; pd.options.mode.chained_assignment = None from WiDNeR_extended import WiDNeR...
import 'package:fl_lib/fl_lib.dart'; import '../model/server/private_key_info.dart'; class PrivateKeyStore extends PersistentStore { PrivateKeyStore() : super('key'); void put(PrivateKeyInfo info) { box.put(info.id, info); box.updateLastModified(); } List<PrivateKeyInfo> fetch() { final keys = b...
<template> <Page> <h1 class="text-2xl font-bold mb-4">Students</h1> <button @click="showModal = true" class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded mb-4"> Add New Student </button> <AddStudentModal :is-visible="showModal" @close="showModal = false" @studentAdded="ha...
using Regira.IO.Extensions; using Regira.IO.Utilities; using Regira.Office.PDF.Models; using Regira.Office.PDF.SelectPdf; using Regira.Serializing.Newtonsoft.Json; using Regira.Utilities; using Regira.Web.HTML; namespace Office.PDF.Testing; [TestFixture] [Parallelizable(ParallelScope.All)] public class SelectPdfTests...
import { Component, OnInit, ViewEncapsulation, AfterViewInit } from '@angular/core'; import { FormBuilder, Validators, FormArray } from '@angular/forms'; import { Helpers } from '../../../../../../helpers'; import { Router } from "@angular/router"; import { CountryService } from '../country.service'; declare let $: ...
package com.rbxu.market.application.impl; import com.alibaba.cola.dto.SingleResponse; import com.google.common.util.concurrent.ThreadFactoryBuilder; import com.rbxu.market.application.ProjectApplicationService; import com.rbxu.market.aspect.digest.TimeCost; import com.rbxu.market.domain.model.ProjectModel; import com....
<script setup lang="ts"> import { reactive, ref } from 'vue' import { useRouter } from 'vue-router' import { notify } from 'notiwind' import { getAuth, signInWithEmailAndPassword, signOut } from 'firebase/auth' import { useCurrentUser } from 'vuefire' import { AppPage, AppText } from '@/components/ui' import { AppBt...
import java.util.Scanner; public class Main { static int[][] dp = new int[30][30]; // 최댓값이 29 public static void main(String[] args) { Scanner sc = new Scanner(System.in); // 테케만큼 반복 int testCase = sc.nextInt(); // mCn 의 경우의 수를 구해주면 된다. (mCn = m-1Cn-1 + m-1Cn) int[][] dp = new int[30][30]; // 최대 29 ...