text
stringlengths
184
4.48M
#include <map> #include <Arduino.h> #include <ESP8266WiFi.h> #include <ESP8266HTTPClient.h> #include <BSTest.h> #include <pgmspace.h> BS_ENV_DECLARE(); void setup() { Serial.begin(115200); Serial.setDebugOutput(false); BS_RUN(Serial); } bool pretest() { WiFi.persistent(false); WiFi.mode(WIFI_OFF)...
<template> <Popup :visible="visible" :title="$t('labels/settings')" @dismiss="$emit('dismiss')" > <div class="setting"> <span class="heading setting-title">{{ $t("labels/flavor") }}</span> <span class="setting-description flavor-description">{{ $t("descriptions/setting_flavor") }}</span> <div class="...
from pox.core import core import pox.openflow.libopenflow_01 as of from pox.lib.revent.revent import * from pox.lib.util import dpidToStr from pox.lib.packet.ethernet import ethernet from pox.lib.packet.ipv4 import ipv4 from pox.lib.addresses import EthAddr, IPAddr import json ERROR = -1 class NumeroInvalidoDeSwitch(...
<?php namespace App\DataTables\Audit; use App\Traits\LogReader; use Yajra\DataTables\Html\Column; use Yajra\DataTables\Services\DataTable; class QueryDataTable extends DataTable { use LogReader; /** * Build DataTable class. * * @param mixed $query Results from query() method. * @return \...
<template> <h3>Login Page</h3> <router-link to="/">Home</router-link> | <router-link to="/about">About</router-link> | <router-link to="/register">Register</router-link> | <router-link to="/login">Login</router-link> | <router-link to="/profile">Profile</router-link> | <br/> <div class...
<!doctype html> <html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:sec="http://www.w3.org/1999/xhtml"> <head th:replace="fragments/head :: head"></head> <header th:replace="fragments/header :: header"></header> <body> <main role="main" class="container"> <div class="jumbotron pb-3 pt-4"> <div class=...
# DNS Spoofing Tool The DNS Spoofing Tool is a Python script that uses Scapy and NetfilterQueue to intercept and spoof DNS responses, redirecting a target website to a specified IP address. This tool can be used for educational purposes to demonstrate DNS spoofing and its implications. ## Requirements - Python 3.x -...
import { Component, OnInit } from '@angular/core'; import { FormArray, FormControl, FormGroup, Validators } from '@angular/forms'; import { ActivatedRoute, Router } from '@angular/router'; import { NewVideogioco } from '../model/videogioco'; import { CategoriaService } from '../service/categoria.service'; import { Vide...
#include <stdio.h> #include <string.h> #include <stdlib.h> typedef struct { char employee_name[100]; int emp_no; float emp_salary; } Employee; // Function to swap two Employee elements void swap(Employee *a, Employee *b, int *swap_count) { Employee temp = *a; *a = *b; *b = temp; (*swap_cou...
package hero; public abstract class BaseHero implements BaseHeroInterface { protected String name; protected int strength; protected int dexterity; protected int intelligence; protected int endurance; protected int health; protected int healthMax; // Полный конструктор public Ba...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" /> <meta http-equiv="x-ua-compatible" content="ie=edge" /> <link href='https://fonts.googleapis.com/css?family=Poppins' rel='stylesheet'> <link hr...
import { Suspense } from 'react'; import MovieInfo, { getMovie } from '../../../../components/movie-info'; import MovieVideos from '../../../../components/movie-videos'; // dynamic metadata를 위해 자동으로 호출 export const generateMetadata = async ({ params: { id }, }: { params: { id: string }; }) => { const movie = awa...
import 'package:alarmtogether/controllers/firebase_helper/server_data.dart'; import 'package:alarmtogether/models/alarm.dart'; import 'package:alarmtogether/views/pages/alarm/alarm_layout.dart'; import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:go_router/go_router.dart'; ...
const container = document.querySelector(".container"); const search = document.querySelector(".search-box button"); const weatherBox = document.querySelector(".weather-box"); const weatherDetails = document.querySelector(".weather-details"); const error404 = document.querySelector(".not-found"); //事件監聽點擊觸發功能 search.a...
<?php namespace App\Http\Controllers; use App\Models\Position; use App\Models\Employee; use Illuminate\Http\Request; use Illuminate\Support\Facades\Validator; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Storage; use RealRashid\SweetAlert\Facades\Alert; use PDF; class EmployeeController exten...
#pragma once #include <string> #include <array> class Product{ public: enum Products : unsigned int{ BREAD, BUNS, MILK, JUICE, SODA, TEA, COFFEE, OATS, CHEESE, POLONY, ACHAR, NAPPIES, AIRTIME, DATA }; Products name; float price; int quantity; Product(); Product(Products pName, i...
import { ConflictException, Injectable } from '@nestjs/common'; import { IBaseQuery } from '~libs/resource/interfaces'; import { CreateCategoryDTO, UpdateCategoryDTO } from './dtos'; import { CategoriesRepository } from './categories.repository'; import { Category } from './schemas'; import { RpcException } from '@nest...
import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { UserProfileComponent } from './user-profile.component'; import { RegisterComponent } from './register/register.component'; import { ChangePwdComponent } from './change-pwd/change-pwd.component'; import { HomeCompo...
import {AfterViewInit, Component, ElementRef, OnInit, ViewChild} from '@angular/core'; import {ActivatedRoute} from '@angular/router'; import {Course} from '../model/course'; import { debounceTime, distinctUntilChanged, startWith, tap, delay, map, concatMap, switchMap, withLatestFrom, concatAll, sha...
import type { Metadata } from 'next'; import { Session } from 'next-auth'; import { Inter } from 'next/font/google'; import React from 'react'; import { siteConfig } from '@/config'; import { Providers } from '@lib/Providers'; import '@styles/global.css'; const inter = Inter({ subsets: ['latin'] }); export const met...
package layout import scala.util.{Random => R} import scala.annotation.tailrec import layout.TypeAlias._ trait LayoutToolsEn extends LayoutTools with LeftKeysAndRightKeysEn with CharsEn with MakeChromosome with EvaluateFitness with KeyCharToCharKey with CrossoverChromosomes {} trait LayoutTools { val leftKeys:...
import { SignerWithAddress } from "@nomiclabs/hardhat-ethers/signers"; import { expect } from "chai"; import { parseEther } from "ethers/lib/utils"; import { ethers } from "hardhat"; import { deployCrossChainWarriorsMock, deployZetaConnectorMock } from "../lib/cross-chain-warriors/CrossChainWarriors.helpers"; impo...
<template> <v-dialog v-model="editMeetingDialog" max-height="550" max-width="320" persistent > <form @submit.prevent="checkCategoryChange" autocomplete="off"> <v-card dark> <v-card-text> <v-container> <v-row> <v-col cols="12" sm="6" md="4"> ...
openEuler 22.03-V2 for RISC-V 系统镜像使用说明 ### 0.免责声明 须知:RISC-V 体系结构的 openEuler 22.03-V2 镜像只适用于体验与技术交流用途,不对因系统问题导致的诸如数据丢失等任何后果承担责任。 Note: openEuler 22.03-V2 for RISC-V is only for preview or development usage. Thus, openEuler RISC-V Community does not take responsibility for any consequences such as data loss caused by ...
import React, { useState, useEffect } from "react"; import jwt from "jsonwebtoken"; import { Switch, BrowserRouter as Router, Route } from "react-router-dom"; import { useWeb3React } from '@web3-react/core'; import { Toaster } from 'react-hot-toast'; import "./App.css"; import "antd/dist/antd.css"; import { connectors...
import React from "react"; import { useState } from "react"; import { useParams, Link } from "react-router-dom"; import InfiniteScroll from "react-infinite-scroll-component"; import axios from "axios"; import "./moreGenrePage.css"; import { Watch } from "react-loader-spinner"; import MovieCard from "../components/Movie...
// // AuthTextField.swift // Whatsapp_Clone // // Created by Kareddy Hemanth Reddy on 27/04/24. // import SwiftUI struct AuthTextField: View { @Binding var text:String let type:InputType var body: some View { HStack{ Image(systemName:type.imageName) .fontWeight(.semi...
import supertest from 'supertest' import web from '../../src/applications/web.js' import { createTestUser, removeTestUser } from '../utils/user.util.js' const uniqueEmail = 'test33@example.com' describe('GET /register - endpoint', () => { it('should be able to show register page', async () => { const result = a...
--- date: 2023-10-12 tags: - theorem --- $E(x, \dot x) = \frac{1}{2}m \| \dot x \|^2 + V(x)$ is a [[📘 Constant of Motion]] $\Leftrightarrow - \nabla V = F$ >[!info]- > 1. $E(x, \dot x) = \frac{1}{2}m \| \dot x \|^2 + V(x)$ is the [[Energy function]] aka the [[📘 Total Energy]] > 2. $V(x) : \mathbb{R}^n \rightarrow ...
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; using Microsoft.AspNetCore.Mvc.Rendering; using Microsoft.EntityFrameworkCore; using Groza_Ionut_Barbershop.Data; using Groza_Ionut_Barbershop.Mode...
package com.example.hikewise.model import android.util.Log import androidx.lifecycle.LiveData import androidx.lifecycle.MutableLiveData import androidx.lifecycle.ViewModel import androidx.lifecycle.viewModelScope import com.example.hikewise.remote.UserRepository import com.example.hikewise.response.GetTransactionEmail...
function calJV = solver(device, dataJV, retrievedParameters) % ------------------------------------------------------------------------- % Solving JV curved with the retrieved parameters from MDB model fitting. % % Arguments: % device: a Device object containing relevant params % dataJV: a table containing the volt...
import React from "react"; import PropTypes from "prop-types"; const shapes = { square: "rounded-[0px]", round: "rounded-[10px]", }; const variants = { fill: { white_A700: "bg-white-A700 text-gray-600_02", gray_50_02: "bg-gray-50_02 text-gray-700", }, }; const sizes = { sm: "h-[48px] pl-4 pr-[35px] t...
import Link from "next/link"; import {RadioTower, Settings} from "lucide-react"; import {Tooltip, TooltipContent, TooltipTrigger} from "@/components/ui/tooltip"; import Header from "@/components/menu/header"; import RoutesLinks from "@/components/menu/routes-links"; export default function layout({children}: {childre...
import * as O from "fp-ts/Option"; import * as E from "fp-ts/Either"; import validators from "../../utils/validators"; import { npgSessionFieldsResponse } from "../testUtils"; import "jest-location-mock"; import { ErrorsType } from "../errors/errorsModel"; const { evaluateHTTPFamilyStatusCode, cardNameValidation, ...
<template> <div class="app-container"> <!-- 头部筛选 --> <el-card shadow="never" class="card"> <el-form ref="queryForm" :inline="true" :model="queryParams"> <el-form-item prop="productOrderId"> <el-input v-model="queryParams.productOrderId" clearable size="small" placeholder="制令单号" style="...
// Copyright (c) The OpenTofu Authors // SPDX-License-Identifier: MPL-2.0 // Copyright (c) 2023 HashiCorp, Inc. // SPDX-License-Identifier: MPL-2.0 package globalref import ( "context" "path/filepath" "testing" "github.com/zclconf/go-cty/cty" "github.com/opentofu/opentofu/internal/addrs" "github.com/opentofu/...
import 'package:flutter/material.dart'; import 'package:shared_preferences/shared_preferences.dart'; import '../../../backend/styles/theme.dart'; import '../../../backend/widgets/randome_generator.dart'; import 'random_generator_result_screen.dart'; void main() { runApp(const MyApp()); } class MyApp extends Statele...
# ptywrapper `ptywrapper` is a Go module that provides a simplified interface for running commands in a pseudo-terminal (PTY). It is essentially a wrapper around the [github.com/creack/pty](https://github.com/creack/pty) module, designed to make it easier to implement in your programs. This module was created to addr...
# # (C) Tenable Network Security, Inc. # # References: # # http://www.nessus.org/u?fd6d1531 # # Date: Sun, 10 Mar 2002 21:37:33 +0100 # From: "Obscure" <obscure@eyeonsecurity.net> # To: bugtraq@securityfocus.com, vulnwatch@vulnwatch.org # Subject: IMail Account hijack through the Web Interface # # Date: Mon, 11 Mar...
<app-header-breadcrumb></app-header-breadcrumb> <div class="card panel-default-header"> <p-panel header="Recherche Personne"> <br> <div class="ui-g form-group"> <div class="ui-g-12 ui-md-6"> <span class="ui-float-label"> <p-dropdown ...
import { Component } from 'react'; import axios from "axios"; import { Link } from "react-router-dom"; class LoanList extends Component{ constructor(props){ super(props) this.state = { loans:[] } } componentDidMount(){ axios.get('http://localhost:3032/api/c...
<template> <a-spin :loading="loading" style="width: 100%" :size="40"> <a-form :model="setting" :style="{width:'900px'}" layout='vertical'> <a-form-item field="rad_config" label="Rad爬虫配置"> <a-textarea v-model="setting.rad_config" :auto-size="{ minRows:12, maxRows:20 }"/>...
import { Box, Button, FormControl, Input, Modal, ModalBody, ModalCloseButton, ModalContent, ModalFooter, ModalHeader, ModalOverlay, Spinner, Text, useDisclosure, useToast, } from "@chakra-ui/react"; import { useState } from "react"; import UserListItem from "../UsersItems/UserListItem"; im...
import React, { useEffect, useState } from 'react'; import { GlobeAltIcon, DocumentDownloadIcon } from '@heroicons/react/outline'; function SiteTitle({ site }) { const [favicon, setFavicon] = useState({ url: `${site}/favicon.ico`, loading: true, error: false }); const title = site.replace('https://', '').repl...
import {Builder} from '@logi/base/ts/common/builder' import {Impl} from '@logi/base/ts/common/mapped_types' import {ResolvedNode} from '@logi/src/lib/intellisense/utils' import {ViewPart} from './part' export interface PanelItem { readonly parts: readonly ViewPart[] readonly resolvedNode?: ResolvedNode } cla...
package server import ( "context" api "github.com/bhatti/PlexAuthZ/api/v1/services" "github.com/bhatti/PlexAuthZ/api/v1/types" "github.com/bhatti/PlexAuthZ/internal/authz" "github.com/bhatti/PlexAuthZ/internal/service" ) type relationshipsServer struct { api.RelationshipsServiceServer authAdminService service....
import { configureStore, ThunkAction, Action } from '@reduxjs/toolkit' import chatReducer from './slices/chatSlice' import authReducer from './slices/authSlice' import profileReducer from './slices/profileSlice' import marketplaceReducer from './slices/marketplaceSlice' import commonReducer from './slices/commonSlice'...
import { Field, Int, ObjectType } from '@nestjs/graphql'; import { BeforeInsert, BeforeUpdate, Column, CreateDateColumn, Entity, PrimaryGeneratedColumn, UpdateDateColumn, } from 'typeorm'; @Entity({ name: 'users' }) @ObjectType() export class User { @PrimaryGeneratedColumn('increment') @Field(() => I...
package com.lab.server.command.commands; import com.lab.common.exchange.Response; import com.lab.common.musicBand.MusicBand; import com.lab.common.musicBand.exceptions.ValidationException; import com.lab.common.user.User; import com.lab.server.command.Command; import com.lab.server.executor.Editor; import java.util.L...
/* Copyright (c) 2010, Yahoo! Inc. All rights reserved. Code licensed under the BSD License: http://developer.yahoo.com/yui/license.html version: 3.3.0 build: 3167 */ YUI.add('array-extras', function(Y) { /** * Collection utilities beyond what is provided in the YUI core * @module collection * @submodule array-extr...
import { ContainerPreview, Content } from './styles'; import { LuClock3 } from 'react-icons/lu'; import { BiArrowBack } from 'react-icons/bi'; import { Header } from '../../components/Header'; import { Section } from '../../components/Section'; import { Tag } from '../../components/Tag'; import { Link } from 'react-rou...
from array import array from cmath import sqrt from datetime import datetime import numpy as np import copy import time import random class VectorOperator: def unesi_vektore_iz_fajla(self, broj_vektora, velicina_baze): vektori = [] with open('C:/Users/Tihomir/Documents/Faks/Zavrsni/.vscode/vektori...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>组件嵌套</title> <script src="../js/vue.js"></script> </head> <body> <div id="root"> <app></app> </div> <script> //创建teacher组件 const teacher = Vue.extend({ template: ` <div> ...
# 로또 게임 ## 프로젝트 개요 프로젝트의 목표는 로또 게임을 구현하는 것이다. 로또 게임 프로그램은 사용자가 금액을 입력하면 해당 금액에 따라 로또를 발행하고, 사용자에게 당첨 번호와 보너스 번호를 입력받아 발행된 로또와 당첨 번호를 비교하여 당첨 내역 및 수익률을 계산한다. ## 구현 기능 목록 ### Model - - - **Lotto** - ✅ 6개의 번호를 가진 로또를 생성한다. - ✅ (E) 번호의 개수가 6개가 아닐 경우 예외를 발생시킨다. - ✅ (E) 번호의 범위가 1~45의 범위가 아닐 경우 예외를 발생시킨다. - ✅ ...
// // SecureConfig.swift // FoursquareVenues // // Created by Dan Merlea on 03.09.2023. // import Foundation @propertyWrapper struct SecuredConfig { var key: String var value: String = "" init(_ value: String) { self.key = value } var wrappedValue: String { get { ...
import React from "react"; import Card from "./Card"; // import { api } from '../utils/api'; import { CurrentUserContext } from "../contexts/CurrentUserContext"; function Main(props) { const currentUser = React.useContext(CurrentUserContext); return ( <main> <section className="profile"> <div cl...
import { Directive, ElementRef, OnDestroy, OnInit, Renderer2, TemplateRef, ViewContainerRef } from '@angular/core'; import { GlobalPositionStrategy, Overlay, OverlayRef } from '@angular/cdk/overlay'; import { GhmDraggableDirective } from './ghm-draggable.directive'; import { ComponentPortal, Portal, TemplatePortal } fr...
/* *********************************************** 단일행 함수: - 행별로 처리하는 함수. 문자/숫자/날짜/변환 함수 - 단일행은 select, where절에 사용가능 다중행 함수: - 여러행을 묶어서 한번에 처리하는 함수 => 집계함수, 그룹함수라고 한다. - 다중행은 where절에는 사용할 수 없다. (sub query 이용) * ***********************************************/ /* ************************************************...
#include "Pipeline.h" #include <QDebug> #include <gst/video/videooverlay.h> void Pipeline::handle_pipeline_message(GstMessage* msg) { GError* err; gchar* debug_info; switch (GST_MESSAGE_TYPE(msg)) { case GST_MESSAGE_INFO: gst_message_parse_info(msg, &err, &debug_info); qInfo() << QString("Info from %1: %2\n"...
/****************************************************************************** * @file export_format_combobox.h ** @author DS Caskey ** @date Mar 15, 2022 ** ** @brief ** @copyright ** ** Seamly2D is free software: you can redistribute it and/or modify ** it under the terms of the GNU General Publ...
package net.janci.zoregano.core; import net.janci.zoregano.api.BIOS; import net.janci.zoregano.api.BIOSModule; import net.janci.zoregano.concurrent.NamedThreadFactory; import java.util.List; import java.util.ServiceLoader; import java.util.concurrent.CountDownLatch; import java.util.concurrent.ExecutorService; import...
import { VStack, Image, Text as ChakraText, Heading, Card, CardHeader, CardBody, Skeleton, SkeletonText, Button, } from "@chakra-ui/react"; import { useState, useEffect } from "react"; import { useNavigate } from "react-router-dom"; import { useTheme } from "../../assets/context/theme.context.js"; i...
/*************************************************************************** * The FreeMedForms project is a set of free, open source medical * * applications. * * (C) 2008-2015 by Eric MAEKER, MD (France) <eric.maeker@gmail.com> * * All righ...
<%@ page language="java" contentType="text/html; charset=UTF-8" import="java.util.*" import="sec02.ex01.*" pageEncoding="UTF-8" %> <!-- 사용자가 입력한 이름을 기반으로 회원을 검색하고, 검색 결과를 테이블 형태로 출력하는 기능을 제공 --> <% // 요청의 문자 인코딩을 설정 request.setCharacterEncoding("utf-8"); // 사용자가 입력한 이름을 가져옴 String _name = request.get...
import cv2 import numpy # Initialization function for call the trackbar def call_trackbar(x): # No action needed, just a reference. print("") # Camera Initialization cap = cv2.VideoCapture(1) # Creates six bars for upper hsv and lower hsv bars = cv2.namedWindow("bars") # Creating the trackbar # Max value f...
% % tridiagonal_vector Solves the tridiagonal linear system Ax = d for x % using the vector implementation of the tridiagonal matrix algorithm. % % x = tridiagonal_vector(a,b,c,d) % % Copyright © 2021 Tamas Kis % Last Update: 2022-10-22 % Website: https://tamaskis.github.io % Contact: tamas.a.kis@outlook.com % % TE...
import type Spotify from 'spotify-web-api-node'; import Queue from 'better-queue'; import chunk from 'lodash/chunk'; import { asyncSafeInvoke } from '@moovin-groovin/shared'; import ServerModule, { assertContext, Handlers, Services, } from '../../lib/ServerModule'; import type { ApiSpotifyData } from './data'; i...
import React, { useState, useEffect } from 'react' import { useNavigate } from 'react-router-dom' import logo from "../logo.png" import add from "../add.png" import "./Navbar.css" export default function Navbar(props){ const navigate = useNavigate() function logOut(e){ localStorage.removeItem("token"...
package core; import org.lwjgl.*; import org.lwjgl.glfw.*; import org.lwjgl.opengl.*; import static org.lwjgl.glfw.Callbacks.*; import static org.lwjgl.glfw.GLFW.*; import static org.lwjgl.opengl.GL40.*; /* Created on February 16, 2024 @author David Eichinger Anticipating that the applications created will event...
import { Component, ChangeDetectorRef} from '@angular/core'; import { Album } from '../album-list/service/album'; import { CommonModule, Location } from '@angular/common'; import { ActivatedRoute, RouterModule } from '@angular/router'; import { FormsModule } from '@angular/forms'; import { AlbumListComponent } from '.....
import { ObjectId } from 'mongoose'; import { Body, Controller, Get, Param, Post, Put, Query, UploadedFiles, UseInterceptors, } from '@nestjs/common'; import { CourseService } from './course.service'; import { CreateCourseDto } from './dto/create-course.dto'; import { UpdateCourseDto } from './dto/upd...
package com.yaude.modules.demo.mock; import java.io.File; import java.io.IOException; import java.io.InputStream; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax...
// leetcode844: backspace-string-compare #include <cstdio> #include <iostream> #include <stack> #include <vector> #include <string> #include <sstream> using namespace std; bool backspaceCompare(string S, string T) { if (S == "" && T == "") return true; bool res = true; stack<char> stackS; stack<char> stackT; /...
#! /usr/bin/python2.4 # pajekpart -- a partition maker for Pajek (a program for network analysis) # # Copyright (c) 2005 Ryszard Szopa # # Author: Ryszard Szopa <ryszard (dot) szopa (at) gmail (dot) com> # http://szopa.tasak.gda.pl/ # http://szopa.wordpress.com/ # # This program is free sof...
<%@page import="java.io.FileOutputStream"%> <%@page import="java.text.SimpleDateFormat"%> <%@page import="org.jdom2.output.Format"%> <%@page import="kr.co.sist.member.vo.StudentVO"%> <%@page import="java.util.List"%> <%@page import="java.sql.SQLException"%> <%@page import="kr.co.sist.dao.StuDAO"%> <%@page import="java....
#include <iostream> using namespace std; class node { public: int data; node *next; node() { this->data = 0; this->next = NULL; } }; class stack { node *top; public: stack() { top = NULL; } void push(int num) { node *temp = new node(); ...
import { useEffect, useState } from 'react' import type { GetStaticProps } from 'next' import { DefaultLayout } from '@templates/index' import { getProjectsContent } from '@services/projects' import { getBannersPpalContent } from '@services/bannersPpal' import { getLogoContent } from '@services/logo' import { getAboutU...
<?php namespace App\Http\Controllers; use App\Models\Testmonial; use Illuminate\Http\Request; use App\Traits\Common; class TestmonialController extends Controller { /** * Display a listing of the resource. */ use Common; public function index() { $testmonials = Testmonial::get(); ...
<template> <div class="card"> <img class="image" :src="img" :alt="text" /> <div class="info"> <span class="info-top">{{ text }}</span> <span class="info-bottom"> <time>{{ date || today }}</time> <button> <a :href="img" :download="file"> <svg xmlns="http://www....
import React, { ReactNode, createContext, useEffect, useState } from 'react'; import axios from 'axios'; import { Contato } from '../../types/contato'; interface ContatoContextProps { contatos: Contato[]; addContato: (contato: Contato) => Promise<void>; editContato: (contato: Contato) => Promise<void>; ...
import logging import os from typing import Dict from unittest.mock import Mock, patch import pytest from backend.layers.common.entities import CollectionId, CollectionVersionId, DatasetStatus, DatasetVersionId from backend.layers.processing.upload_failures.app import ( FAILED_ARTIFACT_CLEANUP_MESSAGE, FAILED...
<template> <div> <span v-html="htmlContent"></span> </div> </template> <script lang="ts"> import { Component, Prop, Vue, Watch } from 'vue-property-decorator' import MarkdownIt from 'markdown-it' const md = new MarkdownIt(({ html: true })) @Component export default class MarkdownDisplay extends Vue { @Pr...
import React, { useEffect, useState } from 'react'; import axios from 'axios'; const Check = () => { const [data, setData] = useState(null); const [error, setError] = useState(null); useEffect(() => { const fetchData = async () => { try { const response = await axios.get('http://localhost:8000...
import React, { Component } from "react"; import { CometChat } from "@cometchat-pro/chat"; import { CC_APP_ID, CC_API_KEY, CC_API_REGION } from "../../constants"; import ChatContainer from "./ChatContainer"; import Cookies from "js-cookie"; import jwt_decode from "jwt-decode"; import axios from "axios"; var groupsRequ...
=== Members Restricted Access === Contributors: mcostales84 Donate Link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=VWWTUHZWRS4DG Tags: restrict access, members, visitor, restric by role Requires at least: 3.0.1 Tested up to: 4.4.2 Stable tag: 3.0 License: GPLv2 License URI: http://www.gnu.or...
import { Heading, Text } from '@radix-ui/themes'; import React from 'react' import { useNavigate } from 'react-router-dom'; interface IConversationCard { id: number; channelId: string | undefined; name: string; description: string; } function ConversationCard({ id, channelId, name, description }: ICon...
const cluster = require("node:cluster"); const express = require("express"); const dotenv = require("dotenv"); const nodemailer = require("nodemailer"); const os = require("os"); const fs = require("fs"); const cookieParser = require("cookie-parser"); const csv = require("csv-parser"); const cors = require("cors"); con...
--- title: deleteMessagesFromUser description: Deletes all messages in the chat sent by the specified user. Works only in supergroup channel chats, needs appropriate privileges --- ## Method: deleteMessagesFromUser [Back to methods index](index.md) Deletes all messages in the chat sent by the specified user. Works ...
package com.timeless.events.controller.impl; import com.timeless.events.controller.ICountryController; import com.timeless.events.dto.entity.country.CountryRequest; import com.timeless.events.dto.entity.country.CountryResponse; import com.timeless.events.service.ICountryService; import jakarta.validation.Valid; import...
package com.mdd.coupon.validate; import com.mdd.common.validate.BaseParam; import com.mdd.common.validator.annotation.IDMust; import com.mdd.common.validator.annotation.IDLongMust; import com.mdd.common.validator.annotation.IntegerContains; import lombok.EqualsAndHashCode; import lombok.experimental.Accessors; import ...
{% extends 'form_div_layout.html.twig' %} {# widgets #} {%- block widget_attributes -%} {%- if id %}id="{{ id }}"{% endif -%} name="{{ full_name }}" {%- if disabled %} disabled{% endif -%} {%- if required %} required{% endif -%} {{ block('attributes') }} {%- endblock widget_attributes -%} {%- blo...
<?PHP //Ejercicio 1: Semáforo //Cree una función llamada Semaforo, que recibe por parametro un cólor cómo texto (“rojo” //“amarillo”,”verde”). Dicha función devolverá el estado que corresponde: “frene”, “precaución”, //“avance” o “estado desconocido” ante un caso no esperado. //a) función semaforo_a($color): Resuelva l...
/* Task: Shortest Segment with Sum at Least K A financial company trades on the stock exchange for n days. Its earnings for each day are known (it can be negative if the company traded unfavorably that day). Determine the minimum number of consecutive days in which the sum of the company's earnings is at least k. Inpu...
@extends('AdminPanel.Layouts.app') @section('page_title') @lang('app.UPDATE') @lang('app.METHODOLOGY') @lang('app.DESC') @endsection @section('content') <!-- general form elements --> <div class="card card-primary"> <div class="card-header"> <h3 class="card-title">@lang('app.UPDATE')</...
import { numberOfPairs } from './main'; describe('numberOfPairs', () => { it('returns 0 for an empty array', () => { expect(numberOfPairs([])).toBe(0); }); it('returns 0 when there are no pairs', () => { expect(numberOfPairs(['red', 'green', 'blue'])).toBe(0); }); it('returns 1 when there is 1 pair...
import asyncio import logging import os from PIL import Image, ImageDraw, ImageOps from aiogram import Bot, Dispatcher from aiogram.dispatcher.filters.state import State, StatesGroup from aiogram.dispatcher.storage import FSMContext from aiogram.contrib.fsm_storage.memory import MemoryStorage from aiogram import types...
package com.example.a18478 import android.Manifest import android.content.Intent import android.content.pm.PackageManager import android.os.Bundle import android.util.Log import android.widget.Button import android.widget.ImageView import android.widget.TextView import androidx.activity.result.ActivityResultLauncher i...
// C++ program to demonstrate // Run Time Type Identification successfully // With virtual function #include <iostream> using namespace std; // Initialization of base class class B { public: virtual void fun() { cout<< "Dynamic cast\n"; } }; // Initialization of Derived class class D : public B { }; // Driver ...
.\" Copyright (c) 2015, Carsten Kunze .\" All rights reserved. .\" .\" Redistribution and use in source and binary forms, with or without .\" modification, are permitted provided that the following conditions are met: .\" .\" 1. Redistributions of source code must retain the above copyright notice, .\" this list of ...