text
stringlengths
184
4.48M
<div class="row" style="margin-left:40px"> <div class="col"> <span class="rounded float-start"> <button class="btn btn-success btn-lg" *ngIf = "editMode" data-bs-toggle="modal" data-bs-target="#experienceModal" (click)="clearExperience()" ...
import base64 import io import json import logging import aiohttp from redbot.core import Config, commands from tenacity import retry, stop_after_attempt, stop_after_delay, wait_random from aiuser.response.image.generator import ImageGenerator logger = logging.getLogger("red.bz_cogs.aiuser") class RunPodGenerator(...
import { Fragment, useState } from "react"; import MovieList from "./components/MovieList"; import { Row } from "react-bootstrap"; import Container from "react-bootstrap/Container"; import Forum from "./components/Forum"; import Filter from "./components/Filter"; function App() { const [Movies, setMovies] = useState...
import 'package:flutter/material.dart'; import 'package:nomeerrado_charts/pie_chart/core/chart_values_options.dart'; import 'package:nomeerrado_charts/pie_chart/core/degree_options.dart'; import 'package:nomeerrado_charts/pie_chart/core/legend_options.dart'; import 'package:nomeerrado_charts/pie_chart/core/utils.dart';...
<!DOCTYPE html> {% load static %} <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7Rxnat...
<chapter id="technical-infrastructure"> <title>Technical Infrastructure</title> <simplesect> <para>Free software projects rely on technologies that support the selective capture and integration of information. The more skilled you are at using these technologies, and at persuading others to use them, the more succ...
The Song Editor displays the structure of your song. http://tangram.dnsalias.net/lmms-imgs/lmms-0.3.1/songeditor-simple.png Down the left-hand side of the window are listed the instrument and beat/bassline tracks available; on the right of these is listed the activity of each track at each bar in the song. For beat l...
import axios from 'axios'; // Animal-specific behavior patterns const ANIMAL_PATTERNS = { elk: { elevation: { optimal: [6000, 10000], weight: 0.6 }, cover: { optimal: 0.7, weight: 0.7 }, waterDistance: { optimal: 500, // meters weight: 0.8 }, temperatur...
package pl.globallogic.lessons; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.chrome.ChromeDriver; import java.util.List; public class TestAutomation02 { private boolean isSearchResultItemTitles(WebDriver driver, String vali...
package com.example.springsecurity.config; import com.example.springsecurity.filter.JwtAuthenticationTokenFilter; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.security.authentication.AuthenticationManager; import org.springf...
# Given a string s and an integer k, return the maximum number of vowel letters in any substring of s with length k. # Vowel letters in English are 'a', 'e', 'i', 'o', and 'u'. # Example 1: # Input: s = "abciiidef", k = 3 # Output: 3 # Explanation: The substring "iii" contains 3 vowel letters. # Example 2: # Inp...
package me.moomoo.anarchyexploitfixes.modules.combat; import com.cryptomorin.xseries.XMaterial; import me.moomoo.anarchyexploitfixes.AnarchyExploitFixes; import me.moomoo.anarchyexploitfixes.config.Config; import me.moomoo.anarchyexploitfixes.modules.AEFModule; import me.moomoo.anarchyexploitfixes.utils.MaterialUtil; ...
package com.flashcardapp.gui; import com.flashcardapp.FlashcardApp; import com.flashcardapp.util.ConfigHandler; import javafx.event.ActionEvent; import javafx.fxml.FXML; import javafx.scene.control.Alert; import javafx.scene.control.ButtonType; import javafx.scene.control.ChoiceBox; /** * Controller for handling set...
/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License (the "License"). * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolar...
* { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Roboto', sans-serif; /* Mudei para Roboto como fonte principal */ background-color: #f4f4f4; color: #333; text-align: center; } /* Estilo para o header */ header { display: flex; justify-content: space-betwee...
import Foundation import UIKit final class CustomHeaderView: UIView { private lazy var stackView: UIStackView = { let sv = UIStackView() sv.translatesAutoresizingMaskIntoConstraints = false sv.axis = .vertical sv.spacing = 10 sv.distribution = .fill return sv ...
import streamlit as st import joblib import pandas as pd teams = ['Rajasthan Royals ', 'Royal Challengers Bangalore', 'Sunrisers Hyderabad', 'Delhi Capitals', 'Chennai Super Kings', 'Gujarat Titans', 'Lucknow Super Giants', 'Kolkata Knight Riders', ...
"use client"; import { useState, useRef } from "react"; import { Select } from "antd"; import { spaceListig } from "@/service/storageService"; import { useDispatch, useSelector } from "react-redux"; import { setListStorage } from "@/app/globalRedux/Feature/ListStorage"; const formInputStyle = "w-full px-2 py-2 mt-0...
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); /** * Pagination Class * * @package CodeIgniter * @link http://codeigniter.com/user_guide/libraries/pagination.html * * Modified by CodexWorld.com * @Ajax pagination functionality has added with this library. * @It will helps to integ...
--- title: Interactuar con flujos de trabajo mediante programación description: Obtenga información sobre cómo administrar flujos de trabajo e interactuar mediante programación con flujos de trabajo mediante API y secuencias de comandos. contentOwner: User products: SG_EXPERIENCEMANAGER/6.4/SITES topic-tags: extending-...
/* * 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 com.bennu.servicio; import com.bennu.entidad.Categoria; import com.bennu.entidad.SubCategoria; import com.bennu.entidad.auxili...
package de.knuff0r.bsb.app; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.core.Ordered; import org.springframework.core.annotation.Order; import org.springframework.security.authentication.AuthenticationManager; import org.sp...
<?php namespace App\Providers; use App\Constants\GlobalConst; use App\Constants\LanguageConst; use Exception; use App\Models\User; use App\Models\Admin\Currency; use App\Models\Admin\Language; use App\Models\Admin\Extension; use App\Models\UserSupportTicket; use App\Models\Admin\BasicSettings; use App\Models\Admin\Ga...
package ru.practicum.shareit.item.repository; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.autoconfigure.orm.jpa.DataJpaTest; import org.springframework.boot.test.autoconfigure.orm.jpa.TestEntityManager; import ru.practicum.share...
#!/usr/bin/env ruby require 'yaml' require 'shellwords' # Extract the YAML frontmatter from the Markdown file def extract_frontmatter(file) frontmatter = '' in_frontmatter = false File.open(file, 'rb').each_line do |line| # Encode line to UTF-8, replacing invalid and undefined characters line = line.enc...
// Añadir producto function addProduct(productData) { fetch('/products', { method: 'POST', headers: { 'Content-Type': 'application/json', }, body: JSON.stringify(productData), }) .then(response => response.json()) .then(data => { console.lo...
import React, { useState } from 'react'; import { Link } from 'react-router-dom'; import { validateEmail, validatePassword, validatePhoneNumber, validateTextField } from '../../../utils/validations'; import { Button, Card, CardContent, CardHeader, IconButton, Stack, TextField, Typography } from '@mui/material'; import ...
abstract class Reader[+T] { def first: T def rest: Reader[T] def atEnd: Boolean } trait Parsers { type Elem type Input = Reader[Elem] sealed abstract class ParseResult[+T] { val successful: Boolean def map[U](f: T => U): ParseResult[U] def flatMapWithNext[U](f: T => Input => ParseResult[U]...
--- uid: web-forms/overview/data-access/masterdetail/master-detail-filtering-with-two-dropdownlists-cs title: 2つの DropDownLists (C#) を使用したマスター/詳細フィルター処理Microsoft Docs author: rick-anderson description: このチュートリアルでは、マスター/詳細リレーションシップを展開して3番目のレイヤーを追加し、2つの DropDownList コントロールを使用して目的の親を選択します。 ms.author: riande ms.date: 03/31...
import 'dart:convert'; import 'package:encrypt/encrypt.dart'; import '../models/http/http_setting.dart'; //MARK: RSA 加密 class RSAEncode { static splitStr(String str) { var begin = '-----BEGIN PUBLIC KEY-----\n'; var end = '\n-----END PUBLIC KEY-----'; int splitCount = str.length ~/ 64; List<String>...
import React, { useState, useEffect } from 'react'; import { StyleSheet, Image } from 'react-native'; import { useAuth } from '../AuthContext'; import { MyTextInput, MyButton, MyContainer, MyText } from '../components'; import MyCheckbox from '../components/MyCheckbox'; import MyModal from '../components/MyModal'; impo...
import { query } from "express"; import {MigrationInterface, QueryRunner, Table} from "typeorm"; export class createShelters1602615534414 implements MigrationInterface { public async up(queryRunner: QueryRunner): Promise<void> { await queryRunner.createTable(new Table({ name: 'shelters', ...
import React, { useState } from 'react'; import axios from 'axios'; import Swal from 'sweetalert2'; const ParcoursEdit = ({ item, onSubmit }) => { const [designparcours, setDesignparcours] = useState(item.designparcours); const [description, setDescription] = useState(item.description); const handleSubmit = (e)...
// // ShellManager.swift // iOSMcuManagerLibrary // // Created by Dinesh Harjani on 27/2/24. // import Foundation import SwiftCBOR // MARK: - ShellManager /** Enables remote execution of McuMgr Shell commands over BLE. */ public class ShellManager: McuManager { // MARK: TAG override class var ...
const express = require("express"); const router = express.Router(); const classController = require("../controllers/classController"); const cartController = require("../controllers/cartController"); const paymentController = require("../controllers/paymentController"); const userController = require("../controllers/u...
// Copyright 2018 Open Source Robotics Foundation, Inc. // // 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 appli...
import { Component, EventEmitter, Input, OnInit, Output } from "@angular/core"; import { Router } from "@angular/router"; import { NgbModal } from "@ng-bootstrap/ng-bootstrap"; import { Observable, of } from "rxjs"; import { catchError } from "rxjs/operators"; import { UPDATE_CAR_PAGE_PATH } from "src/app/core/constant...
const express = require('express'); const Task = require('../models/task'); const protect = require('../middleware/auth'); const router = express.Router(); // Create a new task (Protected) router.post('/', protect, async (req, res) => { const { title, description, dueDate } = req.body; const userId = req.user.user...
""" Aresh Tajvar, 2024 CS50 Python Final Project Fed Weather This program accesses the NOAA free and public-access API at https://api.weather.gov. Prompts user for weather station per NOAA convention (ex: KSEA for Seattle, WA) Return station name (ex: Seattle, Seattle-Tacoma International Airport) Prompt user for des...
package com.shop.ecommerce.controller; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.DeleteMapping; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; import org....
import { AggregateRoot } from "../../../../shared/domain/model/aggregates/AggregateRoot"; import { Entity, PrimaryGeneratedColumn, Column } from "typeorm"; @Entity('users') export class User extends AggregateRoot { @PrimaryGeneratedColumn() readonly id!: number; @Column({ unique: true }) public userna...
<template> <div class="construction_progress_wrapper"> <div class="page_title_wrapper touch"> <h1 class="page_title"> {{ post.title }} </h1> </div> <!--компонент выбора дома --> <HouseFilter :houses="houses" :house-number="this.filter.houseNum...
import React from 'react'; import { rosterObject } from '../../../assets/interfaces'; interface playerInfoProp { playerInfo: playerObjectInfo; currentPosition: string; roster: rosterObject; setRoster: React.Dispatch<React.SetStateAction<rosterObject>>; setAddPlayerModal: React.Dispatch<React.SetStateAction<b...
package com.example.tmdbclone.di import android.content.Context import com.example.tmdbclone.data.remote.repository.UserRepositoryImpl import com.example.tmdbclone.data.remote.repository.CelebritiesRepositoryImpl import com.example.tmdbclone.data.remote.repository.CelebrityDetailsRepositoryImpl import com.example.tmdb...
from manim import * PYTHON_CODE = \ ''' def dijkstra(s): distance[s] = 0 q = PriorityQueue(V) q.put_nowait(s) while q.qsize()!=0: v = q.get_nowait() visited[v] = True for u in range(V): if graph[v][u] == math.inf or visited[u]: continue el...
use super::{file_command::FilePlaceholder, SlashCommand, SlashCommandOutput}; use anyhow::{anyhow, Result}; use assistant_slash_command::SlashCommandOutputSection; use collections::HashMap; use editor::Editor; use gpui::{AppContext, Entity, Task, WeakView}; use language::LspAdapterDelegate; use std::{fmt::Write, path::...
rm(list = ls()) library(tidyverse) library(readxl) library(kewr) library(furrr) # Research Qs this R script will answer: # What percentage of oligolectic bees visit non-host plants (where visit == at least 5 visits) # How often are oligolectic bees observed visiting non-host plants? # load formatted MS data with list...
package com.soberg.netinfo.android.ui.screen.state import androidx.compose.runtime.Immutable import com.soberg.netinfo.android.ui.screen.state.NetworkInfoViewState.Ready.Lan.ConnectionType.NoConnection @Immutable sealed interface NetworkInfoViewState { data object Loading : NetworkInfoViewState data object N...
# NashvilleHousing-SQL-Data-Cleaning ## Overview This project focuses on cleaning and preprocessing Nashville housing data sourced from Kaggle using SQL queries. The dataset contains information on property sales, prices, locations, and property characteristics. The objective is to clean the dataset to ensure accurac...
import React, { useContext, useState } from 'react' import ReactDOM from 'react-dom' import CurrentConditions from './components/CurrentConditions' import Forecasts from './components/Forecasts' import Highlights from './components/Highlights' import Navigation from './components/Navigation' import { currentData } from...
// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one // or more contributor license agreements. Licensed under the Elastic License; // you may not use this file except in compliance with the Elastic License. package management import ( "context" "errors" "fmt" "os" "os/signal" "sync" ...
import React, { useState, useEffect } from "react"; import { Container, Row, Col } from "react-bootstrap"; import { Box, Flex, Heading, Image, Skeleton, Text, IconButton, Tooltip, } from "@chakra-ui/react"; import { FaPlay, FaMinus } from "react-icons/fa"; const LikedSongs = () => { const [likedSon...
#include <iostream> #include <stdlib.h> #include <conio.h> using namespace std; class ArbolABB; /**CLASE NODO**/ class Nodo { private: int dato; Nodo *izq; Nodo *der; public: Nodo(int x); void setDato(int x); void setIzq(Nodo * p); void setDer(Nodo * p); int getDato(); Nodo...
// call by value vs call by reference package com.eomcs.basic.ex07; public class Exam0300 { static class Person { // 새로운 종류의 메모리를 설계한다. // => 새로운 데이터 타입을 정의한다. // => 클래스를 정의한다. String name; // null로 초기화 int age; // 0으로 초기화 boolean working; // false로 초기화 } public static void main(St...
import React from "react"; import { useChatStore } from "../store/chatStore"; import { FaEllipsisV } from "react-icons/fa"; import { IoIosArrowBack } from "react-icons/io"; import { RiSendPlaneLine } from "react-icons/ri"; import MessageContainer from "./MessageContainer"; import { useConversationStore } from "../store...
/* eslint-disable react/react-in-jsx-scope */ import './App.css' import { BrowserRouter, Routes, Route } from 'react-router-dom' import { Page404 } from '../src/404/page/404.jsx' import { Landing } from './LandingPage/pages/Landing.jsx' import { MyCartReservationPage } from './MyCartReservation/Pages/MyCartReservationP...
import { GraphQLError } from 'graphql'; import { User, NewUser } from "../graphql/User/types"; import { GenericResponse } from "../graphql/types"; import { UserTable } from "../mock/users"; import { Status } from './../graphql/types'; import { v4 as uuidv4 } from 'uuid'; export function getAllUsers(): GenericResponse<...
// 给定一个候选人编号的集合 candidates 和一个目标数 target ,找出 candidates 中所有可以使数字和为 target 的组合。 // candidates 中的每个数字在每个组合中只能使用 一次 。 // 注意:解集不能包含重复的组合。 // 输入: candidates = [10,1,2,7,6,1,5], target = 8, // 输出: // [ // [1,1,6], // [1,2,5], // [1,7], // [2,6] // ] // 输入: candidates = [2,5,2,1,2], target = 5, // 输出: // [ // [1...
import { Box, Button, Flex, HStack, Heading, Hide, Input, Modal, ModalBody, ModalContent, ModalOverlay, Table, TableContainer, Tbody, Td, Th, Thead, Tr, VStack, useDisclosure, } from "@chakra-ui/react"; import PopupModal from "./PopupModal"; import { RiDeleteBin5Fill as DeleteIco...
<?php declare(strict_types=1); namespace Benedekb97\Sudoku\Solver; use Benedekb97\Sudoku\Component\Cell; use Benedekb97\Sudoku\Component\CellContainer; use Benedekb97\Sudoku\Component\Game; use Doctrine\Common\Collections\ArrayCollection; class SinglePossibilitySolver { public function solve(Game $game): void ...
package com.hyesun.tenone; import java.util.List; import javax.inject.Inject; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpSession; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org...
"use client"; import React, { useState, useEffect, useRef } from "react"; import { fabric } from "fabric"; import { PixabayImage } from "@/types/pixabay_image"; import { HiXCircle, HiArrowUturnLeft, HiArrowUturnRight, HiArrowDownOnSquare, HiMiniTrash, HiArrowUpCircle, HiSquare3Stack3D } from 'react-icons/hi2'; import ...
using BSSlurper.Core.BeatSaver.API.Models; using System.Globalization; using System.Text.Json; namespace BSSlurper.Core.BeatSaver.API { public static class ApiClient { public const string PlaylistsEndpoint = "https://api.beatsaver.com/playlists/latest"; public const string MapsEndpoint = "http...
import BaseCommand from "../../utils/structures/BaseCommand"; import DiscordClient from "../../client/client"; import { inspect } from "util"; import { CommandInteraction, Message, ActionRowBuilder, AttachmentBuilder, ButtonBuilder, EmbedBuilder, ButtonStyle, MessageActionRowComponentBuilder, } from "discord.js...
import Button from '@/components/Button.tsx'; import { useState } from 'react'; interface Props { text: string; maxChars?: number; } const ExpandableText = ({ text, maxChars = 50 }: Props) => { const [showMore, setShowMore] = useState(false); const onTextCutOff = () => { setShowMore(!showMore); }; return ( ...
import os from src.analytics.analytics_scheduler import process_conversations from src.tests.utils import load_mogo_records from src.utils import MongoDBClient from src.tests.test_apis.utils import app_client def test_process_conversations(app_client): os.environ['ENVIRONMENT'] = 'staging' load_mogo_records...
import React from 'react'; import { useState } from 'react'; import Modal from './modal'; import "./modal.css" import { Navbar } from '../../components/Navbar/Navbar'; import { Contact } from '../../components/Contact/Contact'; const ModalTest = () => { const [showModalPopup, setshowModalPopup] = useState(false);...
The sizes of the standard integer types are not fixed by the standard. It's perfectly legal to for instance have an implementation where both `long` and `int` are 32 bits. What _do_ we know about the sizes of `long` and `int` though? §[basic.fundamental]¶2 in the standard: > There are five standard signed integer ty...
from typing import List, Dict from fastapi import APIRouter from starlette.responses import JSONResponse from Homework_6.database import orders_table, database from Homework_6.models import Order, OrderIn router = APIRouter() async def check_order(order_id: int): query = orders_table.select().where(orders_table...
''' Given a string s, reverse the order of characters in each word within a sentence while still preserving whitespace and the initial word order. Example 1: Input: s = "Let's take LeetCode contest" Output: "s'teL ekat edoCteeL tsetnoc" Example 2: Input: s = "Hello World" Output: "olleH dlroW" Example 3: Input: s = ...
package com.spring.rest.model; import java.util.Set; import java.util.UUID; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import jakarta.persistence.CascadeType; import jakarta.persistence.Column; import jakarta.persistence.Entity; import jakarta.persistence.FetchType; import jakarta.persistence.Gener...
#[cfg(feature = "cargo")] mod test_build { use anyhow::Result; use cargo_metadata::DependencyKind; use lazy_static::lazy_static; use regex::Regex; use std::env; use vergen::EmitBuilder; lazy_static! { static ref CARGO_DEBUG_RE_STR: &'static str = r"cargo:rustc-env=VERGEN...
<template> <div v-if="isVisible" class="notification" ref="notification"> <div v-if="notifications.length" class="notification__list"> <div v-for="item in notifications" :key="item.id" @click="toggleActive(item);" :class="{ 'active': item.isActive, 'read': item.is_rea...
/** * Try * @returns boolean */ function same(arr1, arr2) { var hasValueCnt = 0; var tmp1 = arr1.sort((a, b) => b - a); // o(n) var tmp2 = arr2.sort((a, b) => b - a); // o(n) for (var i = 0; i < tmp1.length; i++) { if (tmp2[i] === tmp1[i] * tmp1[i]) { hasValueCnt++; } } return hasValueC...
import { Column, CreateDateColumn, DeleteDateColumn, Entity, JoinColumn, ManyToOne, PrimaryGeneratedColumn, UpdateDateColumn } from "typeorm"; @Entity({ name: 'categories' }) export class Category { @PrimaryGeneratedColumn({ name: 'id' }) public readonly id: number; @Column({ name: 'name' }) public na...
import { faHeart as faHeartSolid, faCircleUser, } from "@fortawesome/free-solid-svg-icons" import { useEffect, useState } from "react" import { FontAwesomeIcon } from "@fortawesome/react-fontawesome" import api from "../services/api" import ModifyOrUpdate from "./ModifyOrUpdate" const formatterDate = (date) => { ...
package com.spit.tph.nike_mvp.utils; import android.app.Application; import android.content.Context; import android.graphics.Color; import android.graphics.drawable.GradientDrawable; import android.view.Gravity; import android.view.View; import android.widget.ImageView; import android.widget.LinearLayout; import andr...
package net.codejava.config; import javax.sql.DataSource; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.security.authentication.dao.DaoAuthenticationProvider; im...
%% courses.cls %% Copyright 2024 Mattéo Rossillol‑‑Laruelle. % % This work may be distributed and/or modified under the % conditions of the LaTeX Project Public License, either version 1.3 % of this license or (at your option) any later version. % The latest version of this license is in % https://www.latex-project.o...
<?php namespace JET_ABAF\Dashboard; #[\AllowDynamicProperties] class Booking_Meta { public function __construct() { $this->apartment_post_type = jet_abaf()->settings->get( 'apartment_post_type' ); if ( $this->apartment_post_type ) { add_action( 'add_meta_boxes_' . $this->apartment_post_type, [ $this, 'regi...
import Shimmer from "./Shimmer"; import { useParams } from "react-router-dom"; import { useRestaurantMenu } from "../utils/customHooks"; const RestaurantMenu = () => { const { resId } = useParams(); const resInfo = useRestaurantMenu(resId); if (resInfo === null) { return <Shimmer />; } const { name...
<template> <div class="container"> <div class="row px-3"> <div class="card px-0"> <!-- <div class="col-lg-10 col-xl-9 card px-0"> --> <!-- <div class="img-left d-none d-md-flex"></div> --> <div class="card-body row m-5 pb-5"> <...
import { Injectable } from '@nestjs/common'; import { InjectRepository } from '@nestjs/typeorm'; import { Repository } from 'typeorm'; import { Pais } from '../../../data/entities/pais.entity'; import { PaisReadDTO } from '../models/dto/pais.read.dto'; import { MapperService } from '../../../common/mapper/services/mapp...
// SPDX-License-Identifier: GPL-3.0-or-later // Copyright 2019 Juan Palacios <jpalaciosdev@gmail.com> #pragma once #include "exportable.h" #include "importable.h" #include "iprofilepartxmlparser.h" #include <functional> #include <memory> #include <optional> #include <pugixml.hpp> #include <string> #include <string_vi...
#include<iostream> #include<stack> using namespace std; class node { public: char data; node *left, *right; friend class bintree; node() : left(nullptr), right(nullptr) {} }; class bintree { public: node *root; bintree() : root(nullptr) {} void create_bintree(); void inorder_traversa...
import { Box, Table, TableContainer, Tbody, Td, Th, Thead, Tr, } from '@chakra-ui/react'; import { useNavigate } from 'react-router'; import { useGetUsers } from '../hooks'; const UsersList = () => { const { data: users, isLoading, isError } = useGetUsers(); const navigate = useNavigate(); if (isLoading) r...
# FSM Consul集成测试 ## 1. 下载并安装 fsm cli ```bash system=$(uname -s | tr [:upper:] [:lower:]) arch=$(dpkg --print-architecture) release=v1.2.11 curl -L https://github.com/cybwan/fsm/releases/download/${release}/fsm-${release}-${system}-${arch}.tar.gz | tar -vxzf - ./${system}-${arch}/fsm version cp ./${system}-${arch}/fsm...
import React, { useEffect, useRef, useState } from "react"; import { Box, TextField, FormControl, InputLabel, Select, MenuItem, Button, Typography, CircularProgress, Link, } from "@mui/material"; import { LoadScript } from "@react-google-maps/api"; import getDoctorsBySpeciality from "../Utility/getD...
import { useState, useEffect } from 'react'; import localStorageSetup from '@/utils/localStorageSetup'; import { setDataAttributes } from '@/utils/dom'; function useTheme() { const themeStorage = localStorageSetup('theme'); const fontStorage = localStorageSetup('font'); const [theme, setTheme] = useState(''); ...
import numpy as np import sys import re from collections import defaultdict sys.setrecursionlimit(100000) G = [l.strip() for l in open("./input.txt").readlines()] G = [re.sub(r"[<^>v]", ".", l) for l in G] SRC = (1, 1) DST = (len(G) - 2, len(G[0]) - 2) W = len(G[0]) H = len(G) # return manhattan neighbors (U, D, L,...
<div style="margin-left: 1%"> <p style="color: green"><%= notice %></p> <h3><%= t('appointment.index.search') %></h3> <%= form_with url: "/appointments/", method: :get do |f| %> <%= f.label :search_date, style: "display: block" %> <%= f.date_field :date %> <br> <%= f.label :status, style: "display...
<!DOCTYPE html> <html lang="es"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Estudiantes</title> <link rel="stylesheet" href="style.css"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css...
<div id="pj_3" ></div> <script> require.config({ paths: { echarts: './mapT/dist' } }); require( [ 'echarts', 'echarts/blue', 'echarts/chart/map', 'echarts/chart/line', 'echarts/chart/bar', 'echarts/c...
#pragma once #include <QHashFunctions> #include <QString> #include <QList> class Download_tracker; class QSettings; class QFile; namespace bendode { struct Metadata; } namespace util { struct Download_resources { QString dl_path; QList<QFile *> file_handles; Download_tracker * tracker = nullptr; }; struct Pack...
/************************************************************ * @author: Grzegorz Skaruz * Date: 2016-11-13 * This is a test for GNE_SFA2_Search_Controller class * * Modification History * Date Name Description *************************************************************/ @isTest private class ...
import numpy as np import pandas as pd from scipy.stats import pearsonr, chi2_contingency import matplotlib.pyplot as plt import seaborn as sns import codecademylib3 np.set_printoptions(suppress=True, precision=2) nba = pd.read_csv('./nba_games.csv') # Subset Data to 2010 Season, 2014 Season nba_2010 = nba[nba.year_...
import * as WT from "../dist/world-tree.mjs"; test("2D point addition and subtraction", () => { const p0 = new WT.Point2D(6, 7); const p1 = new WT.Point2D(10, 12); const add = p1.add(p0); const sub = p1.sub(p0); expect(add.x).toBe(16); expect(add.y).toBe(19); expect(sub.x).toBe(4); expect(sub.y).toBe(5...
<!DOCTYPE html> <html lang="es" ng-app="ShoppingListAsApp"> <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="style.css"> <script src="https://ajax.googleapis.com/aja...
import React from "react"; const { useState, useRef } = React; import Try from "./Try"; function getNumbers() { const candidate = [1, 2, 3, 4, 5, 6, 7, 8, 9]; const arr = []; for (let i = 0; i < 4; ++i) { const chosen = candidate.splice( Math.floor(Math.random() * candidate.length), 1 )[0]; ...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="description" content="Shashwat Khandelwal's anime-themed portfolio showcasing skills in web development, programming, and projects."> <title>Portfolio web...