text stringlengths 184 4.48M |
|---|
{% extends "base.html" %}
{% block content %}
<div class="center-container">
<h2>Add new printer</h2>
</div>
<form method="POST">
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
<div class="form-row">
<div class="form-item">
<label for="printer_serial_number">Printer Serial Number:... |
import { Injectable } from '@nestjs/common';
import { log } from 'console';
import { UserDTO } from 'src/DTO/user.dto';
import { DataBaseConnectionService } from 'src/data-base-connection/data-base-connection.service';
import * as bcrypt from 'bcrypt';
import { JwtService } from '@nestjs/jwt';
import { jwtConstants } f... |
# Engineering Lab 1 - Digital Freight Matching
## What is this API for?
See [Problem Statement](ProblemStatement.md) for more details
## Prerequisites
Before you begin, ensure you have met the following requirements:
- Ruby 3.2.2 (use `rbenv` or `rvm` to install)
- Bundler (installed via `gem install bundler`)
- R... |
<html class="dark">
<head>
<title>WAKEUPSERVER</title>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="color-scheme" content="light dark">
<meta name="theme-color" content="#111111" media="(prefers-color-scheme: light)">
<meta name="theme-color" content="#eeeeee" media="(prefers... |
<!DOCTYPE html>
<!--
Site responsivo com menu lateral e barra de navegação com botão de busca.
Feito usando apenas HTML/CSS, seguindo os exemplos na pagina https://www.w3schools.com/
Trabalho para o curso de ADS ead.
Aluno: João Paulo Cruz Rosa.
//-->
<html>
<head>
<!--importando os estilos CSS externos-->
<link rel... |
/* SecuDroid - An open source, free manager for SECU-3 engine control unit
Copyright (C) 2020 Vitaliy O. Kosharskiy. Ukraine, Kharkiv
SECU-3 - An open source, free engine control unit
Copyright (C) 2007 Alexey A. Shabelnikov. Ukraine, Kyiv
This program is free software: you can redistribute it and/or mo... |
# @eth-optimism/indexer
## Getting started
### Configuration
The `indexer.toml` contains configuration for the indexer. The file is templated for the local devnet, however presets are available for [known networks](https://github.com/ethereum-optimism/optimism/blob/develop/indexer/config/presets.go). The file also te... |
package com.fyp.CourseRegistration.SecurityConfig;
import jakarta.servlet.http.HttpServletRequest;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework... |
---
create_date: 2022-11-18T20:37:55 (UTC +08:00)
tags:
- 读书笔记/唐诗
aliases: null
pagetitle: 枫桥夜泊原文、翻译及赏析_张继古诗_古诗文网
source: https://so.gushiwen.cn/shiwenv_6fb73f607ad3.aspx
author: 张继
status: 已完成
category: null
notes: false
recite: true
uid: null
date updated: 2022-11-19 09:37
---
location:: 江苏/苏州
## 枫桥夜泊
[张继](https... |
import 'package:authentication_repository/authentication_repository.dart';
import 'package:equatable/equatable.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:form_inputs/form_inputs.dart';
import 'package:formz/formz.dart';
part 'login_state.dart';
class LoginCubit extends Cubit<LoginState> ... |
@extends('layouts.backend')
@section('css_before')
<style>
.folder-name {
font-weight: bold;
font-size: 1.5em;
margin-left: 10px; /* Ajoutez un peu d'espace entre l'icône et le nom du dossier */
}
.folder {
cursor: pointer; /* Pour montrer ... |
// The common way to pass objects through functions is like this
const oldCivic = {
name: 'civic',
year: 2000,
broken: true
}
const printVehicle = (vehicle: {name: string, year: number, broken: boolean}): void=>{
console.log(vehicle.name);
console.log(vehicle.year);
console.log(vehicle.broken);... |
import React from "react";
import {
useContextSelector as useSelectorContext,
createContext,
Context,
} from "use-context-selector";
import { shallowEqual } from "../utils/shallowEqual";
import { genericSelector } from "../utils/genericSelector";
import { Person } from "../entites/Person";
// New ContextS... |
{% load static %}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<link rel="stylesheet" href="https://kit.fontaw... |
import { Button, Card, InputNumber, Space, notification } from 'antd'
import axios from 'axios';
import React, { useState } from 'react'
const AddToCart = ({ productId, onClose,addedToCart,Plantdetailsview}) => {
const [value, setValue] = useState('1');
const addToCart = async () => {
const user = lo... |
import Cartography
import UIKit
public final class ReminderTableViewCell: UITableViewCell {
struct Constants {
static let timeLabelSize: CGFloat = 32
static let reminderNameLabelSize: CGFloat = 20
static let repetitionLabelSize: CGFloat = 16
static let minSpacing: CGFloat = 4
... |
import subprocess
from pathlib import Path
import pygame
pygame.init()
class Display:
def __init__(self, path: Path) -> None:
self.PATH_ORIGIN = path
self.max_name_per_row = 4
self.screen = pygame.display.set_mode((1200, 600))
# screen = pygame.display.set_mode((0, 0), pygame.F... |
import {addTodolistAC, todolistsReducer} from "./todolists-reducer";
import {tasksReducer} from "./tasks-reducer";
import {TaskStateType, TodolistType} from "../App";
test('new array should be added when new todolist is added', () => {
const startState: TaskStateType = {
'todolistId1': [
{id: '1', title: '... |
import { GetStaticPaths, GetStaticProps } from "next";
import Head from "next/head";
import NProgress from "nprogress";
import { useEffect } from "react";
import useSWR from "swr";
import DistrictInfo from "../../components/district-info";
import Search from "../../components/search";
import { calendarByDistrict, Cente... |
Inference - Wikipedia
Inference
From Wikipedia, the free encyclopedia
Jump to navigation Jump to search
Act or pr... |
# FindNetwork v2.1 (Beta)
Use these python codes to visit the NeuPrint hemibrain connectomes datasets.
Find direct or indirect connections between neuron clusters and visulize them.
Docstrings of most classes, and functions are available in the codes.
## Basic functions
### FindDirect.py
This script is used for f... |
class Review {
final int? rating;
final String? comment;
final String? date;
final String? reviewerName;
final String? reviewerEmail;
Review({
this.rating,
this.comment,
this.date,
this.reviewerName,
this.reviewerEmail,
});
factory Review.empty() {
return Review(
rating: ... |
const titor = require('../lib/titor');
// Introduction
console.log();
console.log('\x1b[7mTitor Test Suite is now Running.\x1b[0m');
console.log();
// Test variables
let description, actual, expected, comparison;
// Test data
const date = new Date('1982-07-09 5:00'); // Friday, July 9, 1982 @ 5:00 a.m.
// Pass / fa... |
data Lista a = Cons a (Lista a) | Vazio
deriving (Eq, Show)
ex1 :: Lista Int
ex1 = Cons 1 (Cons 2(Cons 3(Cons 4 Vazio)))
ex2 :: Lista Int
ex2 = Cons 7 (Cons 8(Cons 9(Cons 0 Vazio)))
tamanho :: Lista a -> Int
tamanho Vazio = 0
tamanho (Cons x xs) = 1 + tamanho xs
mapList :: (a->b) -> Lista a -> Lista b
mapList f ... |
using Microsoft.AspNetCore.Http;
using System.ComponentModel.DataAnnotations;
using System.Xml.Linq;
namespace WebApp.Models
{
public class CrearAmigoModel
{
//TODO: Se crean las validaciones para cada uno de los campos del modelo
[Required(ErrorMessage = "*Obligatorio"), MaxLength(20,... |
import { itAstExpression, testAst } from './ast-test-utils';
import { AstNodeType } from '../ast-node';
describe('Binary Ast Expressions', function () {
it(`should parse expression "69 + 1337" correctly`, () => {
const leftNumber = 69;
const rightNumber = 1337;
testAst(`${leftNumber} + ${rightNumber}`, ... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<link rel="stylesheet" href="../styles.css" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" ... |
import 'dart:convert';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:hive_flutter/hive_flutter.dart';
import 'package:todolist/database/database.dart';
import 'package:todolist/text_page.dart';
import 'dialog_box.dart';
import 'todo_tile.dart';
class HomePage extend... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>弹性盒</title>
<style type="text/css">
*{
margin: 0;
padding: 0;
}
ul{
width: 800px;
border: 10px red solid;
list-style: none;
display: flex;
/*flex-direction :指定容器中排列方式
-row : 水平... |
const db = require("../models");
const Truth = db.truths;
// Create and Save a new Truth
exports.create = (req, res) => {
// Validate request
if (!req.body.text) {
res.status(400).send({ message: "Truth text can not be empty!" });
return;
}
if (!req.body.singer) {
res.status(400).send({ message: "... |
## Código para a pipeline de build
### Definição do pipeline
```tf filename="modelbuild_ci_pipeline.tf" copy
resource "aws_codepipeline" "sm_ci_pipeline" {
name = "modelbuild-pipeline"
role_arn = aws_iam_role.tf_mlops_role.arn
tags = {
Environment = var.env
}
artifact_store {
location = aws_s3... |
//
// ExecutorView.swift
// Ionix
//
// Created by luis on 10/05/23.
//
import SwiftUI
struct ExecutorView: View {
@EnvironmentObject var sessionManager: AuthSessionManager
@ObservedObject var taskManager: TaskViewModel
@State private var selectedTask: TaskModel? = nil
let dateF... |
/***************************************************************************
Copyright (c) 2016, EPAM SYSTEMS INC
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... |
using MantisDevopsBridge.Api.Abstractions.Common.Helpers;
using MantisDevopsBridge.Api.Abstractions.Common.Technical.Tracing;
using MantisDevopsBridge.Api.Adapters.Mongo.Technical;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Logging;
using MongoDB.Driver;
namespace MantisDevopsBridge.Api.Adap... |
<?php
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Sche... |
package hello.hellospring.repository;
import hello.hellospring.domain.Member;
import org.springframework.stereotype.Repository;
import java.util.*;
@Repository//스프링에 repository라고 알려주는 어노테이션
public class MemoryMemberRepository implements MemberRepository{
private static Map<Long, Member> store = new HashMap<>(); /... |
---
title: "Do You Make These Common Mistakes When Spelling 'Bored'? Find Out Now!"
ShowToc: true
date: "2023-04-11"
author: "Velma Charpia"
tags: ["Spelling Mistakes","Common Mistakes"]
---
## Introduction
Spelling is an important part of communication. It is essential that we spell words correctly in order to be ... |
<template>
<LoadingComponent :props="loading" />
<div class="col-12">
<div id="promotion" class="db-tab-div active">
<div class="grid sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-3 mb-5">
<button @click.prevent="multiTargets($event, 'tab-action', 'tab-content', 'promotio... |
---
title: Guardar en imagen binaria en Aspose.Note
linktitle: Guardar en imagen binaria en Aspose.Note
second_title: Aspose.Nota .NET API
description: Aprenda cómo convertir documentos a imágenes binarias usando Aspose.Note para .NET. Siga nuestra guía paso a paso para una integración perfecta.
type: docs
weight: 22
u... |
from typing import Any, Dict
from fastapi import status
from fastapi.responses import JSONResponse
class ErrorResponseBase(JSONResponse):
@staticmethod
def get_error_response_detail(
error: str, error_desc: str
) -> Dict[str, str]:
return {"error": error, "error_description": error_desc}
... |
import 'package:flutter/material.dart';
import 'package:flyhigh/models/questioncambri_model.dart';
import '../../constants.dart';
import '../../widgets/question_widget.dart';
import '../../widgets/next_buttom.dart';
import '../../widgets/option_card.dart';
import '../../widgets/result_box.dart';
import '../../models/db... |
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
class ProviderLogger extends ProviderObserver {
@override
void didUpdateProvider(
ProviderBase<Object?> provider,
Object? previousValue,
Object? newValue,
// flutter에서는 신경쓰지 않아도 된다.
ProviderContain... |
import React, { useState } from 'react';
import { View, Text, Image, TextInput, StyleSheet, TouchableOpacity, Animated } from 'react-native';
import styles from './styles';
import TwoButtonView from '../../components/molecules/twoButton';
import Menu from '../../components/organism/menuHome';
const Home = () => {
... |
import React from "react";
import { View, Text, StyleSheet } from "react-native";
import { createMaterialTopTabNavigator } from "@react-navigation/material-top-tabs";
import colors from "../../../colorPalette/colors";
import ListOfFollowers from "./ListOfFollowers";
import ListOfFollowing from "./ListOfFollowing";
con... |
import { PropsWithChildren } from 'react';
import {
CircleUser,
Home,
LineChart,
Link,
Package,
ShoppingCart,
Users,
} from "lucide-react"
import { Button } from "@/Components/ui/button"
import {
DropdownMenu,
DropdownMenuContent,
DropdownMenuItem,
DropdownMenuLabel,
DropdownMenuSeparator,
D... |
from turtle import Screen, Turtle
from snake import Snake
from food import Food
from scoreboard import ScoreBoard
import time
def walls():
turtle = Turtle()
turtle.up()
turtle.color("white")
turtle.hideturtle()
turtle.width(5)
turtle.goto(-280, -280)
turtle.down()
turtle.fd(560)
tu... |
<template>
<div class="profile">
<h1>Beer App</h1>
<div class="person">
<img v-bind:src="picture">
<h2 class="person-name">{{firstName}}</h2>
<p class="age">{{age}}</p>
<p class="post">{{post}}</p>
<button @click="getUser()" id="user-button">Get Random User</button>
... |
import { fireEvent, screen } from '@testing-library/react';
import { renderTheme } from '../../styles/render-theme';
import { Menu, MenuProps } from '.';
import mock from './mock';
const props = mock;
describe('<Menu/>', () => {
it('should render button link', () => {
renderTheme(<Menu {...props} links={undefi... |
import 'dart:developer' as developer;
import 'dart:math';
import 'package:restaurant_app/common/navigation.dart';
import 'package:restaurant_app/data/model/list_restaurant.dart';
import 'package:rxdart/subjects.dart';
import 'package:flutter_local_notifications/flutter_local_notifications.dart';
final selectNotificati... |
#ifndef __Ax_Vdr_MenuText_H__
#define __Ax_Vdr_MenuText_H__
/*
* See the file README in the main directory for a description of
* this software, copyright information, and how to reach the author.
*
* Author: alex
* Date: 28.03.2004
*
* Last modfied:
* $Author: alex $
* $Date: 2013-03-20 19:53:42 +0100... |
<!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 user-scalable=no">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./Owner.sol";
import "./IERC20.sol";
import "./Context.sol";
contract ERC20 is Context, IERC20, Owner {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _... |
import java.io.File;
import java.util.ArrayList;
import java.util.Scanner;
import java.io.FileNotFoundException;
class StandardACL {
/**
* Compares 2 IP address while considering a mask value.
*
* @param ip1 The first IP address. (eg: 192.168.0.1)
* @param ip2 The second IP address. (eg: 192... |
<% @title = "Weather Data"%>
<% @welcome_image = "mean-temps-250px.png" %>
<%= javascript_include_tag "map_functions" %>
<%= render partial: "partials/map__set_extents" %>
<%= render partial: "partials/map__scroll_to_view" %>
<% content_for :welcome do %>
<h2><%= @title %></h2>
<p>Weather data is collected daily f... |
package org.example.mvc;
import org.example.mvc.annotation.RequestMapping;
import org.example.mvc.controller.RequestMethod;
import org.reflections.Reflections;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
public class AnnotationHandlerMapping implements HandlerMappin... |
/*
** 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 writing, software
** d... |
from typing import Optional
from sqlalchemy.orm import DeclarativeBase
from fastapi_users.db import SQLAlchemyBaseUserTableUUID
from fastapi import Depends, Request
from fastapi_users import BaseUserManager, UUIDIDMixin
from fastapi_users import BaseUserManager
import uuid
from app.core.config import SECRET
from app.... |
import { addDoc, collection, getFirestore } from 'firebase/firestore';
import React, { useContext, useRef, useState } from 'react'
import { CartContext } from '../../context/CartContext';
import './OrderForm.css'
function OrderForm() {
const userNameRef = useRef(null);
const userEmailRef = useRef(null);
const { ca... |
//
// MainTabVC.swift
// UdemyInstargramCopy
//
// Created by Wi on 25/05/2019.
// Copyright © 2019 Wi. All rights reserved.
//
import UIKit
import Firebase
class MainTabVC: UITabBarController, UITabBarControllerDelegate{
override func viewDidLoad() {
super.viewDidLoad()
// deleg... |
#!/usr/bin/env python
# Id: database.mysqli.inc,v 1.57 2008/04/14 17:48:33 dries Exp $
"""
Database interface code for MySQL database servers using the mysqli client
libraries. mysqli is included in PHP 5 by default and allows developers to
use the advanced features of MySQL 4.1.x, 5.0.x and beyond.
@package ... |
import { createSlice, Slice } from '@reduxjs/toolkit'
interface I18nSliceState {
locale: string | null
messages: object | null
defaultMessage: object | null
}
const initialState: I18nSliceState = {
locale: null,
messages: null,
defaultMessage: null
}
export const slice: Slice = createSlice({
name: 'i18... |
<%--
Document : unit
Created on : Mar 24, 2022, 10:50:42 AM
Author : pupil
--%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<c:choose>
<c:when test="${role eq 1}">
<main>
<h2 class="topic">Страница картины</h2>
<div class="page_unit">
<d... |
import { EntityValidationError } from '@/core/errors/entity-validation-error';
import { QuestionOption } from './question-option';
describe('QuestionOption', () => {
it('Should be able to create a question option', () => {
const props = {
questionId: '75ec07ce-5b76-4baa-87bd-fb40bce984e5',
title: 'Op... |
/**
* @file Transport.h Headers for the Transport object, which is the virtual
* base class for all transport property evaluators and also includes the
* tranprops group definition (see @ref tranprops and @link
* Cantera::Transport Transport @endlink) .
*/
// This file is part of Cantera. See License.... |
import React, { useState } from "react";
import "./style.css";
import PokemonSelectorModal from "../PokemonSelectorModal";
import PokemonCard from "../PokemonCard";
const PokemonSlot = ({
xpTotal,
setXpTotal,
allPokemons,
setAllPokemons,
loadMore,
setLoadMore,
selectedPokemons,
setSelectedPokemons,
}) => {
co... |
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Firma.Data.Model
{
public class ZlecenieKompletacji
{
[Key]
[Display(Name = "Nr zlecenia")]
public int IdZleceniaKompletacji { get; set; }
[Display(Name = "Kontrahent")]
... |
#ifndef CAMERA_H
#define CAMERA_H
// Third-party Headers
#include "thirdparty/glad/glad.h"
#include "thirdparty/glm/glm.hpp"
#include "thirdparty/glm/gtc/matrix_transform.hpp"
// Custom Headers
#include "Config.h"
// Directions for Camera Movement
enum CAMERA_MOVEMENT
{
CAM_FORWARD,
CAM_BACKWARD,
CAM_LEF... |
// Gamma correction test program
// Copyright (c) Camilla Berglund <elmindreda@elmindreda.org>
//
// This software is provided 'as-is', without any express or implied
// warranty. In no event will the authors be held liable for any damages
// arising from the use of this software.
//
// Permission is granted to anyone ... |
#!/usr/bin/python3
"""Module for minOperations"""
def minOperations(n):
"""
minOperations
Calculate the mini numb of OPs required to obtain 'n' 'H' characters.
"""
# Outputs should be at least 2 characters: (min, Copy All => Paste)
if n < 2:
return 0
ops, root = 0, 2
while roo... |
import 'package:flutter/material.dart';
import 'package:unasplash/componentes/cardTreinoAvaliativo.dart';
import 'package:unasplash/componentes/titulo.dart';
import 'package:unasplash/telas/analiseTreinoAvaliativo.dart';
enum ExerciseFilter { Craw, Costas, Peito, Borboleta, Medley }
void main() {
runApp(MaterialApp... |
Running on the Command Line
__bib2x__ is implemented in [Python](https://www.python.org/). It is started on the command line.
__bib2x__ reads the BibTeX file defined using the **--input *<BIBTEX_FILE>*** option. It converts it to the format defined using the option **--format *<FORMAT>*** and saves it u... |
import React,{useState} from "react";
import { StyleSheet,Text,View,Button,TextInput,Image,SafeAreaView,TouchableOpacity,StatusBar,Alert } from "react-native";
import {createUserWithEmailAndPassword} from 'firebase/auth';
import {auth} from '../config/firebase';
const backImage = require('../assets/backImage.png');
ex... |
<!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>选择器</title>
<style>
/* *号选择器是最早加载的,所有的标签都满足,但是只要标签写了任意一个相同的样式都会覆盖*/
/**{
color:#993;
}*/
/*为i... |
<!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>
<style>
button {
width:100px;
height: 60px;
... |
//
// CalculatorBrain.swift
// BMI Calculator
//
// Created by bagus on 12/07/23.
// Copyright © 2023 Angela Yu. All rights reserved.
//
import UIKit
struct CalculatorBrain {
var bmi : BMI?
mutating func calculateBMI(height: Float, weight: Float){
let bmiValue = weight/(pow(height/100, 2))
... |
---
title: Getting Started
description: "A unofficial command loader for aoi.js gen 6."
head:
- tag: meta
attrs:
name: "og:title"
content: "aoi.loader"
- tag: meta
attrs:
name: "og:site_name"
content: "aoi.loader | Unofficial"
id: setup
next: false
prev: false
---
A unofficial comma... |
<%@ page import="models.User" %>
<%@ page import="models.OrderDetails" %>
<%@ page import="java.util.List" %>
<%@ page import="java.util.HashMap" %>
<%@ page import="java.util.ArrayList" %>
<%@ page import="java.util.Map" %>
<%@ page import="models.Book" %><%--
Created by IntelliJ IDEA.
User: LSPL322
Date: 15-04-... |
<template>
<app-body pageTitle="New Feed" pageSubTitle="School News">
<app-table
:headers="tbHeaders"
:data="tbData.data"
:deleteAction="deleteNews"
:updateAction="updateNews"
:createAction="createNews"
createButton="true"
:... |
import React, { useEffect, useRef } from "react";
type Props = {
data: ParsedData;
allData: ParsedData[];
deleteBoxPlot: (index: number) => void;
setNumbers: React.Dispatch<React.SetStateAction<number[]>>;
setDataEditingIndex: React.Dispatch<React.SetStateAction<number>>;
};
export type ParsedData = {
numb... |
@page "/"
@implements IAsyncDisposable
@inject IWindowService WindowService
@if (!Popup.HasValue)
{
<PageTitle>Blazor Window - Home</PageTitle>
<p>On this page we try out opening the different user prompts. To try out the other parts of the interface check the menu.</p>
<button class="btn btn-primary" @... |
import React, { PureComponent } from 'react';
import { Spin, Menu, Icon, Dropdown, Avatar } from 'antd';
import styles from './index.less';
export default class GlobalHeaderRight extends PureComponent {
render() {
const { currentUser = {}, onMenuClick, theme } = this.props;
const { menuList = [] } = currentU... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Brain Wave</title>
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap" rel="stylesheet">
<style>
/* Base styles */
... |
{{!< default}}
{{! The comment above "< default" means - insert everything in this file into
the {body} of the default.hbs template, which contains our header/footer. }}
{{! Everything inside the #post tags pulls data from the post }}
{{#post}}
<main class="content">
<article class="{{post_class}} p3 sm-p4 m... |
interface Props {
label: string;
placeholder: string;
type: "email" | "text" | "password";
autocomplete?: "username" | "current-password";
}
export default function FormInput({ label, type, placeholder, autocomplete }: Props): JSX.Element {
return (
<div className="w-full mb-3">
<label className="b... |
import { View } from "react-native";
import { useTranslation } from "react-i18next";
import { useFormContext, Controller } from "react-hook-form";
import { HorizontalDivider } from "@/components/HorizontalDivider";
import { Text } from "@/components/Text";
import { Card } from "@/components/Card";
import { TextInput } ... |
# High-Access Employees
[[Problem Link]](https://leetcode.com/problems/high-access-employees/)
## You are given a 2D 0-indexed array of strings, access_times, with size n. For each i where 0 <= i <= n - 1, access_times[i][0] represents the name of an employee, and access_times[i][1] represents the access time of that... |
import axios from "axios";
import { useFormik } from "formik";
import { useDispatch, useSelector } from "react-redux";
import { setUser } from "../store/loggedInUserReducer";
import { useEffect } from "react";
import { useNavigate } from "react-router-dom";
function LoginPage() {
const dispatch = useDispatch();
co... |
Named Algorithms - QUICKSORT
*******************************
Time Complexity: O(nLogn)
**************************
# include <bits/stdc++.h>
using namespace std;
void Print(vector<int> &v)
{
for(auto x:v)
cout<<x<<" ";
cout<<endl;
}
int Partision(vector<int> &v,int start,int end)
{
int i = start-1... |
import fruitIntoBaskets from '../../../src/lib/iteration/fruitIntoBaskets/index';
describe('fruitIntoBaskets', () => {
it('should return the maximum number of fruits that can be put into the baskets', () => {
expect(
fruitIntoBaskets({ fruits: ['A', 'B', 'C', 'A', 'C'], baskets: 2 }),
).toBe(3);
ex... |
import os
import numpy as np
import torch
import cv2
from torch.utils.data import Dataset
from PIL import Image
class SemanticSegmentationDataset(Dataset):
def __init__(self, root_dir, joint_transform=None, transform=None, target_transform=None):
self.joint_transform = joint_transform
self.transfo... |
from typing import Any, Dict, List, Type, TypeVar
from attrs import define as _attrs_define
from attrs import field as _attrs_field
T = TypeVar("T", bound="StatisticsMetricModelResult")
@_attrs_define
class StatisticsMetricModelResult:
"""Statistics result for the metric"""
additional_properties: Dict[str,... |
---
title: xPack OpenOCD v0.12.0-1 released
summary: "Version **0.12.0-1** is a new release; it follows the upstream release."
version: "0.12.0-1"
npm_subversion: "1"
upstream_version: "0.12.0"
upstream_commit: "9ea7f3d"
upstream_release_date: "15 Jan 2022"
download_url: https://github.com/xpack-dev-tools/openocd-xp... |
import { Metadata } from '@polkadot/types';
import { TypeRegistry } from '@polkadot/types';
import { MetadataVersioned } from '@polkadot/types/metadata/MetadataVersioned';
import memoizee from 'memoizee';
import { isBrowser } from '../util';
import { toSpecifiedCallsOnlyV14 } from './toSpecifiedCallsOnlyV14';
/**
* ... |
import { deepFreeze } from "./object"
describe("object Unit Tests", () => {
it("should not freeze a scalar value", () => {
let str = deepFreeze("a")
expect(typeof str).toBe("string")
let boolean = deepFreeze(true)
expect(typeof boolean).toBe("boolean")
boolean = deepFreeze... |
<!DOCTYPE html>
<html lang="pt-br">
<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>PokemonDB</title>
<!-- <link rel="stylesheet" href="../card/style.css" /> -->
<link rel="stylesheet" h... |
import userModel from "@/models/users";
import { connectToDB } from "@/utils/databse";
import NextAuth from "next-auth/next";
import CredentialsProvider from "next-auth/providers/credentials";
import bcrypt from "bcryptjs";
export const authOptions = {
providers: [
CredentialsProvider({
name: "credentials"... |
// *************** BFS IS BETTER THAN DP **************************
// DP
class Solution
{
public:
int numSquares(int n)
{
if (n <= 0)
{
return 0;
}
// cntPerfectSquares[i] = the least number of perfect square numbers
// which sum to i. Note... |
/* eslint-disable @typescript-eslint/no-explicit-any */
/* eslint-disable @typescript-eslint/no-unused-vars */
import { Test, TestingModule } from "@nestjs/testing";
import { FestivalController } from './festival.controller';
import { FestivalService } from "./festival.service";
import { Gender, Genre, IArtist, IFesti... |
package main
import (
"bufio"
"fmt"
"io/fs"
"log"
"os"
"path/filepath"
"strings"
"sync"
)
// Result represents a positive search result, it will be the name of the file
type Result struct {
Filename string
LineNumber int
Text string
}
// NewResult helper function for creating a new result object
f... |
import 'package:flutter/material.dart';
import 'package:klinik_app/ui/pasien_form_update_page.dart';
import '../model/pasien.dart';
import 'pasien_page.dart';
class PasienDetailPage extends StatefulWidget {
final Pasien pasien;
const PasienDetailPage({super.key, required this.pasien});
@override
State<PasienD... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.