text
stringlengths
184
4.48M
import { Router, ActivatedRoute } from '@angular/router'; import { Component, OnInit } from '@angular/core'; import { FormBuilder, FormGroup, Validators } from '@angular/forms'; import { UserService } from '../services/user.service'; import { User } from '../shared/models/User'; @Component({ selector: 'app-login', ...
<!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"> <link rel="stylesheet" href="styles.css"> <link rel="stylesheet" href="color.css"> <title>Style Guide for We...
package pokemon import ( "errors" "strings" ) type Type int const ( Normal Type = iota Fire Water Electric Grass Ice Fighting Poison Ground Flying Psychic Bug Rock Ghost Dragon Dark Steel ) func (t Type) String() string { return [...]string{"Normal", "Fire", "Water", "Electric", "Grass", "Ice", ...
import { useState } from "react"; import "./ExpenseItem.css" import ExpenseDate from "./ExpenseDate"; import Card from "../UI/Card"; import { FaTrash, FaEdit } from 'react-icons/fa'; import DeleteConfirmation from "../UI/DeleteConfirmation"; import EditConfirmation from "../UI/EditConfirmation"; const ExpenseItem = ...
import React, { Component } from "react"; import PatientService from "../services/PatientService"; import { Link } from "react-router-dom"; import '../css/Listpatient.css'; import { NavBarAdmin } from "../NavBarAdmin"; export class ListPatientComponent extends Component { constructor(props) { super(props);...
// Product Sum // Write a function that takes in a "special" array and returns its product sum. // A "special" array is a non-empty array that contains either integers or other // "special" arrays. The product sum of a "special" array is the sum of its // elements, where "special" arrays inside it are summed themselves...
package org.scratch.game.service; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.scratch.game.config.ConfigProperties; import org.scratch.game.domain.GameResult; import org.scratch.game.domain.LostGameResult; import org.scratch.game.domai...
package com.example.myandroidapplication import androidx.test.espresso.Espresso.onView import androidx.test.espresso.action.ViewActions.click import androidx.test.espresso.action.ViewActions.typeText import androidx.test.espresso.assertion.ViewAssertions.matches import androidx.test.espresso.matcher.ViewMatchers.isDis...
import { useState, useCallback, useContext } from "react"; import { useRouter } from 'next/router' import Editor from "./Editor"; import Preview from "./Preview"; import Button from "../Button"; import FirebaseService from "../../data/services/FirebaseService"; import { AppContext } from "../contexts/app_context"; impo...
using Commons.Optimization.Evaluator; using ISILab.AI.Optimization.Terminations; using GeneticSharp.Domain; using GeneticSharp.Domain.Chromosomes; using GeneticSharp.Domain.Crossovers; using GeneticSharp.Domain.Mutations; using ISILab.AI.Optimization.Populations; using GeneticSharp.Domain.Reinsertions; using ISILab.AI...
package com.example.gymrattrial4; import android.content.Context; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; import java.util.ArrayList; import java.util.concurrent.TimeoutException; public class ChatDatabaseHelper extends SQLiteOpe...
<template> <div class="tabs"> <draggable v-bind="dragOptions" @start="drag = true" @end="drag = false"> <el-tag v-for="(item, index) in tags" :key="item.path" :closable="item.name !== 'home'" :effect="$route.name === item.name ? 'dark' : 'plain'" @click="changeMenu(item, index)" @close="handleClose(item, in...
package training.v3b.task_38; import java.io.BufferedReader; import java.io.File; import java.io.FileReader; import java.io.IOException; import java.util.ArrayDeque; import java.util.Deque; public class Task38tl { private static final int[][] DELTA = new int[][]{ {2, 1}, {1, 2}, ...
define('lodash/isArguments', ['exports', 'lodash/_baseIsArguments', 'lodash/isObjectLike'], function (exports, _lodash_baseIsArguments, _lodashIsObjectLike) { /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = o...
import React, { useRef, useMemo, useState } from 'react'; import JoditEditor from 'jodit-react'; const ReactTextEditor = ({ props }) => { const [desc, setDesc] = useState(''); const editor = useRef(); const config = useMemo( () => ({ placeholder: 'Start Writing here', height: '450px', width:...
#' @param AggTAD Aggregated TAD object to plot #' @param maxval integer representing the maximum value to plot (essentialy sets the top of the zrange) #' @param cols color palette for plotting #' @param title title of the plot ### Define a function that builds aggregate TADS plotAggTAD <- function(AggTAD,maxval = 1000...
<?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('db_user', function (Blueprint $table) { ...
import dayjs from "dayjs"; import create from "zustand"; import { tokenList } from "./useSellStore"; import type { PurchaseTime } from "./usePurchaseStore"; import type { Token } from "./useSellStore"; export type TargetToken = Token & { percent: number }; export type Position = { id: number; token: Token; to...
# MathXF [![license](https://badgen.net/github/license/xslasd/mathxf/)](https://github.com/xslasd/mathxf/blob/master/LICENSE) [![release](https://badgen.net/github/release/xslasd/mathxf/stable)](https://github.com/xslasd/mathxf/releases) 这是一个用 Go 语言编写的强大数学计算规则引擎,旨在提供灵活高效的数学表达式计算能力。它支持多种运算符,包括基本的算术运算(如加、减、乘、除)、指数运算、括号...
--- title: Recommendations tags: - top clicked - top searched - trending - trending products --- > Look! Those chocolate truffles have a good price! It’s Valentine’s Day, and everybody is already buying them! Recommendations shows the top searched items. That’s to say, the most clicked products on ...
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import { APP_BOOTSTRAP_LISTENER, ApplicationRef, inject, InjectionToken, makeStateKey, PLATFORM_ID, Pro...
{% extends 'base.html.twig' %} {% block title %}{{ page.title }}{% endblock %} {% block body %} <section class="container{% if not flash %} first-section{% endif %}"> <div class="row"> <div class="col-12"> <div class="row no-gutters border rounded-lg overflow-hidden flex-md-row...
/*É usado para inserir novas linhas de dados na tabela "cursos". Para usar esse comando corretamente, você precisa fornecer os valores correspondentes às colunas da tabela.*/ insert into cursos values ('1', 'HTML4', 'Cursos de HTML5', '40', '37', '2014'), ('2','Algoritimos', 'Lógica de Programação', '20', '15', '2014'...
1. Vérification des Partitions lsblk (= lister les périphériques de bloc) NAME : Le nom du périphérique ou de la partition. MAJ : Les numéros majeurs et mineurs du périphérique. RM : Indicateur de périphérique amovible (1 pour oui, 0 pour non). SIZE : La taille du périphérique ou de la partition. RO : Indicateur de le...
"use client"; import { Input } from "@/components/ui/input"; import { Label } from "@/components/ui/label"; import { format } from "date-fns"; import { Calendar as CalendarIcon } from "lucide-react"; import { Button } from "@/components/ui/button"; import { cn } from "@/lib/utils"; import { Calendar } from "@/compone...
import React, { useState, useEffect } from 'react'; import axios from 'axios'; import { BeatLoader } from 'react-spinners'; import './OpdFootfall.css'; import { Dialog, DialogTitle, DialogContent, DialogActions, Button } from '@mui/material'; import { LineChart, Line, XAxis, YAxis, CartesianGrid, Tooltip, Legend } from...
#!/usr/bin/python # @version : 1.0 # @Create Time : 2023/6/21 10:08 # @File : mian.py # @IDE : PyCharm # @desc : 测试任务 import asyncio import datetime class Test: def __init__(self, name: str, age: int): self.name = name self.age = age async def main(sel...
package gothumb import ( "context" "image" "image/jpeg" "log" "net/http" "os" "strconv" "time" "cloud.google.com/go/storage" "github.com/GoogleCloudPlatform/functions-framework-go/functions" "github.com/cloudevents/sdk-go/v2/event" "github.com/disintegration/imaging" "google.golang.org/api/googleapi" ) ...
//! Helper types for producing stable [`egui::Id`] for the purpose of handling collapsed state of //! various UI elements. use std::hash::Hash; use re_log_types::EntityPath; use crate::{ContainerId, SpaceViewId}; /// The various scopes for which we want to track collapsed state. #[derive(Debug, Clone, Copy, Hash)] ...
<!-- <table> organização de dados, criando tabelas. Prós Visualização de dados via linhas e colunas. Boa acessibilidade para leitura dos dados Contras Pouco flexível Precisa de estilização para melhor visualização Não usar Para criar seu layout --> <!DOCTYPE html> <html lang="en"> <he...
<?php namespace Database\Factories; use App\Subcategory; use Illuminate\Database\Eloquent\Factories\Factory; class SubcategoryFactory extends Factory { /** * The name of the factory's corresponding model. * * @var string */ protected $model = Subcategory::class; /** * Define the...
package it.unibo.mvc; import it.unibo.mvc.api.DrawNumberController; import it.unibo.mvc.api.DrawNumberView; import it.unibo.mvc.controller.DrawNumberControllerImpl; import it.unibo.mvc.model.DrawNumberImpl; import it.unibo.mvc.view.DrawNumberStdoutView; import it.unibo.mvc.view.DrawNumberSwingView; import java.lang.re...
<?php /** * The theme header * * @package bootstrap-basic * Template Name: Halaman Book Detail */ get_header(); $sosmed_url = get_option('social_options','null'); setPostViews(get_the_ID()); $att = get_post(get_the_ID()); $meta = get_post_meta(get_the_ID()); $comments = get_comments( array( 'post_id' => get_t...
<div class="kt-content kt-grid__item kt-grid__item--fluid" id="kt_content"> <div class="row"> <div class="col-md-12"> <!--begin::Portlet--> <div class="kt-portlet"> <div class="kt-portlet__head"> <div class="kt-portlet__head-label"> <h3 class="kt-portlet__head-title"> Add Deal Type ...
#pragma once #include "Domain.h" #include <vector> #include <sstream> #include <fstream> using std::vector; class Repo { private: vector<Student> list; string FilePath; public: Repo(string FilePath) : FilePath{ FilePath } {}; vector<Student>& getAllRepo(); /* returneaza vectrot<student> = studentii din lista */...
package cn.iocoder.yudao.module.ai.controller.admin.app.vo; import io.swagger.v3.oas.annotations.media.Schema; import lombok.*; import java.time.LocalDateTime; import com.alibaba.excel.annotation.*; @Schema(description = "管理后台 - 应用 Response VO") @Data @ExcelIgnoreUnannotated public class AppRespVO { @Schema(des...
import React, { useState } from "react"; import { useNavigate, Link } from "react-router-dom"; const Register = ({ setAuth }) => { const [email, setEmail] = useState(""); const [name, setName] = useState(""); const [password, setPassword] = useState(""); const navigate = useNavigate(); const handleRegister ...
#include<iostream> using namespace std; struct node { int data; node *left; node *right; }; node *createnode(int x) { node *temp=new node; temp->data=x; temp->left=temp->right=NULL; return temp; } node* insertion(node *root,int value) { if(root==NULL) { root=createnode(val...
package command; import java.io.IOException; import java.io.PrintWriter; import java.sql.Date; import java.sql.SQLException; import java.sql.SQLIntegrityConstraintViolationException; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax....
package com.fundguide.melona.member.service; import com.fundguide.melona.member.entity.MemberEntity; import com.fundguide.melona.member.role.MemberRoleState; import lombok.Getter; import lombok.Setter; import org.springframework.security.core.GrantedAuthority; import org.springframework.security.core.userdetails.UserD...
import { type ClassValue, clsx } from "clsx"; import { twMerge } from "tailwind-merge"; export function cn(...inputs: ClassValue[]) { return twMerge(clsx(inputs)); } export type Transform = { x: number; y: number; }; export function getTransform(el: HTMLElement): Transform { const transform = el.style.transf...
import sys sys.stdin = open("input.txt", "rt") # 해쉬 -> 딕셔너리 # 자바 해쉬맵 -> 딕셔너리 # 어떻게 보면 json이다. word_one = input() word_two = input() dct_one = {} dct_two = {} # for char in word_one: # dct_one[char] = 0 # for char in word_one: # dct_one[char]+=1 # 위 계산이 아래에서 한 방에 해결된다. # char라는 키가 있으면 1을 더하고 없으면 0을 기본값으로 넣...
import * as React from "react"; import Box from "@mui/material/Box"; import Modal from "@mui/material/Modal"; import { getFirestore, doc, setDoc, getDoc } from "firebase/firestore"; import { getAuth } from "firebase/auth"; import { useAuthContext } from "../../context/AuthContext/AuthContext"; import CircularProgress f...
package hat.auth.utils import com.google.gson.JsonObject import com.google.gson.annotations.SerializedName import hat.auth.data.TapAccount import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.withContext import okhttp3.HttpUrl.Companion.toHttpUrl import okhttp3.Request import okhttp3.Response val TapUrlReg...
N.B: I tried to simulate the network only with docker containers, so that people working on Windows and Mac can follow, but unknowingly I used the namespace features, which is only available on linux. * The Problem :PROPERTIES: :heading: 3 :END: Meena and Raju have got new computers to play around. They played a lot o...
------------------------------------------------ AutoBouquets E2 for satellite 28.2E Version date - 1st March 2013 Created by LraiZer - www.ukcvs.org ------------------------------------------------ Plugin Usage ---------------- first perform a scan on 28.2e satellite so that you have the latest lamedb service file f...
using System.ComponentModel.DataAnnotations; namespace AspLoginCore.Models { public class Cliente { [Display(Name = "Código",Description ="Código.")] public int Id { get; set; } [Display(Name = "Nome completo", Description = "Nome e Sobrenome.")] [Required(ErrorMessage = "O nom...
<template> <h2>{{ customTitle }}</h2> <p> {{ counter }} <sup>2</sup> = {{squareCounter}} </p> <p data-testid="counter"> {{counter}} </p> <div class="buttons-container"> <button @click="increase">+1</button> <button @click="decrease">-1</button> </div> </template> <script> export default { pr...
import React, { useEffect, useState } from 'react' import Card from './CardNumber' import Grid from '@material-ui/core/Grid' import ToggleButton from '@material-ui/lab/ToggleButton' import ToggleButtonGroup from '@material-ui/lab/ToggleButtonGroup' import { makeStyles, createStyles, Theme } from '@material-ui/core/styl...
/** * Filename: TestTask.java * Copyright: Copyright (c)2016 * Company: Yves * @version: 1.0 * Create at: 2017-3-28 下午7:54:29 * Description: * * Author Yves He */ package cn.com.yves.thread.threadpoolexecutor; import java.util.concurrent.Callable; import java.util.concu...
import 'package:flutter/material.dart'; import 'package:food_shop/item.dart'; import 'package:food_shop/homePage.dart'; List<Item> favItems = []; List<Item> cartItems = []; class ItemDescription extends StatelessWidget { final Item item; int _counter =0; ItemDescription({@required this.item}); @overrid...
(function () { // Add event listeners const chatInput = document.getElementById('chat-input'); const chatSubmit = document.getElementById('chat-submit'); const chatMessages = document.getElementById('chat-messages'); //get project id const queryString = window.location.search; const urlParam...
<?php /** * @package Joomla.Administrator * @subpackage com_newsfeeds * * @copyright Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('JPATH_BASE') or die; use Joomla\CMS\Language\LanguageHelp...
// // Network.swift // AutoChek // // Created by mac on 12/5/21. // import UIKit import SVGKit import Kingfisher class Network { //MARK: - Method to get data for make and logo func getMakeAndLogo(completionHandler: @escaping (MakeAndLogoModel) -> ()) { let url = "https://api-prod.autochek.africa/v1...
package remove import ( "github.com/BenjuhminStewart/stew/types" "github.com/spf13/cobra" "github.com/spf13/viper" ) // RemoveCmd represents the delete command var RemoveCmd = &cobra.Command{ Use: "remove <name_of_stew>", Short: "Remove a stew", Long: `stew remove <name_of_stew> [flags]`, Run: func(cmd *cob...
--- title: In 2024, How To Remove Flashlight From iPhone X Lock Screen | Dr.fone date: 2024-05-19T07:27:20.163Z updated: 2024-05-20T07:27:20.163Z tags: - unlock - remove screen lock categories: - ios - iphone description: This article describes How To Remove Flashlight From iPhone X Lock Screen excerpt: This a...
import React from "react"; import Image from "next/image"; import Link from "next/link"; interface MetricProps { imgUrl: string; alt: string; value: string | number; title: string; textStyles?: string; href?: string; isAuther?: boolean; } const Metric = ({ imgUrl, alt, value, title, textStyles...
#ifndef ROBOTOMYREQUESTFORM_HPP # define ROBOTOMYREQUESTFORM_HPP #include "AForm.hpp" #include <cstdlib> #include <ctime> class RobotomyRequestForm : public AForm { private : const std::string name; bool sign; const int signGrade; const int execGrade; std::string target; public : RobotomyRequestForm();...
/* * Copyright 2003-2021 The Music Player Daemon Project * http://www.musicpd.org * * 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 2 of the License, or * (at your option) ...
import { PropsWithChildren, useMemo } from "react"; import { StyleProp, StyleSheet, Text, TextStyle } from "react-native"; import { useTheme } from "./Themed"; interface Props { variant?: "title" | "subtitle" | "text"; align?: "left" | "center" | "right"; color?: string; style?: StyleProp<TextStyle>; } const...
import { React, useMemo, useState, useEffect } from "react"; import { MaterialReactTable, useMaterialReactTable, } from 'material-react-table'; import axios from 'axios' import "./Scoreboard.css" export const Scoreboard = () => { const [scoreboardData, setScoreboardData] = useState([]); useEffect(() => { ...
import React from 'react'; import { format } from 'date-fns'; export const Booking = ({ booking }) => { return ( <div className="mb-2 rounded-xl border border-neutral-300 p-2"> <div className="sm:flex sm:items-center sm:justify-around"> <div className="sm:flex sm:items-center sm:gap-4 "> <...
import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { AppComponent } from './app.component'; import { CoursesComponent } from './courses.component'; import { CourseComponent } from './course/course.component'; import { CoursesService } from './courses.service'; i...
import Foundation extension ExportChatMessagesRepository { static let `default` = ExportChatMessagesRepository(sdk: MEGASdkManager.sharedMEGASdk(), chatSdk: MEGASdkManager.sharedMEGAChatSdk(), store: MEGAStore.shareInstance()) } class ExportChatMessagesRepository: ExportChatMessagesRepositoryProtocol { privat...
import ee import tensorflow as tf import os import numpy as np outputBucket = "/home/burn/Downloads/ee-docs-demos-berlin" # Names for output files. trainFilePrefix = 'Training_demo_' testFilePrefix = 'Testing_demo_' fileNameSuffix = 'ee_export.tfrecord.gz' trainFilePath = outputBucket + '/' + trainFilePrefix + file...
<template> <el-form-item :prop="`tableArr.${rowIndex}.${field}`" :rules="buildRules(rowIndex, field)" > <!-- // -important- 这里必须用v-show,让slot组件必渲染,使slot组件能用updateShowText方法,更新当前显示的文本 (如:下拉选项组件实际值可能是数字,但实际需要显示数字代表的文本) // -important- 为了能让slot组件能进行最大的性能优化,因此传递了renderDom,用于告知slot组件,实际是否需...
import torch import numpy as np from matplotlib import pyplot as plt from sklearn.metrics import r2_score from sklearn.preprocessing import MinMaxScaler, StandardScaler from torch.utils.data import DataLoader, Dataset def evaluate_model(m, data_loader: DataLoader, y_scaler: MinMaxScaler): """ 模型评价函数 :para...
using System.Diagnostics; using System.Numerics; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using MyGame.Engine.Rendering.Shaders; using Silk.NET.Maths; using Silk.NET.OpenGL; namespace MyGame.Engine.Rendering; public static class Renderer { /// <summary> /// The meshes we n...
import 'package:flutter/material.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:pillatickets/View/ticket.dart'; import 'home.dart'; import 'logout.dart'; class SuccessPage extends StatelessWidget { final String name; final String surname; final String ticketId; final Strin...
package com.example.colorsound.ui.screens.splash import androidx.compose.foundation.Image import androidx.compose.foundation.background import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.material3.MaterialTheme import androidx.compose.runtime.Com...
import { Injectable } from '@angular/core'; import {HttpClient} from "@angular/common/http"; import {Observable} from "rxjs"; import {Customer} from "../model/customer"; import {CustomerType} from "../model/customerType"; @Injectable({ providedIn: 'root' }) export class CustomerServiceService { private API_URL = 'h...
/* * bernoulli_synapse.h * * This file is part of NEST. * * Copyright (C) 2004 The NEST Initiative * * NEST 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 2 of the License, or *...
import { useState, useEffect } from 'react' import { Button } from '../components/Button' import { Client } from '../components/Client' import { getAllClients, createClient, deleteClient } from '../services' export const ClientsPage = () => { const [clients, setClients] = useState([]) const [name, setName] = useSt...
#' Illustrative code for building a mesh in 2d domain. #' #' Creates a mesh object. #' #' @param loc a two column matrix with location coordinates. #' @param domain a two column matrix defining the domain. #' @param max.edge the maximun edge length. #' @param offset the length of the outer extension. #' @param SP logic...
function sum(a = 0, b = 0) { return a + b; } test('adds 1+2 to equal 3', () => { expect(sum(1,2)).toBe(3); }); test('adds only one parameter to equal 1', () => { expect(sum(1)).toBe(1); }); test('object assignment', () => { const data = {one: 1}; data['two'] = 2; expect(data).toEqual({one: 1, two: 2}); }); ...
/* Comparison with the Strict Equality Operator Strict equality (===) is the counterpart to the equality operator (==). However, unlike the equality operator, which attempts to convert both values being compared to a common type, the strict equality operator does not perform a type conversion. If the values being co...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <script src="https://unpkg.com/vue/dist/vue.js" ></script> <script src="https://unpkg.com/vue-router" ></script> <title>Rotas</title> <style> nav{ ...
<html> <head> {% load static %} <!-- Bootstrap --> <link href="{% static 'ProyectoWebApp/vendor/bootstrap/css/bootstrap.min.css' %}" rel="stylesheet"> <!-- Fonts --> <link href="https://fonts.googleapis.com/css2?family=Bree+Serif&display=swap" rel="stylesheet"> <link href="https://fonts.googleapis.com/...
/** * @file kick command * @author Sankarsan Kampa (a.k.a k3rn31p4nic) * @license GPL-3.0 */ exports.exec = async (ThotPatrol, message, args) => { let user; if (message.mentions.users.size) { user = message.mentions.users.first(); } else if (args.id) { user = await ThotPatrol.fetchUser(args.id); ...
import { Body, Controller,Get, Param, Post } from '@nestjs/common'; import { MemberService } from './member.service'; import { Member } from './schemas/member.schema'; @Controller('members') // route export class MemberController { constructor(private memberService:MemberService){} @Get() async getAllMemb...
require('dotenv').config(); const express = require('express'); const helmet = require('helmet'); const cookieParser = require('cookie-parser'); const { celebrate, errors } = require('celebrate'); const app = express(); const mongoose = require('mongoose'); const limiter = require('./limiter'); const { userRouter, car...
import 'package:flutter/material.dart'; import 'package:hive/hive.dart'; import 'extensions.dart'; import 'location_searcher.dart'; import 'main.dart'; import 'network/planera_resa.dart'; import 'utils.dart'; abstract class BoxOption { late Box box; } abstract class TripOptions with ChangeMarginGetter, Service...
package org.example.service; import org.example.bom.*; import org.example.converter.Converter; import org.example.dto.db.*; import org.example.repository.DealRepository; import org.example.service.DealService.DealService; import org.example.service.DealService.DealServiceImpl; import org.junit.jupiter.api.BeforeEach; ...
from django.conf import settings from django_elasticsearch_dsl import Document, Index, fields from elasticsearch_dsl import analyzer, normalizer, token_filter from api.models import ECTSCard INDEX = Index(settings.ELASTICSEARCH_INDEX_NAMES[__name__]) # See Elasticsearch Indices API reference for available settings IN...
import React from 'react'; import { BrowserRouter, Route, Routes } from 'react-router-dom'; import LayoutContainer from '../componets/layout'; import Home from '../pages/home'; import Login from '../pages/login'; import Register from '../pages/register'; import Products from '../pages/products'; import DetailProduct fr...
import scss from "./carousel.module.scss"; import { useDispatch } from "react-redux"; import { userActions } from "../../redux/reducers/slice"; import React from "react"; import { useSelector } from "react-redux"; function SliderCard({ img, id, price, descriptionA, descriptionB, descriptionUnder, imgLike...
<?xml version="1.0" encoding="utf-8"?> <layout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools"> <data> <variable name="promo" type="com.ubaya.uas_anmp.model.Promo" /...
package com.example.naejango.global.aop; import org.aspectj.lang.ProceedingJoinPoint; import org.aspectj.lang.annotation.After; import org.aspectj.lang.annotation.Around; import org.aspectj.lang.annotation.Aspect; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stereotype.Component;...
import React from 'react'; // eslint-disable-line no-unused-vars import PropTypes from 'prop-types'; function Typography({ variant = 'body1', className, children, ...otherProps }) { const variantMapping = { h1: 'h1', h2: 'h2', h3: 'h3', h4: 'h4', h5: 'h5', ...
import Vex from "vexflow"; import { ClefEnum } from "../../VoiceData/Instructions/ClefInstruction"; import { ClefInstruction } from "../../VoiceData/Instructions/ClefInstruction"; import { Pitch } from "../../../Common/DataObjects/Pitch"; import { Fraction } from "../../../Common/DataObjects/Fraction"; import { RhythmI...
package com.example.coverviewer; import javafx.fxml.FXML; import javafx.scene.control.Label; import javafx.beans.value.ChangeListener; import javafx.beans.value.ObservableValue; import javafx.collections.FXCollections; import javafx.collections.ObservableList; import javafx.scene.control.ListCell; import javafx.scene....
import { IDiagnosticLogger } from "@microsoft/applicationinsights-core-js"; import { FieldType } from "../Enums"; import { IPageViewPerfData } from "../Interfaces/Contracts/IPageViewPerfData"; import { IPageViewPerformanceTelemetry } from "../Interfaces/IPageViewPerformanceTelemetry"; import { ISerializable } from "../...
"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { t...
import styled from "styled-components"; import LocIcon from '../assets/icon-location.svg'; import TwitterIcon from '../assets/icon-twitter.svg'; import WebsiteIcon from '../assets/icon-website.svg'; import CompanyIcon from '../assets/icon-company.svg'; import React from "react"; const InfoBox = function ({ fetchedData...
package com.infosharing.project.service.impl; import com.infosharing.project.mapper.UserPrecautionMapper; import com.infosharing.project.pojo.UserPrecaution; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.infosharing.project.pojo.Precaution; import com.infosharing.project.service.Precau...
import { createEntityAdapter, createSlice, PayloadAction, } from "@reduxjs/toolkit"; import { TTrack } from "anghami-bot/src/types"; import { chunk, omit } from "lodash"; import { AppThunk, RootState } from "../store"; import { PageState, setPage } from "./pageSlice"; import { selectSettings } from "./profileSlic...
import { ApiProperty } from '@nestjs/swagger'; import { IsNotEmpty, IsNotEmptyObject, IsObject, IsOptional, IsString, } from 'class-validator'; import { UpdateStallionProfileDto } from 'src/stallions/dto/update-stallion-profile.dto'; import { StallionGalleryImageDto } from 'src/stallion-gallery-images/dto/sta...
--- class: ember --- # AuthDialog ```hbs preview-template <AuthDialog @dc={{'dc-1'}} @nspace={{'default'}} @onchange={{action (noop)}} as |api components|> {{#let components.AuthForm components.AuthProfile as |AuthForm AuthProfile|}} <BlockSlot @name="unauthorized"> Here's the login form: <AuthForm /...
package com.atguigu.springcloud.feign; import com.atguigu.springcloud.entities.CommonResult; import com.atguigu.springcloud.entities.Payment; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; ...
import type { Metadata } from "next"; import { Inter as FontSans } from "next/font/google" import NextTopLoader from 'nextjs-toploader'; import { Toaster as ReactHotToast } from 'react-hot-toast'; import "./globals.css"; import { cn } from "@/lib/utils"; import { ThemeProvider } from "@/providers/theme-provider"; impo...