text
stringlengths
184
4.48M
// SPDX-License-Identifier: MIT; pragma solidity ^0.8.7; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "hardhat/console.sol"; error NotOwner(); contract AfterLife is ERC20, Ownable { /** * Create a token contract with name and symbol ...
/* eslint-disable react/no-string-refs */ import React, {Component} from 'react'; import { TouchableOpacity, StyleSheet, TextInput, View, Text, Alert, } from 'react-native'; function RegisterFetch(username, password) { return fetch( 'https://backend-vegeteam.app.secoder.net/api/mobile/admin/regis/', ...
{% extends 'base.html' %} {% block additional_styles %} <style> table { border-collapse: collapse; width: 100%; margin-bottom: 20px; /* Add margin between tables */ } th, td { border: 1px solid black; padding: 8px; text-align: left; } th { b...
# 一、准备 ## 1. 安装 安装webpack 和webpack命令行 ```bash pnpm install webpack webpack-cli -D ``` 安装自动生成html文件的插件 ```bash pnpm install html-webpack-plugin -D ``` 安装webpack服务器 ```bash pnpm install webpack-dev-server -D ``` ## 2. 配置 ### 2.1 在 `package.json` 中加入快捷命令 ```json "scripts": { "dev": "webpack-dev-server", ...
import React from 'react'; interface FilterComponentProps { filter: string; onFilterChange: (event: React.ChangeEvent<HTMLSelectElement>) => void; } const Filter: React.FC<FilterComponentProps> = ({ filter, onFilterChange }) => { return ( <div className="mb-5"> <label htmlFor="filter" className="mr-2"...
<template> <aside class="bg-white flex-shrink-0 p-3 shadow" style="width: 250px;min-height: 100vh;"> <ul class="list-unstyled ps-0"> <li class="mb-1"> <router-link :to="{name:'adminhome'}" :class="{'w-100 text-start btn align-items-center rounded':true,'active':page_name=='adminhome'}"> ...
import {TreeItem, treeItemClasses, TreeItemProps} from "@mui/lab" import * as React from "react" import {MouseEventHandler} from "react" import {Menu, MenuItem, SvgIconProps} from "@mui/material" import {styled} from "@mui/material/styles" import Box from "@mui/material/Box" import Typography from "@mui/material/Typogr...
import '/components/create_photo_string/create_photo_string_widget.dart'; import '/flutter_flow/flutter_flow_theme.dart'; import '/flutter_flow/flutter_flow_util.dart'; import '/flutter_flow/flutter_flow_widgets.dart'; import 'package:flutter/material.dart'; import 'package:google_fonts/google_fonts.dart'; import 'pack...
// // DO NOT REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. // // @Authors: // timop // // Copyright 2004-2012 by OM International // // This file is part of OpenPetra.org. // // OpenPetra.org is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as publish...
import React from 'react' import { TextInputStyled } from './TextInput.Styles' const TextInput = ({ label, type, name, register, errors, value, required, pattern, maxLength, subname, placeholder, }) => { const Regex = new RegExp(pattern) const propForm = subname ? `${subname}.${name}` : name...
import sets.algebra categories.subobj categories.subcat categories.examples categories.strict_cat categories.diagrams universes v v' u u' w hott_theory namespace hott open hott.eq hott.is_trunc hott.trunc hott.is_equiv hott.set hott.subset hott.precategories hott.categories hott.categories.strict /- W...
/** * 图片base64转blob * @param image * @returns {Blob} */ export function base64toBlob(base64Buf: string): Blob { const arr = base64Buf.split(','); const typeItem = arr[0]; const mime = typeItem.match(/:(.*?);/)![1]; const bstr = window.atob(arr[1]); let n = bstr.length; const u8arr = new Uint8Array(n); ...
##DESCRIPTION ## Algebra problem: true or false for inequality ##ENDDESCRIPTION ##KEYWORDS('algebra', 'inequality', 'fraction') ## DBsubject('History') ## DBchapter('') ## DBsection('') ## Date('2/4/2010') ## Author('Darwyn Cook') ## Institution('Alfred University') ## TitleText1('A History of Mathematics: An Intro...
: # # E-Mail address directory lookup script to read $HOME/.addresses # # The format of the $HOME/.addresses file is simple: # Place one E-Mail address on each line. # Descriptive comments that should be displayed but NOT included in # the address headers may follow the address, enclosed in [ ]. # # Samples: # ...
class Programa : def __init__(self, nome, ano) -> None: self._nome = nome.title() self.ano = ano self._likes = 0 @property def likes(self) : return self._likes def dar_like(self) : self._likes += 1 @property def nome(self) : return self._nome ...
# Given a string s, find the longest palindromic subsequence's length in s. # A subsequence is a sequence that can be derived from another sequence by deleting some or no elements without changing the order of the remaining elements. # @param {String} s # @return {Integer} def longest_palindrome_subseq(s) @string = s...
/** * Grazie * @copyright Copyright (c) 2024 David Dyess II * @license MIT see LICENSE */ // Import styles of packages that you've installed. // All packages except `@mantine/hooks` require styles imports import '@mantine/core/styles.css'; import '@mantine/dates/styles.css'; import '@mantine/notifications/styles.cs...
<%@ page contentType="text/html;charset=UTF-8" %> <%@ include file="/WEB-INF/views/include/taglib.jsp"%> <html> <head> <title>老师管理</title> <meta name="decorator" content="default"/> <script type="text/javascript"> $(document).ready(function() { }); function page(n,s){ $("#pageNo").val(n); $("#pageSiz...
/* Copyright 1993-2003 The MathWorks, Inc. */ /* * EROBW Binary image erosion (MEX-file) * * BW2 = EROBW(BW1, SE) erodes the binary image BW1 by the * structuring element SE. BW1 must be a 2-D real uint8 array. * SE must be a 2-D real double array. BW2 is a logical uint8 array. * */ #include <string.h> #inc...
// SPDX-License-Identifier: BUSL-1.1 pragma solidity ^0.8.23; /// @title IBroadcastRegistry /// @dev Interface for BroadcastRegistry /// @author ZeroPoint Labs interface IBroadcastRegistry { // EXTERNAL WRITE FUNCTIONS // /// @dev emitted when a payload is broadcasted e...
<template> <section> <base-card> <h2>Submitted Experiences</h2> <div> <base-button @click="loadExperiences" >Load Submitted Experiences</base-button > </div> <p v-if="isLoading">Loading...</p> <p v-else-if="!isLoading && error">{{ error }}</p> <p v-e...
Team Omega Tiger Woods OS Lab Project 3 Andrew Baker Russell White The purpose of this project is to create a program to simulate the synchronization problem of the classic Producer-Consumer problem. This program does this by creating a thread for each producer and consumer, and creating a single buffer that each prod...
# Rumbleverse Download API This repository contains the source code for the Rumbleverse Download API, an Express.js application designed to serve downloadable builds of Rumbleverse. The API provides an easy-to-use interface for listing and downloading different versions of the game. ## Features - **Static File Servi...
import personCSS from "./Person.module.css"; import { useSelector, useDispatch } from "react-redux"; import { deletePerson } from "../../redux/store/index"; // import { v4 as uuidv4 } from "uuid"; const Person = () => { const dispatch = useDispatch(); //今持ってるStoreの情報をゲットできる const peopleData = useSelector((state)...
package com.lefarmico.navigation.params import android.os.Parcelable import kotlinx.parcelize.Parcelize sealed class LibraryParams : Parcelable { @Parcelize data class CategoryList( val isFromWorkoutScreen: Boolean ) : LibraryParams() @Parcelize data class SubcategoryList( val ca...
/* * Copyright (C) 2016 The Android Open Source Project * * 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 app...
/* * Copyright (c) 2006-2016 Marvisan Pty. Ltd. All rights reserved. * Use is subject to license terms. */ /* * BidResponseMsg44TestData.java * * $Id: BidResponseMsg44TestData.java,v 1.1 2011-04-14 11:44:44 vrotaru Exp $ */ package net.hades.fix.message.impl.v44.data; import java.io.Unsupported...
// Copyright Epic Games, Inc. All Rights Reserved. #pragma once #include "FractureToolCutter.h" #include "ModelingOperators.h" #include "FractureToolPlaneCut.generated.h" class FFractureToolContext; class UMeshOpPreviewWithBackgroundCompute; struct FNoiseOffsets; struct FNoiseSettings; UCLASS(config = EditorPerPro...
import * as express from "express"; import * as bodyParser from "body-parser"; import * as mongoose from "mongoose"; import * as session from "express-session"; import * as connectMongo from "connect-mongo"; const MongoStore = connectMongo(session); const mongoDB = "mongodb://127.0.0.1:27017"; const db = mongoose.conn...
/* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */ /* If you are missing that file, acquire a complete release at teeworlds.com. */ #ifndef GAME_LOCALIZATION_H #define GAME_LOCALIZATION_H #include <base/system.h> // GNUC_ATTRIBUTE #include <engine/shared/mem...
//===- ScopDetectionDiagnostic.cpp - Error diagnostics --------------------===// // // 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 // //===---------------------------...
import React, { useContext, useState } from 'react' import './Navbar.css' import logo from '../Assets/logo.png' import cart_icon from '../Assets/cart_icon.png' import { Link } from 'react-router-dom' import { ShopContext } from '../../Context/ShopContext' import burger_menu from '../Assets/burger-menu.svg' import close...
--- title: In 2024, How To Change Your Apple ID on iPhone 12 Pro With or Without Password | Dr.fone date: 2024-05-19T07:28:02.894Z updated: 2024-05-20T07:28:02.894Z tags: - unlock - remove screen lock categories: - ios - iphone description: This article describes How To Change Your Apple ID on iPhone 12 Pro Wi...
import React, { useEffect, useState } from "react"; import Sidebar from "../Sidebar/Sidebar"; import DashboardHeader from "../Dashboard/DashboardHeader"; import Table from "react-bootstrap/Table"; import EditIcon from "@mui/icons-material/Edit"; import DeleteIcon from "@mui/icons-material/Delete"; import { useDispatch,...
import joi from "joi"; export const register = joi .object({ userName: joi.string().alphanum().min(3).max(20).required(), email: joi .string() .email({ minDomainSegments: 2, maxDomainSegments: 4, tlds: { allow: ["com", "net", "org", "edue", "gov", "mil", "edu", "e...
// 49) Faça um programa em C que leia um vetor de 30 inteiros e implemente as funções a seguir, utilizando, // OBRIGATORIAMENTE, ponteiros e passagem de parâmetros por referência: // a) void zeraPares (int *vet): recebe um vetor e troca todos os números pares contidos nele pelo zero. // b) void dobra (int *vet): receb...
import copy import random class RHC: def __init__(self, filename): self.__obj = [] self.__weight = 0 self.__nr_objects = 0 self.__best_solution = 0 self.__solutions = [] self.__file_configuration(filename) def __file_configuration(self, filename): with o...
interface user_registration { firstName: string middleName: string lastName: string status: boolean emailVerified: boolean password: string mobile: string userInfo?: object isStaff?: boolean } interface add_employees { email: string roleId?: bigint userPositionId?: bigin...
// // AboutViewTests.swift // MuseuZapTests // // Created by Ignácio Espinoso Ribeiro on 20/04/20. // Copyright © 2020 Bernardo. All rights reserved. // import XCTest @testable import Blin class MockAboutViewModel: AboutViewModel { init() { // swiftlint:disable line_length let aboutDescription...
import { DebugElement, NO_ERRORS_SCHEMA } from "@angular/core"; import { ComponentFixture, TestBed, waitForAsync } from "@angular/core/testing"; import { ControlContainer, FormsModule, NgForm } from "@angular/forms"; import { FormControlService } from "src/app-shared/services/form-control.service"; import { FormAttribu...
from pygame import Surface from src.auxiliary_modules import * from src.auxiliary_modules import graphics as grp # Manages the User's information in the Game Menu class User: def __init__(self, name=""): self.name = name self.password = "" self.best_speed = 0 self.best_time = 0 ...
/* Copyright (c) Jon Newman (jpnewman ~at~ mit <dot> edu) All right reserved. This file is part of the Cyclops Library (CL) for Arduino. CL 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...
<template> <nav class="navbar navbar-default"> <div class="container-fluid"> <div class="navbar-header"> <router-link class="navbar-brand" to="/">Stock Trader</router-link> </div> <div class="collapse navbar-collapse"> <ul class="nav navbar-nav"> <router-link to="/portf...
package main import ( "bufio" "flag" "fmt" "io" "net" "os" "os/signal" "syscall" "time" ) /* === Утилита telnet === Реализовать примитивный telnet клиент: Примеры вызовов: go-telnet --timeout=10s host port go-telnet mysite.ru 8080 go-telnet --timeout=3s 1.1.1.1 123 Программа должна подключаться к указанном...
import React, { useState, useEffect, useRef } from 'react' export const useHover = () => { const [hovering, setHovering] = React.useState(false) const onHoverProps = { onMouseEnter: () => setHovering(true), onMouseLeave: () => setHovering(false), } return [hovering, onHoverProps] } type CopiedValue = ...
import { Component, OnInit, Inject } from '@angular/core'; import { NavController, AlertController } from '@ionic/angular'; import { APP_CONFIG, AppConfig } from '../app.config'; import { User } from 'src/models/user.models'; import { Helper } from 'src/models/helper.models'; import { UiElementsService } from '../servi...
import datetime import logging import os from collections import Counter from functools import wraps from urllib.parse import quote_plus, urlencode from authlib.integrations.flask_client import OAuth from flask import (Blueprint, abort, current_app, jsonify, redirect, render_template, render_templat...
package main import "testing" func Test_Cakes(t *testing.T) { type args struct { recipe map[string]int available map[string]int } type test struct { name string args args want int } tests := []test{ { name: "#1", args: args{ recipe: map[string]int{"flour": 500, "sugar": 200, "eggs":...
import { Component, HostListener, OnInit } from '@angular/core'; import { PokemonService } from './services/pokemon.service'; import { PokemonResult, Result } from '../interfaces/pokemon-result'; import { LightPokemon } from '../interfaces/pokemon'; @Component({ selector: 'app-pokemon-list', templateUrl: './pokemo...
# Projeto de API Restful # Sobre o projeto Esse projeto foi proposto no curso "Programação Orientada a Objetos com Java" da plataforma Udemy, ministrado pelo professor Nélio Alves. O projeto foi estruturado conforme as camadas lógicas e o modelo de domínio. Com esse projeto, foi possível compreender as principais dif...
;;;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp; Base: 10; Package: modlisp -*- ;;;; ************************************************************************* ;;;; FILE IDENTIFICATION ;;;; ;;;; Name: sockets.lisp ;;;; Purpose: Socket functions ;;;; Programmer: Kevin M. Rosenberg with excerpts from porta...
package com.gbdecastro.library.domain.author; import com.gbdecastro.library.application.rest.controller.author.AuthorMapper; import com.gbdecastro.library.domain.shared.DomainException; import com.gbdecastro.library.domain.shared.annotation.BaseService; import com.gbdecastro.library.domain.shared.message.MessageContex...
package main; import java.util.Random; import itumulator.executable.DisplayInformation; import itumulator.executable.DynamicDisplayInformationProvider; import itumulator.simulator.Actor; import itumulator.world.Location; import itumulator.world.World; /** * Carcass is an object that represents a dead animal in the ...
import { Injectable } from '@nestjs/common'; import { User } from '@prisma/client'; import { UserInputError } from 'apollo-server-express'; import { CreateUserInputData } from '@/modules/users/dto/input/createUser.input'; import { UpdateUserInputData } from '@/modules/users/dto/input/updateUser.input'; import { UsersR...
import { ComponentFixture, TestBed } from '@angular/core/testing'; import { HttpResponse } from '@angular/common/http'; import { HttpClientTestingModule } from '@angular/common/http/testing'; import { FormBuilder } from '@angular/forms'; import { ActivatedRoute } from '@angular/router'; import { RouterTestingModule } f...
import React, { FC, HTMLAttributes } from 'react' const Button: FC<IProps> = ({ children, size, inverted = false, ...rest }) => ( <button style={{width: '76px', height: '76px'}} className={`px-1 py-2 text-sm font-normal border rounded shadow-sm focus:none mb-3 flex flex-col justify-between items-center ${ ...
import { ApolloDriver, ApolloDriverConfig } from "@nestjs/apollo" import { Module } from "@nestjs/common" import { ConfigModule } from "@nestjs/config" import { GraphQLModule } from "@nestjs/graphql" import { MongooseModule } from "@nestjs/mongoose" import { ApolloServerPluginLandingPageLocalDefault } from "@apollo/ser...
import { GoogleLogin } from 'react-google-login'; import { useMutation } from '@apollo/client'; import { AUTH_MUTATION } from '../../mutations/authMutations'; import { GOOGLE_CLIENT_ID } from '../../config'; import { setLocalStorage } from '../../utils/localStorage'; function Auth({ setUser }) { const [authGoogle, {...
# Specification This project provides an implementation using Java of a Recipe book program that can be used and added to by Users. Users of the program have the following access and capabilities when using the recipe book. * Manually adding a new *Dish* to the *Recipe Book* from within the program. For example, adding...
/* * Copyright 1991-1996, Silicon Graphics, Inc. * ALL RIGHTS RESERVED * * UNPUBLISHED -- Rights reserved under the copyright laws of the United * States. Use of a copyright notice is precautionary only and does not * imply publication or disclosure. * * U.S. GOVERNMENT RESTRICTED RIGHTS LEGEND: * Use, dupli...
package com.example.shopstop; import androidx.annotation.NonNull; import androidx.appcompat.app.AppCompatActivity; import androidx.appcompat.widget.AppCompatButton; import android.app.AlertDialog; import android.content.Intent; import android.os.Bundle; import android.text.TextUtils; import android.view.View; import ...
/* * Copyright (C) 2018 evove.tech * * 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 3 of the License, or * (at your option) any later version. * * This program is distrib...
using System.Numerics; using System.Runtime.CompilerServices; namespace Common; public enum Base4Direction2d : byte { U, L, D, R } public enum Base8Direction2d : byte { U, LU, L, LD, D, RD, R, RU } public enum Base6Direction3d : byte { L = 0, R = 1, U = 2...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"> <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"> <link rel="icon" ...
from flask import Flask, request import tkinter as tk from tkinter import ttk import threading import params app = Flask(__name__) class BagStatus: ON_BELT = "On belt" OFF_BELT = "Off belt" LOADED = "Loaded" off_belt = [] closed = [] error_bag = None # Create a Tkinter window window = tk.Tk() window.t...
from fastapi import FastAPI, File, UploadFile,Form from fastapi.responses import JSONResponse import whisper from fastapi.middleware.cors import CORSMiddleware import tempfile from transformers import AutoTokenizer, AutoModelWithLMHead import torch import nltk nltk.download('punkt') from nltk.tokenize import sent_token...
--- title: Analyse des accidents de la route pendant l'année 2021 en fonction du lieu, de la période, de l'age et du sexe author: "Groupe FLAL" output: pdf_document: toc: yes toc_depth: 2 html_document: toc: yes toc_depth: 2 --- Sources de nos jeux de données : https://www.data.gouv.fr/fr/dataset...
/// //![Lua logo](../Lua.png) //M2TWEOP structures and functions. There are not many examples and descriptions here. Also note that the examples do not include many of the checks that would be required when creating modifications. //@module LuaPlugin //@author youneuoy //@license GPL-3.0 #include "luaP.h" #include "plu...
import React from "react"; import { fetchTodos } from "../api/todo"; import { revalidatePath } from "next/cache"; import { fetchPaginatedTodos } from "../api/actions"; //import { getTokenCookie } from "../utils/auth"; interface Pagination { currentPage: number; totalPages: number; hasNextPage: boolean; hasPrev...
import type { Meta, StoryObj } from '@storybook/react'; // import { fn } from '@storybook/test'; import IconButton from '../components/IconButton.tsx'; // More on how to set up stories at: https://storybook.js.org/docs/writing-stories#default-export const meta = { title: 'Example/Button/IconButton', component: Ico...
import java.io.*; import java.util.*; public class DBManager { private static final String METADATA_FILE = "metadata.txt"; private static final String TABLE_DIR = "tables"; public static void createTable(String query) { try { File metadataFile = new File(METADATA_FILE); Fil...
# coding: utf8 import clinica.pipelines.engine as cpe __author__ = "Junhao Wen" __copyright__ = "Copyright 2016-2018, The Aramis Lab Team" __credits__ = ["Junhao Wen"] __license__ = "See LICENSE.txt file" __version__ = "0.1.0" __maintainer__ = "Junhao Wen" __email__ = "Junhao.Wen@inria.fr" __status__ = "Development" ...
import { NotFoundException } from '@nestjs/common'; import { Test } from '@nestjs/testing'; import { TaskRepository } from 'src/entities/task.repository'; import { GetTasksFilterDto } from './dto/get-task.dto'; import { TaskStatus } from './task.enum'; import { TasksService } from './tasks.service'; const mockUser = {...
<?php namespace App\Console\Commands; use App\Interfaces\CategoryInterface; use App\Interfaces\ProductInterface; use App\Repositories\CategoryRepository; use App\Repositories\ProductRepository; use Exception; use Illuminate\Console\Command; class Product extends Command { /** * The name and signature of the...
# dashboard7.py import streamlit as st import pandas as pd import plotly.express as px import plotly.graph_objects as go def main(): # Assuming df_startup is already defined and contains the necessary data # If not, load your data and perform the required processing # Load data file_path = r"startup_fu...
#include <stdio.h> #include <stdlib.h> #define MAX_VERTICES 100 struct Node { int data; struct Node *next; }; struct Graph { int numVertices; struct Node *adjList[MAX_VERTICES]; int visited[MAX_VERTICES]; }; struct QueueNode { int data; struct QueueNode *next; }; struct Queue { stru...
package apps import ( "e_wallet/domain/entities" "e_wallet/domain/payload/request" "e_wallet/infrastructure/persistences" "sync" ) type userApp struct { repo persistences.Repositories } // AddUser implements UserAppInterface. func (app *userApp) AddUser(request *request.UserRequest) (*entities.UserDetail, error...
/* * Copyright (C) 2020 The Android Open Source Project * * 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 app...
module SessionsHelper def log_in(person, person_type) session["#{person_type}_id".to_sym] = person.id end def remember(person, person_type) person.remember cookies.permanent.encrypted["#{person_type}_id".to_sym] = person.id cookies.permanent[:remember_token] = { value: person.remember_token, expi...
<mat-card> <mat-toolbar color="primary">Cursos Disponíveis</mat-toolbar> <div *ngIf="courses$ | async as courses; else loading"> <table mat-table [dataSource]="courses" class="mat-elevation-z8"> <!-- Position Column --> <ng-container matColumnDef="position"> <th mat-header-cell *matHeaderCe...
package com.fhzc.app.android.android.ui.view.adapter; import android.content.Context; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import com.fhzc.app.android.android.ui.view.widget.im.AudioRenderView; import com.fhzc.app.android.android.ui.view.widget.im.ImageRenderView...
extends RichTextLabel class_name LiveCaption export(float) var duration = 4.0 export(float, 0, 0.5) var inter_duration = 0.1 export(String, "center", "left", "right", "fill") var alignment = "center" export(Color) var default_color = Color.white export(int) var shake_rate = 40 export(int) var shake_level = 7 enum CAP...
using System.Security; using Core.Entities; using Core.Interfaces; using Core.Specifications; using Microsoft.EntityFrameworkCore; namespace Infrastructure.Data { public class GenericRepository<T> : IGenericRepository<T> where T : BaseEntity // We need to match the constraints here { private readonly S...
/** * File: ParagraphSeparator.ts * * Author: Herbert Baier (herbert.baier@uni-wuerzburg.de) * Date: 06.03.2023 */ import {LineEntity} from '../LineEntity'; import {XmlElementNode, xmlElementNode} from 'simple_xml'; /** * Defines paragraph separators. * * @author <a href="mailto:herbert.baier@uni-wu...
// // Created by tu on 02/12/2023. // #include "heap_sort.h" // To heapify a subtree rooted with node i // which is an index in arr[]. // n is size of heap void heapify(void *arr[], int n, int i, CompareFunction compare) { // Find largest among root, // left child and right child // Initialize largest as r...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>JavaScript form validation - checking email</title> <link rel="stylesheet" href="bootstrap.min.css" type="text/css" /> <style> .gradient-custom { display: block; width: 100vw; height: 100vh...
<?php /** * @package Lastfm Connector */ namespace Inc\Api; class SettingsApi { public $admin_pages = array(); public $settings = array(); public $sections = array(); public $fields = array(); public function register() { if ( ! empty( $this->admin_pages ) ) { add_action( 'admin_menu', array...
'use client' import Image from "next/image"; import Link from 'next/link' import Header from "@/components/Header"; import Modal from "@/components/Modal"; import { useState } from "react"; type SearchParamProps = { searchParams: Record<string, string> | null | undefined; }; export default function Home({ searchPa...
package dao import ( "context" "time" "restapi-golang-gin-gen/model" "github.com/guregu/null" "github.com/satori/go.uuid" ) var ( _ = time.Second _ = null.Bool{} _ = uuid.UUID{} ) // GetAllMaps_ is a function to get a slice of record(s) from maps table in the rocket_development database // params - page ...
package service import ( "context" "fmt" "sync" "time" "github.com/google/uuid" coapSync "github.com/plgd-dev/go-coap/v3/pkg/sync" "github.com/plgd-dev/hub/v2/pkg/log" kitNetGrpc "github.com/plgd-dev/hub/v2/pkg/net/grpc" pkgTime "github.com/plgd-dev/hub/v2/pkg/time" "github.com/plgd-dev/hub/v2/resource-aggr...
# MemoTeca This project is the result of learning from [Alura's Angular course](https://cursos.alura.com.br/course/angular-explorando-framework) and was generated with [Angular CLI](https://github.com/angular/angular-cli) version 15.2.1. Briefly, MemoTeca is a platform to post, edit and delete (CRUD) memories, though...
import { useState } from 'react' import {v4 as uuidv4} from 'uuid' import './App.css' import Header from './components/header/header' import Formulario from './components/Formulario/Formulario' import MiOrg from './components/MiOrg' import Equipo from './components/Equipo' import Footer from './components/Footer' func...
import React, {useState, useEffect} from 'react' import { Link, useLocation, useNavigate } from 'react-router-dom' import {useDispatch, useSelector} from 'react-redux' import {Form, Button, Row, Col} from 'react-bootstrap' import Loader from '../components/Loader' import Message from '../components/Message' import { re...
// Structurally identical // Send Feedback // Given two Generic trees, return true if they are structurally identical i.e. they are made of nodes with the same values arranged in the same way. // Input format : // Line 1 : Tree 1 elements in level order form separated by space (as per done in class). Order is - // Root...
package com.algotic.controllers; import com.algotic.base.LogHandlerConfiguration; import com.algotic.config.JwtHelper; import com.algotic.data.repositories.TradesRepo; import com.algotic.exception.AlgoticException; import com.algotic.exception.CommonErrorCode; import com.algotic.model.request.TradeRequest; import com....
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2; -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #ifndef mozilla_ExtensionPolicySe...
# Wi-Fi CSI Human Activity Recognition Model This project implements a human activity recognition (HAR) model using Wi-Fi Channel State Information (CSI) signals. CSI data, obtained from Wi-Fi devices, provides fine-grained information about the wireless channel, including signal amplitude, phase, and frequency. Lever...
package com.example.api.factories; import com.example.api.dto.OwnerCarDto; import com.example.store.model.OwnerCarEntity; import org.springframework.stereotype.Component; import java.util.List; import java.util.stream.Collectors; import java.util.stream.Stream; @Component public class OwnerCarDtoFactory { publi...
package com.pollub.lab_6.controllers; import com.pollub.lab_6.configuration.UserAuthenticationDetails; import com.pollub.lab_6.dao.UserDao; import com.pollub.lab_6.entities.User; import jakarta.validation.Valid; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.security.authenti...
{% extends 'landing/base.html' %} {% load crispy_forms_tags %} {% block content %} {% if user.is_authenticated %} <div class="container"> <div class="row justify-content-center mt3"> <div class="col-md-5 col-sm-12 border-bottom"> <a href="{% url 'templates' %}" class="btn btn-dark">Draw</a> </...