text stringlengths 184 4.48M |
|---|
const path = require('path');
const ejs = require('ejs');
const userModel = require('../model/user.model');
const recipeModel = require('../model/recipe.model');
class AdminController{
async getUsers(req, res) {
const template = path.join(__dirname, '..', '..', 'frontend', 'view', 'users.ejs');
... |
import {Fragment, useMemo} from 'react';
import {useCart} from '@shopify/hydrogen-react';
import {Navigation} from 'swiper/modules';
import {Swiper, SwiperSlide} from 'swiper/react';
import {Disclosure} from '@headlessui/react';
import type {CartLine} from '@shopify/hydrogen/storefront-api-types';
import {Svg} from '~... |
package com.valkov;
public class Car {
private int cylinders;
private String name;
private int wheels;
private boolean engine;
public Car(int cylinders, String name) {
this.cylinders = cylinders;
this.name = name;
this.wheels = 4;
this.engine = true;
}
pu... |
package com.example.isuautosched;
import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.app.AppCompatActivity;
import android.graphics.Color;
import android.graphics.drawable.GradientDrawable;
import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Horiz... |
using System;
namespace Server.Items
{
public abstract class BaseGiftCloak : BaseGiftClothing
{
public BaseGiftCloak(int itemID)
: this(itemID, 0) { }
public BaseGiftCloak(int itemID, int hue)
: base(itemID, Layer.Cloak, hue) { }
public BaseGiftCloak(Serial ser... |
//! A tx for a PoS unbond that removes staked tokens from a self-bond or a
//! delegation to be withdrawn in or after unbonding epoch.
use namada_tx_prelude::*;
#[transaction(gas = 1119469)]
fn apply_tx(ctx: &mut Ctx, tx_data: Tx) -> TxResult {
let signed = tx_data;
let data = signed.data().ok_or_err_msg("Mis... |
import { createContext, ReactNode, useContext, useEffect, useRef, useState } from 'react';
import { toast } from 'react-toastify';
import { api } from '../services/api';
import { Product, Stock } from '../types';
interface CartProviderProps {
children: ReactNode;
}
interface UpdateProductAmount {
productId: numbe... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
.one{
font-size: 20px;
color: blue;
... |
//! Fuzz target to generate random invalid body and query to the router and check it doesn't panic
#![allow(unused_attributes)]
#![no_main]
use std::char::REPLACEMENT_CHARACTER;
use std::env;
use std::process::Child;
use std::process::Command;
use std::process::Stdio;
use std::sync::atomic::AtomicBool;
use std::sync::... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package abstractFactory;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
i... |
import React, { useState } from 'react'
import './Buscador.css'
import { Link } from 'react-router-dom'
const Buscador = () => {
const urlBase = 'https://api.themoviedb.org/3/search/multi'
const API_KEY = ''
const [busqueda, setBusqueda] = useState('')
const [peliculas, setPeliculas] = useState([])
const [s... |
###############################################################################
# OpenVAS Vulnerability Test
#
# CentOS Update for rdma CESA-2013:0509 centos6
#
# Authors:
# System Generated Check
#
# Copyright:
# Copyright (c) 2013 Greenbone Networks GmbH, http://www.greenbone.net
#
# This program is free software; y... |
// Copyright 2024 The Abseil 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 applicable law or agree... |
import joblib
import cv2
import mediapipe as mp
import pandas as pd
import numpy as np
import rclpy
from geometry_msgs.msg import Twist
## initialize pose estimator
mp_drawing = mp.solutions.drawing_utils
mp_pose = mp.solutions.pose
pose = mp_pose.Pose(min_detection_confidence=0.5, min_tracking_confidence=0.5)
mp_holis... |
fetch('quizData.json')
.then(response => response.json())
.then(data => {
// Use the loaded data as your quizData
const quizData = data;
function shuffleQuizData() {
for (let i = quizData.length - 1; i > 0; i--) {
const j = Math.floor(Math.random() * (i + 1));
[quizData[i], quizData[j]] = [qu... |
//
// YCJellyView.m
// YCJellyView
//
// Created by daniel on 2017/8/4.
// Copyright © 2017年 daniel. All rights reserved.
//
#import "YCJellyView.h"
#define kScreenW [UIScreen mainScreen].bounds.size.width
#define kScreenH [UIScreen mainScreen].bounds.size.height
#define kMinHeight 0
#define kControlViewW 1
#defi... |
import React, { Component } from "react";
import Moment from "react-moment";
export class ProfileCreds extends Component {
render() {
const { experience, education } = this.props;
const timeFormat = "YYYY/MM/DD";
const expItems = experience.map(exp => (
<li className="list-group-item" key={exp._id... |
package ma.youcode.aftasclubbackendapi.services.implementation;
import lombok.RequiredArgsConstructor;
import ma.youcode.aftasclubbackendapi.dto.LevelDto;
import ma.youcode.aftasclubbackendapi.dto.requests.LevelRequest;
import ma.youcode.aftasclubbackendapi.entities.Level;
import ma.youcode.aftasclubbackendapi.excepti... |
// This software is Copyright by the Board of Trustees of Michigan
// State University (c) Copyright 2016.
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 o... |
<?php
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a co... |
import React, { useState } from 'react';
import axios from 'axios'; // Import axios for making HTTP requests
import './Search.css'; // Import CSS file for styling
// Define interface for weather data received from API
interface WeatherData {
coord: { lon: number; lat: number };
weather: { id: number; main: string;... |
import React, { FC } from "react";
import Container from "../layout/Container";
import TextLink from "../atoms/TextLink";
import Text from "../atoms/Text";
import { IoPricetagOutline } from "react-icons/io5";
import Image from "next/image";
const TourCard: FC<TourCardProps> = ({
id,
title,
description,
pay,
... |
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
<title>Movie</title>
<link rel="stylesheet" type="text/css" th:href="@{/webjars/bootstrap/css/bootstrap.min.css}"/>
</head>
<body>
<nav class="navbar-expand-lg navbar navbar-dark bg-dark">
<a class="navbar-brand" href="#" h... |
<template>
<div>
<div class="p-5 mb-4 primarystyledcard rounded-3 shadow">
<div class="container-fluid py-5">
<div class="row align-items-start">
<div class="col my-auto">
<h1 class="display-2 fw-bold">Events</h1>
</div>
<div class="col my-auto">
... |
/*
* Use existing Bootstrap 4 classes and
* variables to extend - override CF7 style
*
* Useful CF7 classes:
* .wpcf7 the wrapper element
* .wpcf7-form
* .wpcf7-form-control
* .wpcf7-text
* .wpcf7-email
* .wpcf7-textarea
* .wpcf7-submit
*/
// keep a max width in case it is just the form and nothing else
// we do not w... |
/** @file
A brief file description
@section license License
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 und... |
import React from "react";
import { ComponentMeta, ComponentStory } from "@storybook/react";
import { RadioGroup } from "./RadioGroup";
import { TextArea } from "../TextArea/TextArea";
export default {
title: "COMPONENTS/Radio/RadioGroup",
component: RadioGroup,
argTypes: {
groupName: {
description:
... |
#include <stdio.h>
#include <string.h>
union datos
{
char celular[15];
char correo[20];
};
typedef struct
{
int matricula;
char nombre[20];
char carrera[20];
float promedio;
union datos personales;
} alumno;
void Lectura(alumno *a);
int main(void)
{
alumno a1 = {120, "Maria", "Conta... |
<?php
/**
* Zend Framework
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://framework.zend.com/license/new-bsd
* If you did not receive a copy of the license an... |
import React, { useState } from 'react';
import { useMutation } from '@apollo/react-hooks';
import PASS_FORGOT_MUTATION from './PASSWORD_FORGOT_MUTATION';
const PasswordForgot = () => {
const [email, setEmail] = useState('');
const [message, setMessage] = useState('');
const passwordForgotMutation = useMutation(... |
---
title: Gerar documento a partir de modelo no OneNote - Aspose.Note
linktitle: Gerar documento a partir de modelo no OneNote - Aspose.Note
second_title: API Java Aspose.Note
description: Gere documentos dinâmicos facilmente usando Aspose.Note para Java. Siga nosso guia passo a passo para geração eficiente de documen... |
import { useSelector, useDispatch } from 'react-redux';
import images from '../constants/images';
import '../styles/UserPage.css';
import { GoPencil } from 'react-icons/go';
import UserLink from '../components/UserLink';
import { useEffect, useState } from 'react';
import axios from 'axios';
import { updateUser } from ... |
import React from 'react'
import {Title} from '../../u0-common/u0.2-components/Title/Title'
import Fade from 'react-reveal/Fade'
import {Button} from '../../u0-common/u0.2-components/Button/Button';
import {useForm} from 'react-hook-form';
import emailjs from 'emailjs-com';
import s from './Contact.module.scss'
expor... |
import React, { useState, useEffect } from "react";
import Book from "../Book/Book";
import { IBook } from "@/types/book";
import { Text, Box, Flex } from "@radix-ui/themes";
import { Input } from "../ui/input";
import { Button } from "../ui/button";
const FindYourBooks: React.FC = () => {
const [searchText, setSear... |
import * as React from 'react';
import type { IconDefinition } from '@fortawesome/fontawesome-common-types';
import { faTwitter, faDiscord } from '@fortawesome/free-brands-svg-icons';
type SvgPosition = {
readonly x: number;
readonly y: number;
};
type SvgSize = {
readonly width: number;
readonly height: numb... |
/*
* Copyright (c) 2008 Vijay Kumar B. <vijaykumar@bravegnu.org>
*
* Based on testcases/kernel/syscalls/waitpid/waitpid01.c
* Original copyright message:
*
* Copyright (c) International Business Machines Corp., 2001
*
* This program is free software; you can redistribute it and/or modify
* it und... |
package com.spongzi.train.business.controller.admin;
import com.spongzi.train.business.req.StationQueryReq;
import com.spongzi.train.business.req.StationSaveReq;
import com.spongzi.train.business.resp.StationQueryResp;
import com.spongzi.train.business.service.StationService;
import com.spongzi.train.business.service.... |
package com.suihan74.hatena.service
import com.suihan74.hatena.HatenaClient
import com.suihan74.hatena.model.bookmark.BookmarkResult
import java.time.LocalDateTime
import java.time.OffsetDateTime
import java.time.ZoneOffset
import java.time.format.DateTimeFormatter
/**
* ブクマ情報をHTMLから取得する
*/
internal suspend fun get... |
<template>
<div class="input-container">
<div class="input-group">
<label class="input-label">Имя:</label>
<input class="text-input" v-model="nameValue" placeholder="Имя">
</div>
<div class="input-group">
<label class="input-label">Фамилия:</label>
<input class="tex... |
<!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>Tablas en HTML</title>
<link rel="stylesheet" href="css/estilos.css">
<link rel="preconnect" href="ht... |
// Mantid Repository : https://github.com/mantidproject/mantid
//
// Copyright © 2018 ISIS Rutherford Appleton Laboratory UKRI,
// NScD Oak Ridge National Laboratory, European Spallation Source,
// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
// SPDX - License - Identifier: GPL - 3.0 ... |
package com.echain.web.shiro;
import java.io.Serializable;
import java.util.Collection;
import java.util.HashSet;
import java.util.Set;
import java.util.concurrent.TimeUnit;
import javax.annotation.Resource;
//import org.apache.commons.lang3.SerializationUtils;
import org.apache.commons.lang3.StringUtils;
import org... |
import { useFetch } from "../hooks/useFetch"
import { RootObjectPokemons } from "../interfaces/pokemons.interface"
import { PokeCard } from "./PokeCard"
import Container from 'react-bootstrap/Container';
import Row from 'react-bootstrap/Row';
import Col from 'react-bootstrap/Col';
export const PokeGrid = () => {
... |
---
permalink: upgrade/concept_upgrade_methods.html
sidebar: sidebar
keywords: upgrade, methods, andu, ndu, automated, automatic, system manager, cli, nondisruptive, disruptive
summary: アップグレード方法は構成によって異なります。 可能な場合は、 System Manager を使用した自動無停止アップグレード( ANDU )を推奨します。
---
= ONTAPソフトウェアのアップグレード方法
:allow-uri-read:
:ico... |
import './Valute.scss'
import { Button } from '@mui/material'
import { useStore } from 'context/Provider'
type Props = {
onCurrencyChange: (newCurrency: string) => void
}
const currencies = ['USD', 'EUR', 'UAH', 'ZLT']
const Valute: React.FC<Props> = ({ onCurrencyChange }) => {
const { currency, setCurrency ... |
// ignore_for_file: prefer_const_constructors
import 'package:flutter/material.dart';
import 'package:flutter_animate/flutter_animate.dart';
import 'package:get/get.dart';
import 'package:login/Screens/login.dart';
import 'package:login/Components/my_button.dart';
import 'package:login/Screens/web/web_start.dart';
imp... |
import React, { useEffect } from "react";
import WorkoutDetailComponent from "../components/WorkoutDetailComponent";
import WorkoutForm from "../components/WorkoutForm";
import { useWorkoutContext } from "../hooks/useWorkoutsContext";
const Home = () => {
const { workouts, dispatch } = useWorkoutContext();
useEff... |
# Build a stock portfolio management system
#
# Example:
# | stock | shares | share price | total |
# | IBM | 100 | 90 USD | 9000 USD |
# | BMW | 10 | 75 EUR | 750 EUR |
#
# Initial test cases:
#
# [*] 5 USD x 2 == 10 USD
# [ ] 5 EUR x 2 == 10 EUR
# [ ] 5 SGD / 2 = 2.5 SGD
# [ ] 5 USD + 2 USD =... |
import { Expect, Equal } from "@type-challenges/utils";
type arr1 = ["a", "b", "c"];
type arr2 = [3, 2, 1];
type arr3 = [];
type head1 = First<arr1>; // expected to be 'a'
type head2 = First<arr2>; // expected to be 3
type head3 = First<arr3>; // expected to be never
type First<T> = T extends [infer P, ...infer Rest... |
# Title One Example
## Title Two Example
### Title Three Example
Command | Syntax | Description
--|--|--
Vanilla Photo Mode | No |
Hotsampling | Yes |
DSR | Yes |
Custom Aspect Ratios | No |
Reshade | Yes (No depth buffer) |
Ansel | No |
DirectX versions | DirectX 11 | testing!
<div class="figure">
<iframe width="854... |
import { Component, Input, OnInit } from '@angular/core';
import { CiteI } from '../../models/Cite';
import { Cites } from '../../services/Cites';
import { Title } from '@angular/platform-browser';
import { Device } from '../../tools/Device';
import { BasePaginatedComponent } from '../common/BasePaginatedComponent';
im... |
import {TasksType} from "../App";
import {v1} from "uuid";
import {AddTodolistACType, RemoveTodoListACType} from "./todolisrs-reducer";
type TasksReducerType = RemoveTaskACType
| AddTaskACType
| ChangeTaskStatusACType
| ChangeTaskTitleACType
| AddTodolistACType
| RemoveTodoListACType
export const t... |
#include "main.h"
#include <stdio.h>
#include <stdlib.h>
/**
* _calloc - function that allocates memory for an array using malloc
* @nmemb: elements
* @size: size
* Return: returns pointer or NULL
*/
void *_calloc(unsigned int nmemb, unsigned int size)
{
unsigned int i;
unsigned int prod;
char *ptr;
if (nme... |
import React, { Component } from 'react';
import TaskEditor from './TaskEditor';
import TaskList from './TaskList';
// import createTask from '../../utils/create-task';
import Filter from './Filter';
import { v4 as uuidv4 } from 'uuid';
export default class Tasks extends Component {
state = {
tasks: [],
... |
# RiverTrack: Streamlining River Flow Rate Monitoring
This site, targeted towards fishing enthusiasts, will showcase real-time data correlating to rivers in the US. Data will come from the Water Web Services Tool provided by the United States Geological Survey (USGS). Users will be able to save rivers to a collection ... |
<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org" xmlns:spring="http://www.springframework.org/tags">
<head>
<title>Infra Example</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<!-- para que sea responsive desde el celu-->
<meta name="viewport" content="width=device... |
/* ******************************************** */
/* */
/* \\ /`/`` */
/* ~\o o_ 0 0\ */
/* / \__) (u ); _ _ */
/* / \/ \/ / \ \/ \/ \ */
/* /( .... |
+++
title = "How to document and blog on github pages"
description = "How to setup your own documentation hub"
date = 2024-02-23T00:00:00+06:00
updated = 2024-02-23T00:00:00+06:00
draft = false
template = "blog/page.html"
[extra]
lead = "This is a meta post about how to document"
+++
# Taking note
Rocking it like th... |
package fa.training.fjb04.ims.enums;
import lombok.AllArgsConstructor;
import lombok.Getter;
@Getter
@AllArgsConstructor
public enum Department {
IT(0, "IT"),
HR(1, "HR"),
FINANCE(2, "Finance"),
COMMUNICATION(3, "Communication"),
MARKETING(4, "Marketing"),
ACCOUNTING(5, "Accounting");
priv... |
import { Injectable } from '@angular/core';
import { HttpClient, HttpErrorResponse } from '@angular/common/http';
import { Observable } from 'rxjs';
import { environment } from '../../../../../environments/environment';
import { map, catchError, tap } from 'rxjs/operators';
import { RespData } from '../../../interface... |
from enum import Enum
from typing import Optional
from pydantic import BaseModel
# princing from https://openai.com/pricing (OCT 2023)
class GPT_Modules(str, Enum):
gpt_3_5_turbo = 'gpt-3.5-turbo' # $0.0015 / 1K tokens $0.002 / 1K tokens
gpt_3_5_turbo_16k = 'gpt-3.5-turbo-16k' # $0.... |
import { ThemeProvider } from 'styled-components';
import type { AppProps } from 'next/app';
import GlobalStyles from './global';
import { darkTheme, lightTheme } from '@config/themes/themes';
import { useTheme } from '@hooks/use-theme';
const MyApp = ({ Component, pageProps }: AppProps) => {
const [theme] = useThe... |
# -*- coding: utf-8 -*-
##
##
## This file is part of CDS Indico.
## Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007 CERN.
##
## CDS Indico 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 o... |
from Classes.image import convert_img
from Classes.eventhandler import EventHandler
from Widgets.button import Button
from Widgets.titlebar import TitleBar
from pygame import display, event, quit, NOFRAME
from pygame.time import Clock
from pygame._sdl2.video import Window
from win32api import GetMonitorInfo, MonitorFro... |
from enum import Enum
from pydantic import BaseModel
from typing import Optional, List
class Modality(Enum):
VIDEO = "video"
IMAGE = "image"
AUDIO = "audio"
TEXT = "text"
class ConfigsRequest(BaseModel):
modality: Optional[Modality] = "text"
model: Optional[str] = "sentence-transformers/all-... |
<!--Copyright © XcodeHw 适用于[License](https://github.com/chenzomi12/AISystem)版权许可-->
# ESPNet 系列
本节将会介绍 ESPNet 系列,该网络主要应用在高分辨率图像下的语义分割,在计算内存占用、功耗方面都非常高效,重点介绍一种高效的空间金字塔卷积模块(ESP Module);而在 ESPNet V2 上则是会更进一步给大家呈现如何利用分组卷积核,深度空洞分离卷积学习巨大有效感受野,进一步降低浮点计算量和参数量。
## ESPNet V1 模型
**ESPNet V1**:应用在高分辨图像下的语义分割,在计算、内存占用、功耗方面都非常高效... |
import { SeeBoardsRequest } from './SeeBoardsRequest';
import { SeeBoardsPresenter } from './SeeBoardsPresenter';
import { SeeBoardsResponse } from './SeeBoardsResponse';
import { FieldErrors } from '../../lib/types';
import Validator from 'validatorjs';
import { Member, MemberRepository } from '../../entities/Member';... |
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<h1> Funções </h1>
<script>
// declaracao de funcao
... |
## ---------------------------------------------------------------------------
## See the NOTICE file distributed with this work for additional
## information regarding copyright ownership.
##
## This is free software; you can redistribute it and/or modify it
## under the terms of the GNU Lesser General Public License ... |
Program: N4 MRI Bias Field Correction
Language: C++
Date: $Date: 2012-28-12 14:00:00 +0100 (Fri, 28 Dec 2012) $
Version: $Revision: 1 $
Author: $Sebastien Tourbier$
Copyright (c) 2017 Medical Image Analysis Laboratory (MIAL), Lausanne
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warr... |
/*
* Lisans bilgisi icin lutfen proje ana dizinindeki zemberek2-lisans.txt dosyasini okuyunuz.
*/
package net.zemberek.islemler;
import static net.zemberek.tr.yapi.ek.TurkceEkAdlari.*;
import static org.junit.Assert.assertEquals;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
imp... |
# Rendering
오늘은 렌더링에 관해 작성을 해 보려고 한다.
### 웹 렌더링 정의
브라우저 화면에 그려지는 과정
## 렌더링 과정
1. 클라이언트는 서버로부터 HTML 문서를 다운로드 받아 파싱해
DOM(Document Object Model) 트리를 생성
\*\* DOM : 웹 페이지의 구조
\*\* DOM TREE : DOM을 트리 구조로 표현한 것
2. CSS를 다운로드해 파싱 : CSSOM을 생성한다.
3. 렌더 트리 생성 : DOM트리와 CSSOM 트리를 결합해 렌더 트리(Render Tree)를 생성
4. 레이아웃 : 렌더 ... |
import { useEffect, useRef, useState } from "react";
import { Link, useLocation } from "react-router-dom";
import tw, { styled } from "twin.macro";
import SheetMobile from "../pages/Blog/Component/SheetMobile";
const ulStyles = tw`
bg-background-main
[> li]:(rounded-2xl px-5 transition-all border-b-[rgba(255, 255, ... |
import React from 'react'
import styled from 'styled-components'
import logo from '../../../../assets/images/logo.png'
const Container = styled.div`
background: ${props => props.theme.palette.primary.dark};
display: flex;
flex-direction: column;
padding: 30px 40px;
min-height: 200px;
`
const LogoWrapper = st... |
/**
* @license
* Visual Blocks Editor
*
* Copyright 2018 Google Inc.
* https://developers.google.com/blockly/
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apach... |
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ taglib prefix = "c" uri = "http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ p... |
import { Component, OnInit } from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';
import { Todo } from 'src/app/models/todo';
import { TodoService } from 'src/app/services/todo.service';
import {FormControl} from '@angular/forms';
import {Observable} from 'rxjs';
import {map, startWith} fro... |
import { createContext, useEffect, useState } from "react";
import PropTypes from "prop-types";
import {
GithubAuthProvider,
createUserWithEmailAndPassword,
onAuthStateChanged,
signInWithEmailAndPassword,
signInWithPopup,
signOut,
} from "firebase/auth";
import { GoogleAuthProvider } from "firebase/auth";
i... |
package com.wdbyte.os.process;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
/**
* 输出日志到指定文件
* @author https://www.wdbyte.com
*/
public class ProcessBuilderTest4 {
private static String BASE_DIR = "/Users/darcy/git/JavaNotes/core-java-modules/core-java-os/src/main/java/com/wdbyte... |
const express = require("express");
const bodyParser = require("body-parser");
const app = express();
const port = 3000;
app.use(bodyParser.json());
app.listen(port, () => {
console.log("Server running on port 3000!!");
});
let todos = [];
const getSpecificTodo = (arr, index) => {
for (let i = 0; i < arr.length... |
<?php
namespace App\Http\Controllers\Custom;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use App\Models\Project;
use App\Models\Service;
use App\Models\ProjectImgs;
use Intervention\Image\ImageManager;
use Intervention\Image\Drivers\Gd\Driver;
class ProjectController extends Controller
{
/... |
import pandas as pd
from sklearn.model_selection import train_test_split
from sklearn.linear_model import LogisticRegression
from sklearn.preprocessing import StandardScaler
from sklearn.metrics import accuracy_score
# Load the training data
train_data = pd.read_csv('train.csv')
# Select features and target variable
... |
import React, {
forwardRef,
Suspense,
useMemo,
useRef,
} from 'react';
import { Vector3 } from 'three';
import { TextGeometry } from 'three/addons/geometries/TextGeometry';
import { FontLoader } from 'three/examples/jsm/loaders/FontLoader';
import mathFont
from '@compai/font-noto-sans-math/data/typefaces/no... |
import { Suspense } from 'react'
import { useSetRecoilState } from 'recoil'
import { searchKeyWordState } from 'states/search'
import { useMount } from 'react-use'
import Loader from 'components/Loader'
import TopCoinCardList from './TopPriceCoinCardList'
import CoinTickerList from './CoinTickerList'
import HomeTab fr... |
<?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('documents', function (Blueprint $table) {
... |
// <copyright file="IOwnerRepository.cs" company="PlaceholderCompany">
// Copyright (c) PlaceholderCompany. All rights reserved.
// </copyright>
namespace CarRental.Repository
{
using System;
using CarRental.Data;
/// <summary>
/// IOwnerRepository interface.
/// </summary>
public interface I... |
import { memo } from 'react';
interface GravesProps {
amount?: number;
innerRadius: number;
outerRadius: number;
shadows?: boolean;
}
const GravesEl = (props: GravesProps) => {
const { amount = 5, innerRadius, outerRadius, shadows = false } = props;
const dist = outerRadius - innerRadius;
const graveG... |
import { DetalleProducto } from "./DetalleProducto";
export class Factura{
id: number=null;
cliente: string=null;
porcentajeIva: number=0.0;
productos: DetalleProducto[]=new Array();
constructor(){
}
getImporteTotalSinIva():number{
let importeTotalSinIva:number=0.0;
this.... |
<?php
use App\Http\Controllers\admin\auth\LoginController;
use App\Http\Controllers\admin\auth\RegistrationController;
use App\Http\Controllers\admin\CategoryController;
use App\Http\Controllers\admin\ProductController;
use App\Http\Controllers\admin\SubCategoryController;
use App\Http\Controllers\admin\ChildSubCatego... |
import { FC } from "react";
import TestItem from "./TestItem";
import { TestListProps } from "../types";
import Button from "./Button";
const headers = ["name", "type", "status", "site"];
const TestList: FC<TestListProps> = ({
tests,
handleSort,
sortDirection,
sortMethod,
handleResetButton,
}) => {
retur... |
import { Module } from '@nestjs/common';
import { AuthService } from './auth.service';
import { AuthController } from './auth.controller';
import { TypeOrmModule } from '@nestjs/typeorm';
import { UserModule } from '../user/user.module';
import { User } from '../entities/user.entity';
import { LocalStrategy } from './s... |
---
id: 63ee352b0d8d4841c3a7091c
videoId: LGQuIIv2RVA
title: Основи CSS. Запитання C
challengeType: 15
dashedName: css-foundations-question-c
---
# --description--
Що робити, якщо у вас є дві групи елементів, які мають спільні оголошення стилів?
```css
.read {
color: white;
background-color: black;
/* several ... |
import MySQLdb._exceptions
from django.shortcuts import render, redirect
# Create your views here.
from .models import PollingUnit, AnnouncedPuResult, LGA, State, Ward
from django.db.models import Sum
def polling_unit_result(request, polling_unit_id):
polling_unit = PollingUnit.objects.get(id=polling_unit_id)
... |
/**
* ***************************************************************************** Turnstone Biologics
* Confidential
*
* <p>2018 Turnstone Biologics All Rights Reserved.
*
* <p>This file is subject to the terms and conditions defined in file 'license.txt', which is part
* of this source code package.
*
* <p>... |
"""
A driver for esg_grid.
"""
from pathlib import Path
from typing import List, Optional
from iotaa import asset, task, tasks
from uwtools.config.formats.nml import NMLConfig
from uwtools.drivers.driver import Driver
from uwtools.strings import STR
from uwtools.utils.tasks import file
class ESGGrid(Driver):
"... |
import React from 'react'
import { Link } from 'react-router-dom'
export const HeroCard = ({
id,
superhero,
alter_ego,
first_appearance,
characters
}) => {
return (
<div className="card ms-3">
<div className="row no-gutters">
<div className="col-md-4">
... |
<!DOCTYPE html>
<html lang="en"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:th="https://www.thymeleaf.org"
xmlns:sec="http://www.thymeleaf.org/extras/spring-security">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" h... |
import React, { useState, useEffect } from "react";
import styles from "./Filter.module.scss";
import { Select, Button, Link, Input, SuggestComponent } from "components";
import search from "assets/icons/search.svg";
import store from "redux/stores";
import { useSelector } from "react-redux";
import { axiosAPI } from "... |
package org.code.protocol.codec;
import io.netty.buffer.ByteBuf;
import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.ByteToMessageDecoder;
import org.code.common.RpcRequest;
import org.code.common.RpcResponse;
import org.code.common.constants.MsgType;
import org.code.common.constants.ProtocolC... |
{% extends "plantillaBase.html" %}
{% block tituloPestana %} Menu Principal {% endblock %}
{% block tituloPrincipal %} {% endblock %}
{% block mensaje %}
{% if exito %}
<div class="alert alert-success alert-dismissible fade show" role="alert">
{{exito}}
<button type="button" class="btn-close" data-bs-dismiss="... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.