text
stringlengths
184
4.48M
package ru.auto.tests.desktop.dealers; import com.carlosbecker.guice.GuiceModules; import com.carlosbecker.guice.GuiceTestRunner; import io.qameta.allure.Epic; import io.qameta.allure.Feature; import io.qameta.allure.Owner; import io.qameta.allure.Story; import io.qameta.allure.junit4.DisplayName; import org.junit.Bef...
using Entities; using ServiceContracts.Enums; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Text; using System.Threading.Tasks; using Xunit; namespace ServiceContracts.DTOS.PersonDTO { public class PersonAddRequest { [Requi...
import Navbar from './components/Navbar' import CartContainer from './components/CartContainer' import { useEffect } from 'react' import { useDispatch, useSelector } from 'react-redux' import { calcTotoal, getCartItems } from './reducers/cart/cartReducer' import Modal from './components/Modal' const App = () => { co...
fetch('https://raw.githubusercontent.com/pcm-dpc/COVID-19/master/dati-json/dpc-covid19-ita-regioni.json') .then(response => response.json()) .then(dati => { // dati riordinati per data ultima let sorted = dati.reverse() // preso e riordinato per data let lastUpdated = sorted[0].data ...
# mini-alloc `mini-alloc` is a small and performant allocator optimized for `wasm32` targets like [Arbitrum Stylus][Stylus]. You can use it in your program as follows. ```rust #[global_allocator] static ALLOC: mini_alloc::MiniAlloc = mini_alloc::MiniAlloc::INIT; ``` ## Benchmarks `mini-alloc` implements a minimal bu...
#!/usr/bin/env perl # # mdbook-index-template # jms1 2023-11-06 # # Add my custom blocks to mdbook's index.hbs to make index-template.hbs # # This version contains hard-coded strings require 5.005 ; use strict ; use warnings ; use Getopt::Std ; ######################################## # Default blocks containing com...
import 'dart:async'; import 'dart:math'; import 'package:flutter/material.dart'; import 'package:firebase_messaging/firebase_messaging.dart'; import 'package:flutter_local_notifications/flutter_local_notifications.dart'; import 'package:flutter/services.dart'; import 'package:mobile/mqtt/MQTTAppState.dart'; import '...
#' Greedily add factors to a flash object #' #' Adds factor/loadings pairs to a flash object in a "greedy" manner. Up to #' \code{Kmax} pairs are added one at a time. At each step, \code{flash_greedy} #' attempts to find an optimal additional (rank-one) factor given all #' previously added factors. The additional...
import React from 'react' import { useState } from 'react'; import { Navbar, Nav } from 'react-bootstrap'; import { IoSearch } from "react-icons/io5"; import { BsCart4 } from "react-icons/bs"; import '../assets/Css/orelega-one.css'; import Login from "../Login/Login" const Header = () => { const [showLoginModal,...
import React, { useEffect, useState } from "react"; import { ActivityIndicator, Alert, Button, Pressable, RefreshControl, SafeAreaView, ScrollView, StyleSheet, Text, TextInput, View, } from "react-native"; import AsyncStorage from "@react-native-async-storage/async-storage"; import { useCallback }...
package org.rhasspy.mobile.viewmodel.configuration.speechtotext import org.rhasspy.mobile.data.audiorecorder.AudioFormatChannelType import org.rhasspy.mobile.data.audiorecorder.AudioFormatEncodingType import org.rhasspy.mobile.data.audiorecorder.AudioFormatSampleRateType import org.rhasspy.mobile.data.service.option.S...
package org.example; import org.junit.Test; import java.time.LocalDate; import java.util.Map; import static org.junit.Assert.*; public class RentalToolTest { @Test public void testValidCheckout() { RentalTool[] tools = { new RentalTool("CHNS", "Chainsaw", "Stihl"), ne...
import { Request, Response } from 'express'; import httpStatus from 'http-status'; import { paginationFields } from '../../../constants/pagination'; import catchAsync from '../../../shared/catchAsync'; import pick from '../../../shared/pick'; import sendResponse from '../../../shared/sendResponse'; import { serviceFilt...
import React from "react"; import { DashboardScreen } from "./screens/Dashboard"; import { SportsScreen } from "./screens/Sports"; import { SchedulingScreen } from "./screens/Scheduling"; import { OrganisationsScreen } from "./screens/Organisations"; import { CompetitionsScreen } from "./screens/Competitions"; import ...
from ..user import User from ..student import Student from ..teacher import Teacher from flask import Flask, Blueprint, url_for, request, redirect, render_template, session, flash from flask_session import Session from src.helpers import create_username, generate_salt import sqlite3, hashlib auth = Blueprint("auth"...
import { createRef, useEffect, useState } from "react" import { Canvas, ColorPicker, PaletteBox, Uploader } from "../Components" import { generatePalette } from "../Utils/pletteGenerator"; import defImage from '../Asset/Img/default.jpg' import { DragAndUpload } from "../Components/DragAndUpload/DragAndUpload"; export ...
package api.utilities; import java.io.File; import java.text.SimpleDateFormat; import java.util.Date; import org.testng.ITestContext; import org.testng.ITestResult; import org.testng.TestListenerAdapter; import com.aventstack.extentreports.ExtentReports; import com.aventstack.extentreports.ExtentTest; import com.ave...
/* Copyright (c) 2017-2023, Carlos Amengual. Licensed under a BSD-style License. You can find the license here: https://css4j.github.io/LICENSE.txt */ // SPDX-License-Identifier: BSD-3-Clause package io.sf.carte.uparser; /** * A handler that removes comments. * <p> * Example: * </p> * * <pre><code> * ...
import Link from "next/link"; import { Home, Package2, ShoppingCart, Package, Users2, LineChart, Settings } from "lucide-react"; import { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider } from "@/components/ui/tooltip"; import { usePathname } from 'next/navigation'; import type { FC } from 'react'; interface ...
package com.example.apapunada.ui.staff import android.util.Log import android.widget.Toast import androidx.compose.foundation.BorderStroke import androidx.compose.foundation.ExperimentalFoundationApi import androidx.compose.foundation.background import androidx.compose.foundation.horizontalScroll import androidx.compo...
import { Router } from '@angular/router'; import { User } from './user.model'; import { HttpClient, HttpErrorResponse } from '@angular/common/http'; import { Injectable } from "@angular/core"; import { catchError, tap } from 'rxjs/operators'; import { BehaviorSubject, throwError } from 'rxjs' import { environment } fro...
import React, { useEffect, useState } from "react"; import Updater from "../../components/noticeboard/Updater"; import { useNavigate, useParams } from "react-router"; import PostAPI from "../../utils/api/postAPI"; import { Link } from "react-router-dom"; import LoadingPage from "../../pages/LoadingPage"; export defaul...
# Setting up a simple django setup `Team Digipodium` presents ## clearing some Jargon - `Django` is a web framework that helps you create websites using Python. - `Static files` are files that do not change, such as images, CSS, and JavaScript. - `Templates` are files that contain HTML code and Django tags that can...
// Adappted from: http://bl.ocks.org/rkirsling/5001347 function draw_transitions(graph){ var color = d3.scale.category20(); var width = 700, height = 520; var force = d3.layout.force() .nodes(graph.nodes) .links(graph.links) .size([width, height]) .linkDistance(30) .charge(-50) .on("tick...
<template> <router-link to="/">Home</router-link><br /> <router-link to="/login/danish">login danish </router-link><br /> <router-link to="/login/sarmad">login sarmad</router-link><br /> <router-link to="/login/awais">login awais</router-link><br /> <router-link to="/signup">sign up</router-link><br /> <!-...
import axios from 'axios' import { UpdateProductDto } from '../dtos/product.dto' import {Category} from '../models/category.model' import { Product } from '../models/product.model' export class BaseHttpService<TypeClass>{ constructor(protected url: string){ } async getAll() { const { data } = await axios...
from sqlalchemy.ext.asyncio import AsyncSession from sqlalchemy.future import select from app.db.models import Program async def store_or_update_program(session: AsyncSession, program: Program): """Store or update a program.""" expression = Program.sigaa_id == program.sigaa_id result = await session.exe...
<?php namespace App\Entity; use App\Entity\Traits\Timestamp; use App\Repository\CommandeMessageRepository; use Doctrine\ORM\Mapping as ORM; use Symfony\Component\Serializer\Annotation\Groups; use Symfony\Component\Validator\Constraints as Assert; use Symfony\Component\HttpFoundation\File\File; use Symfony\Component\H...
import React, { Fragment, useEffect, useState } from "react"; import { useAlert } from "react-alert"; import axios from "axios"; import {serverUrl} from "../../../constants.js" // import { Link } from "react-router-dom"; const Suggestion = () => { const alert = useAlert(); const [suggestedFriends, setSuggestedFrie...
--- title: ReactとAuth0でソーシャルログイン date: "2022-04-15" description: Auth0を用いてReactでTwitter認証を実装しました。 image_url: "https://user-images.githubusercontent.com/71915489/159204626-e6d7a74a-0ffd-43f6-ba16-a195c506b84a.png" tags: ["React", "Auth0"] --- React の Auth0 用の sdk を用いて Auth0 の Twitter ログインを行いました。 #### 参考サイト こちらの Auth0...
import React from 'react' import classnames from 'classnames' import Message from '@ttn-lw/lib/components/message' import PropTypes from '@ttn-lw/lib/prop-types' import style from './description-list.styl' const DescriptionListItem = props => { const { className, children, data, title, highlight } = props const...
using ArcCreate.Jklss.BetonQusetEditor.Base; using ArcCreate.Jklss.BetonQusetEditor.Windows; using ArcCreate.Jklss.Model.ClientModel; using ArcCreate.Jklss.Model.SocketModel; using ArcCreate.Jklss.Services; using GalaSoft.MvvmLight.Command; using QRCoder; using System; using System.Collections.Generic; using System.Dr...
import { useEffect, useState } from 'react'; import TextInput from './InputText'; import TextArea from './TextArea'; import Button from './Button'; import Error from './Error'; export default function FlashCardForm({ createMode = true, onPersist = null, children: flashCard = null, }) { const backgroundClassName...
'use client' import './markdown.css' import { usePost } from "@/lib/global"; import Markdown from "react-markdown"; import { useEffect, useState } from "react"; import rehypeHighlight from 'rehype-highlight' export function Preview(props: {className?:string}) { const {ingredients,steps} = usePost() const [con...
import { useState } from "react"; import { useNavigate } from "react-router-dom"; export default function AddProduct({ addProduct}) { const [name, setName] = useState(""); const [price, setPrice] = useState(0); const [description, setDescription] = useState(""); const [url, setUrl] = useState(""); ...
###################################################################### # Basic test script for writing a NanoEvents array to a NanoAOD file # ###################################################################### # imports import sys import os import argparse from pathlib import Path import awkward as ak from coffea.n...
Authentication Schedule This document presents several authentication flows that can be used to identify an entity who wants to access Smart Core. It enumerates the following properties - **Who** - which entities (people or machines) will use this flow? - **Why** - for what purpose does the subject need to access S...
<template> <div class="container-full"> <!-- Main content --> <section class="content"> <div class="row"> <div class="col-12"> <div class="box"> <div class="box-header with-border"> <div class="d-flex justify-content-between"> <h3 class="box-ti...
<!DOCTYPE html> <html lang="en" xmlns:th="http://www.w3.org/1999/xhtml"> <head> <meta charset="UTF-8"> <link rel="stylesheet" href="/css/template.css"> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css"> <script src="https://ajax.googleapis.com/ajax/li...
// how to 'https://start.spring.io/' // tecnologias gradle groovy spring X JEE springboot hibernate flyway spock junit rxjava // @ (anotation) @Deprecated 'não deve ser mais usado' @Override 'metodo sobrescrito' @Test 'método é teste no JUnit' @Entity 'declara uma entidade do tipo relacional, como uma tabela, poré...
import 'package:flutter/material.dart'; import 'package:flutter_pratical_experience/utils/global_variables.dart'; class TransformDemoPage extends StatefulWidget { const TransformDemoPage({super.key}); @override State<TransformDemoPage> createState() => _TransformDemoPageState(); } class _TransformDemoPageState...
import { useEffect, useState } from "react"; import { MdFilterAlt } from "react-icons/md"; import Pagination from "../components/Pagination"; import Table from "../components/Table"; import useData from "../hooks/useData"; import useSearchParameters from "../hooks/useSearchParameters"; const Main = () => { const tod...
import React from 'react'; import { Card, CardContent, Typography, Grid } from '@material-ui/core'; import CountUp from 'react-countup'; import cx from 'classnames'; import styles from './Cards.module.css'; const Cards = ({ data: {confirmed, recovered, deaths, lastUpdate} }) => { if(!confirmed) { return 'Chargemen...
package com.springboot.couchbase.springbootrealworld.security import io.jsonwebtoken.Claims import io.jsonwebtoken.JwtException import io.jsonwebtoken.Jwts import io.jsonwebtoken.security.Keys import java.nio.charset.StandardCharsets import java.security.Key import java.time.Instant import java.util.Date open class J...
package com.bossed.waej.javebean import com.google.gson.annotations.SerializedName data class AccountResponse( @SerializedName("code") val code: Int, @SerializedName("data") val `data`: AccountData, @SerializedName("msg") val msg: String, @SerializedName("succ") val succ: Boolean ) da...
import { useEffect, useState } from "react"; import { ComingSoon } from "."; import { fullDateFn } from "@utils/handlers"; import { ComingSoonContainer as IComingSoonContainer, TimeLeft } from "@interface/components/shared/comingSoonInterface"; const ComingSoonContainer = ({ header = false, minHeight, finishDate = n...
import { useState, useEffect } from 'react'; import PropTypes from 'prop-types'; import UserNav from 'components/UserNav/UserNav'; import LogoutBtn from 'components/LogoutBtn/LogoutBtn'; import { globalTheme } from 'theme'; import * as s from './SideBar.styled'; const SideBar = ({ togglshownBurger, onSideBar, onRedi...
# Activation Vectors Directory README This directory contains steering vectors generated using a dataset of true and false statements, tailored to model different personas. Each statement is prefixed with a contextual phrase to guide the model's response style. The general format used is: "Pretend you're {type} person ...
import {createSlice, PayloadAction} from '@reduxjs/toolkit'; import {logIn, logOut} from './auth-actions'; // slice export const slice = createSlice({ name: 'auth', initialState: { isLoggedIn: false, captchaUrl: null as string | null, }, reducers: { setIsLoggedIn(state, action:...
import Foundation extension VirtualVisitOpenTokManager { func startStatsCollection() { videoPublisher.networkStatsPublisherDelegate = self videoSubscriber?.networkStatsSubscriberDelegate = self videoSubscriber?.rtcStatsSubscriberDelegate = self videoPublisher.rtcStatsP...
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import { connect } from 'react-redux'; import * as actions from '../actions' class Header extends Component{ authButton(){ if(this.props.authenticated){ return <button className='btn btn-danger' onClick={() => ...
/** * @author: Enrico Napolitan - 1229054 * Università degli studi di Padova * Laboratorio di programmazione * Assegnamento 2 - Rail */ #ifndef TRENO_REGIONALE_H #define TRENO_REGIONALE_H #include "Treno/Treno.h" #include "Stazione/Stazione.h" class TrenoR : public Treno { public: TrenoR (int num, bool ...
package cn.sucre.service; import cn.sucre.domain.PageBean; import cn.sucre.domain.User; import java.util.List; import java.util.Map; /** * 用户管理的业务接口 */ public interface UserService { /** * 查询所有用户信息 * @return */ public List<User> findAll(); /** * 用户登录 * @param user * @return */ Use...
// Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. #include "db/db_impl.h" #include <algorithm> #include <set> #include <string> #include <stdint.h> #inc...
import express, { Request, Response } from "express"; import dotenv from "dotenv"; import { AddressInfo } from "net"; import { IdGenerator } from "./IdGenetator"; import { UserDatabase } from "./data/UserDataBase"; import { RecipeDatabase } from "./data/RecipeDatabase"; import { Authenticator } from "./service/Authenti...
import {myData} from './data'; import React from 'react'; import Table from '@material-ui/core/Table'; import TableBody from '@material-ui/core/TableBody'; import TableCell from '@material-ui/core/TableCell'; import TableContainer from '@material-ui/core/TableContainer'; import TableHead from '@material-ui/core/TableHe...
--- title: "回溯法" date: 2024-03-09T16:56:42+08:00 draft: true --- # 40.组合总和II 力扣题目链接 (opens new window) 给定一个数组 candidates 和一个目标数 target ,找出 candidates 中所有可以使数字和为 target 的组合。 candidates 中的每个数字在每个组合中只能使用一次。 说明: 所有数字(包括目标数)都是正整数。解集不能包含重复的组合。 示例 1: 输入: candidates = [10,1,2,7,6,1,5], target = 8, 所求解集为: [ ...
// import React from "react"; import { z } from "zod"; import { zodResolver } from "@hookform/resolvers/zod"; import { useForm } from "react-hook-form"; import categories from "./categories"; const schema = z.object({ description: z .string({ invalid_type_error: "description is required" }) .min(3, { messag...
import QueryBuilder from '../util/QueryBuilder'; import Database from '../util/database'; interface IFields { register?: string; filter?: string; orderBy?: string; } export class Representation { constructor( private id: number = 0, private register: string = '', private unity: string = '', pr...
import React, { useEffect } from "react"; import styled from "styled-components"; const ModalContainer = styled.div` position: relative; `; const ModalBackdrop = styled.div` position: fixed; display: flex; justify-content: center; width: 500px; margin: 0 auto; background: rgba(0, 0, 0, 0.2); align-ite...
import { useState, useEffect } from "react" import Formulario from "./components/Formulario" import Header from "./components/Header" import ListadoPacientes from "./components/ListadoPacientes" function App() { const [pacientes, setPacientes] = useState([]) const [paciente, setPaciente] = useState({}) useEffec...
<!DOCTYPE html> <html lang="nl"> <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"> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" inte...
import { useState } from 'react'; import type { FormEventHandler, ChangeEventHandler } from 'react'; import { GlobalContext } from "@context/GlobalContext"; import { GlobalProviderTypes, ContactForm } from './types'; import axios from 'axios'; const initialState = { name: "", email: "", message: "" } const Glo...
// Copyright 2021 Datafuse Labs // // 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 or agreed to i...
import React from 'react'; import './Login.css'; import {useState, useEffect, Fragment} from "react"; import {Navigate } from 'react-router-dom'; export default function Login({refreshNavbar}) { const [type, setType] = useState("login"); const [error, setError] = useState(false); const [username, setUserna...
import React, { useState, useEffect } from 'react'; import { FaPaperclip } from 'react-icons/fa'; import { supabase } from '../supabaseClient'; import { v4 as uuidv4 } from 'uuid'; import '../Chat.css'; const API_URL = "https://api-inference.huggingface.co/models/gpt2"; const headers = { "Authorization": "Bearer api_o...
# install package “VIM” # install.packages("VIM") # To use the package in an R session, we need to load it in an R session via library(VIM) # Load dataset “sleep”, which comes within the package “VIM” data(sleep, package = "VIM") # call function head() to get a feeling about data, or call sleep to see all values hea...
import { UseGuards } from '@nestjs/common'; import { Args, Context, Mutation, Parent, Query, ResolveField, Resolver, Subscription, } from '@nestjs/graphql'; import * as DataLoader from 'dataloader'; import { PubSub } from 'graphql-subscriptions'; import { ValidatorPaginationParamsPipe } from 'src/shared...
#' About Server #' #' @param id identifier for shiny reactive #' @param helppath path to help markdown #' #' @return reactive server #' @export aboutServer <- function(id, helppath = NULL) { shiny::moduleServer(id, function(input, output, session) { ns <- session$ns output$about <- shiny::renderUI({ ...
#!/usr/bin/python3 """ This module contains the class Student """ class Student: """ Simple class representing student information Attributes: first_name (str): student's fist name last_name (str): student's last name age (int): student's age """ de...
using System.Collections.Generic; namespace Quality2.Exceptions { public class CustomException: Exception { public List<string> Errors { get; private set;} public CustomException(string message) : base(message) { Errors = new List<string> { mess...
import { Component, DoCheck, Input, OnDestroy, OnInit, inject } from "@angular/core"; import { ActivatedRoute, RouterLink } from "@angular/router"; import { Store } from "@ngrx/store"; import { booksByLibActions } from "../store/actions"; import { Subscription, combineLatest } from "rxjs"; import { selectBooksByLibData...
import React from "react"; import { useFormStatus } from "react-dom"; import { FaPaperPlane } from "react-icons/fa"; const SubmitButton = () => { const { pending } = useFormStatus(); return ( <button type="submit" disabled={pending} className="group flex items-center bg-blue-950 text-white fo...
from django.db.models import Q from django.utils import timezone from drf_spectacular.types import OpenApiTypes from drf_spectacular.utils import extend_schema, OpenApiParameter from rest_framework import mixins from rest_framework.pagination import PageNumberPagination from rest_framework.viewsets import GenericViewSe...
import { Column, CreateDateColumn, Entity, PrimaryGeneratedColumn, UpdateDateColumn, } from 'typeorm'; @Entity('files') export class File { @PrimaryGeneratedColumn({ name: 'id', type: 'int', }) id: number; @Column({ name: 'name', type: 'varchar' }) name: string; @Column({ name: 'path', ...
import 'package:cipherx_expense_tracker_app/home/pages/expense_page.dart'; import 'package:cipherx_expense_tracker_app/home/pages/income_page.dart'; import 'package:cipherx_expense_tracker_app/home/providers/home_provider.dart'; import 'package:cipherx_expense_tracker_app/home/widgets/balance.dart'; import 'package:cip...
/** This is part of my code for "Time of Day When Usually People Go To Sleep". This class is where the actual code for my modified record reader is defined. The changes to this class essentially make it so 4 lines from the file are concatenated into a single input line for the mapper. */ package nlrr; import java...
import { AttachMoney, HelpOutline } from '@mui/icons-material' import { Autocomplete, Checkbox, Grid, TextField, Tooltip, Typography } from '@mui/material' import { SearchEpics } from 'Components/Search' import useDebounce from 'Hooks/useDebounce' import PropTypes from 'prop-types' import { useEffect, useState } from '...
<?php namespace App\Http\Requests\Front\UserAddress; use Illuminate\Foundation\Http\FormRequest; use Illuminate\Validation\ValidationException; use App\Classes\Adapters\Front\UserAddress\UserAddressRequestAdapter; class UpdateRequest extends FormRequest { /** * Determine if the user is authorized to make th...
const dotenv = require('dotenv'); const mongoose = require('mongoose'); const bodyParser = require('body-parser'); const express = require('express'); const Razorpay = require('razorpay'); const app = express(); dotenv.config({ path: './config.env' }); const Transactions = require('./models/Transactions'); // Import y...
local M = {} M.setup = function() local signs = { { name = "DiagnosticSignError", text = "" }, { name = "DiagnosticSignWarn", text = "" }, { name = "DiagnosticSignHint", text = "" }, { name = "DiagnosticSignInfo", text = "" }, } for _, sign in ipairs(signs) do vim.fn.sign_define(sign.name, { texthl =...
const mongoose = require("mongoose"); const { DateTime } = require("luxon"); const Schema = mongoose.Schema; const AuthorSchema = new Schema({ first_name: { type: String, required: true, maxLength: 100 }, family_name: { type: String, required: true, maxLength: 100 }, date_of_birth: { type: Date }, dat...
{% extends '__base_local__.html' %} {% block title %}首页{% endblock %} {% block beforehead %} <style> html, body { scroll-behavior: smooth; } .v-enter-active, .v-leave-active { transition: opacity .2s ease; transition: translate .2s ease; } .fade-enter-from, .f...
# 🌋 糖漿池 ### 什麼是糖漿池? 糖漿池是在NexusSwap上賺取免費代幣最簡單的方法。 質押NU,賺取免費代幣! 就是這麼簡單。 另外,還有一些特殊的糖漿池,讓你質押除了NU之外的其他代幣! ### 如何在糖漿池中質押? 在糖漿池中質押,讓你在睡覺時亦可賺取NU或其他代幣! 這比在NexusSwap農場中進行流動性挖礦要簡單。 有別於農場,你只需要質押一種代幣即可開始賺取:通常是NU。 #### 1、錢包正確連接後,進入糖漿池產品頁面,選擇一個您希望質押的糖漿池。 ![](<../.gitbook/assets/糖浆池1 (1).png>) 1、**自動 NU** 自動複投您的收益:任何賺取到的NU,將...
// // Copyright(c) 2009 Syntext, Inc. All Rights Reserved. // Contact: info@syntext.com, http://www.syntext.com // // This file is part of Syntext Serna XML Editor. // // COMMERCIAL USAGE // Licensees holding valid Syntext Serna commercial licenses may use this file // in accordance with the Syntext Serna Commercial...
import React, { useState, useEffect } from "react"; import { useNavigate } from "react-router-dom"; import cartApi from "../../api/cartApi"; import { toastContext } from "../../contexts/ToastProvider"; import { ProgressSpinner } from "primereact/progressspinner"; import { Button } from "primereact/button"; import conve...
// .load scripts/console-init.ts me = (await ethers.provider.listAccounts())[0]; core = await ethers.getContract("KlerosCore"); sortition = await hre.ethers.getContract("SortitionModule"); disputeKit = await ethers.getContract("DisputeKitClassic"); pnk = await ethers.getContract("PNK"); registry = await ethers.getContr...
import { DataTypes } from "sequelize"; import sequelize from "../db.js"; // Definir el modelo para la tabla contacto export const Modalidad = sequelize.define('Modalidad', { id_modalidad: { type: DataTypes.INTEGER, primaryKey: true, autoIncrement: true, }, modalidad_nombre: { ...
import os import mimetypes import time from email.utils import formatdate from email.utils import parsedate from chordataweb.output_stream import CHUNK_SIZE, file_buffer def static_file_exists(working_directory: str, pathname: str, tenant: str): if pathname == '/': return False path_parts = pathname.s...
import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { FormsModule } from '@angular/forms'; import { AppRoutingModule } from './app-routing.module'; import { AppComponent } from './app.component'; import { CoursesComponent } from './courses.component'; import { Htt...
#include <stdlib.h> #include <stdio.h> #include <unistd.h> #include <stdbool.h> #include "philosopher.h" philosopher_t *ph_create(size_t plates, pthread_mutex_t *f1, pthread_mutex_t *f2) { static size_t id = 1; philosopher_t *ph = NULL; ph = malloc(sizeof(philosopher_t)); if (!ph) return NULL;...
import { isEscapeKey } from './util.js'; const COMMENTS_SHOWN_PER_CLICK = 5; const bigPictureOverlayElement = document.querySelector('.big-picture'); const closePictureButtonElement = document.querySelector('.big-picture__cancel'); const commentTemplateElement = document.querySelector('#comment') .content .query...
#pragma once #include "GPUResource.h" #include "../Container/Ptr.h" #include "../Container/Vector.h" #include "../Core/Object.h" namespace Joestar { enum class ImageType { TYPE_1D = 0, TYPE_2D = 1, TYPE_3D = 2, TypeCount }; enum class ImageViewType { TYPE_1D = 0, TYPE_2D = 1, TYPE_3D = 2, TYPE_CUB...
import Project from "./Project/Project"; import styles from "./Projects.module.scss"; import React from "react"; import blogImg from "../../images/blog.png"; import quizImg from "../../images/quiz.png"; import hospitalWard from "../../images/hospital-ward.jpg"; import vendorsCookie from "../../images/vendors-cookie.jpg...
import mongoose, { Schema, Document, Types } from 'mongoose' import uniqueValidator from 'mongoose-unique-validator' interface HashtagDocument extends Document { nombre: string } const hashtagSchema = new Schema<HashtagDocument>({ nombre: { type: String, required: true, minlength: 5, maxlength: 20, unique: true }...
# Definition for a binary tree node. from typing import Optional class TreeNode: def __init__(self, val=0, left=None, right=None): self.val = val self.left = left self.right = right class Solution: def isSymmetric(self, root: Optional[TreeNode]) -> bool: q = [root, root] ...
# script1-dpr-overview.R # # Examine files in the yearly CA Dept. Pest. Reg. Pesticide use repor # library(tidyverse) list.files() # narrows to 2 subdirectories list.files("./pur2018") # demonstrates valid path # path for second level DPR subdirectory containing 2018 data path_dat <- paste0(path_subdir,"/pur2018...
const { GuildMember, MessageEmbed, MessageAttachment } = require('discord.js'); const Canvas = require('canvas'); module.exports = { name: 'guildMemberUpdate', /** * * @param {GuildMember} oldMember * @param {GuildMember} newMember */ async execute(oldMember, newMember) { const { guild } = ...
import React, { useEffect, useState } from "react"; import { Field } from "formik"; import PropTypes from "prop-types"; const propTypes = { questions: PropTypes.arrayOf(PropTypes.shape({ id: PropTypes.number.isRequired, name: PropTypes.string.isRequired, description: PropTypes.string.isRequired, orga...
package finalproject; import java.util.ArrayList; import java.util.Arrays; import finalproject.system.Tile; public class TilePriorityQ { // TODO level 3: Add fields that can help you implement this data type private ArrayList<Tile> heap; // TODO level 3: implement the constructor for the priority queue public ...