text stringlengths 184 4.48M |
|---|
import React, {useEffect, useRef, useState} from 'react'
import {Button, Card, message, Modal, Table} from 'antd'
import LinkButton from '../../components/LinkButton'
import UserForm from './user-form'
import {formatDate} from '../../utils/dateUtil'
import {PAGE_SIZE} from '../../config/baseConfig'
import {reqRoleList... |
-- Copyright Philip Clarke 2021
--
-- ---------------------------------------------------------------------
-- This source describes Open Hardware and is licensed under the CERN-OHL-S v2.
-- You may redistribute and modify this source and make products using it
-- under the terms of the CERN-OHL-S v2 (https://ohwr.org/... |
from variant_visualizer.core._bio_references import _BioReference
from .. import core
class ProteinAnnotation(core.BioRegion):
def __init__(self, start: int, end: int, reference: _BioReference, annotation_type: str, description: str, source: str, label=str):
super().__init__(start, end, reference, label)
... |
import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
var _excluded = ["onChange", "onFocus", "onBlur", "onPressEnter", "onKeyDown", "type", "disabled", "className", "inputClassName", "defaultValue", "status", "size"];
imp... |
/*
* client-otr4j, the echonetwork client for otr4j.
* SPDX-License-Identifier: GPL-3.0-only
*/
package nl.dannyvanheumen.echonetwork.client.otr4j;
import net.java.otr4j.api.InstanceTag;
import net.java.otr4j.api.OtrException;
import net.java.otr4j.api.OtrPolicy;
import net.java.otr4j.api.Session;
import net.java.o... |
<template>
<div class="container">
<pie-chart v-if="showIn" :chartdata="types" :options="options" />
<div class="display-1 text-center my-10" v-else>
Não há dados no momento!
</div>
</div>
</template>
<script>
import { mapState, mapMutations, mapActions } from "vuex";
import PieChart from "../Cha... |
/*
* Copyright 2006-2013 Alessandro Cocco.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law o... |
/*
Given an integer array nums, return the length of the longest strictly increasing subsequence.
A subsequence is a sequence that can be derived from an array by deleting some or no elements without changing the order of the remaining elements. For example, [3,6,2,7] is a subsequence of the array [0,3,1,6,2,2,7].
Exam... |
#include <TC_Memory.h>
#include <cstring>
#include <algorithm> // for std::for_each, copy and copy_if
#include <numeric> // for std::iota
#include <list>
#include <vector>
#include <iterator>
namespace techyB
{
int TC_Memory::ListElem::objCount{0};
void TC_Memory::basicCopyDemo()
{
const int BUF... |
<?php
namespace App\Http\Controllers\Backend;
use App\Http\Requests\Country\UpdateCountryRequest;
use Illuminate\Contracts\View\View;
use App\Contracts\Backend\CountryContract;
use App\Http\Requests\Country\StoreCountryRequest;
use App\Services\UtilService;
use App\Http\Enums\CommonEnum;
use Illuminate\Http\RedirectR... |
package com.projet_voiture.projet_voiture.controller;
import java.util.List;
import java.util.Optional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.DeleteMappin... |
<!DOCTYPE html>
<html lang="en">
<head>
{% include "partials/header.html" %}
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/bbbootstrap/libraries@main/choices.min.css">
<script src="https://cdn.jsdelivr.net/gh/bbbootstrap/libraries@main/choices.min.js"></script>
</head>
<body class="sb-nav-fixed... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>DynamicSelector</title>
</head>
<!-- This is Link for Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="styl... |
package com.ssafy.kkoma.api.member.controller;
import com.ssafy.kkoma.api.member.service.MemberService;
import com.ssafy.kkoma.api.offer.service.OfferService;
import com.ssafy.kkoma.api.product.dto.OfferedProductInfoResponse;
import com.ssafy.kkoma.api.product.dto.ProductInfoResponse;
import com.ssafy.kkoma.domain.pro... |
import torch
import torchvision
import torch.optim as optim
import os
import json
import pandas as pd
import numpy as np
from sklearn import svm
from sklearn.metrics import accuracy_score, precision_score
class CPD_SSL():
def __init__(self, backbone, feature_size, device):
self.backbone = self.backbone_loa... |
##### Solutions to the Practice Problems in "AWM-Coding.R" #####
# Disclaimer: these are niether the only ways to solve the given problems, nor can I guarantee they're the most efficient
# Use if statements to write a program that tests whether a number if even or odd
a = 3
if (a/2 - floor(a/2) == 0){
print("a ... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="./index.css">
<title>BerryCSS Documentation</title>
</head>
<body>
<div class="container pt-24">
<div class="logo px-12">
<div class="log... |
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { FixtureComponent } from ... |
<script setup>
import { reactive, ref } from "vue";
const drawer = ref(false)
const links = reactive([
{ icon: 'mdi-home', title: 'Dashboard', route: '/' },
{ icon: 'mdi-folder', title: 'My Projects', route: '/projects' },
{ icon: 'mdi-account-group', title: 'Team', route: '/team' },
])
</script>
<templa... |
from django.db import models
from django.utils import timezone
from webpage.models import User
class Recipe(models.Model):
"""
Recipe class model for the Users' recipes.
"""
# Llave foránea del usuario que escribe la receta
user: User = models.ForeignKey(
User,
on_delete=models.CA... |
# DN 8. Robni problem lastnih vrednosti (Delec v končnem in neskončnem potencialu)
Poleg začetnih pogojev lahko enačbe opisujejo tudi robne pogoje. Tokrat se ukvarjamo z robnimi problemi lastnih vrednosti. Pogledali si bomo diferenčno in strelsko metodo in ju aplicirali pri reševanju Schrödingerjeve enačbe za delec v k... |
import { createTRPCRouter, protectedProcedure, publicProcedure } from "../trpc";
import { z } from "zod";
import { sendCancelationEmail } from "../utils/sendgrid";
import { startOfToday } from "date-fns";
export const registrationRouter = createTRPCRouter({
byExperience: publicProcedure.input(z.number()).query(({ ct... |
<!DOCTYPE>
<html>
<head>
<meta charset="utf-8">
<title>IFE JavaScript Task 01</title>
<style>
div{
padding:5px;
width:450px;
border:2px solid rgb(233,233,233);
box-shadow: 6px 6px 3px #ddd;
}
.p{
padding:0;
margin:7px 0 0 75px;
font-family:"黑体";
font-size:110%;
display:none;
... |
### [Go to easy](#easy-level-problem)
### [Go to medium](#medium-level)
# Easy level problem
### Check_if_Array_Is_Sorted_and_Rotated
#### concept:
In this solution ,The approach is to compare every current element to it's last element so that every current element is larger than pervious one but at one place the... |
package com.pjyotik.dev.ums.api.dto;
import com.pjyotik.dev.ums.api.customAnnotations.countries.ValidateCountry;
import com.pjyotik.dev.ums.api.customAnnotations.email.ValidateEmail;
import com.pjyotik.dev.ums.api.customAnnotations.gender.ValidateGender;
import com.pjyotik.dev.ums.api.customAnnotations.username.Valida... |
from django import forms
from accounts.models import Comment, User, SignedUpUsers
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.password_validation import validate_password
from django.contrib.auth import get_user_model
from django.contrib.auth.hashers import check_password
class Com... |
package org.hibernate.envers.test.entities.reventity.trackmodifiedentities;
import org.hibernate.envers.RevisionEntity;
import org.hibernate.envers.RevisionNumber;
import org.hibernate.envers.RevisionTimestamp;
import javax.persistence.*;
import java.util.HashSet;
import java.util.Set;
/**
* Revision entity which {... |
import { Controller, Get, Post, Body } from '@nestjs/common';
import { OrdersService } from '../services/orders.service';
import { CreateOrderDto } from '../dto/create-order.dto';
import {
ApiTags,
ApiOperation,
ApiCreatedResponse,
ApiBadRequestResponse,
ApiOkResponse,
} from '@nestjs/swagger';
@Controller('... |
package com.acme.api.controllers;
import com.acme.api.dto.EmployeeRequestBody;
import com.acme.api.dto.GetAllProductsDTO;
import com.acme.api.entities.Employee;
import com.acme.api.entities.Product;
import com.acme.api.dto.ProductRequestBody;
import com.acme.api.services.ProductService;
import org.springframework.http... |
System.register(['@angular/core', '@angular/http', '../const/store-helpers', '../const/store-names', 'ng-lightning/ng-lightning'], function(exports_1, context_1) {
"use strict";
var __moduleName = context_1 && context_1.id;
var __decorate = (this && this.__decorate) || function (decorators, target, key, des... |
/*
* Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.h... |
<?php
namespace Drupal\schema_person\Plugin\metatag\Tag;
use Drupal\schema_metatag\Plugin\metatag\Tag\SchemaPersonOrgBase;
/**
* Provides a plugin for the 'schema_person_affiliation' meta tag.
*
* - 'id' should be a globally unique id.
* - 'name' should match the Schema.org element name.
* - 'group' should matc... |
<template>
<BasePage>
<template #query>
<<%= TableName %>Query
@onAdd="onAdd"
@onQuery="queryTableData"
@onBatchDelete="onBatchDelete"
@onReset="onReset"
:queryForm.sync="queryForm"
></<%= TableName %>Query>
</template>
<<%= TableName %>Table
@sel... |
import { Button } from '@mui/material';
import Box from '@mui/material/Box';
import Grid from '@mui/material/Grid';
import Paper from '@mui/material/Paper';
import { styled } from '@mui/material/styles';
import * as React from 'react';
const Item = styled(Paper)(({ theme }) => ({
backgroundColor: theme.palette.mode ... |
<div id="min-heigth" *ngIf="isNotLoged(); else loginAlert">
<div class="form-container">
<div class="form-wrapper">
<h1>Cadastro de Usuário</h1>
<form
action=""
class="col-12"
[formGroup]="userFormGroup"
#formDir="ngForm"
(ngSubmit)="createUser()"
>
... |
class Node {
constructor(value) {
this.value = value;
this.next = null;
}
}
class LinkedList {
constructor() {
this.head = null;
this.tail = null;
this.size = 0;
}
isEmpty() {
return this.size === 0;
}
getSize() {
return this.size;
}
print() {
if (this.isEmpty()) {
... |
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>자바스크립트 : 반복문</title>
<link rel="stylesheet" href="../assets/css/style.css" />
<link rel="sty... |
package ru.practicum.ewm.comment.service;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
import org.springframework.stereotype.Service;
import org.sprin... |
\PassOptionsToPackage{table}{xcolor}
\documentclass[aspectratio=169]{beamer}
\usetheme{auriga}
\usecolortheme{auriga}
\setbeamersize{text margin left=2em,text margin right=2em}
\usepackage{fontspec}
\usepackage{xcolor}
\usepackage{enumitem}
\usepackage{makecell}
\usepackage{tabularx}
% for vertical centering text i... |
<html>
<head>
<script src="https://d3js.org/d3.v4.min.js"></script>
</head>
<body>
<form>
<label>
<input type="radio" name="option" value="2011" onclick="radioClicked(this)"> 2011
</label>
<label>
<input type="radio" name="option" value="2012" onclick="radioCl... |
// Import Polyfills
import 'first-input-delay';
var Performance = /** @class */ (function () {
function Performance(config) {
this.config = config;
}
/**
* True if the browser supports the Navigation Timing API,
* User Timing API and the PerformanceObserver Interface.
* In Safari, the... |
#!/usr/bin/python3
# -*- coding: utf-8 -*-
# -------------------------------------------------------------------->
# 风电机组功率曲线分析
# 功能描述:绘制实际功率曲线,与理论功率曲线对比计算发电量偏差等
#
# 数据预处理、数据清洗、诊断分析、结果导出
# > 1. 数据预处理
# > 2. 数据清洗
# > 3. 诊断分析
# > 4. 结果导出
# --------------
#
# 输入Input:
# 输出Output:
#
# 其它模块、文件关系:
#
# 备注:
# ~~~~~~~~~~~~~~~~... |
---
title: 'Summary'
body_classes: modular
published: false
columns: 2
---
### Final Thoughts
In many ways, "building" a course is no different than building a house - one does not simply put a bunch of pieces of wood together and call it a house. Designing an effective course that focuses on student learning is no d... |
'use client';
import {Select, SelectProps} from "antd";
import {CampaignStatus} from "@/app/core/model/campaign";
import {sessionMatchAnyRoles} from "@/app/api/auth/[...nextauth]/route";
import {Role} from "@/app/core/role";
import {useSession} from "next-auth/react";
import {forwardRef} from "react";
const translate... |
import React, { useMemo, useState } from 'react';
import { createTheme, ThemeProvider } from '@mui/material';
import { ColorModeContext } from '../constant/context';
import Layout from './Layout';
function App() {
const [darkMode, setDarkMode] = useState(true);
const colorMode = useMemo(
() => ({
toggle... |
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, OnInit } from '@angular/core';
import { PromotionDataService } from '@core/services/promotion-data.service';
import { MessageService } from 'primeng/api';
import { Promotion } from '@core/models/promotions/promotions.model';
import { ConfirmService } from ... |
<template>
<div class="list">
<Breadcrumb></Breadcrumb>
<!-- 列表展示 -->
<div class="header">
<el-form :inline="true" :model="formInline" class="demo-form-inline" strip="true">
<el-form-item label="审批人">
<el-input v-model="formInline.user" placeholder="审批人"></el-input>
</el-fo... |
#include "Harl.hpp"
#include <iostream>
Harl::Harl()
{
}
void Harl::debug(void)
{
std::cout << "I love having extra seaweed for my ";
std::cout << "7XL-double-tomato-triple-pickle-specialketchup ";
std::cout << "burger. I really do!";
std::cout << std::endl;
}
void Harl::info(void)
{
std::cout << "I cannot beli... |
import {
HiCheckCircle,
HiClock,
HiQuestionMarkCircle,
HiX,
} from "react-icons/hi";
import { BiMinus, BiPlus } from "react-icons/bi";
import { Link } from "react-router-dom";
import { useAuthState } from "react-firebase-hooks/auth";
import { getAuth } from "firebase/auth";
import app from "../../firebase/fireb... |
---
title: Execute redimensionamento simples com Aspose.PSD para Java
linktitle: Execute o redimensionamento simples
second_title: API Java Aspose.PSD
description: Aprenda a redimensionar imagens programaticamente com Aspose.PSD para Java. Siga nosso guia passo a passo para manipulação eficiente de imagens.
type: docs
... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1>CSS Selectors</h1>
<... |
import React, { useState } from 'react';
import { Input, Button, Form, message } from 'antd';
import { useNavigate } from 'react-router-dom'; // Importa useNavigate desde react-router-dom
import users from './usuarios.json';
import imagenIcono from './Disneyplus.png';
import Derechos from '../Home/Derechos'
import './s... |
import {TextField } from "@mui/material";
import { StyledRegister } from "./styles";
const FormRegister = ({ formik }) => {
return (
<StyledRegister>
<TextField
id="username"
type="text"
label="Username"
fullWidth
margin="dense"
value={formik.values.username}... |
---
layout: post
title: RaiseActiveDirectoryFunctionalLevel.ps1
---
- [Description](#description)
- [Script](#script)
- [Download](#download)
- [Report Issues](#report-issues)
---
### Description
**_@GitHub Copilot_** - Welcome @BanterBoy, I'm your Copilot and I'm here to help you get things done faster. I ca... |
<template>
<div id="app">
<nav id="nav" class="navbar navbar-expand-lg bg-darkness sticky-top transition" :class="{'py-0':isPadding}">
<div class="container">
<router-link to="/" class="navbar-brand text-primary">
<h1 class="h2 text-white d-flex align-items-center mb-0" @click="collapseHid... |
import Vue from 'vue';
import './filter';
import './directive';
import './component';
const App = {};
App.data = () => {
return window.__INITIAL_STATE__ || {};
};
App.init = options => {
if (EASY_ENV_IS_NODE) {
console.log('server render /n');
return App.server(options);
}
console.log('client render ... |
from typing import Optional
from sqlalchemy.orm.exc import NoResultFound
from sqlalchemy.orm.session import Session
from app.domain.user import User, UserRepository
from app.usecase.user import UserCommandUseCaseUnitOfWork
from .user_dto import userDTO
class userRepositoryImpl(UserRepository):
"""UserRepositor... |
var express = require('express');
var path = require('path');
var favicon = require('serve-favicon');
var logger = require('morgan');
var cookieParser = require('cookie-parser');
var bodyParser = require('body-parser');
var request = require('request');
var routes = require('./routes/index');
var users = require('./ro... |
const { response } = require('express');
const Usuario = require('../models/Usuario');
const bcrypt = require('bcryptjs');
const { generarJWT } = require('../helpers/jwt');
const crearUsuario = async(req, res = response) => {
const { email, name, password } = req.body;
try{
//Verificar el Email
... |
--This chart can provide insights into the distribution of players by nationality,
--highlighting the top 10 countries with the highest player representation.
--Visualization: Horizontal bar chart
select nationality, count(*) as COUNT
from fifa22
group by nationality
order by count DESC
limit 10;
--This chart can ... |
/*
* SPDX-FileCopyrightText: 2023 Zextras <https://www.zextras.com>
*
* SPDX-License-Identifier: AGPL-3.0-only
*/
import { act, screen, within } from '@testing-library/react';
import React from 'react';
import OfflineModal from './modals';
import { setup } from '../tests/testUtils';
describe('modals', () => {
tes... |
/**
* \file
* \brief CryptoAuthLib Basic API methods for Counter command.
*
* The Counter command reads or increments the binary count value for one of the
* two monotonic counters
*
* \note List of devices that support this command - ATECC508A and ATECC608A.
* There are differences in the modes that the... |
#ifndef ELDBUS_SIGNATURE_TRAITS_HH_
#define ELDBUS_SIGNATURE_TRAITS_HH_
#include <eina_fold.hh>
#include <eina_integer_sequence.hh>
namespace efl { namespace eldbus { namespace _detail {
template <typename T>
struct signature_traits;
template <>
struct signature_traits<bool>
{
typedef Eina_Bool raw_type;
typede... |
library(rvest)
library(xml2)
library(jsonlite)
library(dplyr)
library(RPostgreSQL)
library(rtweet)
library(gganimate)
library(ggplot2)
get_data <- function(type = "recentActivities", id=id){
if(type == "recentActivities"){
url <- paste0("https://www.strava.com/athletes/",id)
} else {
url <- paste0("https... |
from cnnClassifier.constants import *
from cnnClassifier.utils.common import read_yaml, create_dirs
from cnnClassifier.entity.config_entity import (DataIngestionConfig,
PrepareBaseModelConfig,
PrepareCallbacksConfig,... |
import { IconFileExport, IconSettings } from '@tabler/icons-react';
import { useContext, useState } from 'react';
import { useTranslation } from 'next-i18next';
import HomeContext from '@/pages/api/home/home.context';
import { SettingDialog } from '@/components/Settings/SettingDialog';
import { Import } from '../..... |
library(tidyverse)
FHS_Risk_Score <- function(sex = c('Male', 'Female'),
age,
total_cholesterol,
hdl_cholesterol,
systolic_bp,
systolic_bp_treated,
smok... |
/** @format */
/**
* External dependencies
*/
import React from 'react';
import PropTypes from 'prop-types';
/**
* Internal dependencies
*/
import FormFieldset from 'components/forms/form-fieldset';
import FormLabel from 'components/forms/form-label';
import FormTextInputWithAffixes from 'components/forms/form-te... |
import gymnasium as gym
import numpy as np
import matplotlib.pyplot as plt
from gymnasium.wrappers import RecordVideo
import pickle
def run(episodes, epsilon, learning_rate, discount_factor, is_training):
env = gym.make("CliffWalking-v0", render_mode=None if is_training else 'rgb_array')
if is_training:
... |
package org.ems.employee_management_system.entities;
import jakarta.persistence.*;
import jakarta.validation.constraints.NotBlank;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.annotations.CreationTimestamp;
import java.sql.Timestamp;
@Getter
@Setter
@Entity
public class Employee {
@Id
@Ge... |
#include <stdio.h>
#include "main.h"
/**
* main - Prints all the arguments passed to the program
* @argc: Number of arguments passed to the program
* @argv: Array of strings containing the arguments passed to the program
*
* Return: 0 on success
*/
int main(int argc, char *argv[])
{
int i;
for (i = 0; i < arg... |
### Unit testing on a project structure
### Practice 1: Writing Unit Tests after Writing Source Code
1. Make a project Folder
2. Create a source file and test file
3. Write source code first
4. Write unit tests for the code
### Practice 2: Following Test Driven Development(TDD)
1. Make a project Folder
2. Create a s... |
import {
FollowListInfoArgs,
SearchUserInfoArgs,
RecommendationInfoArgs,
FollowListInfoResp,
SearchUserInfoResp,
RecommendationResp
} from "./types";
const endPoint = "https://api.cybertino.io/connect/";
export const followListInfoSchema = ({
address,
namespace,
network,
followingFirst,
followin... |
import heapq
'''dynamic programming'''
# Time : O(MN)
# Space: O(MN)
class Solution:
def minCut(self, s: str) -> int:
# INIT
len_s = len(s)
cut = [0] * len_s
table = [[False] * len_s for _ in range(len_s)]
# Bottom-up approach
for end in range(len_s)... |
import { inject, injectable } from 'tsyringe';
import { IUserDetailRepository } from '../repositories/IUserDetailRepository';
import { IUserDetailDTO } from '../dtos/IUserDetailDTO';
import { AppError } from '../../../shared/errors/AppError';
@injectable()
export class FindUserDetailService {
constructor(
@injec... |
/*
* Copyright 2018 Nico Reißmann <nico.reissmann@gmail.com>
* See COPYING for terms of redistribution.
*/
#ifndef JLM_LLVM_IR_OPERATORS_GETELEMENTPTR_HPP
#define JLM_LLVM_IR_OPERATORS_GETELEMENTPTR_HPP
#include <jlm/llvm/ir/tac.hpp>
#include <jlm/llvm/ir/types.hpp>
#include <jlm/rvsdg/bitstring/type.hpp>
#include... |
package body YAA.Functions is
One : constant Real := Real (1.0);
Two : constant Real := Real (2.0);
Four : constant Real := Real (4.0);
-- For any sufficiently continuous function (?)
-- f(a0 + a1e1 + a2e2 + a12e12)
-- = f(a0) + (a1e1 + a2e2 + a12e12)f'(a0)
-- + 0.5*(a1e1 + a2e2 ... |
import "./App.css";
import { BrowserRouter as Router, Routes, Route } from "react-router-dom";
//import the pages and components
import Home from "./pages/Home";
import Projects from "./pages/Projects";
import Learningjourney from "./pages/Learningjourney";
import Navbar from "./components/Navbar";
import Footer from... |
package org.example;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.github.javaparser.JavaParser;
import com.github.javaparser.ast.CompilationUnit;
import com.github.javaparser.ast.ImportDeclaration;
import com.github.javaparser.ast.body.ClassOrInterfaceDeclaration;
import com.github.javaparser.ast.bod... |
<template>
<section class="character" id="character">
<div class="character__inner">
<Transition name="charSwiper">
<div class="character__swiper" v-if="swiperOn == true">
<ul class="swiper-wrapper">
<li class="swiper-slide" v-for="(a, i) in charInfo" :key="i">
<T... |
import { css } from '@emotion/react'
import React, { useRef, useState, useEffect } from 'react'
import defaultProfile from '@/assets/image/defaultProfile.jpg';
import { getUserID, getUserProfile } from '@/api/user';
import axios from 'axios';
type ReviewType = {
appId: number,
userId: number,
profileImageURL?: s... |
//Css
import { Todo } from '../../App';
import './card.css';
//Interfaces / Types
type CardProps = {
todo: Todo;
completeTodo: (id: number) => void;
deleteTodo: (id: number) => void;
};
//Function
export default function Card({ todo, completeTodo, deleteTodo }: CardProps) {
function handleCompleteTodo() {
... |
@baseUrl = http://localhost:3333
@auth_token = {{authenticate.response.body.access_token}}
####################################################################################################
# O Objetivo desta rota [e realizar o cadastro do usuário na aplicação
#######################################################... |
---
sidebar_position: 1
---
# Create a satellite
Before integrating Juno into your JavaScript app, you need to create a [satellite].
1. To get started, sign-in to the Juno [console](https://console.juno.build). If you are a new developer on Juno and the Internet Computer, you may be prompted to create your first ano... |
import { useEffect, useState } from "react";
import styles from "./searchInput.module.scss";
import search from "../../img/search.svg";
interface SearchInputProps {
keyword: string;
setKeyword: (search: string) => void;
}
export const SearchInput: React.FC<SearchInputProps> = ({ keyword, setKeyword }) => {
cons... |
import style from "./OrderInfo.module.css";
import { useContext, useState } from "react";
import { useEffect } from "react";
import { motion } from "framer-motion";
import {
Container,
Row,
Col,
Table,
Form,
Modal,
Button,
} from "react-bootstrap";
import { BsPencil, BsTrash } from "react-icons/bs";
impor... |
<template>
<div></div>
</template>
<script>
/**
* reduce 对数组中的每个元素执行一个由您提供的reduce函数
*
* arr.reduce(function(prev, cur, index, arr) {
* ...
* }, init)
*
* prev 必需 上一次调用回调时的返回值 或初始值init
* cur 必需 当前正在处理的数组元素
* index 可选 当前正在处理的数组元素的索引值 有init值时,起始索引为0,否则为1
* arr 可选 原始数组
* init 可选 初始值
*/
export default {
... |
import { CloudFormationClient, DeleteStackCommand, DeleteStackCommandOutput } from "@aws-sdk/client-cloudformation";
import { DeleteSecretCommand, DeleteSecretCommandInput, DeleteSecretCommandOutput, GetSecretValueCommand, GetSecretValueCommandInput, GetSecretValueCommandOutput, SecretsManagerClient } from "@aws-sdk/cl... |
import { DefaultTheme, getThemeStyling } from '../../src/themes';
import { ColorCategories, ColorTokens, ThemeColor, ThemeMapper } from '../../src/types';
const mockedMapper: ThemeMapper = {
normal: {
background: {
category: ColorCategories.primary,
inverse: false,
token: ColorTokens.token_100,... |
// RecipeCard.jsx
import React from 'react';
const RecipeCard = ({ recipe }) => {
return (
<div className="bg-white shadow-lg rounded-lg
overflow-hidden hover:shadow-xl
transition-transform hover:scale-105">
<div className="relative">
<img
className="w-full h-48 object-cover
object-... |
<?php
namespace App\GraphQL\Mutation;
use GraphQL\Type\Definition\Type;
use GraphQL\Type\Definition\ResolveInfo;
use Folklore\GraphQL\Relay\Support\Mutation as BaseMutation;
use GraphQL;
use App\Project;
class UpdateProjectMutation extends BaseMutation
{
protected $attributes = [
'name' => 'UpdateProjec... |
import InfoPage from "../components/InfoPage";
import { Pressable, View, Text } from "react-native";
import { Camera, CameraCapturedPicture, CameraType } from "expo-camera";
import { useRef, useState } from "react";
import { useUser } from "@clerk/clerk-expo";
import supabase from "../hooks/initSupabase";
import { mani... |
<span class="com">/* The Computer Language Shootout</span>
<span class="com"> http://shootout.alioth.debian.org/</span>
<span class="com"> contributed by Isaac Gouy</span>
<span class="com">*/</span>
<span class="kwa">import</span> scala<span class="sym">.</span>concurrent<span class="sym">.</span>_
<span class=... |
<!DOCTYPE HTML>
<!--
Solid State by HTML5 UP
html5up.net | @ajlkn
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
-->
<html>
<head>
<title>AI-Learning - Objective-C Section 7</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, ... |
//description - given the root of a tree, return the level order traversal of its node's values (from left to right, level by level)
//params - {TreeNode} root
//return - {number[][]}
//solution - initialize an array to hold the result, check if the root is null and if yes return result as is, initialize another array ... |
import React, { useEffect, useState } from "react";
import axios from "axios";
import { toast } from "react-toastify";
import { Link, useNavigate } from "react-router-dom";
import { useDispatch, useSelector } from "react-redux";
import { authorizeUser, userSelector } from "../redux/userReducer";
const SignUpForm = () ... |
// Radix sort is a special sorting algorithm that works on lists of numbers
// It exploits the fact that information about the size of a number is encoded in the number of digits.
// More digits means a bigger number!
// radix helper functions
function getDigit(num, i) {
return Math.floor(Math.abs(num) / Math.pow(10... |
<ul [class]="NavbarType" [id]="NavbarId">
<li>
<div class="user-info">
<div class="row">
<div class="col l4 valign-wrapper">
<img src="assets/images/boy.svg" alt="" class="circle red">
</div>
</div>
<div class="row">
<div ... |
import React from "react";
import { Route, Routes } from "react-router-dom";
import axios from "axios";
import { Drawer } from "./components/Drawer";
import { Header } from "./components/Header";
import { Home } from "./pages/Home";
import { Favorites } from "./pages/Favorites";
import { Orders } from "./pages/Orders";... |
import React from "react";
import { screen, waitFor } from "@testing-library/react";
import userEvent from "@testing-library/user-event";
import renderWithRouterAndRedux from "./renderWithRouterAndRedux";
import App from '../../App';
describe('Teste se a página Login', () => {
it('Teste se a página contem inputs',... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.