text stringlengths 184 4.48M |
|---|
package test.task.library.config;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.authentication.AuthenticationManager;
import org.springframework.security... |
import { ethers } from "ethers";
const network = "testnet";
async function walletConnectFcn() {
// ETHERS PROVIDER
const provider = new ethers.providers.Web3Provider(window.ethereum, "any");
// SWITCH TO HEDERA TEST NETWORK
console.log(`- Switching network to the Hedera ${network}...🟠`);
let chainId;
if (ne... |
/**
* EasyBeeGo
* @author: Tinymeng <666@majiameng.com>
*/
package controllers
import (
"easybeego/app/constant"
"easybeego/app/dto"
"easybeego/app/models"
"easybeego/app/services"
"easybeego/utils"
"easybeego/utils/common"
"github.com/gookit/validate"
)
var Dept = new(DeptController)
type DeptController ... |
import "../../firebase.config.admin";
import slugify from "slugify";
import admin from "firebase-admin";
// Assuming admin is already initialized elsewhere if this file isn't the first entry
export const storage = admin.storage();
/**
* Deletes a file from the specified bucket
* @param bucketName The name of the bu... |
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
/* 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... |
package store
import (
"errors"
"golang.org/x/crypto/bcrypt"
)
// HashPassword will take a string and return a string copy of a bcrypt
// hashed password.
func HashPassword(plaintextPassword string) (string, error) {
hashedPassword, err := bcrypt.GenerateFromPassword(
[]byte(plaintextPassword),
bcrypt.Default... |
<template>
<v-list class="pa-0">
<v-subheader class="d-flex justify-space-between">
<div class="overline">Menu</div>
<Version />
</v-subheader>
<v-divider></v-divider>
<template v-for="(item, key) in items">
<v-list-group
v-if="hasChild(item)"
:key="key"
no-ac... |
import {inject, injectable} from 'inversify';
import {DocumentType, types} from '@typegoose/typegoose';
import {OfferServiceInterface} from './offer-service.interface.js';
import {Component} from '../../types/component.types.js';
import {LoggerInterface} from '../../common/logger/logger.interface.js';
import {OfferEnti... |
#include "lists.h"
/**
* delete_dnodeint_at_index - deletes the node at index
* @head: double pointer
* @index: index of the node that should be deleted
* Return: 1 or -1
*/
int delete_dnodeint_at_index(dlistint_t **head, unsigned int index)
{
dlistint_t *current;
unsigned int i;
if (head == NULL || *head == ... |
from django.contrib.auth import authenticate, login, logout
from rest_framework import status
from rest_framework.response import Response
from rest_framework.views import APIView
from .serializers import CustomUserSerializer, RegisterUserSerializer
from rest_framework import generics
from rest_framework.authtoken.mode... |
import React from 'react';
import { Text, View, Image, Linking } from 'react-native';
import Card from './Card';
import CardSection from './CardSection';
import Button from './Button';
const AlbumDetail = ({ album }) => {
const { title, artist, thumbnail_image, image, url } = album;
return (
<Card>
<CardSe... |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server... |
<?php
namespace B0bm0rane\PhpLibrary\Db;
use Exception;
use PDO;
/**
* Connexion à la base de données (SINGLETON)
*/
class DbConnect
{
private static array $config;
/**
* Constructeur privé (la classe n'est pas instanciable)
*/
private function __construct() {}
/** @var PDO $instance... |
"use client";
import { FC, useState } from "react";
import Button from "./Button";
import { addFriendValidator } from "@/lib/validations/add-friend";
import axios, { AxiosError } from "axios";
import { z } from "zod";
import { useForm } from "react-hook-form";
import { zodResolver } from "@hookform/resolvers/zod";
in... |
//
// ChatsView.swift
// ChatGPTClient
//
// Created by Artem Shishkin on 22.03.2023.
//
import SwiftUI
import Combine
struct ChatView: View {
@State private var messageText = ""
@State private var saveConversationAlert = false
@State private var conversationName = ""
@State private var settingPage... |
import json
import os
input_path = "./data/ACE05-E/sentence-level_test.json"
output_path = "./data/ACE05-E/ED_E_gold.json"
with open(input_path, 'r') as f:
lines = f.readlines()
EVENT_ID = 0
with open(output_path, 'w') as f:
for line in lines:
line = json.loads(line)
doc_id = line['doc_id']
... |
package libs::QRHandler;
#
##
##########################################################################
# #
# Google Authenticator Automater #
# ... |
import React from "react";
import "./rightbar.css";
import { Users } from "../../dummyData";
import Online from "../online/Online";
export default function Rightbar({profile}) {
const HomeRightbar=()=>{
return(
<>
<div className="birthdayContainer">
<img className="birthdayImg" src="/tools... |
package com.controller;
import java.io.File;
import java.math.BigDecimal;
import java.net.URL;
import java.text.SimpleDateFormat;
import com.alibaba.fastjson.JSONObject;
import java.util.*;
import org.springframework.beans.BeanUtils;
import javax.servlet.http.HttpServletRequest;
import org.springframework.web.context.... |
# RxJS 测试…我的可观察对象工作正常吗?
> 原文:<https://levelup.gitconnected.com/rxjs-testing-is-my-observable-working-correctly-9842bbe0a571>
## RxJS 中的单元测试,所有你需要知道的!

作者:FAM
今天的故事是关于测试的😈
在任何软件开发过程中,测试都是必须知道的。它保证了整个系统仍在工作,并且在开发新功能或修复 bug 时没有发生退化。
当然,如果我们对每个新实现的特性进行测试。否则,防止回归和系统错误的整个逻... |
package com.cybrarist.islamquiz.repositories
import androidx.annotation.WorkerThread
import com.cybrarist.islamquiz.database.games.Game
import com.cybrarist.islamquiz.database.games.GameDao
import kotlinx.coroutines.flow.Flow
import javax.inject.Inject
class GameRepository @Inject constructor (private val game_dao: G... |
const express = require('express');
//import ApolloServer
const { ApolloServer} = require('apollo-server-express');
// const path = require('path');
//import our typeDefs and resolvers
const { typeDefs, resolvers} = require('./schemas');
const db = require('./connection');
const {authMiddleware} = require('./utils/aut... |
import { useState, useContext, useRef } from "react";
import { GlobalContext } from "../context/GlobalContext";
import ViewReport from "./ViewReport";
import {
Flex,
Text,
Button,
IconButton,
useColorModeValue,
Menu,
MenuButton,
MenuList,
MenuItem,
useDisclosure,
Tag,
TagLabel,
Modal,
ModalO... |
/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2013-2016 OpenFOAM Foundation
\\/ M anipulation |
--------... |
import * as React from 'react';
import { Form, Input, Row, Col, Select, Divider, DatePicker } from 'antd';
import moment from 'moment';
import locale from 'antd/es/date-picker/locale/zh_CN';
import 'moment/locale/zh-cn';
// import CommonUtils from 'src/utils/commonUtils';
moment.locale('zh-cn');
const FormItem = Form.... |
<template>
<v-container grid-list-xs>
<v-layout row wrap>
<v-flex xs12>
<v-container grid-list-xs>
<v-layout row wrap justify-space-between>
<v-flex md3 xs12 mb-5>
<disc-table :datas="most" :answers="selectedMost" :key="refreshKey"></disc-table>
</v-fl... |
<?php
namespace App\Http\Controllers\Api;
use App\Http\Controllers\Controller;
use App\Http\Requests\StoreCycleRequest;
use App\Http\Requests\UpdateCycleRequest;
use App\Models\Cycle;
use Spatie\QueryBuilder\AllowedFilter;
use Spatie\QueryBuilder\QueryBuilder;
class CycleController extends Controller
{
/**
... |
/* -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- */
/* vim: set sts=2 sw=2 et tw=80: */
"use strict";
const { AddonTestUtils } = ChromeUtils.import(
"resource://testing-common/AddonTestUtils.jsm"
);
const { AddonManager } = ChromeUtils.import(
"resource://gre/modules/AddonManager.jsm"
);
const { AboutN... |
import { AxiosError } from 'axios';
import { SellingPartnerApiAuthError } from './error';
import { axios } from './utils/axios';
export class AccessTokenFactory {
clientId;
clientSecret;
refreshToken;
scopes;
value;
expirationDate;
constructor(parameters) {
this.clientId = parameters... |
div.single-attachment(
[class.deprecated]="attachment.get('is_deprecated')",
*ngIf="attachment.get('id')",
)
.attachment-name
tg-attachment-link([attachment]="attachment", (preview)="preview.emit($event)")
tg-svg(svg-icon="icon-attachment")
span {{attachment.get('name')}}
... |
import fs from 'fs-extra';
import { exec, spawn, SpawnOptions } from 'child_process';
import path from 'path';
import { Driver, PackageManager } from './types';
import { dirname, join } from 'path';
import { fileURLToPath } from 'url';
import gradient from 'gradient-string';
import chalk from 'chalk';
export function ... |
import * as React from "react";
import {
AppBar,
Card,
CardContent,
CardHeader,
Grid,
Link,
makeStyles,
Toolbar,
Typography,
} from "@material-ui/core";
import {Hrefs} from "lib/Hrefs";
const useStyles = makeStyles((theme) => ({
brand: {
marginRight: theme.spacing(4),
},
brandColor: {
c... |
<template>
<div class="app-container">
<el-form label-width="120px">
<el-form-item label="Banner名称">
<el-input v-model="banner.title" />
</el-form-item>
<el-form-item label="Banner排序">
<el-input-number v-model="banner.sort" controls-positio... |
import time
#!/usr/bin/env python
import cv2
import numpy as np
import json
from typing import List
from Models.MotorCommand import MotorCommand
import websocket
import threading
from simple_pid import PID
FRAME_W = 1920 // 3
FRAME_H = 1080 // 3
WEBSOCKET_SERVER_URL = "ws://192.168.50.10:8000/adam-2.7/off-board"
c... |
from src.feature_engineering.exponential_smoothing_numba import ExponentialSmoother
from src.load_dataframe.data_loader import DataLoader
import numpy as np
import pandas as pd
from datetime import timedelta, datetime
from typing import Iterator, List
import time
from src.pipelines.pipeline_elements.filter import Filt... |
import java.util.ArrayList;
public class SimpleCollection {
private String name;
private ArrayList<String> elements;
public SimpleCollection(String name) {
this.name = name;
this.elements = new ArrayList<>();
}
public void add(String element) {
this.elements.add(element);... |
import React from 'react';
import axios from 'axios';
import { useState } from 'react';
import { useEffect } from 'react';
function Trending() {
const [trending, setTrending] = useState([]);
const url = 'https://api.coingecko.com/api/v3/search/trending';
useEffect(() => {
axios.get(url).then(res => {
setTren... |
package org.anime_game_servers.gi_lua.script_lib.handler.entites
import org.anime_game_servers.gi_lua.script_lib.GroupEventLuaContext
/**
* Handler for scriptlib functions used in GroupScripts related to Gadgets.
* These are only callable from a gadget controller context.
*/
interface GroupGadgetHandler<GroupEvent... |
#!/usr/bin/env Rscript
#################################################################
# #
# This script takes a tab-separated text file as #
# input, performs a survival test to give a p value, #
# produces a HR and a kapl... |
import { async } from 'citation-js'
import React from 'react'
import { useQuery } from 'react-query'
import axios from 'axios';
import { Chart } from 'primereact/chart';
import PieChartData from '../Analytics/PieChartData';
import LineChart from '../Analytics/LineChart';
function Analytics() {
var department = []... |
import { Injectable } from '@angular/core';
import { BehaviorSubject, debounceTime, Subject } from 'rxjs';
import { Character, SlormancerCharacterUpdaterService, valueOrDefault, valueOrNull } from 'slormancer-api';
import { environment } from '../../../../environments/environment';
import { Build } from '../model/buil... |
import 'dart:io';
import 'package:corelate/features/breathwork/four_7_8/four_7_8.dart';
import 'package:health/health.dart';
import 'package:riverpod_annotation/riverpod_annotation.dart';
import '../../../services/provider.dart';
import '../../../models/breathwork_model.dart';
import '../../../models/breathwork_type.... |
<h1 align="center">:rocket: Mongoose Paranoid Plugin :rocket:</h1>
<div align="center">
<sub>Built with ❤︎ by
<a href="https://github.com/euqen">Eugene Shilin</a> and
<a href="https://github.com/euqen/mongoose-paranoid-plugin/graphs/contributors">
contributors
</a>
</div>
<br />
This plugin allows to appl... |
import React from 'react';
export const Icon: React.FC<{
width?: string;
height?: string;
viewBox?: string;
className?: string;
fill?: string;
stroke?: string;
d: string;
}> = ({
width = '24',
height = '24',
viewBox = '0 0 24',
className,
stroke = 'currentColor',
fil... |
import { useEffect, useState } from 'react'
import Box from '@mui/material/Box'
import Divider from '@mui/material/Divider'
import { Region, Family, SpeciesResult } from 'types/Birdism'
import { getAllRegions, getAllFamilies, getSpecies } from 'services'
import SearchResult from 'components/SearchResult'
import SearchE... |
import "./globals.css";
import NextTopLoader from "nextjs-toploader";
import Footer from "@/components/shared/Footer";
import Navbar from "@/components/shared/Navbar";
import Contact from "@/components/shared/Contact";
export async function generateMetadata() {
const res = await fetch(process.env.BASE_URL + "SiteMet... |
import { useReducer } from 'react';
import './style.scss';
// type CounterAction = {
// type: 'INCREMENT' | 'DECREMENT' | 'SET';
// payload?: number;
// };
type BasicCounterAction = {
type: 'INCREMENT' | 'DECREMENT';
};
type ResetCounterAction = {
type: 'SET';
payload: number;
};
type BetterCounterAction ... |
import axios from "../../utility/axios";
import React, { useEffect, useState } from 'react'
import { useNavigate, useParams } from 'react-router-dom';
import './questionDetail.css'
import AnswerQuestion from '../../components/AnswerQuestion/AnswerQuestion';
import Answer from '../../components/answers/Answers';
import ... |
/**
* request 网络请求工具
* 更详细的 api 文档: https://github.com/umijs/umi-request
*/
import { extend } from 'umi-request';
import { message } from 'antd';
import { ResponseData } from '@/utils/request';
const codeMessage = {
200: '服务器成功返回请求的数据。',
201: '新建或修改数据成功。',
202: '一个请求已经进入后台排队(异步任务)。',
204: '删除数据成功。',
400:... |
<div class="row justify-content-sm-center">
<div class="col-12">
<div class="card border-0 shadow">
<form [formGroup]="form" autocomplete="off">
<div class="card-header border-0">
<h5 class="card-title mb-0 py-2">{{ title }}</h5>
</div>
<div class="card-body">
<di... |
import React, { useState, useEffect } from 'react';
import { View, Text, FlatList, Image, TouchableOpacity } from 'react-native';
import DropDownPicker from 'react-native-dropdown-picker';
import { IconButton } from 'react-native-paper';
import axios from 'axios';
const App = () => {
const [data, setData] = useState... |
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);
namespace Magento\Reports\Block\Adminhtml\Shopcart\Abandoned;
use Magento\Quote\Model\Quote;
use Magento\TestFramework\Helper\Bootstrap;
use Magento\Framework\View\LayoutInterface;
/**
* ... |
<?php
namespace App\Services;
use App\Enums\StatusId;
use App\Repositories\RoleRepository;
use App\Repositories\StatusRepository;
use App\Repositories\UserRepository;
use App\Validators\LoginValidator;
use Carbon\Carbon;
use Illuminate\Http\Response;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Facades... |
# Assignment 3 – Network analysis
The portfolio for __Language Analytics S22__ consists of 5 projects (4 class assignments and 1 self-assigned project). This is the __third assignment__ in the portfolio.
## 1. Contribution
The initial assignment was made partly in collaboration with others from the course, but the fi... |
/*
* Copyright (C) 2011-2013 Intel Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, mer... |
import React, { useState, useEffect } from "react";
import { Wrapper } from "./home.styles";
import { Link } from "react-router-dom";
import axiosInstance from "../../axios";
import { Table } from 'reactstrap';
import Moment from 'moment';
import MyImage from "../image/image";
const Home = ({ userEmail, }) => {
co... |
import { Injectable } from '@angular/core';
import { catchError } from 'rxjs/operators';
import { HttpClient, HttpHeaders, HttpErrorResponse } from '@angular/common/http';
import { Observable, throwError } from 'rxjs';
import { map } from 'rxjs/operators';
//** Declaring the api url that will provide data for the clie... |
/**
* CS 2003 - Lab 1
* Code to find the maximum integer in a given file
* NOTE:
* there are bugs including those causing compilation errors and
* resulting in runtime logical problems
*
* @author Kasey Mills
* @version 1
* @since 08-30-2017
*/
import java.util.Scanner;
import java.util.Vector;
import java.i... |
import React, { useContext } from "react";
import Modal from "../Modal/Modal";
import Board from "../Board/Board";
import PieceMenu from "../PieceMenu/PieceMenu";
import GameContext from "../../context/GameContext";
import useModal from "../../hooks/useModal";
import useBoardLogic from "../../hooks/useBoardLogic";
... |
.. _hw3:
Problem Set 3
.. _distance:
Distance
----------------
Write a function called s1() that prompts the user to enter two points on the Cartesian plane with different coordinates and calculates the slope between the two points and the distance between the two points. The formulas for both of these quantities... |
@set('isPaginated', Array.isArray(data?.rows) && data.currentPage)
@set('rows', isPaginated ? data.rows : data)
@set('alignments', {
left: 'text-left',
center: 'text-center',
right: 'text-right'
})
<div class="flex flex-col mb-3">
<div class="overflow-x-auto sm:-mx-6 sm:px-6 lg:-mx-8 lg:px-8">
<div class=... |
<?php
/**
* The header for our theme.
*
* This is the template that displays all of the <head> section and everything up until <div id="content">
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package Fooding
*/
?><!DOCTYPE html>
<html <?php language_attributes()... |
import numpy as np
from typing import Tuple, TypeVar, Optional, List, Tuple
from copy import deepcopy
"""
Geometry functions.
"""
Point = TypeVar("Point", Tuple, List)
Line = TypeVar("Line", List[Tuple], List[List])
Circle = TypeVar("Circle", Tuple, List) # x, y ,radius
class Polygon:
"""
Convex Polygon,... |
using DSharpPlus.Entities;
using DSharpPlus.SlashCommands;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Net.Http;
using System.Security.Principal;
using System.Threading.Tasks;
using UPBot.UPBot_Code;
using UPBot.UPBot_Code.DataClasses;
namespace UPBot {
/// <summary>
/// Цe... |
package com.karrar.marvelheroes.data.marvelResponse
import com.google.gson.annotations.SerializedName
data class MovieResponse(
@SerializedName("id")
val id: Int?,
@SerializedName("title")
val title: String?,
@SerializedName("release_date")
val releaseDate: String?,
@SerializedName("cover... |
/**
* Initiates canvas scrolling if current cursor point is close to a border.
* Cancelled when current point moves back inside the scrolling borders
* or cancelled manually.
*
* Default options :
* scrollThresholdIn: [ 20, 20, 20, 20 ],
* scrollThresholdOut: [ 0, 0, 0, 0 ],
* scrollRepeatTimeout: 15,
* ... |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Homepage</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- link to an bootstrap libr... |
#include <bits/stdc++.h>
using namespace std;
class TrieNode{
public:
char data;
TrieNode* children[26]; // 26 alphabets
bool isTerminal;
TrieNode(char data){
this->data = data;
for(int i=0;i<26;i++){
children[i] = NULL;
}
... |
@extends('layouts.auth')
@section('content')
<div class="container mx-auto px-5 md:px-0">
<div class="flex flex-col w-full sm:w-2/3 md:w-2/3 lg:w-1/2 xl:w-1/2 bg-white rounded-2xl p-12 my-36 mx-auto">
<a href="/" class="text-center mb-14">
<h1 class="text-accentCyan font-semibol... |
import { defineStore } from 'pinia'
import { DateTime } from 'luxon';
import _ from "lodash";
export const useStore = defineStore('store', {
state: () => ({
currentSelectSearch:null,
schemas: [],
notifications:[],
user: null
}),
actions: {
setSchemas(schemas){
... |
/*
* dedupv1 - iSCSI based Deduplication System for Linux
*
* (C) 2008 Dirk Meister
* (C) 2009 - 2011, Dirk Meister, Paderborn Center for Parallel Computing
* (C) 2012 Dirk Meister, Johannes Gutenberg University Mainz
*
* This file is part of dedupv1.
*
* dedupv1 is free software: you can redistribute it and/o... |
const express = require("express")
const router = express.Router()
const User = require("../models/User.js")
const { body, validationResult } = require("express-validator")
var bcrypt = require("bcryptjs")
var jwt = require("jsonwebtoken")
router.post("/createuser", [
body("name", "Enter a valid name").isLength({ ... |
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="description" content="多彩炫酷环形时钟效果">
<meta name="description" content="">
<meta name="keywords" content="web前端,css,jQuery,javascript,demo页面">
<meta name="author" content=... |
import 'dart:developer';
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
import 'package:provider/provider.dart';
import 'package:shopapp/Providers/category_prov.dart';
import '../Widgets/Favourate_Widgets.dart';
class FavoritesScreen extends StatefulWidget {
const FavoritesScreen(... |
export class Slug {
public value: string;
private constructor(value: string) {
this.value = value;
}
static create(value: string) {
return new Slug(value);
}
// Receives a string and returns a Slug instance
// Example: "Hello World " => "hello-world"
static createFromText(text: string) {
... |
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using DafnyCore.Verifier;
using Microsoft.Boogie;
using Microsoft.Dafny.ProofObligationDescription;
using VC;
namespace Microsoft.Dafny;
public record VerificationTaskResult(IVerificationTask Task, VerificationRunResult Result);... |
//Array Methods
/*xxxx - Manipulating Array with push()
- You can append data to the end of an array with the push function
*/
var listOfItems = ["onion, sugar, milk"];
listOfItems.push(["milk, beverage"]);
//console.log(listOfItems);
var myItems = ["Books", "Pen", "Ipod"];
myItems.push(["Laptop", "Charger", "Sta... |
<?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('users', function (Blueprint $table) {
... |
import React from 'react';
import Swal from 'sweetalert2';
import './Logout.css';
import { useTranslation } from 'react-i18next';
const Logout = ({ setIsAuthenticated }) => {
const { t } = useTranslation();
const handleLogout = () => {
Swal.fire({
icon: 'question',
title: t('logout.confirm_title'),... |
import { NavLink as RouterNavLink } from "react-router-dom";
import {
Container,
Dropdown,
Navbar,
Nav,
NavDropdown,
NavItem,
} from "react-bootstrap";
import {
AuthenticatedTemplate,
UnauthenticatedTemplate,
} from "@azure/msal-react";
import "./NavBar.css";
import { AppUser, useAppContext } from "./Ap... |
import 'package:bloc/bloc.dart';
import 'package:equatable/equatable.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:hh_express/app/setup.dart';
import 'package:hh_express/models/delivery_info/deliery_info_model.dart';
import 'package:hh_express/models/pagination/pagination_model.dart';
import '... |
import { useEffect, useState } from 'react'
import { getRequestURL } from '../../rest/utils'
import { Button, FormControl, InputLabel, MenuItem, Select, TextField } from '@mui/material'
import getFormattedAnswer from './ConverterUtils'
const Converter = () => {
const [currencyList, setCurrencyList] = useState(null)
... |
import 'package:flutter/material.dart';
import 'package:prateekthakur/pages/homepage.dart';
void main(List<String> args) {
runApp(const App());
}
class App extends StatelessWidget {
const App({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Prateek Thakur',
... |
<template lang="pug">
.curso-main-container.pb-3
BannerInterno
.container.tarjeta.tarjeta--blanca.p-4.p-md-5.mb-5
.titulo-principal.color-acento-contenido
.titulo-principal__numero
span 2
h1 Herramientas para creación de interfaz de usuario
.bloque-texto-g.color-acento-botones.inv01.p-3... |
import { ImageBackground, StyleSheet, Text, View, TouchableOpacity, Image, FlatList, RefreshControl, ToastAndroid, ScrollView } from 'react-native'
import React, { useEffect, useState, useCallback } from 'react'
import { DATABASE } from '../../FirebaseConfig';
import { get, ref, remove, set } from "@firebase/database";... |
---
title: "Lab 2: Sharing Your Work"
format: html
editor: visual
---
## Lab Introduction
This document accompanies the Lab 2 description on our course website.
## Lab Tasks
1. Link your computer to your Github account following the instructions in our lab guide.
2. Create a Quarto Pub account following the inst... |
import { useDispatch } from 'react-redux';
import { FormBtn, FormLabel, FormRegistration } from './Registration.styled';
import { fetchAddNewUser } from 'redux/fetches';
import { addNewUser } from 'redux/Slices/UsersSlice';
import { ToastContainer, toast } from 'react-toastify';
import 'react-toastify/dist/ReactToastif... |
import { PrismaClient } from "@prisma/client";
import { authTokenMiddleware } from "../../../../public/utils/authTokenMiddleware";
const prisma = new PrismaClient();
export default async (req, res) => {
if (req.method === "PUT") {
authTokenMiddleware(req, res, async () => {
const { id } = req.query;
... |
<?php
namespace App\Livewire\Pages\Rawmaterial\Components\Receive;
use App\Models\MaterialReport;
use App\Models\MaterialTnx;
use App\Models\RawMaterial;
use App\Models\ReceiveMaterial;
use Illuminate\Support\Facades\Storage;
use Livewire\Attributes\On;
use Livewire\Attributes\Rule;
use Livewire\Features\SupportFileU... |
import React, { useState } from "react";
import styled from "styled-components";
import { TouchableWithoutFeedback, Keyboard } from "react-native";
import AuthButton from "../../components/AuthButton";
import AuthInput from "../../components/AuthInput";
import useInput from "../../hooks/useInput";
import { Alert } from... |
import { Component, OnInit } from '@angular/core';
import { DynamicDialogConfig, DynamicDialogRef } from 'primeng/dynamicdialog';
import { NgxSpinnerService } from 'ngx-spinner';
import { FamiliaService } from '../../services/familia.service';
import { EmpresaService } from '../../../shared/services/empresa.service';... |
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { HttpClientModule, HTTP_INTERCEPTORS } from '@angular/common/http';
import { RouterModule } from '@angular/router';
import { AppComponent } fro... |
package mx.edu.utez.saem.controller.doctor;
import lombok.AllArgsConstructor;
import mx.edu.utez.saem.config.ApiResponse;
import mx.edu.utez.saem.controller.doctor.dto.DoctorDto;
import mx.edu.utez.saem.controller.doctor.dto.ChangeDocPasswordDto;
import mx.edu.utez.saem.service.doctor.DoctorService;
import org.springf... |
<?php
/**
* ContactForm class.
* ContactForm is the data structure for keeping
* contact form data. It is used by the 'contact' action of 'SiteController'.
*/
class ContactForm extends CFormModel
{
public $name;
public $email;
public $subject;
public $body;
public $verifyCode;
/**
* D... |
#ifndef ANDROID_SPEECH_PARSER_BASE_H
#define ANDROID_SPEECH_PARSER_BASE_H
#include <stdint.h>
#include <stdbool.h>
#include <string.h>
#include "SpeechParserType.h"
namespace android {
/*
* class
*/
class SpeechParserBase {
public:
virtual ~SpeechParserBase() {}
/**
* get in... |
{% capture configScreen %}
1921=>visible,
1920=>widescreen,
1480=>desktop,
1200=>laptop,
992=>notebook,
768=>tablet,
576=>landscape,
481=>portrait,
361=>mobile,
1=>mobile-small
{% endcapture %}
{% capture configSwiper %}
auto-Height,
autoplay,
centered-Slide... |
<%@page import="java.util.ArrayList"%>
<%@ page import="com.jai.*" %>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="ISO-8859-1">
<title>MyFacebook</title>
<meta charset="utf-8">
<meta name="viewport" content="widt... |
const mongoose = require("mongoose");
const listingSchema = new mongoose.Schema(
{
title: {
type: String,
required: true,
},
description: {
type: String,
required: true,
},
address: {
type: String,
required: true,
},
regularPrice: {
type: Number,... |
import React, { useState, useRef, useEffect } from "react";
import { FaBars, FaTwitter } from "react-icons/fa";
import { links, social } from "./data";
import logo from "./logo.svg";
const Navbar = () => {
const [showLink, setShowLink] = useState(false);
const linksContainerRef = useRef(null);
const linksRef = ... |
package br.com.felipe.validajwt.adapter.mapper;
import static org.junit.jupiter.api.Assertions.assertDoesNotThrow;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertThrows;
import static org.junit.jupiter.api.Assertions.assertTrue;
import java.math.BigDe... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.