text stringlengths 184 4.48M |
|---|
Feature: Registro de usuario en la plataforma
Scenario: El uusuario visualiza el formulario de registro en la plataforma
Given el usuario cuenta con el rol de usuario no registrado
When el usuario selecciona el icono de Perfil
And el usuario selecciona la opcion "Registrate aqui"
T... |
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<script src="js/vue.js" type="text/javascript" charset="utf-8"></script>
</head>
<body>
<div id="box">
<!--3.使用组件-->
<demo></demo>
<demo></demo>
<demo-T2></demo-T2>
vm:{{msg1}}
</div>
<div id="box2">
<!--访问不到demo的内容-->... |
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>CSS3</title>
<link rel="stylesheet" href="css/reveal.min.css"/>
<link rel="stylesheet" href="css/theme/default.css" id="theme"/>
<!-- For syntax highlighting -->
<link rel="stylesheet" href="lib/css/zenburn.css"/>
<link rel="stylesheet" href="css... |
import { Flex, Divider, Text, Stack, SimpleGrid, Box, Table, Tbody, Tr, Td, Badge } from '@chakra-ui/react'
import { useContract, useContractRead, useAddress } from '@thirdweb-dev/react'
import { contracts } from '../../blockchain/post-deployment/addresses'
import { abi } from '../../blockchain/out/ChainopolyCenter.so... |
/*
* Copyright (C) 2020 The Android Open Source Project
*
* 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 app... |
from typing import List
from sqlalchemy.orm import aliased
from sqlalchemy.sql import text
from sqlalchemy import func
from fastapi import APIRouter
from core.database import get_session
from db.session import SessionLocal
from models.estadisticas_grupo import EstadisticasGrupo
from models.grupo import Grupo
from mode... |
<!-- Utiliza selectores CSS para dar estilo a elementos -->
<!--
Cuando escribiste <h2 style="color: red;">CatPhotoApp</h2>, estabas aplicando un estilo a ese elemento h2 específico usando CSS en línea; CSS significa hojas de estilo en cascada (Cascading Style Sheets).
Inline CSS es una de las formas de especif... |
import { Telegraf, Markup } from 'telegraf';
import { Token } from './config.js';
import { ApiId} from './config.js';
import pkg from 'pg';
const { Client } = pkg;
import { bd_connect } from './bd.js'
import fetch from "node-fetch";
const config_bd = bd_connect
const pic = 'https://pythonist.ru/wp-content/uploads/2020/... |
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Communautés des Camerounais de Madagascar</title>
<link rel="shortcut icon" href="./images/favicon.png" type="image/x-icon">
<!-- --------- fontawesome ------... |
import classNames from 'classnames/bind';
import styles from './SmallHeader.module.scss/';
import HeadlessTippy from '@tippyjs/react/headless';
import { Link } from 'react-router-dom';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { faUser } from '@fortawesome/free-solid-svg-icons';
import { ... |
/** @typedef {import("../validator").BasicValidation} BasicValidation */
/**
* @param {String} rangeA1
*
* @returns {BasicValidation}
*/
export function validateRangeA1Notation_(rangeA1) {
/**
* @param {String} message
* @returns {BasicValidation}
*/
function _bad(message) {
return {
is_val... |
import React from 'react';
import './App.css';
import Nav from './components/nav/nav';
import { BrowserRouter, Routes, Route, Navigate } from "react-router-dom";
import News from './components/news/news';
import Music from './components/music/music';
import Settings from './components/settings/settings';
import Dialogs... |
package com.example.fastcampusmysql.util;
import com.example.fastcampusmysql.domain.member.entity.Member;
import org.jeasy.random.EasyRandom;
import org.jeasy.random.EasyRandomParameters;
public class MemberFixtureFactory {
// default seed를 사용하는 메서드
static public Member create() {
var param = new Easy... |
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<style type="text/css">
* { color: #223322; }
input { font-family: 나눔고딕코딩; font-weight: bold; }
input:focus { background-color: #eeeedd; }
input.btn { width: 80px; font-weight: bold; font-family: 맑은 고딕; }
input.btn.hover { color... |
package br.edu.infnet.elberthapp.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
impo... |
defmodule SprintPlanning.User do
use Ecto.Schema
import Ecto.Changeset
alias SprintPlanning.User
@primary_key {:id, :binary_id, autogenerate: true}
@derive {Phoenix.Param, key: :id}
schema "users" do
field :email, :string
field :password, :string
timestamps()
end
@doc false
def changeset... |
import { Component, OnInit } from '@angular/core';
import { NgbDateStruct, NgbCalendar } from '@ng-bootstrap/ng-bootstrap';
import { DashboardService } from './dashboard.service';
import { ToastService } from 'src/app/core/services/toast.service';
@Component({
selector: 'app-dashboard',
templateUrl: './dashboard.... |
import { useSelector, useDispatch } from 'react-redux';
import { useEffect } from 'react';
import { getContacts } from 'redux/contacts/contacts-selector';
import { fetchContacts } from 'redux/operations';
import ContactForm from './ContactForm/ContactForm';
import ContactList from './ContactList/ContactList';
import F... |
import ValueObject from 'App/ValueObjects/ValueObject'
import Card from 'App/ValueObjects/Card'
export enum DeckType {
FULL = 'FULL',
SHORT = 'SHORT',
}
export default class Deck extends ValueObject<Deck> {
public deckId: string
public type: DeckType
public shuffled: boolean
public remaining: number
pu... |
import { useRowExpansion } from "@/hooks/useRowExpansion";
import type { CellFunctions, Columns } from "@/types/table";
import { type ReactNode, type Dispatch, type SetStateAction } from "react";
import {
Table,
TableHeader,
TableRow,
TableHead,
TableBody,
TableCell,
} from "./table";
type TableProps<T, P... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta name="title" content="PhoneInfoGet">
<meta name="description" content="website that lets you track ip addr... |
const express = require('express');
const router = express.Router();
const bcrypt = require('bcrypt');
const jwt = require('jsonwebtoken');
const dotenv = require('dotenv');
const { body, validationResult } = require('express-validator');
// Load environment variables from .env file
dotenv.config();
// Import User mo... |
import { Component, Input, OnInit } from '@angular/core';
import { UnsubscribeComponent } from '../../../shared/classes/unsubscribe.base';
import { GridInputsWithRequest } from '../../../models/interfaces/grid-inputs';
import {
Column,
eCrud,
eEntities,
eFieldControlType,
eGridRefreshType,
eGridRowActions,
... |
import 'package:flutter/material.dart';
import 'package:skeletonizer/skeletonizer.dart';
class TaskListSkeleton extends StatelessWidget {
const TaskListSkeleton({super.key});
@override
Widget build(BuildContext context) {
return Skeletonizer(
enabled: true,
child: ListView.builder(
itemC... |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
android:layout_height="match_parent" android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
... |
import { useQuery } from "@tanstack/react-query";
import { Link } from "@tanstack/react-router";
import { useState } from "react";
import { getGenres } from "../../api/api-services";
import { Comic } from "../../models/Comic";
import QueryResults from "./components/QueryResults";
import SearchForm from "./components/Se... |
/**
* Iterator for the dynamic array
* @file DynamicArrayIterator.h
* @author Kyle Givler
*/
#ifndef _DYNAMIC_ARRAY_ITERATOR_H_
#define _DYNAMIC_ARRAY_ITERATOR_H_
#include <iterator>
template <class T>
class DynamicArray;
template <class T>
class DynamicArrayIterator : public std::iterator<std::input_iterator_t... |
import React from 'react';
import { useSelector } from 'react-redux';
import { Link, useNavigate } from 'react-router-dom';
import Breadcrumb from '../../components/Breadcrumb';
import Cart from '../../components/Cart/Cart';
import CartSummary from '../../components/Cart/CartSummary';
const CartPage = () => {
const ... |
import { get } from 'lodash'
import React, { Component } from 'react'
import { PropTypes } from 'prop-types'
import classNames from 'classnames'
import { Icon, Tag } from '@kube-design/components'
import { Indicator } from 'components/Base'
import StatusReason from 'clusters/components/StatusReason'
import { CLUSTER_PR... |
#pragma once
#ifndef __MODEL_H__
#define __MODEL_H__
#include <iostream>
#include <rbdl/rbdl.h>
#include <rbdl/Body.h>
#include <rbdl/addons/urdfreader/urdfreader.h>
#include <Eigen/Dense>
#include <Eigen/Geometry>
using namespace std;
using namespace Eigen;
class Model
{
public:
RigidBodyDynamics::Model _model;
... |
#读书《赤裸裸的统计学》,作者查尔斯。韦兰。
统计学就像是一种高智商武器:正确地使用它能够帮助我们,但错误地使用它也会产生灾难性的后果。本书不会将你变成一个统计学专家,但会让你充分了解这个领域的基本概念,并对这个领域保持谨慎和尊重,不至于酿成大祸。
本书从数据、概率、中心极限定理、推断与检验、回归分析和项目评估几个方面循序渐进介绍了如何在日常生活和科学研究中正确应用统计概念。
瑞典数学家、作家安德烈斯的一句话:用数据说谎容易,但是用数据说出真相却很难。数据只不过是知识的原材料,而统计学则是我们分析信息获得有意义结果的最有力工具。如果你想要理解日常生活中出现的数字背后的含义,并见识到“数据”的巨大力量,统计学就是你的不二法宝。但... |
import React from 'react';
import * as Yup from 'yup';
import { Formik, Form } from 'formik';
import { Link } from 'react-router-dom';
import { Button, Box, Typography } from '@mui/material';
import Header from '../header/Header';
import { InputField, PasswordInputField } from '../common/CommonInput';
import { Valida... |
import 'package:flutter/material.dart';
import 'package:my_app_movies_bloc/src/blocs/movies_bloc.dart';
import 'package:my_app_movies_bloc/src/models/item_model.dart';
class MoviesList extends StatelessWidget {
MoviesList({super.key, required this.snapshot});
final AsyncSnapshot<ItemModel> snapshot;
final bloc =... |
import React from "react";
import Box from "@mui/material/Box";
import List from "@mui/material/List";
import ListItem from "@mui/material/ListItem";
import ListItemText from "@mui/material/ListItemText";
import Typography from "@mui/material/Typography";
import Title from "../general/Title";
const AdmissionProcedures... |
#include <iostream>
#include <fstream>
#include <unordered_set>
using namespace std;
//struct to hold x and y coordinates
struct coord
{
int x;
int y;
//constructor
coord(int x, int y) : x(x), y(y) {}
//overload == operator
bool operator==(const coord& rhs) const
{
return x ==... |
import pytest
from . import catalog
from . import utils
ELASTIC_INDEX = 'menu_items'
def make_places():
one = catalog.Place(
id=1,
slug='slug_1',
name='Рест без айтемов',
business=catalog.Business.Shop,
)
two = catalog.Place(
id=7,
slug='slug_7',
... |
package rpc
import (
"encoding/json"
"reflect"
)
func GenerateRPCSpec(svc interface{}) ([]byte, error) {
svcType := reflect.TypeOf(svc)
methods := make([]map[string]interface{}, 0)
for i := 0; i < svcType.NumMethod(); i++ {
method := svcType.Method(i)
if tag, ok := method.Type.Field(0).Tag.Lookup("rpc"); ok... |
package com.cahke.website.controller;
import java.util.ArrayList;
import java.util.List;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import com.cahke.webs... |
/* TITULO: Control de una hélice con motor DC y driver L9110H.
AUTOR:
MARIANO DEL CAMPO GARCÍA (@2016) --> INGENIERO TÉCNICO INDUSTRIAL ESPECIALIDAD ELECTRÓNICA
- FACEBOOK: https://www.facebook.com/mariano.delcampogarcia
- TWITTER: https://twitter.com/MarianoCampoGa
- CORREO: marianodc83@gmai... |
using HTTP
using JSON
using Plots
using Clustering
using YAML
using Statistics
config = YAML.load_file("../parameter.yaml")
CLUSTER_NUM = config["CLUSTER_NUM"]
NOW_MULTIPLE = config["NOW_MULTIPLE"]
multiple = NOW_MULTIPLE
# 計時
start = time()
response = HTTP.get("http://localhost:8000?size=" * string(multiple))
if ... |
import datetime
import os
from sqlalchemy import create_engine, String, DateTime, TEXT
from sqlalchemy.orm import DeclarativeBase, Mapped, mapped_column, sessionmaker
class ClientDatabase:
"""
Класс - оболочка для работы с базой данных клиента.
Использует SQLite базу данных, реализован с помощью
SQLA... |
import 'package:flutter/material.dart';
void main() => runApp(MaterialApp(
home: NinjaCard(),
));
class NinjaCard extends StatefulWidget {
@override
_NinjaCardState createState() => _NinjaCardState();
}
class _NinjaCardState extends State<NinjaCard> {
// State that will change
int ninjaLevel = 0;
... |
#pragma once
#include "core/Timestep.h"
#include "event/Event.h"
#include "renderer/RenderDevice.h"
#include "renderer/Swapchain.h"
namespace Neptune
{
// ----- Layer -----------------
class Layer
{
public:
virtual ~Layer() = default;
virtual void OnInit(const Neptune::Ref<Neptune::RenderDevice>& device) {... |
<!DOCTYPE html>
<html>
<head>
<title>Age Calculator Demo</title>
<link rel="stylesheet" href="style/basic.css" />
<link rel="stylesheet" href="style/custom.css">
<script src="js/time.js"></script>
<style>
/* Setting alignment and fonts */
#box {
display: flex;
text-align: center;
font-family:
"Gill Sans", ... |
import { Component, OnInit } from "@angular/core";
import {
UntypedFormBuilder,
UntypedFormGroup,
Validators,
} from "@angular/forms";
import { RoleService } from "src/app/core/services/app/role.service";
import { UserService } from "src/app/core/services/user/user.service";
import { OptionListService } from "src/ap... |
def has_reflection(idx, pattern, offset=0):
prev_idx = idx - offset
next_idx = idx + offset + 1
if prev_idx < 0 or next_idx == len(pattern):
return True
if pattern[prev_idx] == pattern[next_idx]:
return has_reflection(idx, pattern, offset=offset + 1)
return False
def has_smudged... |
import { IsNotEmpty, IsNumberString, IsString } from 'class-validator';
export class CreateReviewDto {
@IsNotEmpty()
@IsString()
title: string;
@IsNotEmpty()
@IsString()
description: string;
@IsNotEmpty()
@IsNumberString()
rating: number;
@IsNotEmpty()
@IsString()
country: string;
@IsNotE... |
import mongoose from "mongoose";
import bcrypt from "bcrypt";
import validator from "validator";
const Schema = mongoose.Schema;
const userSchema = new Schema({
email: {
type: String,
required: true,
unique: true
},
password: {
type: String,
required: true
}
}, { timestamps: true })
// s... |
<template>
<img
v-if="Object.keys(entries).length"
class="d-none"
:src="Object.keys(entries)[0]"
@load="
({ target }) => {
coverHeight = (target as HTMLImageElement).height;
coverWidth = (target as HTMLImageElement).width;
}
"
/>
<div
id="book-and-toc-container"... |
extends Node2D
const TOWER_MULT = [
0.1,
0.5,
1.0,
0.0,
]
const DROP_RATES = [0, 0, 1, 0]
# Shader stuff
const PLANT_MATERIAL := preload("res://shaders/PlantMaterial.tres")
onready var plant_material := PLANT_MATERIAL.duplicate()
const BORDER_COLOR_WARMUP := Color(1, 1, 1, 0)
const BORDER_COLOR_READY := Color(1... |
import { Component } from "react"
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { finishTask } from "../redux/actions/to-do.action";
class ToDoList extends Component {
handleInputChange = ({ target }, task) => {
const { dispatch } = this.props;
const value = target.type =... |
import * as Yup from "yup";
import axios, { AxiosError } from "axios";
export interface APIError {
code: string;
developerMessage?: string;
errorType?: string | null;
field?: string | null;
message: string;
}
export interface APIErrorResponse {
errors: APIError[];
path: string;
}
// Validation schema o... |
//
// Category.swift
// E-Store
//
// Created by Laptop MCO on 09/08/23.
//
import Foundation
struct Category {
let id: Int
let name: String
let image: String
}
extension Category: Codable {
enum CodingKeys: String, CodingKey {
case id = "id"
case name = "name"
case image =... |
"use client";
import React from "react";
import { useRouter } from "next/navigation";
import { Button } from "../ui/button";
import BasketButton from "./BasketButton";
import { useAuth } from "@/context/AuthContext";
import {
DropdownMenu,
DropdownMenuItem,
DropdownMenuShortcut,
DropdownMenuTrigger,
} from "@/c... |
<template>
<div :class="$style.wrapper">
<nav :class="$style.boards">
<li
v-for="board in $store.state.boards"
:key="board.id"
@click="$store.commit('setOpenedBoard', board.boardName)"
:class="{
[$style.activeBoard]: board.boardName === $store.state.openedBoard,
... |
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { CounterComponent } from './components/counter/counter.component';
import { FlightBookerComponent } from './components/flight-booker/flight-booker.component';
import { TemperatureComponent } from './components/temp... |
import './App.css';
import { BrowserRouter as Router, Route, Routes } from 'react-router-dom';
import { useState } from 'react';
import LoginPage from './pages/LoginPage';
import SignUpPage from './pages/SignUpPage';
import HomePage from './pages/HomePage';
import AdminPage from './pages/AdminPage';
import EditUser fro... |
package org.poo.challenge;
import java.time.LocalDate;
import java.util.HashSet;
import java.util.LinkedHashSet;
import java.util.Objects;
import java.util.Set;
public class Bootcamp {
private String name;
private String description;
private LocalDate startDate = LocalDate.now();
private LocalDate fin... |
import React, { useState } from 'react'
import { useNavigate } from "react-router-dom";
import AdminHearder from './AdminHearder';
function AddNewMeal() {
const [image, setImage] = useState("");
const [name, setName] = useState("");
const [price, setPrice] = useState("");
const [category, setCategory] ... |
function countSort(arr, exp, swaps) {
const length = arr.length;
let output = Array(length); // output array
let count = Array(10).fill(0, 0);
// Store count of digits in count[]
for (let i = 0; i < length; i++) {
const digit = Math.floor(arr[i] / exp) % 10;
count[digit]++;
}
... |
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { DetailsComponent } from './components/details/details.component';
import { HomeComponent } from './components/home/home.component';
import { MylistComponent } from './components/mylist/mylist.component';
const ro... |
import { Module } from '@nestjs/common';
import { MongooseModule } from '@nestjs/mongoose';
import { ConfigModule } from '@nestjs/config';
import { JwtModule, JwtService } from '@nestjs/jwt';
import { ServeStaticModule } from '@nestjs/serve-static';
import { join } from 'path';
import { UsersModule } from './users/use... |
---
description: 有关打包和保护内容的信息使您能够保护内容。
title: 包装和保护内容
source-git-commit: 02ebc3548a254b2a6554f1ab34afbb3ea5f09bb8
workflow-type: tm+mt
source-wordcount: '805'
ht-degree: 0%
---
# 包装和保护内容 {#packaging-protecting-content}
有关打包和保护内容的信息使您能够保护内容。
## 保护服务器 {#securing-the-server}
您需要对进行策略管理和内容打包的计算机进行物理保护。
有关更多信息,请参阅 [物理... |
from abc import ABC, abstractmethod
from datetime import datetime
from typing import List
from application.domain.entities.income import Income
class IncomeUseCase(ABC):
@abstractmethod
def create_income(self, timestamp: datetime, description: str, amount: float) -> Income:
"""Create a new income obj... |
/** @format */
import React from 'react';
import { MemoryRouter } from 'react-router-dom';
import {
MockedProvider,
InMemoryCache,
MockLink,
} from '@teamhub/apollo-config';
import { DepartmentProvider } from '../../components/departmentContext';
import { MuiThemeProvider } from '@material-ui/core/styles';
import... |
import { test, expect } from '@playwright/test'
import assertionManager from '../managers/assertionManager'
import LoginManager from '../managers/loginManager';
import { users, urls } from '../testdata/testdata'
import { HomePage } from '../pageobjects/HomePage'
import { LoginPage } from '../pageobjects/loginpage';
... |
import 'package:flutter/material.dart';
class BudgetFilteringStatusWidget extends StatelessWidget {
final String title;
final Color? backgroundColor;
final Color? textColor;
final FontWeight? fontWeight;
const BudgetFilteringStatusWidget({
Key? key,
required this.title,
this.backgroundColor,
... |
<!--markdown syntax-->
# `My Readme Template`
### `Normal text & new line`
<P>Hey Lambo, I need you the most. <br>
Have to be a billionaire.</P>
---
### `Heading Style`
# Tech World
## Tech World2
### Tech World3
#### Tech World4
##### Tech World5
###### Tech World6
---
## `Text Style`
<p>It is my target ... |
package jamule
import io.kotest.core.spec.style.FunSpec
import io.kotest.matchers.shouldBe
import jamule.ec.packet.PacketParserTest
import jamule.model.AmuleCategory
import jamule.model.DownloadCommand
import org.slf4j.Logger
import org.slf4j.LoggerFactory
import org.testcontainers.containers.GenericContainer
import o... |
#include "StringUtils.h"
#include "ProfilerCore.h"
namespace spt::lib
{
String StringUtils::ToHexString(const Byte* data, SizeType size)
{
SPT_PROFILER_FUNCTION();
static constexpr char dictionary[] = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F'};
const SizeType stringSize = si... |
//
// MaximumFrequencyStack.swift
// SwiftChallenges
//
// Created by KyleLearnedThis on 6/28/22.
// https://leetcode.com/problems/maximum-frequency-stack/
import Foundation
class MaximumFrequencyStack {
var numFrequency: [Int:Int]
var stack: [Int]
init() {
numFrequency = [Int:Int]()
... |
import React from 'react';
import './generic-card.scss';
export interface GenericCardProps {
width: number;
height?: number;
backgroundImg?: string;
elements: JSX.Element[];
}
export function GenericCard({ width, height, backgroundImg, elements }: GenericCardProps) {
const cardStyle = {
backgroundImage:... |
import { useContext } from "react";
import { CartContext } from "../context/CartContext";
import PropTypes from "prop-types";
const Product = ({ product }: any) => {
const { id, image, category, title, price } = product;
const { addToCart }: any = useContext(CartContext);
return (
<div className="border bo... |
import { FlattenSimpleInterpolation } from 'styled-components'
import styled, { css, DefaultTheme } from 'styled-components/native'
export type BoxVariants = 'danger' | 'primary' | 'secondary' | 'success'
type Props = {
variant?: BoxVariants
}
const getVariantStyles = (theme: DefaultTheme, variant: BoxVariants) =>... |
// SyncObjectManager.h
// This class wil hold and manage the vulkan sync objects
#ifndef SyncObjectManagerIncluded
#define SyncObjectManagerIncluded
// File includes
#include "../../Includes//VulkanIncludes.h"
// Standard library includes
#include <vector>
namespace D3D
{
class SyncObjectManager final
{
public:
... |
# mdnspp
Multicast DNS (mDNS) is a zero configuration service for resolving hostnames to IP addresses on (small) networks without a local name server.
This library is a cross-platform C++20 wrapper for the C library [mjansson/mdns](https://github.com/mjansson/mdns), which provides am implementation of the networking,... |
import BackgroundAnimation from "@/components/Background";
import Projects from "@/components/Projects";
import { motion } from "framer-motion";
import Image from "next/image";
import { TypeAnimation } from 'react-type-animation';
import React from "react";
import HomeStyles from "@/styles/Home.module.css";
import Fo... |
import dash
from dash import dcc, html
import dash_bootstrap_components as dbc
import pandas as pd
import plotly.graph_objs as go
import plotly.express as px
import numpy as np
# 2 - Data loading and app creation
#BS = ['https://codepen.io/chriddyp/pen/bWLwgP.css']
BS = "https://cdn.jsdelivr.net/npm/bootstrap@5.3.1/d... |
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8' />
<title>Swipe between maps</title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<script src='https://api.tiles.mapbox.com/mapbox-gl-js/v2.2.0/mapbox-gl.js'></script>
<link href='https://api.tiles.mapb... |
/*
Problem Statement -
There are n children who want to go to a Ferris wheel, and your task is to find a gondola for each child.
Each gondola may have one or two children in it, and in addition, the total weight in a gondola may not exceed x. You know the weight of every child.
What is the minimum number of gondolas n... |
package e2_Directed_DFS;
//@author - Eleanor Ezimah
import e1_Digraph.Digraph;
import external_package.Bag;
import external_package.In;
import external_package.StdOut;
public class DirectedDFS {
private boolean[] marked; // marked[v] = true iff v is reachable from source(s)
private int count; // numbe... |
import css from "@styles/chat/navbar/glowMenu.module.css";
import { Dispatch, FC, SetStateAction } from "react";
export type OptionsGlowMenu = Array<{
name: string;
action: () => void;
}>;
type GlowMenuType = {
style: string;
options: OptionsGlowMenu;
view: Dispatch<SetStateAction<boolean>>;
};
export cons... |
#pragma once
#ifndef UTILS_STRING_HELPER_H_
#define UTILS_STRING_HELPER_H_
#include <cstdarg>
#include <iostream>
#include <map>
#include <string>
#include <sstream>
#include <unordered_map>
#include <vector>
using std::map;
using std::string;
using std::unordered_map;
using std::vector;
using std::ostringstream;
na... |
/*
Given a search criteria object whose values will only be
primitives (ints, strings, booleans) and a list of objects.
return any object that matches all the key value pairs in the search
criteria object.
Bonus: write a 2nd solution using build in methods to practice functional
programming.
*/
const users = [
{ fir... |
// import React from "react";
// import "../../../styles/product-card.css";
// import { Link } from "react-router-dom";
// import { useDispatch } from "react-redux";
// import { cartActions } from "../../../store/shopping-cart/cartSlice";
// const ProductCard = (props) => {
// const { id, title, image01, price } ... |
export interface Movie {
adult: boolean
backdrop_path: string | null
belongs_to_collection: {} | null
budget: number
credits: MovieCredits
genres: MovieGenres[]
homepage: string | null
id: number
imdb_id: string | null
original_language: string
original_title: string
over... |
const redux = require('redux');
const counterReducer = (state = { counter: 0 }, action) => {
if (action.type === 'increment') {
return {
counter: state.counter + 1,
};
}
if (action.type === 'decrement') {
return {
counter: state.counter - 1,
};
}
return state;
};
const store = ... |
import {
AllowNull,
AutoIncrement,
Column,
NotEmpty,
PrimaryKey,
Table,
Model
} from "sequelize-typescript";
import { DataTypes } from "sequelize";
@Table({
tableName: "patients",
timestamps: true,
})
export default class Patient extends Model {
@AutoIncrement
@PrimaryKey
... |
import { useCallback, useState } from "react";
import { addTodo } from "../../../../store/todos/actions";
import { v4 as uuidv4} from "uuid";
export default function AddTodo() {
const todoId =uuidv4();
const [todo, setTodo] = useState({
id: "",
text: "",
});
const handleChange = (e) => {
setTodo({... |
/*
Freeware License, some rights reserved
Copyright (c) 2023 Iuliana Cosmina
Permission is hereby granted, free of charge, to anyone obtaining a copy
of this software and associated documentation files (the "Software"),
to work with the Software within the limits of freeware distribution and fair use.
This includes t... |
<!-- Code by Brave Coder - https://youtube.com/BraveCoder -->
<?php
session_start();
if (isset($_SESSION['SESSION_EMAIL'])) {
header("Location: welcome.php");
die();
}
include 'config.php';
$msg = "";
if (isset($_GET['verification'])) {
if (mysqli_num_rows(mysqli_query... |
import React from 'react';
import { Typography, IconButton, MenuItem, Menu, Avatar } from '@material-ui/core';
import MoreIcon from '@material-ui/icons/MoreHorizOutlined';
import styles from './Comment.module.scss';
import { ResponseUserTypes } from '../../utils/api/types';
import { Api } from '../../utils/api';
inte... |
import { createContext, useEffect, useState } from "react";
// type Theme = 'dark' | ''
interface appContextProps {
theme?: string
alterTheme?: () => void
}
export const appContext = createContext<appContextProps>({})
export function AppProvider(props: any) {
const [theme, setTheme] = useState('dark')
func... |
#include <stdio.h>
#define MAX_SIZE 100
int main()
{
int arr[MAX_SIZE];
int freq[MAX_SIZE];
int size, i, j, count;
/* Input size of array */
printf("Enter size of array: ");
scanf("%d", &size);
/* Input elements of array */
printf("Enter elements of array:\n");
for(i=0; i<size; i... |
import { useState, useEffect } from 'react'
import Header from './components/Header'
import Form from './components/Form'
import PatientsList from './components/PatientsList'
function App() {
const [patients, setPatients] = useState(JSON.parse(localStorage.getItem('patients')) ?? [])
const [onePatient, setOnePati... |
// Regular imports.
import AbstractEvent from './AbstractEvent'
import { setProto } from '../'
// Type imports.
import type { Client } from '../client'
import type { PlayerTagEvent } from '..'
/**
* BeAPI entered water event. Contains the logic
* for translating Minecraft event data to BeAPI
* wrapped data.
*/
ex... |
import React, { useState, useEffect } from 'react'
// Helper
import { helpHttp } from '../helpers/helpHttp'
// Components
import CrudForm from './CrudForm'
import CrudTable from './CrudTable'
import Loader from './Loader'
import Message from './Message'
const Crud = () => {
const [databaseData, setDatabaseData] =... |
package com.schools.Schools.exceptions;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseSt... |
import "./style.css";
import * as THREE from 'three.js';
import {OrbitControls} from 'three/examples/jsm/controls/OrbitControls';
const scene = new THREE.Scene();
const camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.1, 1000);
const renderer = new THREE.WebGLRenderer({
canvas: do... |
import {
Injectable,
CanActivate,
ExecutionContext,
HttpException,
HttpStatus,
} from '@nestjs/common';
import { Reflector } from '@nestjs/core';
import { PERMISSION_KEY } from './PermissionDecorator';
@Injectable()
export class PermissionGuard implements CanActivate {
constructor(private reflector: Reflec... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.