text
stringlengths
184
4.48M
package com.example.endgame.controller; import com.example.endgame.service.ThanhToanService; import com.example.endgame.dto.ThanhToanDto; import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.responses.ApiResponse; import io.swagger.v3.oas.annotations.tags.Tag; import lombok.AllArgsConst...
package com.xuliwen.basecode.javacode.concurrent.util.semaphore; import java.util.concurrent.Semaphore; /** * Created by xlw on 2017/6/12. */ public class MutexPrint { private Semaphore semaphore=new Semaphore(1); private void print() throws InterruptedException { semaphore.acquire(); Sy...
// ignore_for_file: invalid_annotation_target import 'package:freezed_annotation/freezed_annotation.dart'; part 'base_request_response.freezed.dart'; part 'base_request_response.g.dart'; @freezed class BaseResponse with _$BaseResponse { const factory BaseResponse({ @Default(false) bool isSuccess, Map<Strin...
mod cargo; mod dependency; mod format; mod package; mod parse_target; use clap::{Args, Parser}; use package::{parse_mod_tree, ModTree}; use parse_target::parse_target_dependencies; use proc_macro2::{Ident, TokenStream}; use quote::quote; use std::path::Path; use cargo::{find_cargo_toml, parse_package_name}; use crat...
/** * 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...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Schema; class CreateSplitTestsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { ...
/* * MoXie (SysTem128@GMail.Com) 2009-2-1 15:59:59 * * Copyright &copy; 2008-2009 Zoeey.Org * Code license: GNU Lesser General Public License Version 3 * http://www.gnu.org/licenses/lgpl-3.0.txt */ package org.zoeey.route; import java.util.ArrayList; import org.zoeey.dispatch.exceptions.RouterConnectException; ...
<?php namespace App\Controller; use App\Entity\Card; use App\Repository\UserRepository; use Doctrine\ORM\EntityManagerInterface; use Sensio\Bundle\FrameworkExtraBundle\Configuration\IsGranted; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\JsonResponse; use Symf...
import { Typography, IconButton, Button } from "@mui/material"; import ClearIcon from "@mui/icons-material/Clear"; import { deleteNotification, readOne } from "../../api/notifications"; import { useMutation, useQueryClient } from "@tanstack/react-query"; import { AvatarWithStatus } from "../AvatarWithStatus"; import us...
using BookingApplication.Application.Features.CQRS.Commands.AirportCommands; using BookingApplication.Application.Features.CQRS.Handlers.AirportHandlers; using BookingApplication.Application.Features.CQRS.Queries.AirportQueries; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Http; using Microsoft...
const express = require('express') const app = express() const port = 3000 const bodyParser = require('body-parser'); const cookieParser = require('cookie-parser'); const config = require('./config/key'); const { auth } =require("./middleware/auth"); const { User } = require("./models/User"); app.use(bodyParser.urlen...
.TH "pyslide" "1" "0.3" "" "" .SH "NAME" .LP pyslide \- A presentation program .SH "SYNTAX" .LP pyslide [\fIoptions\fR] <\fIfilename(s)\fP> .SH "DESCRIPTION" .LP The presentation is loaded from an XML file. You can compile the presentation if you want to not depend on python\-xml and load it a little bit faster. .LP...
import React, { useContext, useRef, useState } from "react"; import { InputWrapper, StyledForm, SubmitButton } from "./styled"; import IDatePicker from "../datePicker"; import ISelectField from "../selectField"; import ITextFields from "../textField"; import DataContext from "../../contexts/dataContext"; import Alert f...
// Copyright (c) All contributors. All rights reserved. Licensed under the MIT license. namespace QuickStart; public class ConfigurationExampleClass { public ConfigurationExampleClass(Crystalizer crystalizer, FirstData firstData) { this.crystalizer = crystalizer; this.firstData = firstData; ...
const express = require('express') const bodyParser = require('body-parser') const cors = require('cors') const db = require('./db') const ProfesorRouter = require('./routes/profesor-router') const CursoRouter = require('./routes/cursos-router') const NoticiaRouter = require('./routes/noticia-router') const app = exp...
package com.pscoding.tasktrek.presentation.components.new_task_screen.category import androidx.compose.runtime.Composable import androidx.compose.ui.Modifier import androidx.compose.ui.layout.Layout import androidx.compose.ui.layout.Placeable @Composable fun CategoryList( modifier: Modifier = Modifier, horizo...
/// Return integer part of the logarithm of x in given base. Use only integer arithmetic. 10 # IntLog(_x, _base) _ (base<=1) <-- Undefined; /// Use variable steps to speed up operation for large numbers x 20 # IntLog(_x, _base) <-- [ Local(result, step, old'step, factor, old'factor); result := 0; old'step := step :=...
/* * BioJava development code * * This code may be freely distributed and modified under the * terms of the GNU Lesser General Public Licence. This should * be distributed with the code. If you do not have a copy, * see: * * http://www.gnu.org/copyleft/lesser.html * * Copyright for t...
import axios from "axios"; import { useEffect , useState } from "react"; function Weather() { const [weatherTemp,setWeatherTemp] = useState (''); const [weatherDesc,setWeatherDesc] = useState (''); const [weatherIcon,setWeatherIcon] = useState (''); const [weatherLocation,setWeatherLocation] = useState...
import styled from 'styled-components'; import {useEffect, useState} from "react"; import {API} from "../Service/API/API"; import {filteredByCode} from "../config"; import {useNavigate} from "react-router-dom"; export const Info = (props) => { const { name, nativeName, flag, capital, population, ...
<?php /** * Template part for displaying post content slider */ if ( have_rows( 'post_slider' ) ) : ?> <div class="post-slider"> <div id="carouselPostSlider" class="carousel slide" data-ride="carousel"> <div class="carousel-inner"> <?php while( have_rows( 'post_slider' ) ) : ...
import {BrowserRouter as Router, Route, Routes} from 'react-router-dom'; import Home from './pages/Home'; import Profile from './pages/Profile'; import Login from './pages/Login'; import Register from './pages/Register'; import Header from './components/Header'; import { Toaster } from 'react-hot-toast'; import { useEf...
<ion-header> <ion-navbar color="one"> <ion-title>اضافة بطاقة</ion-title> </ion-navbar> </ion-header> <ion-content no-bounce> <ion-list> <form novalidate (ngSubmit)="saveCard()" [formGroup]="accountForm"> <ion-item> <ion-label floating>الأسم</ion-label> <ion-input type="text" maxl...
/*############################################################################################### ####################################### VECCHIATRON ############################################# ################################################################################################# $ Title ...
import { useDispatch, useSelector } from 'react-redux'; import { useEffect } from 'react'; import { ContactForm } from './ContactForm/ContactForm'; import { ContactList } from './ContactList/ContactList'; import { Filter } from './Filter/Filter'; import { Loader } from './Loader/Loader'; import { selectContacts, select...
/* * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of c...
import csv import io from uuid import uuid4 from rest_framework.test import APITestCase from app.factories import ConsumerFactory from app.models import Consumer from app.tests.utils import TestCaseMixin class TestPost(TestCaseMixin, APITestCase): def test_that_it_returns_expected_response(self): client...
# # (C) Tenable Network Security, Inc. # include("compat.inc"); if (description) { script_id(86853); script_version("1.9"); script_cvs_date("Date: 2019/11/20"); script_cve_id( "CVE-2015-7651", "CVE-2015-7652", "CVE-2015-7653", "CVE-2015-7654", "CVE-2015-7655", "CVE-2015-7656", "CV...
@extends('layouts.app') @section('content') <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Stripe Payment</title> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz...
[[vk::binding(0, 0)]] StructuredBuffer<uint> values; [[vk::binding(1, 0)]] RWByteAddressBuffer histogram; struct PushConstant { uint bin_size; }; // Use push constants to define the bin size [[vk::push_constant]] PushConstant constants; groupshared uint g_ScratchBuffer[256]; // scratch buffer /** * Entrypoint ...
<?php namespace App\Http\Controllers\Api; use App\Http\Controllers\Controller; use Illuminate\Http\Request; use App\Http\Requests\StoreOrderItemRequest; use App\Models\OrderItem; use App\Http\Resources\OrderItemResource; /*** *** operation_object: OrderItem *** operation_heading: Order Item ***/ class OrderItemCo...
#%NASL_MIN_LEVEL 70300 # # (C) Tenable Network Security, Inc. # include('deprecated_nasl_level.inc'); include('compat.inc'); if (description) { script_id(16316); script_version("1.22"); script_set_attribute(attribute:"plugin_modification_date", value:"2022/06/01"); script_cve_id("CVE-2004-1825"); script_bu...
import * as React from "react"; import Link from "next/link"; import { useRouter } from "next/router"; import Chip from "@mui/material/Chip"; import { DataGrid } from "@mui/x-data-grid"; import Button from "@mui/material/Button"; import { CircularProgress } from "@mui/material"; import Title from "./Title"; import Er...
<!DOCTYPE html> <html ng-app="myApp"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Examples</title> <script src="js/angular.js"></script> <style> input.ng-valid{border:1px solid green;} ...
# # (C) Tenable Network Security, Inc. # # The descriptive text and package checks in this plugin were # extracted from openSUSE Security Update openSUSE-2019-1808. # # The text description of this plugin is (C) SUSE LLC. # include('compat.inc'); if (description) { script_id(127088); script_version("1.4"); scri...
package app import ( "context" "github.com/materials-resources/s-prophet/pkg/models" "github.com/rs/zerolog" "net" "sync" "github.com/uptrace/bun" "go.opentelemetry.io/otel" "go.opentelemetry.io/otel/sdk/metric" tracesdk "go.opentelemetry.io/otel/sdk/trace" "google.golang.org/grpc" ) type App struct { Con...
<h4 class="text-center">Sign up</h4> <%= form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f| %> <%= render "devise/shared/error_messages", resource: resource %> <div class="input-group my-3"> <div class="input-group-prepend"> <%= f.label :first_name, '<i class="fa fa-us...
#%NASL_MIN_LEVEL 70300 # # (C) Tenable Network Security, Inc. # # The descriptive text and package checks in this plugin were # extracted from Gentoo Linux Security Advisory GLSA 201512-11. # # The advisory text is Copyright (C) 2001-2016 Gentoo Foundation, Inc. # and licensed under the Creative Commons - Attribution /...
<ion-content> <div id="survey"> <div class="searchBarDiv"> <ion-searchbar id="open-modal" class="search" (ionChange)="search($event)" placeholder="Nach Emissionswerte suchen"></ion-searchbar> </div> <div id="surveyList"> <ng-container *ngFor="let survey of setSurveys"> <div [c...
<!DOCTYPE html> <html lang="pt-BR"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Portfólio</title> <link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link...
#include "main.h" /** * get_bit - return the value of a bit at a given * index * @n: unsigned long int input * @index: index of the bit * Return: value of the bit */ int get_bit(unsigned long int n, unsigned int index) { unsigned int i; if (index >= 64) return (-1); return (((n >> index) & 1) ? 1 : 0); }
import React from 'react' import Drawer from '@mui/material/Drawer' import IconButton from '@mui/material/IconButton' import InboxIcon from '@mui/icons-material/MoveToInbox' import List from '@mui/material/List' import ListItem from '@mui/material/ListItem' import ListItemButton from '@mui/material/ListItemButton' impo...
import numpy as np import pandas as pd from statsmodels.tsa.vector_ar.var_model import VAR import matplotlib.pyplot as plt # Set a random seed for reproducibility np.random.seed(42) # Generate non-stationary data: random walks n_obs = 100 variable1 = np.random.normal(loc=0, scale=1, size=n_obs).cumsum() variable2 = n...
#%NASL_MIN_LEVEL 70300 # # (C) Tenable Network Security, Inc. # include('deprecated_nasl_level.inc'); include('compat.inc'); if (description) { script_id(63201); script_version("1.9"); script_set_attribute(attribute:"plugin_modification_date", value:"2022/04/11"); script_name(english:"RWCards Component for J...
<!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> </head> <body> <h1>Formularze</h1> <hr> <br> <br> <br> <aside> ...
#include "include/wifi.h" /*Description: * Function that performs http GET request for given parameters * * @Input: * - [const char*] host: web host * - [const char*] path: web path * * @Output: * - [void] Prints response to terminal * */ void http_get(const char *host, const char *path) { int sockfd;...
--- import { cn } from '@/lib/utils'; import type { SidebarNavItem } from '@/types'; import { Icon } from 'astro-icon/components'; type Props = { items: SidebarNavItem[]; }; const { items } = Astro.props; const { pathname } = Astro.url; --- { items.length ? ( <div class="w-full"> {items.map((item) => (...
--- comments: false title: 九州大学 システム情報科学府 情報理工学専攻 2020年度 情報理論 tags: - Kyushu-University --- # 九州大学 システム情報科学府 情報理工学専攻 2020年度 情報理論 ## **Author** Yu ## **Description** ### 【問 1】 下図は, 定常 $2$ 重マルコフ情報源 $S$ の状態遷移図である. 下記の設問に答えよ. <figure style="text-align:center;"> <img src="https://raw.githubusercontent.com/Myyura/the...
#include <stdlib.h> #include "Lista.h" typedef struct lista { int total; Aluno valores[MAX]; } Lista; Lista *criar() { Lista *l = (Lista *)malloc(sizeof(Lista)); if (l != NULL) l->total = 0; return l; } void limpar(Lista *l) { if (l != NULL) l->total = 0; } int inserirInicio(...
<template> <el-menu :default-active="selectedItem" class="nav-menu" active-text-color="#61ac85" @select="handleMenuSelect"> <div> <div class="nav-title nav-item">RevuSage</div> <el-menu-item index="1" class="nav-item"> <el-icon><House /></el-icon> &nbsp;&nbsp; <template #title>...
# SQL RIGHT JOIN KEYWORD La palabra clave `RIGHT JOIN` se utiliza para obtener todos los registros de la tabla de la derecha (segunda tabla declarada) y los registros coincidentes de la tabla de la izquierda (primer tabla declarada). ## Sintaxis ``` SELECT column_name(s) FROM table1 RIGHT JOIN table2 ON table1.colum...
import 'dart:io'; import 'package:camera/camera.dart'; import 'package:dotted_border/dotted_border.dart'; import 'package:fe_lab_clinicas_core/fe_lab_clinicas_core.dart'; import 'package:fe_lab_clinicas_self_service_cb/src/modules/self_service/documents/scan_confirm/documents_scan_confirm_controller.dart'; import 'pac...
import {APP_BASE_HREF} from '@angular/common'; import {async, ComponentFixture, TestBed} from '@angular/core/testing'; import {AppModule} from 'app/app.module'; import {OpenReqCreateFormComponent} from './open-req-create-form.component'; import {OpenRequestModule} from '../open-request.module'; describe('Open Req Crea...
package com.study.springboothyejin.aop; import com.study.springboothyejin.web.exception.CustomValidException; import org.aspectj.lang.ProceedingJoinPoint; import org.aspectj.lang.annotation.Around; import org.aspectj.lang.annotation.Aspect; import org.aspectj.lang.annotation.Pointcut; import org.springframework.stereo...
Newsgroups: comp.emulators.mac.executor From: questions@ardi.com Subject: comp.emulators.mac.executor mini-FAQ, Please read before posting Thank you for reading this introduction to comp.emulators.mac.executor. Last modified: November 9th 1999 What is this newsgroup? What articles are appropriate here? comp.emula...
package jatx.mybooks import android.content.Intent import android.net.Uri import android.os.Build import android.os.Bundle import android.os.Environment import android.provider.Settings import android.util.Log import androidx.activity.result.contract.ActivityResultContracts import androidx.appcompat.app.AppCompatActiv...
import { BadRequestException, Injectable } from '@nestjs/common'; import { InjectRepository } from '@nestjs/typeorm'; import { Creator } from './creator.entity'; import { In, Repository } from 'typeorm'; import { LimitArg, SortBy } from '../../utils/ArgsTypes'; import { CreatorDto } from './creator.dto'; import { Graph...
<div class="body-container"> <mat-card class="login-card"> <mat-card-header class="card-header"> <div class="row"> <div class="col-md-6 mb-5"> <a routerLink="/professor/create-account" mat-flat-button class="uni-btn-primary"> <mat-icon ...
import * as React from "react"; import { getApp, getApps, initializeApp } from 'firebase/app'; import { getAuth, indexedDBLocalPersistence, setPersistence, signInAnonymously, signInWithEmailAndPassword, User } from 'firebase/auth'; import * as EventEmitter from "events"; declare const port: { addListener(subject: ...
class Solution { func strStr(_ haystack: String, _ needle: String) -> Int { guard haystack.count >= needle.count else { return -1 } var lower = haystack.startIndex var upper = haystack.index( haystack.startIndex, offsetBy: needle.count - 1 ) while upp...
<!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>Mini chat</title> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstr...
import { createApp } from 'vue' import { Quasar, Notify, Dialog } from 'quasar' import { createPinia } from 'pinia' import '@quasar/extras/roboto-font-latin-ext/roboto-font-latin-ext.css' import '@quasar/extras/material-icons/material-icons.css' import '@quasar/extras/mdi-v6/mdi-v6.css' // import '@quasar/extras/mater...
#ifndef SCISL_COMMON_H #define SCISL_COMMON_H #ifndef SCISL_INT_PRECISION #define SCISL_INT_PRECISION int #endif #ifndef SCISL_FLOAT_PRECISION #define SCISL_FLOAT_PRECISION float #endif #include <string> #define SCISL_CAST_INT(var) (*(SCISL_INT_PRECISION*)(var)) #define SCISL_CAST_FLOAT(var) (*(SCISL_FLOAT_PRECISIO...
package sem.dataaccess; import sem.models.Car; import java.sql.*; import java.util.ArrayList; import java.util.List; public class DataAccess { public List<Car> GetCars() { List<Car> cars = new ArrayList<>(); try { Class.forName("org.postgresql.Driver"); String hostname = S...
import { Injectable, inject } from '@angular/core'; import { Observable } from 'rxjs'; import { HttpClient, HttpHeaders } from '@angular/common/http'; import { Product, ProductData } from '../interfaces/product'; @Injectable({ providedIn: 'root' }) export class ProductService { private httpClient = inject(HttpClie...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. */ public function up(): void { Schema::create('variaciones', function (Blueprint $table) { ...
import React, { useContext } from 'react' import Spinner from './Spinner' import { AppContext } from '../context/AppContext' const Blogs = () => { // Consume const { posts, loading } = useContext(AppContext); return ( <div className='w-11/12 h-full max-w-[630px] py-8 flex flex-col justify-center ...
import express from 'express'; import Todo from '../models/todo.js'; import User from '../models/user.js'; const router = express.Router(); // Get all records of Todo Collection router.get("/getAllTodoList", async (req, res) => { const getAllRecords = await Todo.find() res.send(getAllRecords) }) //create Todo rou...
package com.pramudiaputr.githubapp.ui.viewmodel import android.util.Log import androidx.lifecycle.LiveData import androidx.lifecycle.MutableLiveData import androidx.lifecycle.ViewModel import com.pramudiaputr.githubapp.model.ListUserResponse import com.pramudiaputr.githubapp.model.SearchResponse import com.pramudiaput...
/* Copyright 2017. All rights reserved. Computer Vision Group, Visual Computing Institute RWTH Aachen University, Germany This file is part of the rwth_mot framework. Authors: Aljosa Osep (osep -at- vision.rwth-aachen.de) rwth_mot framework is free software; you can redistribute it and/or modify it under the terms of...
import { ArticleFadeIn, RowProps } from '@past3lle/components' import { MediaWidths, setBackgroundOrDefault, setBackgroundWithDPI, setFlickerAnimation, upToLarge, upToMedium, upToSmall } from '@past3lle/theme' import { GenericImageSrcSet } from '@past3lle/types' import styled from 'styled-components' imp...
import { OpenAI } from "langchain/llms/openai"; import { createSqlAgent, SqlToolkit } from "langchain/agents/toolkits/sql"; import { SqlDatabase } from "langchain/sql_db"; import { DataSource } from "typeorm"; import * as dotenv from "dotenv"; import { SQL_PREFIX, SQL_SUFFIX } from "./prompt"; dotenv.config(); export...
package com.system.api.filter; import com.system.api.common.R; import com.system.api.util.JwtUtils; import com.fasterxml.jackson.databind.ObjectMapper; import jakarta.servlet.FilterChain; import jakarta.servlet.ServletException; import jakarta.servlet.http.HttpServletRequest; import jakarta.servlet.http.HttpServletRes...
<!doctype html> <html lang="pl"> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="description" content="{{ $description ?? 'Fundacja Głos Młodych'}}"/> <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests"> <title> @isset($title) ...
/* // // // //arquivo destinado apenas a estudo e refazer o curso do decola em flutter (ao termino sera excluido) //https://m3.material.io/develop/flutter // // import 'package:flutter/material.dart'; //import = importM + tab // void main(){ // int valor = 0; // runApp(MyApp(title: 'Ap ola mundo', valor: valor) /...
const swaggerDocument = { "openapi": "3.0.0", "info": { "title": "Digital Certificate Indexer API", "version": "1.0.0", "description": "API for indexing digital certificate data using Pinecone and Langchain." }, "paths": { "/certificates-free": { "post": { "summary": "Index a new d...
<?php namespace Transave\ScolaBookstore\Actions\Auth; use Carbon\Carbon; use Illuminate\Support\Arr; use Illuminate\Support\Facades\Notification; use Transave\ScolaBookstore\Http\Models\User; use Transave\ScolaBookstore\Helpers\ResponseHelper; use Transave\ScolaBookstore\Helpers\ValidationHelper; use Transave\ScolaB...
package com.lms.worldoflol.common import androidx.compose.animation.AnimatedVisibility import androidx.compose.animation.AnimatedVisibilityScope import androidx.compose.foundation.Image import androidx.compose.foundation.background import androidx.compose.foundation.clickable import androidx.compose.foundation.layout....
import copy import itertools import typing import ConfigSpace import numpy as np import pandas as pd import scipy.stats import sklearn.ensemble import sklearn.linear_model import sklearn.preprocessing class AbstractSelector: def fit( self, X: pd.DataFrame, y: pd.DataFrame, minima...
import { InvalidParamError } from '../../errors' import { EmailValidation } from './email-validation' import { EmailValidator } from '../../protocols/email-validator' const makeEmailValidator = (): EmailValidator => { // tslint:disable-next-line: max-classes-per-file class EmailValidatorStub implements EmailValida...
<?php namespace Database\Seeders; use Carbon\Carbon; use Illuminate\Database\Seeder; use Illuminate\Support\Facades\DB; class PretensionSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $pretensiones = [ ['pre_id' =>...
/* * Copyright 2002-2019 the original author or 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
import React from 'react' import styles from './button.module.scss' import FilterListIcon from '@mui/icons-material/FilterList' import AddIcon from '@mui/icons-material/Add' import KeyboardArrowRightIcon from '@mui/icons-material/KeyboardArrowRight' import { Close } from '@mui/icons-material' type Props = { text: st...
#!/usr/bin/python3 """ A function that returns an object (Python data structure) represented by a JSON string """ def from_json_string(my_str): """ Deserialize a JSON-formatted string and return the corresponding Python data structure. :param my_str: A JSON-formatted string. :return: A Python dat...
/* * * Copyright 2021-2023 Software Radio Systems Limited * * This file is part of srsRAN. * * srsRAN is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of * the License, or (at y...
import { createPortal } from 'react-dom'; import styled from 'styled-components'; import { ExitButton } from '../button/button'; import { FaXmark } from 'react-icons/fa6'; const StyledModal = styled.div` position: fixed; height: 100%; width: 100%; display: flex; align-items: center; justify-content: center...
import React from "react"; import Nazim from '../img/sahil.jpg' import ProgressBar from "@ramonak/react-progress-bar"; import { useSpring, animated } from "react-spring"; import resume from '../img/Sahilresume.pdf' function About() { const calc = (x, y) => [ -(y - window.innerHeight / 2) / 20, (x - window.inn...
// Requiring our models and passport as we've configured it const db = require("../models"); const passport = require("../config/passport"); module.exports = function (app) { // Using the passport.authenticate middleware with our local strategy. // If the user has valid login credentials, send them to the members...
/// @file /// @brief /// The @ref DesignPatternExamples_csharp.ILogger "ILogger" interface /// as used on all loggers in the @ref bridge_pattern "Bridge pattern". using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DesignPatternExamples_csharp...
// Copyright 2002 - 2008, 2010, 2011 National Technology Engineering // Solutions of Sandia, LLC (NTESS). Under the terms of Contract // DE-NA0003525 with NTESS, the U.S. Government retains certain rights // in this software. // // Redistribution and use in source and binary forms, with or without // modification, are ...
import React, { useRef } from "react"; import "./Compose.css"; import { useDispatch, useSelector } from "react-redux"; import { sendMail, updateSentbox } from "../Redux/EmailSlice"; const Compose = () => { const dispatch = useDispatch(); const userID = useSelector((state) => { return state.login.user; }); ...
import 'package:flutter/material.dart'; import 'package:peliculas_app_flutter/providers/movies_provider.dart'; import 'package:peliculas_app_flutter/widgets/movie_search_delegate.dart'; import 'package:peliculas_app_flutter/widgets/widgets.dart'; import 'package:provider/provider.dart'; class HomeScreen extends Statel...
/* * This is a manifest file that'll be compiled into application.css, * which will include all the files listed below. * * Any CSS and SCSS file within this directory, lib/assets/stylesheets, * vendor/assets/stylesheets, or vendor/assets/stylesheets of plugins, if any, * can be referenced here using a relative p...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import { StakingBase } from "../bases/StakingBase.t.sol"; import "forge-std/Test.sol"; contract DelegatingTests is StakingBase { // Test that a staked token is delegated to self by default. function testDelegating__DelegateToSelfByDefault() public...
// // NativeAppModule.swift // NativeModules // // Created by Dhruv Parmar on 12/06/22. // import Foundation @objc(NativeAppModule) class NativeAppModule : NSObject { //When you want to execute swift code then call this function @objc func simpleFunction(){ //Add your swift code here NSLog("%@", "Ca...
// @ZBS { // *MODULE_NAME Simple Hash // *MASTER_FILE 1 // +DESCRIPTION { // A simple, fast, and decoupled hash table using string keys. // } // *PORTABILITY win32 unix // *REQUIRED_FILES zhashtable.cpp zhashtable.h zhashtyped.h zendian.cpp zendian.h // *VERSION 2.0 // +HISTORY { // 1.2 KLD fixed a bug on s...
import { palette } from 'lib/styles/palette'; import transitions from 'lib/styles/transitions'; import React, { useEffect } from 'react'; import styled from 'styled-components'; import ModalPortal from './ModalPortal'; interface IModalInnerStyled { width: number; height: number; isModal: boolean; } interface Mo...
import React, { useState } from "react"; import axios from "axios"; import crossIcon from "../../assets/images/cross_icon.png"; /** * This is the EditFormChat modal that allows users to edit the topic of a resource * @param {{onClose: function, topics: Array<string>, getThreads: function, currentTopic: string, chat...
import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; public class MultiplicationTableThreads { public static void main(String[] args) { ExecutorService executor = Executors.newFixedThreadPool(2); Runnable task1 = () -> { System.out.println("Thread 1 (5's t...
--- title: "DLL 2021, R section" author: - "mesako" - "Margaret" - "Samson" - "Zac" - "darachm" date: "Typeset on 2021-06-18" output: bookdown::gitbook: css: style.css config: toc: before: | <li><a href="./">DLL 2021 R workshops</a></li> edit: https://github...