text
stringlengths
184
4.48M
package uk.gov.companieshouse.registeredemailaddressapi.integration; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc; import org.springframework.boot.test.context.SpringBootTest; import...
import axios from "axios"; import React, { useEffect, useState } from "react"; export default function Transfer({ customers, customer }) { const [loading, setLoading] = useState(false); const [disabled, setDisabled] = useState(true); const [receiverData, setreceiverData] = useState(null); const [senderData, se...
import "./App.css"; import Home from "./Pages/Home"; import LoginPage from "./Pages/LoginPage"; import SignUpPage from "./Pages/SignUpPage"; import MainLayout from "./components/MainLayout"; import { Routes, Route } from "react-router-dom" import { UserContextProvider } from "./context/UserContext"; import CreatePost ...
<header class="flex justify-content-between align-items-center px-6 py-3"> <div class="flex gap-5 align-items-center"> <a id="logo" routerLink="/"> <h1>IFAdvert</h1> </a> <ul class="list-none flex gap-6"> <li> <a routerLink="/app">App</a> </li> <li> <a routerLink="/...
/*************************************************************************** * Copyright (C) 2008 by Roberto Barreda <rbarreda@ac.upc.edu> * * * * This program is free software; you can redistribute it and/or modify * * it unde...
import tensorflow as tf class ModifiedAdam(tf.keras.optimizers.Adam): def __init__(self, learning_rate=0.001, beta_1=0.9, beta_2=0.999, epsilon=1e-08, use_locking=False, amsgrad=False, name="ModifiedAdam", **kwargs): super(ModifiedAdam, self).__init__(learning_rate=learning_rate, beta_1=beta_1, beta_2=beta...
import { useEffect } from "react"; import { useActions } from "../hooks/use-actions"; import { Cell } from "../state"; import CodeEditor from "./code-editor"; import Preview from "./preview"; import { Resizable } from "./resizable"; import { useTypedSelector } from "../hooks/use-typed-selector"; import { useCumulativeC...
<template> <Head :title="$t('category_module')" /> <ps-layout> <!-- breadcrumb start --> <ps-breadcrumb-2 :items="breadcrumb" class="mb-5 sm:mb-6 lg:mb-8" /> <!-- breadcrumb end --> <!-- alert banner start --> <ps-banner-icon v-if="visible" :visible="visible" :...
package com.example.e_finity.teams import android.R import android.content.Context import android.content.Intent import android.graphics.Color import android.os.Bundle import android.view.View import android.widget.ArrayAdapter import android.widget.Toast import androidx.appcompat.app.AppCompatActivity import androidx...
<?php use Illuminate\Http\Request; /* |-------------------------------------------------------------------------- | API Routes |-------------------------------------------------------------------------- | | Here is where you can register API routes for your application. These | routes are loaded by the RouteServicePr...
package pl.szymen.rxsample.api; import com.squareup.okhttp.OkHttpClient; import com.squareup.okhttp.logging.HttpLoggingInterceptor; import java.util.List; import pl.szymen.rxsample.Constants; import pl.szymen.rxsample.data.model.Repo; import retrofit.GsonConverterFactory; import retrofit.Retrofit; import retrofit.Rx...
package christmas.domain; import static org.assertj.core.api.Assertions.assertThat; import christmas.domain.event.GiftEvent; import java.util.ArrayList; import java.util.List; import org.junit.jupiter.api.Test; public class GiftEventTest { @Test void 증정_메뉴_증정하는_경우_테스트() { // given List<Order>...
class ApplicationController < ActionController::Base protect_from_forgery with: :exception before_action :authorize, only: [:edit, :update] helper_method :current_user private # See if @current_user is nil or not. If it has some value, leave it alone. # Else, get the current user from the session using the...
import clsx from "clsx"; import { motion, type AnimationProps } from "framer-motion"; import { useEffect, useState } from "react"; import { useTranslation } from "react-i18next"; import { TooltipWrapper } from "~/components/common/Tooltip"; const Eyeball = ({ isEnabled }: { isEnabled: boolean }) => { const eyelidSty...
import React from 'react'; import Card from './Card'; import { connect } from 'react-redux' //Conecta o componente ao estado da aplicação const Media = (props) => { const {minimo, maximo} = props function media (min, max) { return (min + max)/2 } return ( <Card title="Média" gre...
import NoticeCard from '@/components/common/NoticeCard'; import { useBoolean } from '@/hooks/useBoolean'; import LoadForm from '@/pages/admin-microentrepreneurship/pages/load/components/LoadForm'; import { MicroEntrepreneurshipService } from '@/services/micro-entrepreneurship.service'; import { Box, Container, Grid, Ty...
import React from "react"; import ReactDOM from "react-dom"; import "./index.css"; import App from "./App"; import { BrowserRouter as Router } from "react-router-dom"; import { Provider } from "react-redux"; import store from "./ducks/store"; import MuiThemeProvider from "@material-ui/core/styles/MuiThemeProvider"; im...
const express = require("express") const path = require("path") const app = express() const hbs = require("hbs") const axios = require("axios") const LogInCollection= require("./mongodb").LogInCollection; const { MongoClient } = require("mongodb"); const session = require("express-session"); const SaveBuyDb = 'mongodb...
import React, { useEffect, useState } from "react"; import { useDispatch } from 'react-redux'; import { useNavigate } from 'react-router-dom' import { DoctorHeader } from '../../reducer/HeaderReducer'; import { DoctorFooter } from '../../reducer/FooterReducer'; import { Tabs } from 'antd'; import { Container } from 're...
<?php namespace Razzi\Addons\Modules\Mega_Menu; if ( ! defined( 'ABSPATH' ) ) { exit; } /** * Class menu walker * * @package Razzi */ class Mobile_Walker extends \Walker_Nav_Menu { /** * Store state of top level item * * @since 1.0.0 * @var boolean */ protected $in_mega = false; /** * Background ...
class Student: all_students = {} @classmethod def list_students(cls) -> None: counter = 0 for school_id in cls.all_students: counter += 1 print(f"{counter}. {cls.all_students[school_id]._name} {school_id}") @classmethod def find_student_b...
# My Flix API ## Project description This project is a REST API for a movie platform application that interacts with a database and displays data about different movies, directors, and genres. The database can store movies and users to the users be able to sign up, login and create a list of their favorite movies. Th...
import { MinLength, MaxLength, Matches } from 'class-validator'; import { applyDecorators } from '@nestjs/common'; import { constants } from '@monorepo-ts/common'; export const ValidatePassword = () => applyDecorators( MinLength(8), MaxLength(30), Matches(/(?=.*[a-z])/, { message: constants.PASSW...
import Foundation // MARK: - TodosResponse struct TodosResponse: Codable { let data: [Todo]? let meta: Meta? let message: String? } struct BaseListResponse<T: Codable>: Codable { let data: [T]? let meta: Meta? let message: String? } struct BaseResponse<T: Codable>: Codable { let data: T? ...
<?php $executionStartTime = microtime(true); include("config.php"); header('Content-Type: application/json; charset=UTF-8'); $conn = new mysqli($cd_host, $cd_user, $cd_password, $cd_dbname, $cd_port, $cd_socket); if (mysqli_connect_errno()) { echo json_encode([ 'status' => [ ...
import React, {useContext, useEffect} from 'react' import { motion, AnimatePresence } from 'framer-motion' import FeedBackContext from '../context/FeedBackContext' import FeedBackItem from './FeedBackItem' import Spinner from './shared/Spinner' function FeedBackList() { const {feedback, loading} = useContext(Fe...
import os import logging from llama_index import VectorStoreIndex, SimpleDirectoryReader, ServiceContext, OpenAIEmbedding, StorageContext, load_index_from_storage from llama_index.llms import OpenAI from llama_index.text_splitter import TokenTextSplitter from llama_index.node_parser import SimpleNodeParser # Setup log...
import { useQueries, useQuery } from '@tanstack/react-query'; import { Exchange } from './types/exchanges.ts'; const FINNHUB_KEY = 'cjg7469r01qohhhj96dgcjg7469r01qohhhj96e0'; class FinnHubError extends Error { constructor(message: string) { super(`queryFinnHubFn: ${message}`); this.name = 'queryF...
// // Coordinator.swift // Radiow // // Created by YEONGJUNG KIM on 2022/11/17. // Copyright © 2022 dwarfini. All rights reserved. // import UIKit protocol Coordinating { associatedtype Location var location: Location? { get } } protocol Coordinator: AnyObject { associatedtype Location associated...
import asyncio import threading from flask import Flask, request, jsonify import asyncio.subprocess app = Flask(__name__) # Initialize global variables to store the GDB subprocess and program name gdb_process = None program_name = None lock = threading.Lock() output_queue = asyncio.Queue() def start_gdb_session(prog...
package edu.ncsu.csc316.dsa.sorter; import java.util.Comparator; /** * This is super class of InsertSorter, BubbleSorter, and SelectionSorter * It has functionality to add custom comparators * @author Tilak * * @param <E> Java generic type */ public abstract class AbstractComparisonSorter<E extends Comparable<E>...
import type {HydratedDocument, Types} from 'mongoose'; import type {Request} from './model'; import RequestModel from './model'; import UserCollection from '../user/collection'; import ItemCollection from '../item/collection'; import {isUserLoggedIn} from 'server/user/middleware'; class RequestCollection { /** * ...
# FoodieBot 🍟🤖 ## Description FoodieBot is a chatbot application that assists customers in placing orders for their preferred meals. ## How to use This chatbot application is pretty intuitive to use, but here are some instructions on how to use it: - To see the menu, enter `1`. - To place your order, enter the numb...
// Copyright 2020 John Millikin and the rust-fuse contributors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using VRage.Game.GUI.TextPanel; using VRageMath; namespace RedVsBlueClassSystem { class Table { public List<Column> Columns = new List<Column>(); public List<Row> Rows = new Lis...
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Rendering; using Microsoft.EntityFrameworkCore; using Cineflix.Data; using Cineflix.Models; using Cineflix.ViewModels; namespace Cineflix.Controllers { pub...
import { Resolver, Query, Mutation, Args, Int, ID } from '@nestjs/graphql'; import { OrdersService } from './orders.service'; import { Order } from './entities/order.entity'; import { CreateOrderInput, UpdateOrderInput } from './dto'; @Resolver(() => Order) export class OrdersResolver { constructor(private readonly ...
import i18n from '@dhis2/d2-i18n' import { SingleSelect, SingleSelectOption } from '@dhis2/ui' import cx from 'classnames' import PropTypes from 'prop-types' import React from 'react' import { useDispatch, useSelector } from 'react-redux' import { tSetUiStage, tClearUiProgramStageDimensions, } from '../../../ac...
import Price from '@/app/components/Price'; import { Cuisine, Location, PRICE } from '@prisma/client'; import Link from 'next/link'; const SearchSideBar = async ({ locations, cuisines, searchParams, }: { locations: Location[]; cuisines: Cuisine[]; searchParams: { city?: string; cuisine?: string; ...
<h1 align="center"> ToDo App </h1> ![Ubuntu](https://img.shields.io/badge/Ubuntu-E95420?style=for-the-badge&logo=ubuntu&logoColor=white) ![Java](https://img.shields.io/badge/java-%23ED8B00.svg?style=for-the-badge&logo=openjdk&logoColor=white) ![Gradle](https://img.shields.io/badge/Gradle-02303A.svg?style=for-the-badge...
package kr.hs.example.backpractice01.controller; import kr.hs.example.backpractice01.domain.Department; import kr.hs.example.backpractice01.dto.department.DepartmentRes; import kr.hs.example.backpractice01.dto.department.InsertDepartmentDto; import kr.hs.example.backpractice01.service.DepartmentService; import lombok....
![web crawler demo](https://example.com/demo.gif) ## table of contents - [features](#features) - [visualization](#visualization) - [customization](#customization) ### features - **multi-threaded crawling**: the web crawler utilizes up to 10 threads to maximize crawling efficiency. - **live url display**: each thre...
"use client"; import { useMediaQuery, useTheme } from "@mui/material"; import AppbarMobile from "./appbarMobile"; import AppbarDesktop from "./appbarDesktop"; import { useEffect, useState } from "react"; const Navbar = () => { const theme = useTheme(); const matches = useMediaQuery(theme.breakpoints.down("md")); ...
import { FC, PropsWithChildren, useEffect, useReducer } from 'react'; import { AuthContext, authReducer } from './'; import { IUser } from '@/interfaces'; import Cookies from 'js-cookie'; import axios from 'axios'; import { useRouter } from 'next/router'; import { useSession, signOut } from 'next-auth/react'; import { ...
package com.omersungur.composeintro import android.os.Bundle import androidx.activity.ComponentActivity import androidx.activity.compose.setContent import androidx.compose.foundation.background import androidx.compose.foundation.clickable import androidx.compose.foundation.layout.* import androidx.compose.material.Mat...
from django import forms from profiles.models import Profile from bb2.lists import (COUNTRY_CHOICES, AGE_CHOICES, PUNCTUALITY_CHOICES, IELTS_SCORE_CHOICES, TOEFL_SCORE_CHOICES, PURPOSE_CHOICES) class DateInput(forms.DateInput): input_type = 'date' class SearchForm(forms.Form): q = forms.CharField( require...
package asciiart.image.models.pixel case class RGBPixel(red: Int, green: Int, blue: Int) extends Pixel { require(red >= 0 && red <= 255, "Red value must be between 0 and 255") require(green >= 0 && green <= 255, "Green value must be between 0 and 255") require(blue >= 0 && blue <= 255, "Blue value must be betwe...
// // Utils.swift // Pokemon // // Created by Chaitanya Pandit on 22/05/24. // import Foundation extension URL { static let baseURL: URL = URL(string: "https://pokeapi.co/api/v2")! public var params: [String: String]? { guard let components = URLComponents(url: self, resolvingAgainstBaseURL: t...
import React, {useState, useEffect} from 'react' import axios from 'axios' import CarouselCenter from '../../components/carousel/CarouselCenter' import ShoesCard from '../../components/shoes-card/ShoesCard' const Product = () => { const [limit, setLimit] = useState(5) const [products, setProducts] = useState(...
<!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> <link rel="stylesheet" href="bootstrap-5.2.3-dist/css/bootstrap.css"> <link rel="s...
Feature: Entity user actions with own proposals (with 'View All + Create Proposals' access) Background: Given I have created a budget And I am logged into default_subdomain as an entity_admin And I go to budgets from reports page And I visit the new budget And I visit budget settings And I vi...
*Copyright(c) 2016 CyberLogitec *@FileName : BkgArrNtcAntfyVO.java *@FileTitle : BkgArrNtcAntfyVO *Open Issues : *Change history : *@LastModifyDate : 2016.02.11 *@LastModifier : *@LastVersion : 1.0 * 2016.02.11 * 1.0 Creation package com.hanjin.apps.alps.esm.bkg.inbounddocumentation.inboundnoticemgt.inboundnotice.vo...
#include <bits/stdc++.h> using namespace std; // Process for reversing an int // 123 -> "123" -> [3,2,1] -> validate number is within 32bit limit -> 0 | "321" -> 321; class Solution { public: int reverse(int x) { // Convert number to str and reverse it string reverse = to_string(x); if (rev...
import React, { useState, useEffect } from "react"; import { Link, useNavigate } from "react-router-dom"; import GoogleLoginButton from "components/GoogleLoginButton"; import authService from "services/auth"; import swal from "sweetalert2"; import "./style.css"; import { useContext } from "react"; import { AccountCont...
import requests from urllib.parse import unquote, quote from lxml import etree import json import time import xlwt import pandas as pd ''' 爬下读书标签下的所有图书,按评分标准依次存储,存储到excel中, 可方便大家筛选搜罗,比如筛选评价人数大于1000的高分书籍; 可依据不同的主题存储到Excel不同的sheet,采用User-agent伪装成游览器进行爬取,并加入随机延时来更好的模仿用户行为; 避免爬虫被封。 本次只获取书籍名称和评分及评价人数相关数据 ''' #豆瓣读书爬虫 class d...
--- sidebar_position: 1 --- # Introduction ## Hackathon! ![](imgs/../../src/imgs/hack-banner.png) ---------------------------- From March 18 to April 8, 2024, participants will compete to showcase their best application of IF in measuring the environmental impacts of software. Carbon Hack is a dynamic competiti...
// @ts-check /* eslint-disable @typescript-eslint/no-explicit-any */ /* eslint-disable @typescript-eslint/restrict-plus-operands */ /** * Stringify an Error instance * @param err - The error to stringify */ function stringifyErrorValue(err: Error): string { return `${err.name.toUpperCase()}: ${err.message} ${er...
/// Whether this dependency has a hash value which is different to the one /// previously observed (if any). #[derive(Debug, Clone, Copy, Eq, PartialEq, Hash)] pub enum DependencyState { /// No local hash was present, or the latest hash was not equal to the /// stored value. Dirty, /// This dependency w...
package util import ( "encoding/json" "os" "path/filepath" "strings" "sync" "time" "github.com/playwright-community/playwright-go" "go.uber.org/zap" ) type Util struct { Logger *zap.SugaredLogger result map[string]interface{} } // CheckCloudFlareRecaptcha returns recaptcha parameters and true if recaptcha...
#!/usr/bin/env fuchsia-vendored-python # Copyright 2024 The Fuchsia Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from typing import Any, Dict, List # Default cut-off for the percentage CPU. Any process that has CPU below this # won...
import React from 'react'; import {block} from '../../utils/cn'; import Image from 'next/image'; import Meta from '../Meta'; import i18n from '../../../i18n'; import Icon404 from '../../../ui/assets/images/404.svg'; import Icon500 from '../../../ui/assets/images/500.svg'; import './ErrorPage.scss'; const b = block...
import { Progress } from "@/components/ui/progress"; import { cn } from "@/lib/utils"; interface Props { value: number; variant?: "default" | "success"; size?: "default" | "sm"; } const sizeByVariant = { default: "text-sm", sm: "text-xs", }; const CourseProgress = ({ value, variant, size }: Props) => { r...
// // SwiftUIView.swift // TextEditor // // Created by Leonardo Lemos on 03/02/22. // import SwiftUI struct ListView: View { @State private var activeNavigationAction: String = NavigationActions[0].title; func onChange(action: NavigationAction) { self.activeNavigationAction = action.t...
import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react-query' import toast from 'react-hot-toast' import { Query } from 'components/grid/query/Query' import { executeSql } from 'data/sql/execute-sql-query' import type { ResponseError } from 'types' import { pgSodiumKeys } from './keys' expor...
import React, { useState, useEffect } from "react"; import ProductNotFound from "./ProductNotFound"; import Products from "./Products"; import PageButton from "./buttons/PageButton"; import { AiOutlineSearch } from "react-icons/ai"; import { HiOutlineArrowNarrowRight, HiOutlineArrowNarrowLeft, } from "react-icons/h...
/* * Copyright 2021 EPAM Systems. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
import { Inject, Injectable, forwardRef } from '@nestjs/common'; import { InjectRepository } from '@nestjs/typeorm'; import { Repository } from 'typeorm'; import { Message } from './entities/message.entity'; import { CreateMessageDto } from './dto/create-message.dto'; import { MessageType } from './entities/message-typ...
using FluentValidation; using WebApplication_StudentAPI_115.Models; using WebApplication_StudentAPI_115.Models.ViewModels; namespace WebApplication_StudentAPI_115.Validator { public class UserValidator:AbstractValidator<UserVM2> { public UserValidator() { RuleFor(u => u.UserName) ...
package com.example.hotels_api.Dto; import com.example.hotels_api.Model.Apartment; import com.example.hotels_api.Model.Customer; import com.example.hotels_api.Model.OrderStatus; import com.fasterxml.jackson.annotation.JsonIgnore; import jakarta.persistence.*; import jakarta.validation.constraints.NotNull; import jakar...
#Konversi Video.mp4 ke frame dengan dimensi 255x255 import cv2 def convert_video_to_frames(video_path, output_dir, frame_width, frame_height): """Konversi video ke frame dengan dimensi yang ditentukan. Args: video_path: Path ke video yang akan dikonversi. output_dir: Path ke direktori tempat frame akan ...
import React from "react"; import { Modal, Container, Row, Col, Card, Button } from "react-bootstrap"; import { useCart } from "../Context/CartContext"; const Cart = ({ show, onHide }) => { const { cart } = useCart(); return ( <Modal show={show} onHide={onHide}> <Modal.Header> <Modal.Title> Cart<...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html dir="ltr" xmlns="http://www.w3.org/1999/xhtml" lang="zh-CN"><head> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <meta name="author" content="TeliuTe" /> <meta c...
<?php namespace App\Form; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolver; use Symfony\Component\Form\Extension\Core\Type\EmailType; use Symfony\Component\Form\Extension\Core\Type\SubmitType; use Symfony\Component\Form\Ext...
import 'package:exemple2/widgets/Drawer.dart'; import 'package:exemple2/widgets/Methodes.dart'; import 'package:flutter/material.dart'; import 'HomeScreen.dart'; class AddNews extends StatefulWidget { const AddNews({Key? key}) : super(key: key); @override _AddNewsState createState() => _AddNewsState(); } clas...
from __future__ import annotations from configparser import ConfigParser from datetime import datetime, timedelta, timezone from importlib.resources import as_file, files import json import logging from typing import IO import click from click_loglevel import LogLevel from flask import current_app from flask.cli import...
package core import common.Common.* object Syntax: type CStage = Stage[Tm] final case class Defs(defs: List[Def]): override def toString: String = defs.mkString("\n") def toList: List[Def] = defs enum Def: case DDef(module: String, name: Name, ty: Ty, stage: CStage, value: Tm) override def t...
/* Pagination Component Props - totalCount, total count of data from soruce - currentPage, 0 based index - pageSize, maximum data that's visible in single page - onPageChange, callback invoked with updated page value - siblingCount, min number of page buttons to be shown on each side of current page button usePag...
package com.translantik.pages; import com.translantik.utilities.BrowserUtils; import com.translantik.utilities.Driver; import org.openqa.selenium.By; import org.openqa.selenium.WebElement; import org.openqa.selenium.interactions.Actions; import org.openqa.selenium.support.CacheLookup; import org.openqa.selenium.suppor...
import { Injectable } from '@nestjs/common'; import { UserRepository } from './user.repository'; import { InjectRepository } from '@nestjs/typeorm'; import { AuthCredentialsDto } from './dto/auth-credentials.dto'; import { JwtService } from '@nestjs/jwt'; import { JwtPayload } from './interface/jwt-payload.interface'; ...
import { ApiTags } from '@nestjs/swagger'; import { Devices, Prisma } from '@prisma/client'; import { Controller, Get, Param, Post, Body } from '@nestjs/common'; import { DevicesService } from './devices.services'; import { Public } from 'src/common/decorators/isPublic.decorator'; @ApiTags('devices') @Controller({ ver...
import 'package:flutter/material.dart'; import 'package:flutter_phone_direct_caller/flutter_phone_direct_caller.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:ussd_data/data/m_model/min_sms_model.dart'; class MSMSScreen extends StatelessWidget { const MSMSScreen({super.key, requi...
## Author('Utah ww group') ## Institution('Univeristy of Utah') ## DBsubject('Calculus') ## DBchapter('Differentiation') ## DBsection('Derivatives of Inverse Functions') ## AuthorText1('Dale Varberg, Edwin J. Purcell, and Steve E. Rigdon') ## TitleText1('Calculus') ## EditionText1('9') ## Section1('The Transcendental F...
<template> <section class="cart_module"> <section v-if="!foods.specifications.length" class="cart_button"> <transition name="showReduce"> <span @click="removeOutCart(foods.category_id, foods.item_id, foods.specfoods[0].food_id, foods.specfoods[0].name, foods.specfoods[0].price, '...
<template> <div class="app-container"> <el-row> <el-col :span="12"> <el-form ref="form" :model="form" label-width="120px" style="padding-top: 10vh;"> <el-form-item label="电影名称"> <el-autocomplete v-model="form.name" :fetch-suggestions="movieSearchSugg...
// -*- Mode: Go; indent-tabs-mode: t -*- /* * Copyright (C) 2019-2020 Canonical Ltd * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3 as * published by the Free Software Foundation. * * This program is distributed in the hop...
const bcrypt = require('bcryptjs'); const jwt = require('jsonwebtoken'); const User = require('../models/users'); const { JWT_SECRET_KEY } = require('../config'); const NotFoundError = require('../errors/notFoundError'); const ConflictError = require('../errors/conflictError'); module.exports.getUsers = (req, res) =>...
using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using ThroneGame.Utils; namespace ThroneGame.Tiles { /// <summary> /// Represents a tile in the game. /// </summary> public class Tile : ITile { /// <summary> /// Gets or sets the position of the tile. //...
import requests from PIL import Image, ImageOps import numpy as np from keras.models import load_model from io import BytesIO # BytesIO를 임포트합니다. import os def predict_cloth(classification, img_url): # Disable scientific notation for clarity np.set_printoptions(suppress=True) current_dir = os.path.dirnam...
<h1 align=center>Hugo PaperMod | <a href="https://adityatelange.github.io/hugo-PaperMod/" rel="nofollow">Demo</a></h1> <h4 align=center>☄️ Fast | ☁️ Fluent | 🌙 Smooth | 📱 Responsive</h4> <br> > Hugo PaperMod is a theme based on [hugo-paper](https://github.com/nanxiaobei/hugo-paper). > The goal of this project is to...
import React, { Component } from 'react' import {ProductConsumer} from "../context"; import {Link} from "react-router-dom"; import {ButtonContainer} from "./Button"; export default class Details extends Component { render() { return ( <ProductConsumer> {(value)=>{ const {id,company,img,in...
#!/usr/bin/env python3 import os import re import sys import subprocess import binascii # Testing pyaxmlparser existence try: import pyaxmlparser except: print("Error: >pyaxmlparser< module not found.") sys.exit(1) # Testing puremagic existence try: import puremagic as pr except: print("Error: >p...
<!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" /> <meta name="description" content="Lisa is a front-end engineer based in England." /> <ti...
package boj; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.StringTokenizer; /* 현재 무게에 대해 max(현재 무게에 저장된 최대가치, 현재무게-물건무게에 저장된 가치 + 현재물건가치) 물건 N개 -> 무게W, 가치V 가방 최대무게 K 가치 최댓값? 51428kb 148ms */ public class Main_B_12865_평범한배낭_노우영 { public static...
from flask import Flask, request, render_template, jsonify, get_flashed_messages from flask_sqlalchemy import SQLAlchemy from os import path app = Flask(__name__, template_folder='templates') app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///mydatabase.db' db = SQLAlchemy(app) # app.py class Student(db.Model): ...
import { IFindByIdArticleRepository } from '@domain/repositories/articles/find-by-id-article.repository'; import { IShowArticleUseCase } from '@domain/use-cases/articles/show-article.usecase'; import { ShowArticleUseCaseDTO } from '@dtos/articles/show-article.dto'; import { NotFoundModelError } from '@shared/errors/n...
<template> <div class="container"> <div class="d-block mt-2"> <div class="card p-3 shadow"> <div class="card-header border-0 mx-3 shadow bg-primary "> <h1 class="header text-white text-center"> Müşteri Listesi </h1> </div> <b-card class="row mx-3 shado...
// Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team // // 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, cop...
/******************************************************************************* * Copyright (c) 2006 Vladimir Silva and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is av...
using Eshop.Infrastructure.Infrastructure; using Eshop.Infrastructure.Persistence; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.HttpsPolicy; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting;...
package com.wujia.ui.utils; import android.app.Activity; import android.app.ActivityGroup; import android.content.Context; import android.graphics.Bitmap; import android.graphics.Point; import android.graphics.Rect; import android.os.Build; import android.util.Log; import android.util.TypedValue; import android.view.D...