text
stringlengths
184
4.48M
package dev.shog.chad.framework.handle.xp import dev.shog.chad.framework.obj.Player import java.util.concurrent.ConcurrentHashMap /** * Handles ranks * * @author sho */ object RankHandler { /** * The different ranks in Chad, with XP being the amount of XP to receive that rank */ enum class Rank(...
/* * Copyright(C) (2023) Sapper Inc. (open.source at zyient dot io) * * 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 requ...
<!DOCTYPE html> <html lang="pt-br"> <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>Tabelas</title> <style> body{ font-family: Arial, Helvetica, sans-serif; }...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace CarManufacturer { public class StartUp { static void Main(string[] args) { List<List<double>> listTiresYears = new List<List<double>>(); List<List<double>> listTiresPressures...
import 'package:flutter/material.dart'; import '../../../../constants/device_size.dart'; class CustomRoundRectButton extends StatelessWidget { final String text; double? radius; double? height; double? width; Color? color; double? fontSize; VoidCallback? callBack; double? elevation; LinearGradient? ...
import { Device } from './state'; import { Epic, combineEpics, ActionsObservable } from 'redux-observable'; import { RootEpic } from '../epics'; import { Observable } from 'rxjs'; import { Action } from '../types'; import { actions } from '../action'; import { DeviceFromServer, fromServer } from './filters'; import { Q...
fn add(a: i32, b: i32) -> i32 { a + b } fn main() { // We shouldn't coerce capturing closure to a function let cap = 0; let _ = match "+" { "+" => add, "-" => |a, b| (a - b + cap) as i32, _ => unimplemented!(), }; //~^^^ ERROR `match` arms have incompatible types //...
package com.example.and_sec_7.ui.Screens.StepInfo import android.app.Application import androidx.health.connect.client.HealthConnectClient import androidx.lifecycle.AndroidViewModel import com.example.and_sec_7.g_mainActivity import java.time.Instant import java.time.LocalDate data class Date( var year: Int, ...
/** * */ package com.bpgracey.resilient; import java.util.regex.Matcher; import java.util.regex.Pattern; import com.bpgracey.resilient.exceptions.ProductLineException; import com.bpgracey.resilient.exceptions.ProductNameException; import com.bpgracey.resilient.exceptions.ValueException; import com.bpgracey.resilie...
<?php namespace App\Http\Controllers\User; use App\Http\Controllers\Controller; // use Illuminate\Console\View\Components\Alert; use Illuminate\Http\Request; use Illuminate\Support\Facades\Storage; use RealRashid\SweetAlert\Facades\Alert; class ChildrenController extends Controller { /** * Display a listing...
import { createContext, useContext, useState } from "react" const CartContext = createContext() export const useCartContext = () => useContext(CartContext) const CartContextProvider = ({ children }) => { const [cart, setCart] = useState([]) const [c, setC] = useState(0) const [mT, setMT] = useState(0) ...
# Deploying the Neighborly App with Azure Functions ## Project Overview For the final project, we are going to build an app called "Neighborly". Neighborly is a Python Flask-powered web application that allows neighbors to post advertisements for services and products they can offer. The Neighborly project is compri...
import React, { useState, lazy, Suspense } from "react"; import styles from "./styles/Home.module.css"; import Sidebar from "../components/Sidebar"; import HomeSidebar from "../components/Sidebar/SidebarHomeContent"; const Readme = lazy(() => import("../components/Readme")); const Model = lazy(() => import("../compon...
// // EmojiMemoryGame.swift // Memorize // // Created by Carlos Arriaga on 13/12/23. // import Foundation //Makes the created objects observable by the views class EmojiMemoryGame: ObservableObject { typealias Card = MemoryGame<String>.Card //static - so as not to depend on an instance to access it ...
using System.Collections.Generic; using System.Runtime.InteropServices; using HarmonyLib; using Il2CppSystem; using Il2CppSystem.Runtime.CompilerServices; using UnityEngine; namespace Luna; public static class UiManager { public enum UIState { Title, Mission, Options, OptionsS...
### Comparing functional presence and volume across each quadrat ### Created by Danielle Barnas ### Created on December 14, 2022 ### Modified March 5, 2023 ##### LOAD LIBRARIES ##### library(tidyverse) library(here) library(FD) library(tripack) # Triangulation of Irregularly Spaced Data library(geometry) # Mesh Gene...
package taskmanager.tasks; import java.time.LocalDateTime; import java.util.Objects; public class Task { protected TaskType type; protected int id = 0; protected String name; protected String description; protected Status status; protected long duration = 0; protected LocalDateTime startTi...
// Alon Filler 216872374 import java.util.Random; import java.awt.Color; /** * Forced to create this JDOC due to checkstyles. */ public class ContainedBall extends Ball { private Container container; /** * Random Ball constructor. * @param r the radius of the Ball * @param color the color of th...
package com.myspeechy.myspeechy.modules import android.content.Context import androidx.datastore.core.DataStore import androidx.datastore.preferences.core.Preferences import com.google.firebase.auth.ktx.auth import com.google.firebase.database.ktx.database import com.google.firebase.firestore.ktx.firestore import com....
import { Link } from "react-router-dom" import PropTypes from 'prop-types'; import './card.css' const CategoryCard = (props) => { const { avatar, lastName, firstName, phoneNumber, email, delet, edit, id } = props; return ( <div className="card mb-4"> <img src={avatar} className="card-img-top" alt="..." ...
@model AirportАutomationWeb.Dtos.Flight.FlightCreateDto; @{ ViewData["Title"] = "View"; } @{ ViewBag.Title = "Create Flight"; } @Html.AntiForgeryToken() <h4>Create Flight</h4> <hr /> <form asp-action="CreateFlight"> <div asp-validation-summary="ModelOnly" class="text-danger"></div> <div class="row"> <div clas...
import 'dart:io'; import 'package:databasesqflitcode/databasehelper.dart'; import 'package:flutter/material.dart'; void main() { runApp(const MyApp()); } class MyApp extends StatelessWidget { const MyApp({super.key}); @override Widget build(BuildContext context) { return MaterialApp( title: 'Flutt...
import { CREATE_ELEMENT_VNODE, TO_DISPLAY_STRING, helperMapName, } from "./runtimeHelpers"; import { NodeTypes } from "./ast"; import { isString } from "../../shared"; export function generate(ast) { const context = createCodegenContext(); const { push } = context; genFunctionPreamble(ast, context); le...
import os import random import torch import numpy as np import pandas as pd from datetime import datetime, timedelta # Set Seed def seed_torch(seed): random.seed(seed) os.environ['PYTHONHASHSEED'] = str(seed) np.random.seed(seed) torch.manual_seed(seed) torch.cuda.manual_seed(seed) torch.cuda.m...
/// <reference types="cypress" /> // *********************************************** // This example commands.ts shows you how to // create various custom commands and overwrite // existing commands. // // For more comprehensive examples of custom // commands please read more here: // https://on.cypress.io/custom-comma...
import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns import streamlit as st # pip install konlpy WordCloud from konlpy.tag import Okt from collections import Counter from wordcloud import WordCloud # 멀티 페이지용 제목 st.set_page_config(page_title='Hello, textmining', ...
import React from "react"; import { ChakraProvider, Center, VStack, useToast, Alert, AlertIcon, AlertTitle, AlertDescription, Text, Link, Heading, Fade, SlideFade, } from "@chakra-ui/react"; import Ipfs from "ipfs"; import FileUploader from "./components/fileUpload"; import GlobalContext, { in...
import { Typography } from "@mui/material"; import { createTheme, ThemeProvider } from "@mui/material/styles"; import { Status } from "../../lib/status"; const theme = createTheme(); theme.typography.body1 = { fontSize: "1rem", "@media (min-width:350px)": { fontSize: "2rem", }, }; export default function G...
***This QUERY extracts a completed Rental Summary, including Statistical analyses regarding revenues, durations, and using timestamps instead from the Data set to gain reliability in our results.*** SELECT COUNT(A.rental_id) AS num_of_transactions, COUNT(DISTINCT B.film_id) AS num_films, -- Calculating rental durat...
import React, { useEffect } from "react"; import { useDispatch, useSelector } from "react-redux"; import { Profile } from "../components/Profile/Profile/Profile"; import { openEditModal, userUnfollow } from "../store/actions"; import { EditProfile } from "../components/EditProfile/EditProfile"; export function Profile...
import React, { Component } from "react"; import CardList from "../components/CardList"; import SearchBox from '../components/SearchBox.js' import './App.css' import Scroll from '../components/Scroll.js' class App extends Component { constructor() { super() this.state = { robots: [], ...
<template> <div class="p-4" :class="[colorValue,widthValue,radiusStyle,{'border-2' : border},'relative']"> <!--Card Title--> <div :class="['font-bold text-xl',$slots.hasOwnProperty('subTitle') ? '' : 'pb-2']"> <slot name="title"></slot> </div> <!--Card Subtitle--> <div class="tex...
import React, { Component } from 'react'; // import { Container } from './App.styled'; import { Section } from '../components/Section/Section'; import { FeedbackOptions } from '../components/FeedbackOptions/FeedbackOptions'; import { Statistics } from '../components/Statistics/Statistics'; import { Notification } from...
<script> import {ref} from 'vue' import router from "@/router" import { ElMessage } from 'element-plus' export default { created(){ this.getInfo() }, methods: { formatId(row) { return row.id.toString().padStart(9, '0'); }, getInfo() { fetch(`http://127.0.0.1:8000/borrowRecord/${localSt...
<?php namespace App\Form; use App\Entity\Utilisateur; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\Extension\Core\Type\ChoiceType; use Symfony\Component\Form\Extension\Core\Type\SubmitType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolver; ...
import React from 'react'; import Alert from '@mui/material/Alert'; import AppleIcon from '@mui/icons-material/Apple'; function FourApp(props) { //배열변수 선언 const names=['영환','성경','호석','민규','성신','형준']; //반복문을 변수에 저장후 출력해도 된다 const nameList = names.map((name)=>(<li>{name}</li>)) //색상을 5개 배열로 주시고 결과물...
#include <graaflib/graph.h> #include <gtest/gtest.h> #include <utils/fixtures/fixtures.h> #include <type_traits> #include <utility> namespace graaf { template <typename T> struct WeightedGraphTest : public testing::Test { using graph_t = typename T::first_type; using edge_t = typename T::second_type; }; TYPED_T...
# !/usr/bin/env python3 # ------------------ Python Standard Libraries------------------------------- import math # ------------------ ROS2 Depedencies ---------------------------------------- import rclpy from rclpy.node import Node # -------------------- Turtlesim msg and srvs -------------------------------- from...
#!/usr/bin/python3 """ Module: user unittests for derived class User """ import unittest from models.base_model import BaseModel from models.user import User import os class TestUser(unittest.TestCase): """ User testcases class """ def setUp(self): self.user = User() self.user.email...
import styles from "./Weather.module.css"; import { useAppDispatch, useAppSelector } from "../../store/Hooks"; import { select5DaysWeather, selectCurrentCity, selectCurrentWeather, selectIsCurrentCityInFavorites, selectIsLoading, } from "../../store/weather/WeatherSlice"; import { addToFavorites, removeFr...
import React from "react"; import { injectIntl } from "react-intl"; import { currentUser } from "constants/defaultValues"; import { setCurrentUser } from "helpers/Utils"; import { UserApi } from "features/repositories"; import { Api } from "@mui/icons-material"; const Index = ({ intl }) => { const { messages } = int...
# status_updates ## Overview A status update is an update on the progress of a particular object, and is sent out to all followers when created. These updates include both text describing the update and a `status_type` intended to represent the overall state of the project. These include: `on_track` for projects that...
package oopsInJava; // class -> class , interface-> interface = extends // class -> interface = implements interface E { // Inside interfaces we can define variable but by default they are "final and static" // so we need to initialise teh variable since its final int age = 12; String name = "Payal"; /...
import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart' hide RefreshIndicator, RefreshIndicatorState; import '../../../shared_ui.dart'; class AuntyRefreshHeader extends RefreshIndicator { final String? semanticsLabel; final String? semanticsValue; final Color? textColor; final double d...
use serde::{Deserialize, Serialize}; #[derive(Debug, Deserialize)] pub struct HashnodeResponse { pub data: Option<Data>, pub errors: Option<Vec<serde_json::Value>>, } #[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(rename_all = "camelCase")] pub struct Data { pub publication: P...
#nullable disable using IdSubjects; using Microsoft.AspNetCore.Identity; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; using System.ComponentModel.DataAnnotations; namespace AuthCenterWebApp.Areas.Settings.Pages.Authentication; public class SetPasswordModel : PageModel { private rea...
package com.nhnacademy.exam040304; import java.awt.Rectangle; public class BoundedWorld extends MovableWorld { public boolean outOfBounds(Ball ball) { return (ball.getX() - ball.getRadius() < getBounds().getMinX()) || (ball.getX() + ball.getRadius() > getBounds().getMaxX()) ...
import React, { useState, useEffect, ReactElement } from 'react'; import AccordionModule from '../parts/Accordion'; import TextField from '@mui/material/TextField'; import MenuItem from '@mui/material/MenuItem'; import ToggleButtonGroup from '@mui/material/ToggleButtonGroup'; import ToggleButton from '@mui/material/Tog...
#Title: Derivation in Calculus #Slide: 1 #Header: Table of Contents #Content: 1. Introduction to Derivation 2. Understanding the Derivative 3. Rules of Differentiation 4. Derivative of Basic Functions 5. Derivative of Trigonometric Functions 6. Derivative of Exponential and Logarithmic Functions 7. Derivative of Comp...
import { useState, useEffect } from 'react'; import { Text, View, Alert, ScrollView } from 'react-native'; import { AntDesign } from '@expo/vector-icons'; import styles from './styles.js'; import api from '../../../service/api'; import NavTab from '../NavTab'; export default function ListagemUsuarios({...
# 如何用 FastAPI 部署 NLP 模型 > 原文:<https://www.freecodecamp.org/news/how-to-deploy-an-nlp-model-with-fastapi/> 如果你从事自然语言处理,知道如何部署模型是你需要掌握的最重要的技能之一。 模型部署是将模型集成到现有生产环境中的过程。该模型将接收输入,并为特定用例的决策预测输出。 > “只有当一个模型与业务系统完全集成时,我们才能从它的预测中提取真正的价值”。——克里斯托弗·萨米乌拉 你可以通过不同的方式将你的 [NLP](https://hackernoon.com/your-guide-to-natural-language...
import { useCallback } from "react"; import PlayPauseButton from "./PlayPauseButton.jsx"; import Video from "./Video.jsx"; import { useContext } from "react"; import VideosToRenderContext from "../context/videosToRenderContext.jsx"; function VideoList({ updateVideo }) { const videosToRender = useContext(VideosToRend...
import React, { useEffect, useState } from 'react'; import './SecondaryNavStyles.css'; import { Link } from 'react-router-dom'; import 'bootstrap/dist/css/bootstrap.min.css'; import 'bootstrap/dist/js/bootstrap.bundle.min.js'; import { useSearchProductsQuery } from '../../features/search'; import { selectCurrentToken }...
// ignore_for_file: public_member_api_docs, sort_constructors_first import 'package:flutter/material.dart'; import 'package:flutter_bloc/flutter_bloc.dart'; import 'package:document_mobile/app/widget/folder_list.dart'; import 'package:document_mobile/src/bussiness/folder/bloc/folder_bloc.dart'; class FolderSearch ext...
import { useEffect, useState } from "react"; import { Link } from "react-router-dom"; import PlanModalUtil from "../../../utils/Modals/PlanModalUtil/PlanModalUtil"; import css from "./CourseCardWithOptions.module.css"; import playIcon from "/icons/play-button.png"; import dotsIcon from "/icons/dots.png"; import Ratin...
package com.datcute.chatapplication; import android.Manifest; import android.app.Dialog; import android.app.job.JobInfo; import android.app.job.JobScheduler; import android.content.ComponentName; import android.content.Context; import android.content.Intent; import android.content.pm.PackageManager; import android.gr...
import { Controller, Get, Post, Body, Patch, Param, Delete, UseInterceptors, UseGuards, UploadedFiles, Req, BadRequestException, HttpException, HttpStatus, } from '@nestjs/common'; import { WorkerService } from './worker.service'; import { CreateWorkerDto } from './dto/create-worker.dto'; im...
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* WrongAnimal.hpp :+: :+: :+: ...
import { ComponentProps } from "react"; import NextLink from "next/link"; import { button } from "./Button.css"; import cx from "classnames"; import { semanticColorKeymap } from "@/themes/sprinkles/colors.css"; type ButtonProps = ComponentProps<"button">; type NextLinkProps = ComponentProps<typeof NextLink>; export t...
package br.com.projectstages_mvc.controller; import java.util.ArrayList; import java.util.List; import javax.servlet.http.HttpServletRequest; import javax.transaction.Transactional; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.cache.annotation.CacheEvict; import org.sprin...
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <script src="https://cdn.bootcss.com/vue/2.5.17/vue.min.js"></script> </head> <body> <div id="demo"></div> <script type="text/javascript"> const components = { test1: { id: 'test1', template: `<div>test1</div>`, }, ...
//155. Min Stack class MinStack { stack: number[]; minStack: number[]; constructor() { this.stack = []; this.minStack = []; } push(val: number): void { this.stack.push(val); this.minStack.push(Math.min(val, this.minStack.length === 0 ? val : this.minStack[this.minStack.length - 1])) } pop(): void { t...
import { ActivityIndicator, Pressable, StyleSheet, Text, View, } from 'react-native'; import React, {FC, useEffect, useState} from 'react'; import {useUserContext} from './context/UserContext'; import { ChannelList, Chat as ChatComponent, DefaultStreamChatGenerics, OverlayProvider, } from 'stream-chat...
package com.khalekuzzamanjustcse.common_ui.visual_array import androidx.compose.animation.core.animateOffsetAsState import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.offset import androidx.compose.foundation.layout.size import androidx.compose.material.icons.Icons import androi...
import { FC, useState, useEffect } from 'react'; import { message, Modal } from 'antd'; import { connect } from 'dva'; import { Link } from 'umi'; import moment from 'moment'; import { unstable_batchedUpdates } from 'react-dom'; import { FetchQueryMidRangeAffluenceAnalyse } from '$services/customeranalysis'; import Bas...
<?php namespace App\Livewire; use Livewire\Component; use App\Models\Election; class UpcomingElection extends Component { public $currentDateTime; public function mount(): void { $this->currentDateTime = now()->format('Y-m-d H:i:s'); } public function getUpcomingElections() { ...
// This stateful child component renders all data needed for the puzzle so that // the user can play. Each number in the puzzle is give its own button. Currently, // the buttons do not do anything but we plan to add operations buttons so that the // user can add, subtract, multiply, or divide the numbers they select ...
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Portfolio</title> <!-- css link --> <link rel="stylesheet" type="text/css" href="css/style.css"> <link rel="stylesheet" type="text/css" href="css/card_carousel.css"> <link rel="stylesheet" type="text/css" href="css/image_hover.css"> <!-- Bootstrap link...
package com.cy.algorithm.Oct3; import java.util.HashMap; import java.util.Map; /** * Created by Yang on 2020/10/3. */ public class TwoSum { /** * 1. 两数之和 给定一个整数数组 nums 和一个目标值 target,请你在该数组中找出和为目标值的那 两个 整数,并返回他们的数组下标。 你可以假设每种输入只会对应一个答案。但是,数组中同一个元素不能使用两遍。 示例: 给定 nums = [2, 7, 11, 15...
Modules in Python are files containing Python definitions and statements, allowing you to organize your code better and reuse functionalities across different programs. It covers: Creating modules with functions and definitions. Importing modules into scripts or the interactive Python interpreter. Managing namespaces...
"""Seaborn is a Python data visualization library based on matplotlib that provides a high-level interface for drawing attractive and informative statistical graphics. It is particularly suited for visualizing complex datasets and is built to work well with pandas DataFrames, making it an ideal choice for many data sci...
//--------------------------------------------------------------------------- // Sketch configuration //--------------------------------------------------------------------------- // Socket for ATtiny85 on the board is wired as follows: // // +--v--+ // nIRQ --PB5--|1 8|--VCC // Relay A --P...
import { compare } from 'bcryptjs' import { beforeEach, describe, expect, it } from 'vitest' import { UserAlredyExistsError } from '../../errors/user-alredy-exists-error' import { InMemoryUsersRepository } from '../../repositories/mock/users-repository' import { UserRegisterUseCase } from '../userRegister-useCase' des...
package com.example.capstoneproject.service.impl; import com.example.capstoneproject.Dto.*; import com.example.capstoneproject.Dto.request.HRBankRequest; import com.example.capstoneproject.Dto.responses.*; import com.example.capstoneproject.entity.*; import com.example.capstoneproject.enums.BasicStatus; import com.exa...
public class LeadProcessor implements Database.Batchable<sObject> { public Database.QueryLocator start(Database.BatchableContext context) { String query = 'SELECT Id, LeadSource FROM Lead'; return Database.getQueryLocator(query); } public void execute(Database.BatchableContext context, List...
import { ComponentFixture, TestBed } from '@angular/core/testing'; import { FormControl, FormsModule, ReactiveFormsModule } from '@angular/forms'; import { of } from 'rxjs'; import { DogResponse, DogsService } from '../dogs.service'; import { LoginComponent } from './login.component'; describe('LoginComponent', () =>...
# Assignment 1 You can answer the questions below using Python in any IDE, including Jupyter Notebooks. Submissions are only accepted via Github Classroom. If you would like to know how to submit assignments via Github Classroom, please see: https://www.youtube.com/watch?v=ObaFRGp_Eko ## Task 1: Super Mario ![alt tex...
import React from 'react' import { Link } from 'react-router-dom' function ButtonCard({Button_text = 'Button_text', Title_text = 'Title_text', Detail_text = 'Detail_text', Route, variant = 1}) { const BUTTON_VARIANT = { 1: "bg-white text-green hover:border hover:border-white hover:text-black hover:bg-lime-100...
const std = @import("std"); const arbor = @import("arbor.zig"); const clap = @import("clap_plugin.zig"); const vst2 = @import("vst2_plugin.zig"); const testing = std.testing; const expect = testing.expect; const expectEqual = testing.expectEqual; const equalStrings = testing.expectEqualStrings; const span = std.mem....
package mende273.foody.ui.screen.meals.image import androidx.compose.foundation.gestures.rememberTransformableState import androidx.compose.foundation.gestures.transformable import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.runtime.Composable im...
import React from "react"; import { connect } from 'react-redux'; import { AdminCMSService } from '../../../services/admin-cms.service'; import { adminActionTypes } from "../../../actions/adminActionTypes"; import * as Action from "../../../../shared/actions/action"; import { Constants } from "../../../../../common/app...
// require the express => const {v4:uuid4} = require('uuid') const express = require('express') const userExpress = express(); const userModel = require('../models/userModel') const bodyParser = require('body-parser') userExpress.use(bodyParser.json()) // create the user const createUser = async (req, res) =>{ ...
<div class="content-container container-fluid p-3"> <div class="px-5 onboarding-container"> <h1 class="text-center my-4">Onboarding</h1> <div class=""> <form [formGroup]="subjectForm"> <label for="subject">Hírlevél tárgya</label> <input type="text" class="form-control" formControlName="s...
import datetime from datetime import date from kivymd.app import MDApp from kivymd.uix.behaviors import FakeRectangularElevationBehavior from kivy.lang import Builder from kivy.uix.screenmanager import Screen, ScreenManager from kivymd.uix.datatables import MDDataTable from kivymd.uix.floatlayout import MDFloatLayout f...
import 'package:flutter/material.dart'; import 'package:flutter_bloc/flutter_bloc.dart'; import 'package:grocery_app/constants.dart'; import 'package:grocery_app/cubits/cart_cubit/cart_cubit.dart'; import 'package:grocery_app/cubits/favourite_cubit/favourite_cubit.dart'; import 'package:persistent_bottom_nav_bar/persis...
/* Copyright (C) 2023 e:fs TechHub GmbH (sdk@efs-techhub.com) 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...
import { Injectable } from '@angular/core'; import { AlertService } from './alert.service'; import { ReservasService } from './reservas.service'; @Injectable({ providedIn: 'root' }) export class DataService { public ubicacionActual: string = 'Dashboard'; // Statebar - Direccion actual public showMenu: Boolea...
import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { RouterModule } from '@angular/router'; import { ReactiveFormsModule } from '@angular/forms'; import { HttpClientModule } from '@angular/common/http'; import { AppComponent } from './app.component'; import { To...
<template> <div class="title"> <p>Add Income</p> </div> <form @submit.prevent="formHandler"> <input type="text" id="desc" placeholder="Income" v-model="formData.desc"> <input type="number" id="num" placeholder="Amount" v-model="formData.value"> <input type="date" id="date" lang="fr...
// import hooks from r3f import { useFrame } from "@react-three/fiber"; // import custom hook import useCurrentCameraDist from "../hooks/useCurrentCameraDist.jsx"; // import componenets import WeirdSphere from "./WeirdSphere.jsx"; import Lights from "./Lights.jsx"; import OuterSphere from "./OuterSphere.jsx"; import ...
import $content from '@atoms/workroom/content' import { css, useTheme } from '@emotion/react' import transition from '@styles/transition' import React, { useEffect, useRef } from 'react' import { useRecoilState } from 'recoil' import Spacing from './layout/Spacing' import Toolbar from './Toolbar' type Command = '' | '...
WITH -- Collate patients receiving any recent acute respiratory illness (ARI) diagnosis recentARI AS ( -- Look for any patient with an ARI, based on diagnosis code list suggested by CDC, -- that was recorded recently (since 12/2019). SELECT person_id, visit_occurrence_id, condition_start_DATE, condition_start...
import { CreateLikeRepository } from '@server/data/protocols/db'; import { CreateLike } from '@server/domain/use-cases'; import { faker } from '@faker-js/faker'; import { DbCreateLike } from './db-create-like'; const createLikeRepositoryMock = (): CreateLikeRepository => { return { create: jest.fn(), } as Crea...
import React from "react"; import { useState } from "react"; import { Container, Typography, Button } from "@mui/material"; import Header from "./HeaderAndFooter/Header"; import Footer from "./HeaderAndFooter/Footer"; import LessonQuestion from "./LessonQuestion"; import LessonText from "./LessonText"; import LessonFil...
#!/usr/bin/python3 import unittest from models.base_model import BaseModel import datetime class TestBaseModelClass(unittest.TestCase): """ Tests the BaseModel class""" def test_init_(self): """ Tests the constructer constructs form kwargs""" b = BaseModel() saved_as = b.to_dict() ...
// 通过远程接口进行登录 import React, { Component } from "react"; import axios from "axios"; import "./css/public" export default class Axios4 extends Component { state = { msg: "", style: { display: "block" }, hide: { display: "none" } } // 点击登录事件 login = () => { let userName = t...
import { HttpService } from '@nestjs/axios'; import { Injectable } from '@nestjs/common'; import { FleteService } from 'src/flete/flete.service'; import { StoreService } from 'src/store/store.service'; @Injectable() export class FexService { constructor( private readonly httpService: HttpService, private rea...
import React, { FC, useState } from "react"; import { useNavigate } from "react-router-dom" import Header from "./Header"; import Sidebar from "./Sidebar"; import Http from "../../helpers/Fetch"; import LoadingScreen from "./LoadingScreen"; import AuthUser from "../../helpers/AuthUser"; interface AuthLayoutProps { ch...
--- title: "\"[Updated] Million-Viewer Milestones YouTube's Pay Structure\"" date: 2024-06-05T11:08:43.392Z updated: 2024-06-06T11:08:43.392Z tags: - ai video - ai youtube categories: - ai - youtube description: "\"This Article Describes [Updated] Million-Viewer Milestones: YouTube's Pay Structure\"" excerpt: ...
"use client"; import { useState, useEffect, KeyboardEvent } from "react"; import { RatingProps } from "./Rating.props"; import styles from "./Rating.module.css"; import cn from "classnames"; import StarIcon from "./star.svg"; export const Rating = ({ isEditable = false, rating, setRating, ...props }: RatingPr...