text
stringlengths
184
4.48M
<?php session_start(); // Periksa apakah author sudah login if (!isset($_SESSION['author'])) { header("Location: ../../login/author/authorlogin.php"); exit(); } require_once '../../includes/dbconnect.php'; // Ambil daftar mata pelajaran dari database $stmt_subjects = $conn->query("SELECT * FROM subjects"); $...
# pos control analysis - get pairwise distances for lang/score/word type library(tidyverse) library(data.table) library(feather) library(here) POS_PATH <- here("analyses/06_syntax_control/data/SUBTLEX-US frequency list with PoS information text version.txt") WORD_PATH <- here("analyses/02_concreteness_semantics/data/e...
package com.argon.order.domain; import jakarta.persistence.*; import lombok.*; @AllArgsConstructor(access = AccessLevel.PRIVATE) @NoArgsConstructor @Builder(builderMethodName = "memberBuilder", toBuilder = true) @Entity @Data @Table(name="NT_MEMBER") public class Member { @Id @Column(name = "MEMBER_ID", null...
import random puzzles = ["Kali", "Mint", "Debian", "Arch", "Gentoo", "Fedora", "Ubuntu"] HANGMANPICS = [''' +---+ | | | | | | =========''', ''' +---+ | | O | | | | =========''', ''' +---+ | | O | | | | | =========''', ''' +---+ | ...
import React,{ useContext, useState } from 'react' //import { useForm } from '../util/hooks'; import { Button,Form } from "semantic-ui-react"; import { useMutation } from '@apollo/react-hooks'; import gql from 'graphql-tag'; import { AuthContext } from '../context/auth'; function Login(props) { const context = us...
document.addEventListener("DOMContentLoaded", (e) => { e.preventDefault(); const url = "http://localhost:3000/Usuarios"; async function getUser() { try { const response = await fetch(url); //console.log(response); const dados = await response.json(); //console.log(dados); dad...
/* * Copyright (C) 1998, 1999, 2000, 2001 * Lehrstuhl fuer Technische Informatik, RWTH-Aachen, Germany * * This file is part of the LTI-Computer Vision Library (LTI-Lib) * * The LTI-Lib is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License (LGPL) *...
import { useEffect, useState } from 'react'; import { Accordion, Col, Container, Image, Row } from 'react-bootstrap'; import { getPreferredTheme } from '../../../App'; import githubdark from '../../../icons/github-mark.svg'; import githublight from '../../../icons/github-mark-white.svg'; import instagram from '../.....
// // FeatherObjectsTests.swift // FeatherObjectsTests // // Created by Tibor Bodecs on 2022. 01. 03.. // import XCTest @testable import FeatherObjects final class FeatherObjectsTests: XCTestCase { func testPermissionEncode() async throws { let permission = FeatherPermission("user.account.login") ...
<?php namespace Edutalk\Base\Providers; use Illuminate\Contracts\Debug\ExceptionHandler; use Illuminate\Routing\Router; use Illuminate\Support\ServiceProvider; use Edutalk\Base\Exceptions\Handler; use Edutalk\Base\Facades\AdminBarFacade; use Edutalk\Base\Facades\BreadcrumbsFacade; use Edutalk\Base\Facades\FlashMessage...
import { useEffect, useState } from "react" import { Card, Col, Container } from "react-bootstrap" import { nhlShow } from "../../api/sport" import Row from "react-bootstrap/Row" import Spinner from "react-bootstrap/Spinner" import NhlGameShow from "../game/NhlGameShow" const backgroundCSS = { backgroundColor: 'rg...
package es.michael.springdemo; import org.springframework.context.annotation.AnnotationConfigApplicationContext; public class JavaConfigDemoApp { public static void main(String[] args) { //read spring config java class AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(Sport...
/** * Copyright 2019-2021 覃海林(qinhaisenlin@163.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 applic...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>v-bind</title> <style> img { width: 500px; height: auto; } </style> </head> <...
import { createRouter, createWebHistory } from 'vue-router' import {hasRight} from "../composables/rights" import {useUserStore} from "../piniaStores/userStore"; const managerRoutes = [ { path: 'profiles', name: 'Profiles', component: () => import("../manager/profiles/components/profileDisp...
use std::{ fmt::{self, Debug}, hash::Hasher, marker::PhantomData, mem::{transmute, MaybeUninit}, ops::{Deref, DerefMut}, ptr::NonNull, }; use twox_hash::XxHash32; pub struct Shrink<const SIZE: usize, T> { buf: [u8; SIZE], pd: PhantomData<T>, } impl<const SIZE: usize, T> Deref for Shrin...
import React, { useContext, useState } from "react"; import { AppContext } from "../context/App_Context"; import { ToastContainer, toast, Bounce } from "react-toastify"; import "react-toastify/dist/ReactToastify.css"; import { useNavigate } from "react-router-dom"; const AddRecipe = () => { const navigate = useNavig...
import { View, StyleSheet } from "react-native"; import React, { useState } from "react"; import { DrawerContentScrollView, DrawerItem, DrawerItemList, } from "@react-navigation/drawer"; import { Avatar, Title, useTheme, Paragraph, Drawer, Text, TouchableRipple, Switch, Caption, } from "react-na...
import { Dispatch } from 'redux'; import * as api from '../../api'; import { Actions } from '../../constants/actionTypes'; interface Trail { title: string; description: string; author: string; authorId: string; tags: string[]; selectedFile: string; likes?: string[]; }; export interface ISe...
package main import ( "flag" "fmt" "os" "strconv" ) /** * Función principal */ func main() { // Se verifica la cantidad de argumentos: var filePath string if len(os.Args) < 2 { fmt.Println("error ruta de archivo no encontrada.") os.Exit(1) } // Se crean las banderas para la IP y el número de puerto: ...
#!/usr/bin/python3 """ Square class definition """ class Square: """class representing the square""" def __init__(self, size=0): """initializing private attribute size of the square""" if type(size) is int: if size < 0: raise ValueError("size must be >= 0") ...
import { JsonRpcSigner } from "@ethersproject/providers"; import React, { createContext, useState, Dispatch, SetStateAction, } from "react"; interface Context { address: string; signer: JsonRpcSigner | null; isConnected: boolean; setAddress: Dispatch<SetStateAction<string>>; setSigner: Dispatch<SetSt...
import React from 'react' import { NavLink, Outlet, useNavigate } from 'react-router-dom' import weblogo from '../../../data/weblogo.png' import { AiOutlineMenu, AiOutlineClose } from 'react-icons/ai' import { useDispatch, useSelector } from 'react-redux' import { toggleMobNavOpen } from '../../../slices/commonSlices' ...
import { render, screen } from '@testing-library/react'; import { Input } from './'; describe('<Input />', () => { it('should render Input', () => { render(<Input placeholder="placeholder" />); expect(screen.getByRole('textbox')).toBeInTheDocument(); }); it('should render Input with placeholder', () =...
package io.js.restclient; import io.js.models.User; import org.springframework.core.ParameterizedTypeReference; import org.springframework.stereotype.Service; import org.springframework.web.client.RestClient; import java.util.List; import static org.springframework.http.MediaType.APPLICATION_JSON; @Service public c...
package com.ruoyi.project.parking.service.impl; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.ruoyi.common.exception.ServiceException; import com.ruoyi.common.utils.SecurityUtils; import com.ruoyi.common.utils.St...
#pragma once #include <string> #include <imgui.h> namespace JEditor { // NOLINTNEXTLINE(hicpp-special-member-functions, cppcoreguidelines-special-member-functions) class IPanel { public: explicit IPanel(const std::string_view& name) : m_Name(name) {} virtual ~IPanel() = default; ...
<!DOCTYPE html> <html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://xmlns.jcp.org/jsf/html" xmlns:f="http://xmlns.jcp.org/jsf/core"> <h:head> <meta charset="UTF-8" /> <title>Add Head of State</title> <f:event type="preRenderView" listener="#{headOfStateController.loadCountries}" /> </h:head>...
import React from "react"; import { shallow } from "enzyme"; import Dialog from "./Dialog"; import type { DialogProps } from "./Dialog.props"; import { Text } from "../../../Text"; const COMPONENT_NAME = "Modal"; describe("Dialog", () => { const defaultProps: DialogProps = { children: <Text>Test Content</Text>, ...
import styled from 'styled-components'; interface styledProps { $error: boolean; } export const MintFormStyle = styled.form` display: flex; max-width: 248px; flex-direction: column; align-items: center; gap: 16px; margin: 0 auto; @media screen and (min-width: 1280px) { max-width: 397px; gap: ...
# CASH-MINT A lightweight and safe all-in-one docker-composer for earning passive income from your unused internet bandwidth. A single instance of **cash-mint** can earn up to **50$** a month or even more, this estimation is depending on your IP location. ## Compatibility I'm creating **cash-mint** while learning [J...
package com.example.hammer_test.ui.fragments import android.annotation.SuppressLint import android.content.Context import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.ArrayAdapter import androidx.fragment.app.Fragment import androidx....
<!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> <!-- Bootstrap --> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/cs...
<?php namespace Code; use PHPUnit\Framework\TestCase; class ProdutoTest extends TestCase { private $produto; // Roda antes de cada teste da classe public function setUp(): void { $this->produto = new Produto(); } // // Chamado uma vez, antes dos testes serem executados, no caso pode...
package net.danvi.dmall.admin.web.view.goods.controller; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.annotation.Resource; import javax.servlet.http.HttpServletRequest; import dmall.framework.common.constants.ExceptionConstants; import dmall.framework.common.util.MessageUtil; i...
// // ExpressPayCreditvoidAdapter.swift // ExpressPaySDK // // Created by ExpressPay(zik) on 15.02.2021. // import Foundation /// The API Adapter for the CREDITVOID operation. /// /// See *ExpressPayCreditvoidService* /// /// See *ExpressPayCreditvoidCallback* public final class ExpressPayCreditvoidAdapter: Expres...
import { Component, OnInit } from '@angular/core'; import { Router } from '@angular/router'; import * as moment from 'moment'; import { FormGroup, FormControl, Validators, FormBuilder, AbstractControl, } from '@angular/forms'; import { Order } from 'src/app/model/order'; import { OrderService } from 'src/app/...
Reproducing structure-property relationships for different classes of materials. This also enables quantification and for plots between different variables than those provided by the source to be made. One can see that, e.g., the density and melting point are positively correlated, even across classes of materials. A ...
import { HttpException, HttpStatus, Injectable } from '@nestjs/common'; import { InjectRepository } from '@nestjs/typeorm'; import { IPaginationOptions, paginate, Pagination, } from 'nestjs-typeorm-paginate'; import { NewsService } from 'src/news/news.service'; import { UserEntity } from 'src/user/entity/user.ent...
import { useState, useEffect } from "react"; import logo from "../assets/logo.png"; import designer from "../assets/designer.png" import insight from "../assets/insight.png" import recruiter from "../assets/recruiter2.png" import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { faAngleLeft } from "@...
"use client"; import Header from "../header"; import { Context, } from "@/components/client"; import { useContext, useState } from "react"; import toast from "react-hot-toast"; import { redirect, useRouter } from "next/navigation"; import Image from "next/image"; import Hide from "../assets/hide.svg" import Show from...
/* * Copyright 2017-2021 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://xmlns.jcp.org/jsf/facelets" xmlns:f="http://xmlns.jcp.org/jsf/core" xmlns:p="http://primefaces.org/ui" xmlns:h="http://xmlns.jcp.org/jsf/html" xmlns:hftl="http://hftl.org" xmlns:hf="http://xmlns.jcp.org/jsf/composite/tags" template="/layout/...
<!DOCTYPE html> <head> <link rel="stylesheet" href="../style.css" /> <link rel="preconnect" href="https://fonts.gstatic.com"> <link href="https://fonts.googleapis.com/css2?family=Montserrat&display=swap" rel="stylesheet"> <link href="../prism.css" rel="stylesheet" /> <meta charset="UTF-8"> <me...
from abc import ABC, abstractmethod from dataclasses import dataclass from typing import List from .consts import ColorType, CommandOpcodes @dataclass class Command(ABC): """ Base command class """ @abstractmethod def opcode(self) -> CommandOpcodes: """ Returns the opcode for thi...
import { KeyValueType } from "../../types/KeyValue.type"; import { PubSubBulkPublishMessage } from "../../types/pubsub/PubSubBulkPublishMessage.type"; import { PubSubBulkPublishResponse } from "../../types/pubsub/PubSubBulkPublishResponse.type"; import { PubSubPublishOptions } from "../../types/pubsub/PubSubPublishOpti...
import React from "react"; import {View, Text, FlatList, ScrollView, TouchableOpacity} from "react-native"; import PropTypes from "prop-types"; import styles from "./style"; import MatchItem from "./MatchItem"; import {themes} from "../../constants/colors"; import ScrollableTabView from "react-native-scrollable-tab-vie...
import React from "react"; class Expressions extends React.Component { constructor(props) { super(props); this.state = {lines: []}; this.headers = [ { key: 'ID', label: 'ID'}, { key: 'Chinese', label: 'Chinese' }, { key: 'English', label: 'English' }, ...
import { useState, useEffect } from 'react'; import PricingPlan from '../components/PricingPlan'; const MyWallet = () => { const [showModal, setShowModal] = useState(false); const [walletType, setWalletType] = useState(''); const [walletAddress, setWalletAddress] = useState(''); const [walletTypeError, setWall...
package actions import ( "context" "encoding/hex" "mime" "net/http" "github.com/lantah/go/network" "github.com/lantah/go/protocols/orbitr" hProblem "github.com/lantah/go/services/orbitr/internal/render/problem" "github.com/lantah/go/services/orbitr/internal/resourceadapter" "github.com/lantah/go/services/orb...
import React from 'react'; import DashboardHeader from '../../../components/DashboardHeader/DashboardHeader'; import usePayment from '../../../hooks/usePayment'; import EmptyData from '../../../components/EmptyData/EmptyData'; import { Link } from 'react-router-dom'; import FadeInAnimation from '../../../components/Fad...
part of 'product_cubit.dart'; @immutable abstract class ProductState { final List<ProductModel> products; ProductState(this.products); } class ProductInitialState extends ProductState { ProductInitialState() : super([]); } class ProductLoadingState extends ProductState{ ProductLoadingState(super.products); ...
# terrace area as percentage of neighbourhood total non-built area library(sf) library(tmap) library(tmaptools) library(tidyverse) library(dbscan) library(fs) set.seed(1992) # download terraces t <- read.csv("https://opendata-ajuntament.barcelona.cat/data/dataset/9cefbfa2-bcdf-44a0-b63a-372b48f9da93/resource/291a2c18-b...
part of 'order_watcher_bloc.dart'; class OrderWatcherState extends Equatable { const OrderWatcherState({ required this.orderTicketList, required this.failureOption, required this.status, }); final List<OrderTicketData> orderTicketList; final Option<Failure> failureOption; final LoadStatus status...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Acent Services</title> <meta content="width=device-width, initial-scale=1.0" name="viewport"> <meta content="" name="keywords"> <meta content="" name="description"> <!-- Favicon --> <link href="img/favicon.ico" rel="icon...
import { Box, Checkbox, FormControlLabel, Typography } from "@mui/material"; import PropTypes from "prop-types"; import React from "react"; const FilterByService = ({ filters = {}, onChange }) => { // const [values, setValues] = useState({ // isPromotion: Boolean(filters.isPromotion), // isFreeShip: Boolean(...
require_relative '../../spec_helper' require_relative 'fixtures/common' require_relative 'shared/new' describe "Exception.exception" do it_behaves_like :exception_new, :exception end describe "Exception#exception" do it "returns self when passed no argument" do e = RuntimeError.new e.should == e.exception...
package es.upm.btb.helloworldkt import android.location.Location import android.os.Bundle import android.util.Log import android.widget.Button import android.widget.Toast import androidx.appcompat.app.AppCompatActivity import androidx.core.content.ContextCompat import org.osmdroid.config.Configuration import org.osmdr...
package Tests; import Page.AutocompletePage; import Page.MainPage; import org.junit.jupiter.api.Test; import org.openqa.selenium.By; import org.openqa.selenium.WebElement; import org.openqa.selenium.interactions.Actions; import java.util.List; import java.util.concurrent.ThreadLocalRandom; import static org.junit.ju...
import 'package:flutter/cupertino.dart'; import 'package:get/get.dart'; import 'package:proc01/controllers/progress_bar_timer_controller.dart'; import 'package:proc01/models/questions.dart'; import 'package:proc01/screens/score.dart'; import 'package:proc01/screens/welcome.dart'; class QuestionController extends GetxC...
import { useState } from "react"; import { useHistory } from "react-router-dom"; import { newPost } from "../services"; import { TextField, Button } from "@mui/material"; const NewPost = () => { const [title, setTitle] = useState(""); const [content, setContent] = useState(""); const history = useHistory(); c...
import { useConfirmationDialog } from '@/contexts/ConfirmContext' import ZenApi from '@/services/trader' import { Box, Button, Typography } from '@material-ui/core' import { grey } from '@material-ui/core/colors' import { Alert } from '@material-ui/lab' import moment from 'moment' import React from 'react' import { use...
function findClosestElements(arr: number[], k: number, x: number): number[] { let left = 0; let right = arr.length - 1; const answer: number[] = []; while (left <= right) { let mid = left + Math.floor((right - left) / 2); // ? Instead of finding the x position in the array, we can find the left bounda...
import { BrowserModule } from '@angular/platform-browser'; import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'; import { AppRoutingModule } from './app-routing.module'; import { AppComponent } from './app.component'; import { ServiceWorkerModule } from '@angular/service-worker'; import { environment } fro...
import 'dart:convert'; import 'package:dio/dio.dart'; import 'package:tezda_ecom/domain/api/dio_client.dart'; import 'package:tezda_ecom/domain/api/endpoints.dart'; import '../../application/home/home_controller.dart'; import '../../domain/models/product/product.dart'; abstract class IProductRepo { factory IProduc...
import React from "react"; import { Modal, Button } from "react-bootstrap"; import { getIndexFromValuta, getVrijednostiFromDb } from "../Utility/DistributivnaMreza"; import { dajIndexZaVrijednost, dajNizZaValutu, dajVrijednostiZaValutu } from "../Utility/StabloUI"; export default function KasaInfo(prop) { const { ...
C> @file C> @brief Test whether a character string is "missing" C> C> @author J. Ator @date 2012-06-07 C> Check whether a C> character string returned from a previous call to subroutine C> readlc() was encoded as "missing" (all bits set to 1) C> within the actual BUFR data subset. C> C> @param[in] STR -- character*(*)...
from abc import ABC, abstractmethod from enum import Enum from typing import Optional, Set, Tuple, Union import numpy as np from scipy.stats import gennorm from sklearn.linear_model import lars_path_gram from sklearn.utils.validation import check_random_state class ProjectionVector: beta: np.ndarray q: int ...
function asyncThing(value) { return new Promise((resolve) => { setTimeout(() => resolve(value), 100); }); } async function map() { return [1, 2, 3, 4].map(async (value) => { const v = await asyncThing(value); return v * 2; }); } map() .then((v) => Promise.all(v)) .then((v) => console.log(v)) ...
import { Controller, Get, NotFoundException, Param, Res } from '@nestjs/common'; import { ApiParam, ApiResponse, ApiTags } from '@nestjs/swagger'; import { Response } from 'express'; import { FileStorage } from 'src/application/core/interfaces/storage/file-storage'; @ApiTags('Storage') @Controller('storage') export cl...
取消引用 Capstone 项目 以之前的项目为基础,创建一个生动活泼的 Android 应用程序! 客观的 这是一条漫长的路,现在是你完成旅程的时候了。 使用您所学到的有关应用程序设计、Java、XML 和 Android 的所有知识来实现​​ Unquote。 在此项目中,您将整合之前应用程序构建项目的成就,并将其封装成一个可运行的 Android 游戏。 第 1 部分:准备您的项目 取消引用基本上已经完成了一半,但是到目前为止您生成的代码已经存在于 Codecademy 的平台上。在本部分中,您将把之前的工作合并到Unquote Android Studio 项目中,并首次启动您的应用程序。 我们鼓励您使用迄今为止...
import React, { useState } from 'react' import { useDispatch, useSelector } from 'react-redux' import { postAdded } from './postsSlice' export const AddPostForm = () => { const [title, setTitle] = useState("") const [content, setContent] = useState("") const [userId, setUserId] = useState("") const di...
import { useDispatch, useSelector } from "react-redux"; import { fetchContacts } from "redux/operations"; import ContactForm from "./ContactForm/ContactForm"; import Filter from './Filter/Filter'; import ContactList from "./ContactList/ContactList"; import css from './App.module.css'; import { useEffect } from "react";...
<?php class sw_get_in_touh extends \Elementor\Widget_Base { public function get_name() { return 'sw_get_in_touh'; } public function get_title() { return __( 'Software Get In Touch', 'prysm' ); } public function get_icon() { return 'eico...
'use strict'; const express = require('express'); const path = require('path'); const favicon = require('serve-favicon'); const logger = require('morgan'); const cookieParser = require('cookie-parser'); const bodyParser = require('body-parser'); // Api Routes const demoApiRouter = require('./api').demo; // View Rout...
https://leetcode.com/problems/best-time-to-buy-and-sell-stock/submissions/ You are given an array prices where prices[i] is the price of a given stock on the ith day. You want to maximize your profit by choosing a single day to buy one stock and choosing a different day in the future to sell that stock. Return the m...
import React from 'react' import cn from 'classnames' import Link from 'next/link' import { useRouter } from 'next/router' import renderComponent from './utils/render-component' import { getFSRoute } from './utils/get-fs-route' import useMenuContext from './utils/menu-context' import { useConfig } from './config' imp...
import { useRef } from 'react'; import { ColumnDef, flexRender, getCoreRowModel, useReactTable } from '@tanstack/react-table'; import Color from 'color'; import { isOntimeBlock, isOntimeDelay, isOntimeEvent, OntimeRundown, OntimeRundownEntry } from 'ontime-types'; import useFollowComponent from '../../common/hooks/use...
import { isFirefox, isSafari } from './browser'; import { isMacintosh, isWindows } from './platform'; export interface IMouseEvent { readonly browserEvent: MouseEvent; readonly leftButton: boolean; readonly middleButton: boolean; readonly rightButton: boolean; readonly buttons: number; readonly target: HTM...
import { useState, useEffect } from 'react'; function Counter() { // let timeIntro; const [amplitude, setAmplitude] = useState(1); const [timeTravel, setTimeTravel] = useState(0); const [timeIntro, setTimeIntro] = useState('Today is '); const oneDay = 86400000; const now = new Date().getTime(); // => e.g....
<?php namespace App\Http\Controllers; use App\Http\Requests\FuncionarioRequest; use App\Models\User; use App\Repositories\AdminRepository; use Illuminate\Http\Request; class AdminController extends Controller { public function __construct(private AdminRepository $repository) { } public function adm...
// import React, { useContext, useState, useEffect, useCallback } from 'react'; // import { withRouter } from 'react-router-dom'; // import { // InputBase, // IconButton, // Popper, // CircularProgress, // Grid, // } from '@material-ui/core'; // import { ArrowBack } from '@material-ui/icons'; // import { Gl...
import * as React from 'react'; import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu'; import { cn } from '@lib/helpers'; import { RxCheck, RxChevronRight, RxCircle } from 'react-icons/rx'; import { Dialog, DialogContent, DialogTrigger } from './dialog'; import { DialogProps } from '@radix-ui/react-dia...
import 'package:sixam_mart/util/dimensions.dart'; import 'package:sixam_mart/util/styles.dart'; import 'package:flutter/material.dart'; import 'package:get/get.dart'; class ProfileCard extends StatelessWidget { final String title; final String data; ProfileCard({@required this.data, @required this.title}); @o...
// // SettingsTableView.swift // ClipPic // // Created by RayShin Lee on 2022/6/29. // import UIKit protocol SettingsTableViewDelegate: AnyObject { func showAccountSettingVC() func signOut() func deleteAccount() } class SettingsTableView: UITableView { // MARK: - Properties weak var ...
import React from "react"; import TextField from "@material-ui/core/TextField"; import useStyles from "../Styles"; interface NumberInputComponentProps { value: number; onChange: (value: number) => void; label: string; max: number; } const NumberInputComponent: React.FC<NumberInputComponentProps> = ({ value, ...
import React, { useState } from "react"; import { FaTrashAlt, FaPencilAlt } from "react-icons/fa"; import { editEvent } from "/src/features/events"; import styles from "./EventEntry.module.css"; const EventEntry = ({ event, onDelete }) => { const [isEditing, setIsEditing] = useState(false); const [linkText, setLin...
import type { SharedType } from '@maybe-finance/shared' import { useAccountContext, BrowserUtil } from '@maybe-finance/client/shared' import { NumberUtil } from '@maybe-finance/shared' import { DateTime } from 'luxon' import toast from 'react-hot-toast' import { RiAddLine, RiPencilLine } from 'react-icons/ri' import { ...
import axios, { AxiosResponse } from 'axios'; import { queryToString } from '../../utils/binanceUtils'; const url = 'https://testnet.binancefuture.com'; export enum OrderSide { BUY = 'BUY', SELL = 'SELL', BOTH = 'BOTH', } export enum OrderType { LIMIT = 'LIMIT', MARKET = 'MARKET', TAKE_PROFIT = 'TAKE_PRO...
#pragma once #include <visibility.h> #include <defs/MdsInterface.hpp> #include <defs/MeasurementObjectDefs.hpp> #include <defs/Receiver.hpp> #include <set> #include <mutex> #include <functional> #include <string> #include <vector> #include <defs/Log.hpp> #ifdef _WIN32 #ifdef WRITE_API class WRITE_API std::thread; ...
# Java集合(下) ## Map集合体系 ![](https://dar-1305869431.cos.ap-shanghai.myqcloud.com/java_note/Map.png) Map集合可以将对象映射到其它对象上,即映射关系(key-value),并且它和数组与Collection一样很容易扩展到多维,很容易通过容器组合来生成强大的数据结构。Map其实就相当于一个映射表(关联数组),其基本思想是它维护的键值对关联,因此我们可以通过键来查找值 **Map集合特点:** * Map集合的特点都是由键决定的 * Map集合的键是无序,不重复的,无索引的,值不做要求(可以重复) * Map集合后面重复的键对应的...
<center> <?php session_start(); if (isset($_SESSION["loggedin"]) && $_SESSION["loggedin"] === true) { header("location: index.php"); exit; } require_once "config.php"; $username = $password = ""; $username_err = $password_err = $login_err = ""; if ($_SERVER["REQUEST_...
use std::{ collections::{HashMap, HashSet}, error::Error, fs, str::FromStr, }; fn main() { let raw_input = fs::read_to_string("day4a.txt").unwrap(); let drawn_numbers = DrawnNumbers::from_str(&raw_input).unwrap(); let mut boards = Boards::from_str(&raw_input).unwrap(); let mut last_bin...
#!/usr/bin/python3 """This module defines the HBNBCommand class for the command-line console.""" import cmd from models.base_model import BaseModel from models import storage from models.place import Place from models.city import City from models.amenity import Amenity from models.review import Review from models.stat...
class ThreadDemo8 { public static void main(String arr[]) { System.out.println("Inside main method"); //main is a parent thread Demo obj1 = new Demo(); Demo obj2 = new Demo(); Thread t1 = new Thread(obj1); //creation of new thread Thread t2 = new Thread...
-- Exercice 1: Lister tous les employés SELECT * FROM employees; -- Exercice 2: Lister le nom, prénom et titre de chaque employé SELECT employees.lastName, employees.firstName, employees.jobTitle FROM employees; -- Exercice 3: Lister les Réprésentants Commerciaux ('Sales Rep') de la table employés SELECT * FROM e...
unit prop; {$mode objfpc}{$H+} interface uses {$IFDEF UNIX} CThreads, {$ENDIF} Classes, SysUtils; type TPropItems = array[0..11] of string; TPropDataReadyEvent = procedure of object; TPropThread = class(TThread) protected procedure Execute; override; public call, rig: string; OnPropD...
[[tags: manual]] [[toc:]] == Cross Development Since CHICKEN generates C code, it is relatively easy to create programs and libraries for a different architecture than the one the compiler is executing on, a process commonly called ''cross compiling''. Basically you can simply compile Scheme code to C and then invok...
#pragma once #include <cmath> #include "pico/stdlib.h" enum class PIDType { P_pole_placement_closed_loop_plant, PI_pole_placement_1st_order_plant, PID_pole_placement_2nd_order_plant, P_manual_tunning, PD_manual_tunning, PI_manual_tunning, PID_manual_tunning }; class PIDController { publi...
<?php require_once __DIR__ . '/init.php'; // Get all subscribers $subscribers = $listMonk->subscribers()->getAll(); echo "All subscribers:\n"; foreach ($subscribers as $subscriber) { echo $subscriber->getId() . " - " . $subscriber->getName() . "\n"; } // Get a subscriber by id $subscriber = $listMonk->subscriber...