text
stringlengths
184
4.48M
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" /> <title></title> <script src="js/mui.min.js"></script> <link href="css/mui.min.css" rel="stylesheet"/> <script type="text/jav...
import { CheckOutlined, CloseOutlined, DeleteOutlined, EditOutlined, PlusOutlined, UserOutlined, } from "@ant-design/icons"; import { Button, Divider, Form, Popconfirm, Row, Typography } from "antd"; import { useEffect, useState } from "react"; import { AccountAPI } from "../../apis/account.api"; import { T...
const express = require('express') const { MongoClient, ServerApiVersion, ObjectId } = require('mongodb'); const cors = require('cors') require('dotenv').config(); const app = express() const port = process.env.PORT || 5000 // middleware app.use(cors()) app.use(express.json()) // mongoDB const uri = `mongodb+srv://${...
<p>Welcome to the Advanced Rocketry(AR) advanced configuration readme!</p> <p>This document will guide you through manually or semi-manually defining planets for your world!</p> <p>To use manual xml planet configuration, download and modify https://github.com/zmaster587/AdvancedRocketry/blob/master/Template.xml and r...
import { Message } from '@app/models/message'; import { AppState } from '..'; import { doFetchLatestMessages, doFetchLatestMessagesFulfilled, doFetchLatestMessagesRejected, doFetchMoreMessages, doFetchMoreMessagesFulfilled, doFetchMoreMessagesRejected, doSendMessage, doSendMessageFulfilled, doSendMes...
class Forest extends Zone { constructor(zoneLevel = 1) { super(zoneLevel); this.maxZoneLevel = 9; this.shopCode = [3,3,3,2,1]; //shop gen [weaponNumber, armorNumber, statNumber, usableNumber] this.pathGen = [20, //max spaces, [['shop', 50, 15, 0, 2], //[shop start, shop g...
<?php /* Metalizer, a MVC php Framework. Copyright (C) 2012 David Reignier 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 of the License, or (at your option) any later version...
package org.choongang.board; import com.fasterxml.jackson.databind.ObjectMapper; import org.choongang.board.controllers.RequestBoardConfig; import org.choongang.board.repositories.BoardRepository; import org.choongang.board.service.BoardConfigSaveService; import org.junit.jupiter.api.BeforeEach; import org.junit.jupit...
{% extends 'base.html.twig' %} {% block title %}Equipment index {% endblock %} {% block body %} <div class="d-flex justify-content-between align-items-center"> <h1>Equipment index</h1> <a href="{{ path('app_equipment_new') }}" class="btn btn-outline-dark py-auto" style="width: 130px;"> Create </a> </div> ...
<h1>Pseudo-clases</h1> <p>Las pseudo-clases son palabras clave añadidas a un selector que especifica un estado especial del elemento seleccionado</p> <table> <caption>Lista de Pseudo-clases</caption> <thead> <tr class= "tablehead"> <th scope="col">Keyword</th> <th scope="col">Utilidad</th> <...
CREATE SEQUENCE seq_storeID INCREMENT BY 10 MINVALUE 100 NO CYCLE; CREATE SEQUENCE seq_registerNr INCREMENT BY 5 MINVALUE 2 NO CYCLE; CREATE TYPE ModellEnum AS ENUM ('OLYMPIA', 'QUIO', 'STAR'); CREATE TABLE Mitarbeiterin ( Name VARCHAR(255) NOT NULL, SVNR INTEGER NOT NULL, Filialnr INTEGER NOT NULL, PRIMARY KEY(SV...
using Duende.IdentityServer.Models; using ExpertPlanner.Models; using Microsoft.AspNetCore.Identity; using Microsoft.EntityFrameworkCore; using System; using System.Threading.Tasks; public static class DbSeeder { public static async Task Seed(ApplicationDbContext context, UserManager<ApplicationUser> userManager)...
package com.yusuf.bridgely import android.view.LayoutInflater import android.view.ViewGroup import android.widget.Toast import androidx.navigation.findNavController import androidx.recyclerview.widget.RecyclerView import com.google.firebase.Firebase import com.google.firebase.auth.auth import com.google.firebase.fires...
import React from "react"; import Router from "next/router"; import ReactMarkdown from "react-markdown"; import { GetServerSideProps, GetStaticProps } from "next"; import prisma from "../lib/prisma"; import { Text } from "@nextui-org/react"; /*export const getServerSideProps: GetServerSideProps = async ({ params }) =>...
clc; clear all; addpath('../Utils') %--------------------------------------% %--------Starlink FRAME TEST-----------% %--------------------------------------% % ----------- Test 1 N = 1024; % # of s.c Ng = 32; % c.p length Midx = 4; % subcarrier constellation size Nsym = 300; % # of symbols to simulate Nprovided = N...
use std::{ collections::{BTreeMap, BTreeSet}, convert::identity, string::FromUtf8Error, sync::{Arc, OnceLock}, }; use async_trait::async_trait; use bytes::Bytes; use futures::{FutureExt, TryFutureExt}; use http::{HeaderMap, HeaderValue}; use regex::bytes::{Captures, Match, Regex, RegexBuilder}; use req...
import os import smtplib from email.mime.text import MIMEText from email.mime.multipart import MIMEMultipart from dotenv import load_dotenv # Load environment variables from .env file load_dotenv() # SMTP credentials smtp_server = os.getenv('SMTP_SERVER') smtp_port = int(os.getenv('SMTP_PORT')) smtp_username = os.gete...
1. Loops are great when you want to do the same task/run the same code over and over again, and each time with a different value. They are great when working with arrays. 2. For loop syntax higher level: for(initialization; condition; final-expression){statement} For loop syntax basic syntax: for (step1; step2; step3)...
import React from 'react'; import { useDispatch, useSelector } from 'react-redux'; import { logOut } from 'redux/auth/operations'; import { selectUser } from 'redux/auth/selectors'; import { Box, IconButton, Tooltip } from '@mui/material'; import { LogoutOutlined } from '@mui/icons-material'; const UserMenu = () => { ...
@page "/Account/Manage" @using System.ComponentModel.DataAnnotations; @using System.Security.Claims @using Microsoft.AspNetCore.Identity; @using MyApp.Data; @using MyApp.Identity @inject AuthenticationStateProvider AuthenticationStateProvider @inject UserManager<ApplicationUser> UserManager @inject SignInManager<App...
package advantageair_test import ( "encoding/json" "testing" advantageair "github.com/axatol/go-advantage-air" "github.com/stretchr/testify/assert" ) func assertJSONEq(t *testing.T, expected, actual interface{}) { t.Helper() expectedJSON, err := json.Marshal(expected) assert.NoError(t, err) actualJSON, err :...
import json import numpy as np import pytorch_lightning as pl import torch import unitraj.datasets.common_utils as common_utils class BaseModel(pl.LightningModule): def __init__(self, config): super().__init__() self.config = config self.pred_dicts = [] if config.get('eval_nus...
package com.lcwd.blog.service; import java.util.List; import java.util.stream.Collectors; import org.modelmapper.ModelMapper; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.lcwd.blog.entity.Category; import com.lcwd.blog.exception.ResourceNotF...
using AutoMapper; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using ModelLibrary.Model.Report; using PetsServer.Auth.Authentication; using PetsServer.Auth.Authorization.Model; using PetsServer.Auth.Authorization.Service; using PetsServer.Domain.Log.Service; using PetsServer.Domain.Report....
#ifndef MERGE_AND_SHRINK_SHRINK_STRATEGY_H #define MERGE_AND_SHRINK_SHRINK_STRATEGY_H #include "types.h" #include <string> #include <vector> namespace utils { class LogProxy; } namespace merge_and_shrink { class Distances; class TransitionSystem; class ShrinkStrategy { protected: virtual std::string name() con...
# # (C) Tenable Network Security, Inc. # include("compat.inc"); if (description) { script_id(22189); script_version("$Revision: 1.34 $"); script_cvs_date("$Date: 2016/06/30 19:55:38 $"); script_cve_id("CVE-2006-3649"); script_bugtraq_id(19414); script_osvdb_id(27849); script_xref(name:"CERT", value:"159484");...
<template> <div class="component-wrapper"> <izy-loader v-show="isLoading" /> <div class="row"> <div class="col-6"> <div class="block-container"> <div class="pd-20"> <form class="_form mb mt-10" @submit.prevent="save"> ...
// // YRNetworkConfiguration.h // YRHttpManager // // Created by sunwu on 2018/2/27. // Copyright © 2018年 PYYX. All rights reserved. // #import <Foundation/Foundation.h> @class YRHttpResponse; /** * 缓存策略 */ typedef NS_ENUM(NSInteger, YRHttpResponseCachePolicy) { YRHttpResponseCachePolicyNone, // 不缓存...
import { Pipe, PipeTransform } from '@angular/core'; import { Livro } from './livro'; @Pipe({ name: 'filtroPesquisa', pure: false }) export class FiltroPesquisaPipe implements PipeTransform { transform(listaLivros: Livro[], nomePesq: string): Livro [] { return listaLivros.filter ( (livro:Livro) => { ...
package config import ( "github.com/reubenmiller/go-c8y-cli/v2/pkg/flags" "github.com/reubenmiller/go-c8y-cli/v2/pkg/jsonfilter" ) // CommonCommandOptions control the handling of the response which are available for all commands // which interact with the server type CommonCommandOptions struct { ConfirmText ...
import * as React from "react"; import AppBar from "@mui/material/AppBar"; import Box from "@mui/material/Box"; import Toolbar from "@mui/material/Toolbar"; import Typography from "@mui/material/Typography"; import IconButton from "@mui/material/IconButton"; import AccountCircle from "@mui/icons-material/AccountCircle"...
import { i18n } from '@/i18n-config'; import { Metadata } from 'next'; import { calSans, inter } from '../fonts'; import og from '@/public/og.png'; import '../../globals.css'; export const metadata: Metadata = { metadataBase: new URL('https://martincamer.vercel.app'), title: 'Martín Camer | Portfolio', description: ...
import React from 'react' import Link from "next/link" import Image from "next/image" import styles from "./page.module.css" async function getData() { const res = await fetch('https://jsonplaceholder.typicode.com/posts') if (!res.ok) { throw new Error('Failed to fetch data') } return res.json() } export...
import React, { useEffect, useRef } from 'react' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { faAngleDown } from '@fortawesome/free-solid-svg-icons' import faqs from '../utils/faqs.json' import Aos from 'aos' import 'aos/dist/aos.css' function Faq() { const MoreOrLess = <FontAwesomeIcon...
# WebGL 图像处理 Web 前端可以利用 Canvas API 和 WebGL 这两种技术实现在浏览器本地的图像处理。Canvas API 是最直观且方便的图像处理方式,但缺点是如果图片的像素数过高,逐像素的处理速度就会很慢,毕竟 JavaScript 这门语言的执行效率摆在这里,肯定不如更贴近底层的诸如 C++ 这种语言跑得快(Python 也是解释型语言,虽然没试过,但 Python 估计要更快一点)。 WebGL 为 Web 端的图像处理提供了弯道超车的机会,作为 OpenGL 的子集,通过借助 GPU 硬件加速,WebGL 理论上可以得到比使用 Canvas API 快得多的处理速度。我的本科毕业论文基于的一个重要...
import _ from 'lodash'; import { GetServerSidePropsContext } from 'next'; import { useSession } from 'next-auth/react'; import { getPortfolioDetail } from '../../../gql'; import PortfolioForm from '../../../components/forms/PortfolioForm'; import CMSPageTemplate from '../../../components/page-templates/CMSPageTemplate'...
import math from abc import ABC, abstractmethod class Shape(ABC): @abstractmethod def calc_perimeter(self) -> float: pass @abstractmethod def calc_area(self) -> float: pass class Rectangle(Shape): def __init__(self, a: int, b: int): self.length = a self.width = b...
"use client"; import Link from "next/link"; import React, { useState } from "react"; import NavLink from "./NavLink"; import MenuOverlay from "./MenuOverlay"; import { Bars3Icon, XMarkIcon } from "@heroicons/react/24/solid"; const navLinks = [ { title: "About", path: "#about", }, { title: "Projects",...
#----------------------------------------------------------# # Script to download and view data from GEO database # ---- #----------------------------------------------------------# # Install packages ---- if (!requireNamespace("BiocManager", quietly = TRUE)) install.packages("BiocManager") if (!requireNamesp...
// Paginación de productos let page = 1; // Cantidad de productos let productsCount = 0; // Obtener el formulario de agregar producto const form = document.getElementById("add-product-form"); form.addEventListener("submit", handleSubmit); // Función para manejar el envío del formulario de actualizar producto async fu...
// Copyright 2022 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. /** @fileoverview Test suite for app-manageemnt-permission-item. */ import 'chrome://os-settings/lazy_load.js'; import {AppManagementPermissionItemElement} from 'chrome://os-s...
#include<iostream> using namespace std; class demo{ string s; public: void getdata(){ cout<<"Enter string:"; cin>>s; } void putdata(){ cout<<s; } /*cc = aa + bb; cc,aa,bb all are objects. operator overloading operate on objects of class cc -> return type aa ->...
from pydantic import BaseModel, Field, validator, root_validator import pandas as pd import numpy as np import matplotlib.pyplot as plt import seaborn as sns from enum import Enum, IntEnum from typing import Dict, List, Optional, Union from datetime import date # Aqueon Models to parameters as json file # Aqueon Model...
function fs = tz_imnbdens(img,wndlength) %TZ_IMNBDENS Total intensities between every pixel pair in an image. % FS = TZ_IMNBDENS(IMG,WNDLENGTH) returns a 4-D matrix with dimension row X col X W X W. % to access the value at (50,20), use squeeze(edgepot(50,20,:,:)) % edge potential is calculated as sum of intensi...
... This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. ... If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/. (.require [library [lux (.except) ["$" documentation] [data [collection ["[0]" list]]]]] [\\librar...
import { Injectable, NgZone } from '@angular/core'; import { TreeGridComponent } from '@syncfusion/ej2-angular-treegrid'; import { GenericTask } from '../models/generic-task.model'; import { Row } from '../models/types'; import { GridEventService } from '../services/grid-event.service'; export const V_KEY_CODE = 86; e...
<template> <div id="article" class="container"> <section class="categoryList"> <div class="list"> <div class="item"> <span @click="selectChange('')" :class="category?'':'active'">全部</span> </div> <div class="item" v-for="(item,index) in categoryData" :key="index"> ...
import acm.graphics.GRect; import acm.program.GraphicsProgram; import java.awt.*; /** * Created by Bennet on 19.11.2016. */ public class MethodicalPyramid extends GraphicsProgram { //the scale based on which this will be drawn public static final int SCALE = 1600; //run forest run public void run() { //get ...
<?xml version="1.0" encoding="utf-8"?> <layout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools"> <data> <variable name="viewModel" type="com.pajaga.ui.autentikasi.lo...
<?php namespace App\Models; use Illuminate\Contracts\Auth\MustVerifyEmail; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Foundation\Auth\User as Authenticatable; use Illuminate\Notifications\Notifiable; use Laravel\Sanctum\HasApiTokens; class User extends Authenticatable { use HasFactory,...
import { FC } from "react"; interface FormInputProps { type: string; name?: string; id?: string; value?: string; placeholder?: string; className?: string; } const FormInput: FC<FormInputProps> = ({ type, name, id, value, placeholder, className, }) => { return ( <> <input ty...
''' Modified example from https://developers.google.com/mediapipe/solutions/vision/face_landmarker/python https://developers.google.com/mediapipe/solutions/vision/face_landmarker#configurations_options https://storage.googleapis.com/mediapipe-models/face_landmarker/face_landmarker/float16/latest/face_landmarker.task ''...
import 'package:flutter/material.dart'; import 'dart:io' as io; import 'dart:convert'; import 'package:image_picker/image_picker.dart'; import 'package:fluttertoast/fluttertoast.dart'; import 'package:integradora/src/model/response_api.dart'; import 'package:integradora/src/model/user.dart'; import 'package:integradora...
= Camel-Quarkus Demo == How to Prepare the Demo [source,shell] ---- # Provision "OpenShift 4 Serverless Foundations Lab" cluster and login, for instance: cd ~/dev/demos/camel-quarkus-demos/integration-in-the-cloud-era-with-camel-quarkus openshift-configs/connect # Create knative-serving namespace oc create namespace...
package com.swarna.collegeapi.entity; import javax.persistence.CascadeType; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.JoinColumn; import javax.persistence.O...
<template> <q-page class="q-mx-md-lg q-my-md-xl q-ma-sm-lg q-ma-xs-md"> <div class="text-nightRider q-px-sm text-h5 text-weight-medium"> My Blooprints <q-separator width="120px" class="q-mt-xs" color="primary" size="2px" /> </div> <BlooprintSkeletonCardWeb requestFrom="blooprint" v-if="loading...
import BlockchainBackedItem from 0xf8d6e0586b0a20c7 pub struct NFTResult { pub(set) var name: String pub(set) var description: String pub(set) var thumbnail: String pub(set) var owner: Address pub(set) var type: String pub(set) var isLostOrStolen: Bool pub(set) var message: String init...
import 'package:flutter/material.dart'; import 'package:muzahir_fyp/assets/spacing.dart'; import 'package:muzahir_fyp/components/auth_widgets.dart'; import 'package:muzahir_fyp/components/build_button.dart'; import 'package:muzahir_fyp/components/textfield.dart'; import 'package:muzahir_fyp/view/auth%20screens/sign_up_...
// This file is part of www.nand2tetris.org // and the book "The Elements of Computing Systems" // by Nisan and Schocken, MIT Press. // File name: projects/03/a/RAM8.hdl /** * Memory of 8 registers, each 16 bit-wide. Out holds the value * stored at the memory location specified by address. If load==1, then * the i...
import React, {Component} from "react"; import './table.css'; import store from "../../../app/store"; import {Navigate} from "react-router-dom"; class Table extends Component { constructor(props) { super(props); this.state = {data: []}; } componentDidMount() { store.subscribe(() ...
// https://leetcode.com/problems/permutation-in-string/description/ public class PermutationInString { /* public static boolean checkInclusion(String s1, String s2) { if(s1.length() > s2.length()) return false; // Initialize both the arrays int[] charCountS1 = new int[26]; int[] ch...
class Api::V1::AnswersController < Api::V1::BaseController before_action :set_question, only: [:index, :create] before_action :set_answer, only: [:show] authorize_resource def index respond_with @question.answers end def show respond_with @answer end def create @answer = @question.answer...
<template> <div class="dwc-editor"> <div class="fds-m-b--m fds-m-t--s fds-m-r--s"> <!-- <p class="dwc-editor-header">{{ EDITOR_TITLE }}</p> --> <span class="fds-m-l--s"> <!-- <button @click="saveCode()" class="fds-btn fds-btn--secondary fds-btn--small fds-m-r--xs" type="button"> ...
// import React from 'react' // import { FlatList, Text, TouchableOpacity, View } from 'react-native' // import { connect } from 'react-redux' // import { Navigation } from 'react-native-navigation' // import { subCategoryTypeEntityDetailScreen, subCategoryTypeEntityEditScreen } from '../../../navigation/layouts' // im...
<?php use App\Http\Controllers\HomeController; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\Route; /* |-------------------------------------------------------------------------- | Web Routes |-------------------------------------------------------------------------- | | Here is where you can re...
Task = require("./task").Task class Command constructor: (name, aliases..., needsUser, logic) -> @name = name @aliases = aliases @logic = logic @needsUser = needsUser processHelp: (req) -> if req.commandRequest?.name in [':help', ':h', ':describe', ':desc'] req.commandRequest.help ?= [] ...
import { useEffect, useState } from 'react'; import axios from 'axios'; import send from './assets/send.svg'; import bot from './assets/bot.png'; import user from './assets/user.png'; import loaderIcon from './assets/loader.svg'; function App() { const [input, setInput] = useState(); const [posts, setPosts] = us...
import { useParams } from "react-router-dom" import { request, gql } from "graphql-request" import { useEffect, useState } from "react" const GameHeader = ({ id, name, achievements = [], }: { id: number name: string image: string achievements?: Achievement[] }) => { const min = achievem...
import gsap from "gsap"; import { ScrollTrigger } from "gsap/ScrollTrigger"; import { MotionPathPlugin } from "gsap/MotionPathPlugin"; import imagesLoaded from "imagesloaded"; gsap.registerPlugin(ScrollTrigger, MotionPathPlugin); const svgs = document.querySelectorAll(".svg-parent"); function initMotionPath() { // ...
import { useState, useEffect, createContext } from 'react'; // const addCartItems = (cartItems, productsToAdd) => { // // find if cartItems contains productsToAdd, basically to check if it's already in cart // const existingCartItem = cartItems.find( // (cartItem) => cartItem.id === productsToAdd.id, // );...
import 'package:dio/dio.dart'; import 'dart:developer' as developer; /// 请求方法 enum DioMethod { get, post, put, delete, patch, head, } class DioUtil { /// 单例模式 static DioUtil? _instance; factory DioUtil() => _instance ?? DioUtil._internal(); static DioUtil? get instance => _instance ?? DioUtil._int...
import random import numpy as np import time class Network: def __init__(self, sizes): """Initializes the network. "sizes" is a list with number of neurons per layer.""" self.sizes = sizes self.num_layers = len(sizes) # The whole network has a list of np vectors as biases (vecotr ...
import { createCustomElement } from "./sw/custom-element.js"; import MDParser from "./sw/md.js"; import { warning } from "./sw/parser.js"; /** * @typedef {Object} ElementDescriptor * @property {string} template * @property {string} name * @property {Object.<string, any> & HTMLElement } props * @property {boolean} ...
#para descomponer una serie de tiempo graficamente se utiliza #una funcion que se llama decompose, por lo que primero #es importante reconocer la serie de tiempo y despues aplicarle la funcion #graficamente desoc<-sample (3:8, 44, replace=T) tdesoc<-ts(desoc, frequency = 4, start=2005) #muestra tendencia, temporalida...
import { useEffect, useLayoutEffect, useMemo } from 'react'; import { useDispatch, useSelector } from 'react-redux'; import styled from 'styled-components'; import withLoader from 'hoc/withloader'; import Prospectus from './Prospectus'; import Curriculum from './Curriculum'; import BoardofSchool from './BoardofSchool';...
import { MigrationInterface, QueryRunner, TableColumn, TableForeignKey, } from 'typeorm'; export default class AlterProviderFieldToProviderId1598528415267 implements MigrationInterface { public async up(queryRunner: QueryRunner): Promise<void> { await queryRunner.dropColumn('appointments', 'provider');...
<?php namespace App\Http\Controllers; use App\Models\Course; use App\Models\Course_User; use App\Models\Requirement; use App\Models\Curriculum; use App\Models\Outcome; use Illuminate\Http\Request; use Illuminate\Support\Str; use DB; use Alert; use Redirect; class CourseAdminController extends Controller { // Use ...
<template> <el-card style="width: 500px; margin: 100px auto"> <el-form label-width="80px" size="small"> <el-form-item label="用户名"> <el-input v-model="form.username" disabled autocomplete="off"></el-input> </el-form-item> <el-form-item label="昵称"> <el-input v-model="form.nickname"...
function ExperienceSurveyForm(props) { const { title, consumptionMethod, dose, description } = props.data; return ( <div className="container"> <div> <hr></hr> <h6> <i> *Please complete your <a href="https://www.opencann.net/#/opencann.near...
/** * Created by Hussain on 2/4/2023 * */ package com.hsn.pianotiles.handler import android.graphics.Canvas import android.os.CountDownTimer import com.hsn.pianotiles.core.Tile import com.hsn.pianotiles.core.TileType import com.hsn.pianotiles.utils.Constants import com.hsn.pianotiles.utils.Util import com.hsn.pian...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. /** * @author yefuwang@microsoft.com */ import { FxError, Inputs, Result, ok, err, ManifestUtil, devPreview, Context, } from "@microsoft/teamsfx-api"; import { join } from "path"; import { HelperMethods } from "./helperMethod...
import React, { Fragment } from "react"; import CharacterCard from "../../components/card/character/CharacterCard"; import { Container, Row, Col } from "react-bootstrap"; function Home(props) { const [loading, setLoading] = React.useState(true); const [data, setData] = React.useState({}); const [search, setSearc...
import { Box, Button, Grid, Typography } from "@mui/material"; import React, { useEffect, useState } from "react"; import Typist from "react-typist"; import logo from "../../assets/remove.png"; import { TypeAnimation } from "react-type-animation"; import { useNavigate } from "react-router-dom"; import ReactLoading fro...
"""* EJERCICIO: * - Muestra ejemplos de creación de todas las estructuras soportadas por defecto en tu lenguaje. * - Utiliza operaciones de inserción, borrado, actualización y ordenación. * * DIFICULTAD EXTRA (opcional): * Crea una agenda de contactos por terminal. * - Debes implementar funcionalidades de búsqueda, ins...
import {BaseRequestJson} from "@entities/base.requestJson"; import { getRandomFirstName, getRandomLastName, getRandomRequestId, getRandomSessionId } from "@utils/randomUtils"; import {RequestSource} from "@libs/requestSource"; import userTestData from "@data/user.json"; import {SportExperience} from "@libs/sportExperie...
package dev.plex.medina.storage; import com.zaxxer.hikari.HikariConfig; import com.zaxxer.hikari.HikariDataSource; import dev.plex.medina.MedinaBase; import lombok.Getter; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; @Getter public class SQLC...
import { Resolver, Mutation, Args, Parent, ResolveField, Query, } from '@nestjs/graphql'; import { GameResultService } from './game-result.service'; import { GameResultEntity } from 'src/game-result/entities/game-result.entity'; import { GameResultCreateDTO } from 'src/game-result/dtos/create-game-result.in...
"use client" import { User } from "@prisma/client" import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuTrigger, } from "@/components/ui/dropdown-menu" import { signOut } from "next-auth/react" import Link from "next/link" import Image from "next/image" interface ...
import { HandlerContext } from "$fresh/server.ts"; import { getJson } from "../../shared/file.ts"; import { Category } from "./categories.ts"; export type Product = { // id: string; name: string; url: string; image?: string; preview?: string; price?: number; annotation: string; description: string; b...
## message_textview.py ## ## Contributors for this file: ## - Yann Le Boulanger <asterix@lagaule.org> ## - Nikos Kouremenos <kourem@gmail.com> ## ## Copyright (C) 2003-2004 Yann Le Boulanger <asterix@lagaule.org> ## Vincent Hanquez <tab@snarc.org> ## Copyright (C) 2005 Yann Le Boulanger <asterix...
import React, { forwardRef } from "react"; export type InputSize = "medium" | "large"; export type InputType = "text" | "email" | "password" | "number"; export type InputProps = { id: string; name: string; label: string; type?: InputType; size?: InputSize; className?: string; }; const CustomInput: React....
import { Component, OnInit, OnDestroy } from '@angular/core'; import { HttpHeaders, HttpResponse } from '@angular/common/http'; import { Subscription } from 'rxjs'; import { JhiEventManager, JhiParseLinks } from 'ng-jhipster'; import { NgbModal } from '@ng-bootstrap/ng-bootstrap'; import { IResource } from 'app/shared...
<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://xmlns.jcp.org/jsf/facelets" xmlns:composite="http://xmlns.jcp.org/jsf/composite" xmlns:zlb="http://xmlns.jcp.org/jsf/composite/composites" xmlns:h="http://xmlns.jcp.org/jsf/html" xmlns:f="http://xmlns.jcp.org/jsf/core" xml...
import Image from 'next/image'; import Link from 'next/link'; import { cn } from '@/lib/utils'; import { ClerkLoaded, ClerkLoading, UserButton } from '@clerk/nextjs'; import { Loader } from './loader'; import { SidebarItem } from './sidebar-item'; type Props = { className?: string; }; const SidebarItems = [ { n...
\documentclass{book} \usepackage{tikz} \usetikzlibrary{positioning,chains,fit,shapes,calc} \begin{document} \definecolor{myblue}{RGB}{80,80,160} \definecolor{mygreen}{RGB}{80,160,80} \begin{tikzpicture}[thick, every node/.style={draw,circle}, fsnode/.style={fill=myblue}, ssnode/.style={fill=mygreen}, every f...
import React, { useEffect, useState } from "react"; import { Button, Divider, Form, Input, Modal, Radio, Select, Table, } from "antd"; import { MINIMUMSKILLS } from "../const"; import { deleteData, getData, putData } from "../server/common"; import { Loading1 } from "../loading/Loading1"; import "./styl...
<form (ngSubmit)="onSubmit()" [formGroup]="formGroup"> <div class="d-flex justify-content-center"> <h4 class="mt-5">Todos los campos son obligatorios</h4> </div> <div class="vertical-center"> <mat-form-field> <mat-label>Tipo de documento</mat-label> <mat-select formCo...
#pragma once #include "identifier.h" class Environment { public: Environment() {} inline IdentifierList getIdList() const noexcept { return idList; } inline StringList getIdNameList() const noexcept{ StringList nameList; for (const Identifier& id : idList) nameList.push_back(id.getName()); return n...
#include <stdio.h> #include <stdarg.h> #include "variadic_functions.h" /** * print_all - Print a variable number of values based on a format string. * @format: A format string containing format specifiers. * @...: The values to be printed. * * Description: This function prints a variable number of values based on...
"use client"; import React, { useState } from "react"; const NewTransaction = () => { const [formInput, setFormInput] = useState({ name: "", description: "", date: "", price: "", }); const handleNameInputChange = (event) => { setFormInput({ ...formInput, name: event.target.value, ...