text
stringlengths
184
4.48M
//! This is how you create modules with submodules. //! Create a folder with the name of the module, //! create a `mod.rs`-file, then declare the modules connected to that. //! This file is the entry-point for the module. //! There are other ways to do this which you can read in the documentation. //! `use` the modules...
import { Body, Controller, HttpException, HttpStatus, Post, UsePipes, ValidationPipe, } from '@nestjs/common'; import { AuthService } from './auth.service'; import { SignUpDto } from './dtos/signup.dto'; import { LoginDto } from './dtos/login.dto'; import { EmailAlreadyExistsException } from '@exceptions/...
<template> <div> <h2>{{name}}</h2> <h2>{{age}}</h2> <button @click="changeName">修改Name</button> <button @click="changeAge">修改Age</button> </div> </template> <script> import { ref, watchEffect } from 'vue'; export default { setup(props) { // watchEffect会自动收集响应式依赖 const name = re...
package com.amazon.lookout.mitigation.service.activity.validator; import static com.amazon.lookout.mitigation.service.activity.validator.RequestValidator.REGIONAL_CELL_NAME_PATTERN; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertSame; import static org.junit.Assert.assertTrue; impor...
package stronghold.model.database; import stronghold.model.components.general.User; import stronghold.model.components.lobby.Game; import java.io.*; import java.util.ArrayList; import java.util.HashMap; public class FriendsDB implements Serializable { private HashMap<User, ArrayList<User>> friends; public ...
import React, { useState, useEffect } from "react"; import axios from "axios"; import StadiumMap from "./StadiumMap"; import { API_BASE_URL } from "../apiConfig"; const MapInfo = () => { const [teams, setTeams] = useState([]); const [selectedTeam, setSelectedTeam] = useState([]); useEffect(() => { fetchTeam...
package com.hanw.community.service; import com.hanw.community.dao.MessageMapper; import com.hanw.community.entity.Message; import com.hanw.community.util.SensitiveFilter; import org.apache.ibatis.annotations.Select; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Se...
import { Link } from 'react-router-dom'; import { useState } from 'react'; import { useAuth } from '../hooks/useAuth.js'; export default function Register() { const [name, setName] = useState(''); const [email, setEmail] = useState(''); const [password, setPassword] = useState(''); const [passwordConfi...
import java.io.*; import java.math.*; import java.security.*; import java.text.*; import java.util.*; import java.util.concurrent.*; import java.util.function.*; import java.util.regex.*; import java.util.stream.*; import static java.util.stream.Collectors.joining; import static java.util.stream.Collectors.toList; cla...
import React from "react"; import "../../css/app.css"; import { useState } from "react"; import { Inertia } from "@inertiajs/inertia"; import { InertiaLink, useForm } from "@inertiajs/inertia-react"; const SuccessStoriesForm = (props) => { const { data, setData, errors, post } = useForm({ achievement: "", ...
package com.suchness.intellisense.authorization; import cn.hutool.core.convert.Convert; import cn.hutool.core.util.StrUtil; import cn.hutool.json.JSONUtil; import com.nimbusds.jose.JWSObject; import com.suchness.intellisense.common.constant.AuthConstant; import com.suchness.intellisense.common.domain.UserDto; import c...
def callLimit(limit: int): '''take an argument of call limit & returns a reference to the callLimiter function''' count = 0 def callLimiter(function): '''takes another funtion as an argument & returns a reference to the limit_function function.''' def limit_function(*args, **kwd...
<template> <div class="upload-area active-upload" :class="{ focus: uploadAreaActive }" @dragover.prevent @drop.stop.prevent="onDrop" @paste="onPaste" v-loading="imageLoading" element-loading-text="图片上传中..." element-loading-background="rgba(0, 0, 0, 0.5)" > <label for="uploader" c...
import React, { useEffect, useState } from "react"; import { useDispatch, useSelector } from "react-redux"; import { useParams } from "react-router-dom"; import { CarFullDetails } from "../../models/CarFullDetails"; import { RootState } from "../../redux/configureStore"; import { getCarDetails } from "../../redux/store...
# -*- coding: utf-8 -*- from __future__ import unicode_literals import json from passport.backend.core.test.test_utils.utils import check_url_equals from passport.backend.social.broker.communicators.communicator import AuthorizeOptions from passport.backend.social.broker.communicators.LastFmCommunicator import LastF...
import { initTardis } from "@datasources/tardis" import { TardisInstrumentInfoFilter, tardisOptionInstrumentDataSource } from "@datasources/tardis_instrument_datasource" import { IInstrumentInfo } from "@interfaces/services/instrument_info" import { ensure } from "@lib/utils/ensure" import { parseContractType } from "@...
import { motion } from "framer-motion"; import { useRef, useEffect, useState } from "react"; import images from "./images"; import './slider.css'; function Carousel() { const [width, setWidth] = useState(0); const carousel = useRef(); const [currentIndex, setCurrentIndex] = useState(0); useEffect(() => { ...
import type { Items } from "./Items" export default function Listing( props: Items) { const {items} = props; const determineCurrency = (currency: string) => { if (currency === 'USD') { return '$'; } else if (currency === 'EUR') { return '€'; } else { return currency; ...
This has been taken from: https://community.bose.com/t5/SoundTouch-Archive/Alarm-Clock-function-via-Raspberry-Pi/td-p/44575 Alarm Clock function via Raspberry Pi Deskyeti Deskyeti Friendly Fanatic ‎03-24-2017 01:07 PM Alarm Clock function via Raspberry Pi I was as suprised as everyone else to discover the Sound...
<!-- <?xml version="1.0" encoding="UTF-8"?> --> <!-- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" --> <!-- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> --> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://xmlns.jcp.org/jsf/html" xmlns:ui="http://xmlns.jcp.or...
import 'package:copy_with_extension/copy_with_extension.dart'; import 'package:flutter/cupertino.dart'; import 'package:flutter_bloc/flutter_bloc.dart'; import 'package:invidious/downloads/models/downloaded_video.dart'; import 'package:invidious/videos/models/base_video.dart'; import 'package:invidious/videos/models/di...
/* eslint-disable no-underscore-dangle */ import React, { useMemo } from 'react'; import { useSelector } from 'react-redux'; import { Link } from 'react-router-dom'; interface ItemProps { orga: IOrganisation; } const OrgasListItem: React.FC<ItemProps> = ({ orga }) => { return ( <Link to={`/orga/${orga._id}`} ...
import React from "react"; import styled from "styled-components"; import { Search, ShoppingCartOutlined } from "@material-ui/icons"; import { Badge } from "@material-ui/core"; import { mobil } from "../resposive"; import { useNavigate } from "react-router-dom"; const Container = styled.div` height: 60px; ${mobil(...
<nav class="navbar navbar-expand-lg navbar-light bg-light"> <div class="container-fluid"> <a class="navbar-brand" href="{% url "movies:by_genres" %}"> <i class="fas fa-film"></i> Main page</a> <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarN...
package com.jaspergoes.bilight; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.Toolbar; import android.text.Editable; import android.text.TextWatcher; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widg...
<!-- Concept: Template --> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Todo App</title> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.css"...
import Footer from '@/components/Footer/Footer.component'; import Metadata from '@/components/Metadata.component'; import Navbar from '@/components/Navbar/Navbar.component'; import VideoPlayer from '@/components/VideoPlayer/VideoPlayer.component'; import { ServerAxios } from '@/libs/http'; import styles from '@/styles/...
import { useEffect } from 'react'; // import ReactDOM from 'react-dom'; // import { } from '@ya.praktikum/react-developer-burger-ui-components'; import { useDispatch, useSelector } from 'react-redux'; import { Outlet, useLoaderData, useLocation, useNavigate, } from 'react-router-dom'; import { OrderCard, Moda...
The ``101-lazy_matrix_mul`` module Using ``lazy_matrix_mul`` --------------------- First import the function from the module: >>> lazy_matrix_mul = __import__('101-lazy_matrix_mul').lazy_matrix_mul Now use it: >>> print(lazy_matrix_mul([[1, 2], [3, 4]], [[1, 2], [3, 4]])) [[ 7 10] [15 22]] matrixes must be l...
import pytest import requests import copy import allure from resources.config import * from resources.constants import * @allure.title("Creating an order") class TestCreatingOrder: @allure.title("Creating an order with ingredients") @allure.description("Verifying that an authenticated user can place an order by sel...
<!DOCTYPE html> <html lang="pt"> <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>Login</title> <link rel="stylesheet" href="./css/login.css"> <script src="js/funcoes.js"></script> <...
import { basic, createForm, maxLength, serialize, textAreaWidget, textField, textFieldType, textFieldWidget, maxLengthValidator, unserialize, equals, orType, or, allowedValues, allowedValuesValidator, equalsValidator, booleanField, checkboxWidget, textAreaWidgetType, textFieldWid...
#### 1、添加辅助坐标轴 ```javascript // @params {Object} size 坐标轴线长度 const axes = new THREE.AxesHelper(20); scene.add(axes); ``` #### 2、通过鼠标拖动、缩放和旋转查看 3D 场景 ```javascript const trackballControls = initTrackballControls(camera, renderer); function render() { trackballControls.update(); requestAnimationFrame(ren...
// https://pdm.lsupathways.org/3_audio/2_synthsandmusic/1_lesson_1/envelopes/ // function noise_filter() { const filter = new Tone.Filter(1500, "highpass").toDestination(); filter.frequency.rampTo(20000, 10); const noise = new Tone.Noise().connect(filter).start(); } function noise_note() { let osc, ampEnv...
<template> <div class="app-container"> 角色列表 <!--查询表单--> <div class="search-div"> <el-form label-width="70px" size="small"> <el-row> <el-col :span="24"> <el-form-item label="角色名称"> <el-input style="width: 100%" v-model="searchObj.roleName" placeholder="角色名称...
<template> <div> <div v-if="currentItem" class="mx-auto px-4 py-2 h-screen overflow-y-auto"> <div class="mx-auto"> <div class="flex items-center mb-4 border-b border-gray-900"> <router-link to="/" class="text-gray-900 font-bold text-xl hover:text-blue-900" ...
import React, { useEffect, useState } from 'react'; import { useForm } from 'react-hook-form'; import showMessage from '../../../libraries/messages/messages'; import projectMessage from '../../../main/messages/projectMessage'; import clientHTTPService from '../../../main/services/clientHTTPService'; import projectHTTPS...
<!DOCTYPE html> <html lang="ru"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>WebStudio</title> <link rel="preconnect" href="https://fonts.googleapis.com" /> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /> ...
# -*- coding: utf-8 -*- """ Created on Mon Dec 19 19:12:37 2022 @author: Acelya """ import pandas as pd dictionary={"Name":["Açelya","Ali","Can","Sarp","Ege"], "Maas":[300,800,600,200,100], "Yas":[23,30,18,36,28]} dataframe1 = pd.DataFrame(dictionary) head=dataframe1.head() #ilk 5 data tail=...
import './App.css'; import Home from './components/Home'; import Navbar from './components/Navbar'; import { BrowserRouter as Router, Routes, Route, } from "react-router-dom"; import About from './components/About'; import NoteState from './context/notes/NoteState'; import Alert from './components/Alert'; import ...
NSA Security-Enhanced Linux (SELinux) is an implementation of a flexible mandatory access control architecture in the Linux operating system. The SELinux architecture provides general support for the enforcement of many kinds of mandatory access control policies, including those based on th...
using System; /* * Copyright 2013 MovingBlocks * * 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...
package marcelo.com.br.jumper.engine; import android.content.Context; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.Canvas; import android.view.MotionEvent; import android.view.SurfaceHolder; import android.view.SurfaceView; import android.view.View; import marcelo.com...
package is.hail.check import scala.collection.generic.CanBuildFrom import scala.language.higherKinds object Arbitrary { def apply[T](arbitrary: Gen[T]): Arbitrary[T] = new Arbitrary(arbitrary) implicit def arbBoolean: Arbitrary[Boolean] = new Arbitrary( Gen.oneOf(true, false) ) implicit def arbByte:...
using System; using System.Collections.Generic; using System.IO; using System.Text; using FMH.Workspace.Data; using StringExtensions; namespace FMH.Workspace.WorkspaceManager { /// <summary> /// Workspace manager for mod developed for Minecraft 1.20 and older /// </summary> public class WorkspaceManag...
import Navbar from "./Navbar"; import Home from "./Home"; import { BrowserRouter as Router, Route, Switch } from "react-router-dom"; import Create from "./Create"; import FarmDetails from "./FarmDetails"; import Products from "./Products"; function App() { return ( <Router> <div className="App"> <Na...
import streamlit as st import plotly.express as px from backend import get_data st.title("Weather Forecast for the Next Days") place = st.text_input('Place: ') days = st.slider("Forecast days: ", min_value=1, max_value=5, help="Select the number of forecast days") option = st.selectbox("Selece data to...
<?xml version="1.0" encoding="utf-8"?> <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_gravity="center" android:background="#CBDF9966" ...
import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { EmployeeComponent } from './employee/employee.component'; import { FeedbackComponent } from './feedback/feedback.component'; import { HomeComponent } from './home/home.component'; import { ProfileComponent } from ...
import { Injectable } from '@angular/core'; import {HttpClient} from '@angular/common/http'; import {BehaviorSubject, Observable} from 'rxjs'; import { RoleService } from './role.service'; import * as moment from 'moment'; import {environment} from '../../../environments/environment'; import {NatureContratVo} from '....
/******* BISMILLAHIR RAHMANIR RAHIM *******/ #include<bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace __gnu_pbds; using namespace std; //TypeDEfN typedef long long int ll; typedef pair<ll, ll> pll; typedef vector<ll> vll; typedef vector<pll> vpll; typedef ...
### What you'll learn - The command line - Navigating and managing the file system - Authenticating and authorizing users - Accessing resources ## Bash Bash, short for Bourne Again Shell, is a powerful command language interpreter used in Unix and Linux-based operating systems. It is an enhanced version of the origina...
import { spawn } from "node:child_process"; import { GitCommit, GitIndex, GitRef } from "../../universal/git.js"; import { handleError } from "../handleError.js"; import { buffer } from "../utils.js"; import { GitExtension, Repository } from "../store/vscode.git/types.js"; import { gitCheckout } from "./commands/gitChe...
import 'package:clipboard/clipboard.dart'; import 'package:dotted_border/dotted_border.dart'; import 'package:flutter/material.dart'; import 'package:get/get.dart'; import 'package:quicklai/constant/show_toast_dialog.dart'; import 'package:quicklai/controller/refercode_controller.dart'; import 'package:quicklai/theam/c...
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width"> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-9ndCyUaIbzAi2FUVXJi0CjmCapSmO7SnpJef0486qhLnuZ2cdeRhO02iuK6FUUVM" crossori...
import React from "react"; import "./Testimonials.css"; import { Swiper, SwiperSlide } from "swiper/react"; import "swiper/css"; // import { Pagination } from "swiper"; import "swiper/css/pagination"; import profilePic1 from "../../img/profile1.jpg"; import profilePic2 from "../../img/profile2.jpg"; import profilePic3 ...
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Responsive design</title> <link rel="stylesheet" type="text/css" href="../style.css"> <script src="https://kit.fontawesome.com/011cc9ac28.js" crossorigin="anonymous"></script> </head> ...
# Mybatis获取参数值的两种方式 - MyBatis获取参数值的两种方式:${}和#{} - **${}的本质就是字符串拼接,#{}的本质就是占位符赋值** - ${}使用字符串拼接的方式拼接sql,若为字符串类型或日期类型的字段进行赋值时,需要手动加单引号; - 但是#{}使用占位符赋值的方式拼接sql,此时为字符串类型或日期类型的字段进行赋值时,可以自动添加单引号 - **建议分成两种情况进行处理** 1. 实体类类型的参数 2. 使用@Param标识参数 ## 单个字面量类型的参数 若mapper接口中的方法参数为单个的字面量类型,此时可以使用\${}和#{}以任意的名称(最好见名识意)获取...
import * as Joi from 'joi'; import { GroupValidationRule } from '~/common/enums/enums'; import { GroupValidationMessage } from '~/common/enums/group/group'; import { GroupsUpdateRequestDto } from '~/common/types/types'; import { getNameOf } from '~/helpers/helpers'; const groupUpdate = Joi.object({ [getNameOf<Group...
""" Zad. 5 (DevsMentoring) Stwórz program symulujący talię kart (klasa Deck) oraz pojedyncze karty (klasa Card). Karta ma być związana z takimi polami jak: wartość (np. 9) oraz figura (np. Diamond). W klasie Deck znajdować ma się lista reprezentująca stos kart w ramach jednej talii. W Deck znaleźć mają się takie meto...
<!DOCTYPE html> <html lang="en" class="h-full"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Lesson 3: Lists, Conditionals, and Computed Properties</title> <script src="https://unpkg.com/vue@3"></script> <script src="https://cdn.tailwind...
import axios from "axios"; import { Pagination, TextInput } from "flowbite-react"; import React, { useEffect, useState } from "react"; import { useContext } from "react"; import { IoIosArrowDown } from "react-icons/io"; import swal from "sweetalert"; import { AuthContext } from "../../context/AuthContext"; export defa...
import { config } from './config'; import cors from 'cors'; import http from 'http'; import express, { Request, Response } from 'express'; import { Server } from 'socket.io'; import { AppDataSource } from './data-source'; import { setAppApiController } from './controller'; import { setupPassportStrategies } from '....
import { NestFactory } from '@nestjs/core'; import { AppModule } from './app.module'; import { ConfigService } from '@nestjs/config'; import { SwaggerModule, DocumentBuilder } from '@nestjs/swagger'; // eslint-disable-next-line @typescript-eslint/no-var-requires const morgan = require('morgan'); async function bootstra...
<form [formGroup]="form" (ngSubmit)="submit()"> <div class="form-group"> <label for="exampleFormControlSelect1">Search by</label> <select class="form-control" id="selectSearch" #selectSearch formControlName="selectSearch"> <option value="1" selected>Company name</option> ...
package de.metas.ui.web.dashboard; import java.util.ArrayList; import java.util.Collection; import java.util.List; import java.util.Map; import java.util.Set; import javax.annotation.concurrent.Immutable; import org.adempiere.exceptions.AdempiereException; import com.google.common.base.MoreObjects; import com.google.c...
class Api::V2::CatchesController < ApplicationController before_action :set_user before_action :set_catch, only: [:show, :update, :destroy] rescue_from ActiveRecord::RecordNotFound, with: :record_not_found def create @catch = @user.catches.build(catch_params) @catch.cloudinary_urls = params[:cloudin...
import panaderia from "./panaderia.js"; // Función para actualizar la lista según la búsqueda function actualizarListaBusqueda(busquedaUsuario) { const contenedor = document.getElementById("listado-productos"); let contenidoHtml = ""; panaderia.tipos.forEach((tipo) => { // Filtra los tipos que tienen un títul...
DROP DATABASE if EXISTS Hamacoteca; CREATE DATABASE Hamacoteca; USE Hamacoteca; CREATE TABLE roles_administradores( id_rol INT AUTO_INCREMENT PRIMARY KEY, nombre_rol VARCHAR(60), CONSTRAINT uq_nombre_rol_unico UNIQUE(nombre_rol) ); CREATE TABLE administradores( id_administrador INT AUTO_INCREMENT PRIMARY KEY, nombr...
--- aliases: - /ja/security_monitoring/detection_rules/ - /ja/cloud_siem/detection_rules/ - /ja/security_platform/detection_rules/ - /ja/security/security_monitoring/log_detection_rules/ further_reading: - link: /security/default_rules/#all tag: Documentation text: デフォルトの検出ルールについて - link: /security/notifications/ ...
import { StateCreator } from 'zustand' export interface CounterSlice { counter: { count: number increaseCount: () => void decreaseCount: () => void resetCount: () => void } } export const initialState: CounterSlice = { counter: { count: 0, increaseCount: () => { }, decreaseCount: () ...
#include "PCH.h" #include "Renderer.h" #include "SevenSegment.h" #include "TimeString.h" void SevenSegment::Init(ID2D1Factory2* pD2DFactory, ID2D1DeviceContext* dc, float size, float skew, D2D1::ColorF color1, D2D1::ColorF color2) { constexpr float padding = 1.1f; m_Length = size / 2.0f; m_Width = m_Length * 0.2f;...
<!DOCTYPE html> <html lang="it"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Gestione Drink</title> <style> body { font-family: Arial, sans-serif; margin: 0; padding: 0; background-image: url('https://as1.ftcdn.net/v2/jp...
// /************* ECE312 Project 2 Milestone 2 *******************/ // By: Ben McDaniel and Jacob Teaney // Our approach to this code is to establish the 4 messages as character // arrays storing octets as two hex digits. We then send these using the // bind and sendto example code provided in the example. Our recei...
from rest_framework import serializers from post.models import Post,Comment from user_management.serializers import ProfileSerializer from django.utils.timesince import timesince class CommentSerializer(serializers.ModelSerializer): user = ProfileSerializer() likes = ProfileSerializer(many=True) class Meta...
//Factory function that can return handlers functions exports.deleteOne = (Model) => async (req, res, next) => { try { const document = await Model.findByIdAndDelete(req.params.id); if (!document) { return next("No document found with that ID"); } res.status(204).json({ status: "Success",...
--- title: 'Unlock Your Potential: Overcoming Tech Fears for Online Coaches' description: 'Addressing the common fears and misconceptions about technology in online coaching and empowering coaches to embrace digital tools to unlock their full potential.' date: '2023-07-08' tags: online coaching, tech fears, digital too...
<!doctype html> <html lang="en" xmlns:th="http://www.thymeleaf.org"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link th:href="@{/css/bootstrap.min.css}" rel="stylesheet"> <script th:src="@{/js/code.jquery.com_jquery-3.7.0.min.js}"></script> <s...
<!DOCTYPE html> <html lang="en" xmlns:th="http://www.w3.org/1999/xhtml"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" href="../static/css/bootstrap.css" th:href="@{/css/bootstrap.css}"> <title>Register</title> </head> <body>...
import React from 'react' import { addOns } from '../constants/constants' const AddOnCards = ({ isMonthly,selectedAddOns, handleAddOnSelect}) => { return ( <div className='mt-8 flex flex-col gap-4 w-full'> {addOns.map((addOn) => ( <div key={addOn.id} ...
import { faEdit, faPaperclip, faTrash, } from "@fortawesome/free-solid-svg-icons"; import React, { useCallback, useEffect, useMemo } from "react"; import styled from "styled-components"; import { getFullPath, getNoteById, getNoteByPath, getParents, } from "../../shared/domain/note"; import { p2, rounded, ...
// // LoginCoordinator.swift // MyntToDo // // Created by Perennial on 01/02/23. // import Foundation import UIKit import RxSwift class LoginCoordinator: Coordinator, StoryboardInitializable { var loginVC: LoginVC! var rootVC: UINavigationController! var signUpCoordinator: SignUpCoordinator! var t...
#include<stdio.h> #include<malloc.h> struct node { int data; struct node*left; struct node*right; }; struct node* createNode(int data) { //Creating a node pointer. struct node*n; n=(struct node*)malloc(sizeof(struct node));//ALLOCATing memeory in the heap. n->data=data;//setting the data. ...
import styles from "./Navbar.module.scss"; import navbarLogoImg from "../../../assets/logo.png"; import { Link } from "react-router-dom"; import { BsMoonStarsFill } from "react-icons/bs/"; import { useState } from "react"; import TopFilter from "../Filter/TopFilter"; const Navbar = ({ setFilter }) => { const [isShow...
import { Component, Host, h, State } from '@stencil/core'; import { ColumnDescription } from '../../../../common/table-abstractions/types'; import { ErrorType, GenericResponse } from '../../../../common/types'; import { fetchAs } from '../../../../common/utility'; import { globals } from '../../../../core/global.store'...
import { Request, Response } from 'express'; import { ErrorFormatter, logger, RequestMethodDebugFormatter, RequestMethodInfoFormatter, WarningFormatter, } from '../logger'; export const Loggable = () => { return function ( target: Object, propertyKey: string, descriptor: PropertyDescriptor ) ...
package businessLogic; import java.util.Date; import java.util.List; import java.util.ResourceBundle; import dataAccess.DataAccessHibernate; import dataAccess.DataAccessHibernateInterface; import dominio.Question; import dominio.Event; import exceptions.EventFinished; import exceptions.QuestionAlreadyExist; public ...
using MySql.Data.MySqlClient; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace NEAScripts { public class SQLCommandBuilder<T> : SQLBase<T> { SQLConnection connection; public SQLCommandBuilder(SQLConnection conn, int ...
<!DOCTYPE html> <html lang="en"> <head> <!-- HTML Basic Head --> <meta charset="UTF-8"> <title>Example - Types Usage</title> <!-- Style --> <link href="style.css" type="text/css" rel="stylesheet" /> <!-- Load JS Tools --> <script type="text/javascript" src="../js-tools.js"></script> </hea...
class Carro: def __init__(self, nome): self.nome = nome self._motor = None def exibeNome(self): if self.motor: print(f'Nome do carro: {self.nome}') else: print('Carro ainda sem motor') @property def motor(self): return self._motor ...
import * as Yup from "yup"; // form import { yupResolver } from "@hookform/resolvers/yup"; import { useForm } from "react-hook-form"; // components import FormProvider, { RHFTextField } from "../../components/hook-form"; import { Button } from "@mui/material"; import { useDispatch, useSelector } from "react-redux"; imp...
STEP 1 i first download the extract the debezium mysql connector archive sudo curl https://repo1.maven.org/maven2/io/debezium/debezium-connector-mysql/1.0.0.Final/debezium-connector-mysql-1.0.0.Final-plugin.tar.gz | tar xvz ii then you build your docker image for the kafka connect and connector by using this doc...
import { Session } from 'express-session'; import { Document, WithId } from 'mongodb'; export interface UserBasic { username: string; password: string; email: string; } export interface CarObject { CarName: string; CarPrice: string; CarFuel: string; CarKM: string; CarCC: string; CarYear: string; H...
import 'package:flutter/material.dart'; import 'package:flutter/widgets.dart'; import 'package:$name_snake_case$_mobile/models/task.dart'; class TaskItemView extends StatelessWidget { final Task item; final GestureTapCallback onTap; TaskItemView({Key key, @required this.item, @required this.onTap}) : supe...
import { Component, OnInit } from '@angular/core'; import { MatDialog } from '@angular/material/dialog'; import { GearComponent } from '../gear/gear.component'; @Component({ selector: 'app-chronometer', templateUrl: './chronometer.component.html', styleUrls: ['./chronometer.component.scss'] }) export class Chron...
/** * @athenna/common * * (c) João Lenon <lenon@athenna.io> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ import { Parser } from '#src/helpers/Parser' export class Number { /** * Get the higher number from an array of numb...
package vn.edu.usth.stockdashboard; import android.content.Intent; import android.os.Bundle; import android.widget.Button; import android.widget.EditText; import android.widget.Toast; import androidx.appcompat.app.AppCompatActivity; import vn.edu.usth.stockdashboard.utils.DbQuery; import vn.edu.usth.stockdashboard.ut...
import React from 'react' import { Decision } from 'src/lib/explat/recommendations' import { AnalysisStrategy } from 'src/lib/explat/schemas' import Fixtures from 'src/test-helpers/fixtures' import { render } from 'src/test-helpers/test-utils' import DeploymentRecommendation from './DeploymentRecommendation' test('r...
import { Component, OnInit } from '@angular/core'; import { Router } from '@angular/router'; import { AuthService } from 'src/app/modules/auth/services/auth.service'; import * as XLSX from 'xlsx'; import { UsersService } from '../../../shared/services/users.service'; @Component({ selector: 'app-import', templateUr...
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" type="text/css" href="bootstrap/css/bootstrap.min.css"> <link rel="stylesheet" type="text/css" href="...