text
stringlengths
184
4.48M
import React from "react"; import PropTypes from "prop-types"; import { v4 } from 'uuid'; import ReusableForm from "../utils/ReusableForm"; import { useState } from "react"; const NewCoffeeForm = (props) => { const [valErr, setValErr] = useState(false); const handleNewCoffeeFormSubmission = (event) => { even...
import * as React from 'react' import { Fragment, ReactElement } from 'react' import { RouterInterface } from 'services/router' import { usePost } from 'domains/posts/domains/post/hooks/usePost' import { Preloader } from 'components/atoms/Preloader' import { Stack } from 'components/atoms/Stack' import { Typography ...
//: Playground - noun: a place where people can play import UIKit // Create a protocol called fully named // it should require a var called fullName // that must be a string and gettable protocol FullyNamed { var fullName: String { get } } // create a structure called person conforming to fullynamed // include ...
@extends('layouts.app') @section('title') Outelt Config @endsection @section('style') <!-- Select2 --> <link rel="stylesheet" href="{{ asset('assets/plugins/select2/css/select2.min.css')}}"> <link rel="stylesheet" href="{{ asset('assets/plugins/select2-bootstrap4-theme/select2-bootstrap4.min.css')}}"> @endsection @sect...
The Navigation tool can be used to navigate to a beacon, follow a path, or follow a bearing. ## Compass The compass can be used for both orientation and navigation. Your bearing is displayed at the top of the screen. This feature is not available if your device does not have a compass. ### Nearby You can choose to...
/** * @brief ParallelHaloMergerTree extends the HaloMergerTreeKernel and * implements functionality for building incrementally a merger-tree * on halos that are distributed among several processes. */ #ifndef PARALLELHALOMERGERTREE_H_ #define PARALLELHALOMERGERTREE_H_ #include "HaloMergerTreeKernel.h" #include "C...
// This may look like C code, but it is really -*- C++ -*- // // Copyright Bob Friesenhahn, 1999, 2000, 2001, 2002, 2003 // // Implementation of Image // #define MAGICKCORE_IMPLEMENTATION 1 #define MAGICK_PLUSPLUS_IMPLEMENTATION 1 #include "Magick++/Include.h" #include <cstdlib> #include <string> #include <string.h>...
<template> <div :class="layoutCls"> <t-head-menu :class="menuCls" :theme="theme" expand-type="popup" :value="active"> <template #logo> <span v-if="showLogo" class="header-logo-container" @click="handleNav('/dashboard/base')"> <tLogoFull class="t-logo" /> </span> <div v-else...
<?php declare(strict_types=1); /** * Plenta Tooltip Bundle for Contao Open Source CMS * * @copyright Copyright (c) 2023, Plenta.io * @author Plenta.io <https://plenta.io> * @license LGPL * @link https://github.com/plenta/ */ namespace Plenta\TooltipBundle\Controller; use Contao\Cont...
package com.tyss.alphaattendanceapp.service; import java.util.List; import java.util.Optional; import java.util.regex.Matcher; import java.util.regex.Pattern; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; impo...
<template> <a-card :bordered="false"> <a-row> <a-col :span="21"> <a-form layout="inline" > <a-row :gutter="24"> <a-col :span="24"> <a-form-item label="客户端"> <a-select :value="queryParam.clientId" ...
package PharmacyProject.co.za.services; import PharmacyProject.co.za.domains.Condition; import PharmacyProject.co.za.domains.Patient; import PharmacyProject.co.za.domains.PatientCondition; import PharmacyProject.co.za.factories.PatientConditionFactory; import PharmacyProject.co.za.services.ImplServi.PatientConditionSe...
// // BasicProtocol.swift // FrameworkStruct // // Created by  jggg on 2021/11/5. // /** * 程序中的基础定义,定义全局通用的接口方法和各种基础数据 * 一般和具体的业务逻辑无关,而是关于程序和组件本身的定义 * 此处定义的内容可以包含一些具体的功能逻辑,比较面对实际功能 */ import Foundation import UIKit //MARK: 协议定义 /** * 基础协议 */ protocol BasicProtocol { } /** 可归档解档协议 */ protocol Archiv...
""" nattrs, attrlist = jMtkFieldAttrList_tst_1100() # Purpose: Generate the output of `jMtkFieldAttrList` for testing purposes. Test 1100: For a MISR `GRP_ELLIPSOID_GM` file. # Licensing: * Mtk C Library: Copyright © 2005 California Institute of Technology, [Caltech license](https://github.com/nasa/MISR-Toolk...
import React from "react"; import data from "../Content/Homepage/ButStill.json"; import { useInView } from "react-intersection-observer"; import { Fade } from "react-reveal"; function ButStill() { const [visible, setVisible] = React.useState(false); const { ref, inView } = useInView({ threshold: 0.5, }); ...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="shortcut icon" href="assets/img/logo_trans.png" type="image/x-icon"> <link href="https://cdn.jsdelivr.net/npm/remixicon@...
<?php require_once '/var/www/html/core/model.php'; require_once '/var/www/html/core/response.php'; /* Modelo para los grupos */ class GroupModel extends Model{ private $id; private $name; private $code; private $res; public function __construct() { parent::__construct(); $t...
@Test каждый тест метода помечается аннотацией тест. Для работы каждого теста создается отдельный объект класса test (обеспечение не вмешательства тестов друг для друга). Доказательство в проекте my_junit NewInstanceForEachTest. В первом тесте поле изменяется с помощью сеттера во втором тесте поле принимает исходное со...
"use client"; import { useState } from "react"; import { NavLink } from "_components"; import { useUserService } from "_services"; export { Nav }; function Nav() { const [loggingOut, setLoggingOut] = useState<boolean>(false); const userService = useUserService(); const user = userService.currentUser; async...
require "rails/generators/erb/scaffold/scaffold_generator" module Liquid module Generators class ScaffoldGenerator < Erb::Generators::ScaffoldGenerator # :nodoc: if ::Rails::VERSION::MAJOR >= 7 source_root File.expand_path(File.join("..", "templates"), __FILE__) else source_root File....
import React from 'react'; import clsx from 'clsx'; import Link from '@docusaurus/Link'; import useDocusaurusContext from '@docusaurus/useDocusaurusContext'; import Layout from '@theme/Layout'; import HomepageFeatures from '@site/src/components/HomepageFeatures'; import styles from './index.module.css'; function Hom...
import clsx from "clsx"; import { useEffect, useState } from "react"; import "./HouseInfo.scss"; import { AboutHouse } from "./components/AboutHouse/AboutHouse"; import { Amenities } from "./components/Amenities/Amenities"; import { Location } from "./components/Location/Location"; import { PersonalCard } from "./comp...
import 'package:flutter/material.dart'; import 'package:get/get.dart'; import 'package:google_fonts/google_fonts.dart'; import '../../../../constant.dart'; import '../../../routes/app_pages.dart'; import '../controllers/login_controller.dart'; class LoginView extends GetView<LoginController> { const LoginView({Key...
import React, { useState } from "react"; import "./Login.css"; import { Link, useNavigate } from "react-router-dom"; import { auth } from "../firebase"; function LoginPage() { const [email, setEmail] = useState(""); const [password, setPassword] = useState(""); const navigate = useNavigate(); const signIn = (e...
[section:weibull_dist Weibull Distribution] ``#include <boost/math/distributions/weibull.hpp>`` namespace boost{ namespace math{ template <class RealType = double, class ``__Policy`` = ``__policy_class`` > class weibull_distribution; typedef weibull_distribution<> weibull; ...
export default class ConnectFour { constructor(board = [], player1 = true, printedBoard = '', playersTurn = "Red's Turn", gameOver = false, player1Name = '', player2Name = '') { this.board = board; this.player1 = player1; this.printedBoard = printedBoard; this.playersTurn = playersTu...
import type { DehydratedState } from "@tanstack/react-query"; import type { GetServerSideProps } from "next"; import { encode } from "querystring"; import type { z } from "zod"; import { orgDomainConfig } from "@calcom/features/ee/organizations/lib/orgDomains"; import { DEFAULT_DARK_BRAND_COLOR, DEFAULT_LIGHT_BRAND_CO...
# makaji This repository is a mock backend service for a recipe browser application where people can find delicious recipes based on the ingredients and tools that they have, food preference, and their cooking mastery level. ## Introduction This backend application is written in Go (Golang) which the client can con...
// imports import { Link } from 'react-router-dom'; import { useState, useContext } from 'react'; import InputMask from 'react-input-mask'; import { existCitation } from '../../../api/existCitation'; import { sliceDash } from '../../../logic/sliceDash'; import { bornDateUser } from '../../../logic/date'; // components ...
/** dfs.alg * Implements depth-first search of a graph, directed or undirected; in the * undirected case, it behaves as if edges were directed in both directions. * $Id: dfs.alg 47 2014-03-10 16:11:00Z mfms $ */ /** Required: node and edge labels visible */ /** * An unfortunate consequence of the way algorithms ...
<template> <div> <Header> <template slot="title"> {{ $t('welcome') }} </template> <template slot="desc"> {{ $t('main_desc') }} </template> <template slot="actions"> <ul v-if="!auth" class="list-none"> <li class="inline-block"> <router-lin...
import { microCMSLoader } from '@/libs/loader'; import { type Article } from '@/libs/microcms'; import { formatRichText } from '@/libs/utils'; import Image from 'next/image'; import Category from '../Category'; import PublishedDate from '../Date'; import styles from './index.module.css'; type Props = { data: Article...
import { Emoji, Interaction, Message } from "../../deps.js"; import { AmethystBot } from "../../mod.js"; export interface AmethystReaction { /** The emoji name */ name: string; /** The emoji id */ id: bigint; /** The reactor's id */ userId: bigint; /** The reaction message's guild id*/ g...
package com.jansparta.hvt_project.infra.AOP import org.aspectj.lang.ProceedingJoinPoint import org.aspectj.lang.annotation.Around import org.aspectj.lang.annotation.Aspect import org.slf4j.LoggerFactory import org.springframework.stereotype.Component import org.springframework.util.StopWatch @Component // Bean에 등록 @A...
/** * @file StateMachineTest.h * @brief Header file for class StateMachineTest * @date 15/10/2016 * @author Andre Neto * * @copyright Copyright 2015 F4E | European Joint Undertaking for ITER and * the Development of Fusion Energy ('Fusion for Energy'). * Licensed under the EUPL, Version 1.1 or - as soon they wi...
#include <stdio.h> #include <math.h> #include <stdlib.h> #include <omp.h> int NowYear; // 2022 - 2027 int NowMonth; // 0 - 11 float NowPrecip; // inches of rain per month float NowTemp; // temperature this month float NowHeight; // grain height in inches int NowNumDeer; // number of deer in the current population int...
import os import json import pandas as pd import matplotlib.pyplot as plt NUM_SUBPLOTS = 7 FILE = os.path.join(os.pardir, 'epoch_density_data.json') with open(FILE, 'r') as f: json_ = json.load(f); BULLSHARK_QUEST_1_START = 85 BULLSHARK_QUEST_1_END = 106 BULLSHARK_QUEST_2_START = 107 BULLSHARK_QUEST_2_END = 146 B...
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
# Project ReadMe: Photography and AI Art Showcase Platform 🌐📸 ## Overview This project is a cutting-edge web platform 🚀 for showcasing a vibrant array of photography and AI-generated art 🖼️. It demonstrates a blend of front-end innovation and efficient media management. ## Key Technologies - **React & Next.js**...
package com.stemgon.stemly.contacts.adapters; import android.content.Context; import android.util.Log; import android.view.LayoutInflater; import android.view.ViewGroup; import androidx.annotation.NonNull; import androidx.recyclerview.widget.RecyclerView; import com.stemgon.stemly.R; import com.stemgon.stemly.contac...
const { MAX_PAGINATION_SIZE, MAX_FILE_SIZE, ALLOWED_PDF_EXTENSIONS } = require("../constants") const { DB } = require("../utils/db") const { Logger } = require('../utils/logger') const { error, unauthorized, notFound, ok, badRequest } = require("../utils/response") const { invalidEmail } = require("../validators/email....
// The ESA/ESO/NASA FITS Liberator - http://code.google.com/p/fitsliberator // // Copyright (c) 2004-2010, ESA/ESO/NASA. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // * Redistrib...
// Copyright 2024 Golem Cloud // // 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 in ...
/* * Copyright (c) 2001, 2002, 2009 * The President and Fellows of Harvard College. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * noti...
import React, { useState } from "react"; import "../../assets/css/login.css"; import { Link, useNavigate } from "react-router-dom"; import axios from "axios"; const Login = () => { const navigate = useNavigate(); const [data, setData] = useState({ username: "", password: "", }); const handleLogin = as...
package com.alura.foro.controller; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.domain.Page; import org.springframework.data.domain.Pageable; import org.springframework.data.web.PageableDefault; import org.springframework.http.ResponseEntity; import org.springframework...
# Colorful symbols green_check <- "\033[32mv\033[39m" red_todo <- "\033[31m*\033[39m" red_x <- "\033[31mx\033[39m" # Common regex pattern last_hypen_pattern <- "-(?![^-]*-)" # Create file names generate_file_name <- function(note = "", .dir = "_workspace") { file_name_init <- gsub( x = as.character(Sys.time()),...
package edu.duke.ece651.team14.shared; import java.util.ArrayList; public class BattleField { private final CombatResolver resolver; private final Territory location; private String result; private Map map; /** * An Army identifies a player with all of its Units which are ready to fight. */ private...
from typing import List from services.jobs.fetch.base import BaseFetcher from services.lib.constants import Chains, float_to_thor, thor_to_float, THOR_BLOCK_TIME, THOR_BASIS_POINT_MAX from services.lib.date_utils import parse_timespan_to_seconds from services.lib.depcont import DepContainer from services.lib.money imp...
from django.test import TestCase from django.contrib.auth import get_user_model class ModelTests(TestCase): def test_create_user_with_email_successful(self): """ Test creating a new user with an email is successful """ email = "test@test.com" password = 'TheAdministrator1' us...
<template> <div class="operate-container"> <el-form :model="fromValiData" label-width="80" inline class="list-form" ref="fromValiData"> <el-form-item> <el-button type="primary" :size="$layer_Size.buttonSize" class="default-btn" icon="el-icon-plus" @click="handleAdd()">添加</el-button> <el-butt...
// /program/ files are executable programs that do things. /datum/computer_file/program filetype = "PRG" filename = "UnknownProgram" // File name. FILE NAME MUST BE UNIQUE IF YOU WANT THE PROGRAM TO BE DOWNLOADABLE FROM NTNET! filedesc = "Unknown Program" // User-friendly name of this program. var/progr...
""" vcond.py PyTorch Module defining the Voltron `V-Cond` variant (single-frame with language-conditioning). In general, follows the MAE recipe, with the architectural modifications described in the paper: - RMSNorm, for stability/performance ("Do Transformer Modifications Transfer...") - SwishGLU activations ...
<script setup lang="ts"> import type { Record } from '@/globalData'; import * as data from '@/globalData'; import { getShortDate } from '@/utils/date'; const emit = defineEmits<{ edit: [row: data.Record]; }>(); const page = ref(1); const pageSize = ref(10); const search = ref(''); const filterFn = function (data:...
import { Component, ViewChild } from '@angular/core'; import { Platform, MenuController, Nav } from 'ionic-angular'; import { HelloIonicPage } from '../pages/hello-ionic/hello-ionic'; import { ListPage } from '../pages/list/list'; import { StatusBar } from '@ionic-native/status-bar'; import { SplashScreen } from '@i...
import 'dart:ui'; import 'package:burc_rehberi/model/burc.dart'; import 'package:flutter/material.dart'; import 'package:palette_generator/palette_generator.dart'; class BurcDetay extends StatefulWidget { final Burc secilenBurc; const BurcDetay({required this.secilenBurc, super.key}); @override State<BurcDet...
<?php use App\Entity\Pret; use App\Entity\Materiel; use App\Service\MailService; use App\Repository\PretRepository; use Doctrine\ORM\EntityManagerInterface; use Doctrine\Common\Collections\ArrayCollection; use Symfony\Bundle\FrameworkBundle\KernelBrowser; use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; use App\En...
<?php /* * (l) Konstantin Kudryashov <ever.zet@gmail.com> * Marcello Duarte <marcello.duarte@gmail.com> * */ namespace Prophecy\Argument\Token; /** * Array every entry token. * */ class ArrayEveryEntryToken implements TokenInterface { /** * @var TokenInterface */ private $value; /**...
import "./Todolist.css"; import React, { useState, useEffect } from "react"; import CheckIcon from "@material-ui/icons/Check"; import EditIcon from "@material-ui/icons/Edit"; import CloseIcon from "@material-ui/icons/Close"; import ExpandMoreIcon from "@material-ui/icons/ExpandMore"; import axios from "axios"; function...
#!/usr/bin/env python3 # # start a package build via backend API # import contextlib import fcntl import json import logging import logging.handlers import os import re import sqlite3 import time import urllib.error import urllib.request import carpetbag import gh_token import appveyor_token # subclass TimedRotatin...
<?php /** * Elementor Info Box Widget. * * Elementor widget that inserts an embbedable content into the page, from any given URL. * * @since 1.0.0 */ class Info_Box_Widget extends \Elementor\Widget_Base { /** * Get widget name. * * Retrieve Info Box widget name. * * @since 1.0.0 * @access public *...
package com.pallycon.widevine.service import android.app.Notification import android.content.Context import androidx.annotation.Keep import com.google.android.exoplayer2.offline.Download import com.google.android.exoplayer2.offline.DownloadManager import com.google.android.exoplayer2.offline.DownloadService import com...
package Any::Renderer::Data::Serializer; # $Id: Serializer.pm,v 1.5 2006/09/04 12:15:54 johna Exp $ use strict; use vars qw($VERSION %Formats); use Data::Serializer; use File::Find; #If true data::serializer modules are loaded to check they compile #Set to true value for safety at the cost of performance/memory (e.g...
"use client"; import { resetPassword } from "@/actions/resetPassword"; import React, { useEffect, useState, useTransition } from "react"; import { toast } from "sonner"; type props = { password: string | null; }; export function ChangePassword({ password }: props) { const [newPassword, setNewPassword] = useState("...
import PokedexHeader from '~/infrastructure/react/ui/layout/Header' import { render, screen } from '@testing-library/react' import { labels } from '~/shared/labels' describe('PokedexHeader', () => { // Tests that the class name of the header element is set correctly it('should set the class name of the header elem...
import streamlit as st import plotly.express as px def createPage(df, ano): st.empty() st.header("Publicações", divider='red', anchor=False) df_ano = df.query("ano_publicacao == @ano") # Seção de indicadores col_ind_1, col_ind_2, col_ind_3 = st.columns(3) total_artigos_anoselecionado = df_ano['coi_...
class Student: def __init__(self, name, grade): self.name = name self.grade = grade # self.email = name + '@student.com' # 此逻辑定义到第10行了 可自行解开注释实验一下有何区别 @property def email(self): return f'{self.name}@student.com' # @property # def name(self): # ...
import { Component } from '@angular/core'; import { FormControl } from '@angular/forms'; import { Observable, Subject, map, merge, pipe, reduce, scan, tap, withLatestFrom } from 'rxjs'; @Component({ selector: 'app-merge', templateUrl: './merge.component.html', styleUrls: ['./merge.component.css'] }) export clas...
<div class="add-provider-modal"> <div class="modal-header"> <button class="close-button button-hover" (click)="closeDialog()"> &#x2715; </button> </div> <div class="form-container"> <form #addForm="ngForm" (ngSubmit)="addProvider(addForm.value)"> <span class="modal-title">Add A Provider</s...
// Copyright 2020-2023 Buf Technologies, Inc. // // 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...
#------------------------------------------------------------- # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under...
"""fcom URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based vi...
import React, { useState, useEffect } from "react"; import axios from "axios"; import { Link } from "react-router-dom"; import { useCart } from './../context/ContextApi'; const apiUrl = "https://jsonplaceholder.typicode.com/photos"; const Girl = () => { const [data, setData] = useState([]); const{addToCart}=useCa...
/* This file is part of SOMHunter. * * Copyright (C) 2020 František Mejzlík <frankmejzlik@gmail.com> * Mirek Kratochvil <exa.exa@gmail.com> * Patrik Veselý <prtrikvesely@gmail.com> * * SOMHunter is free software: you can redistribute it and/or modify it under * the terms of ...
package com.r0adkll.anvil_ic import android.content.Intent import android.os.Bundle import androidx.activity.ComponentActivity import androidx.activity.compose.setContent import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.material3.Button import androidx.compose.material3.MaterialTheme impor...
## c++ 项目中存在 c 文件 - cmake 工程时出现下列问题 ```cmake -- The CXX compiler identification is GNU 6.3.0 -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX co...
//<p>序列化是将一个数据结构或者对象转换为连续的比特位的操作,进而可以将转换后的数据存储在一个文件或者内存中,同时也可以通过网络传输到另一个计算机环境,采取相反方式重构得到原数据。</p> // //<p>请设计一个算法来实现二叉树的序列化与反序列化。这里不限定你的序列 / 反序列化算法执行逻辑,你只需要保证一个二叉树可以被序列化为一个字符串并且将这个字符串反序列化为原始的树结构。</p> // //<p><strong>提示: </strong>输入输出格式与 LeetCode 目前使用的方式一致,详情请参阅&nbsp;<a href="/faq/#binary-tree">LeetCode 序列化二叉树的格式</a>。你并非...
# This serves as a template which will guide you through the implementation of this task. It is advised # to first read the whole template and get a sense of the overall structure of the code before trying to fill in any of the TODO gaps # First, we import necessary libraries: import numpy as np import pandas as pd fr...
<?php /** * Zend Framework * * LICENSE * * This source file is subject to the new BSD license that is bundled * with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://framework.zend.com/license/new-bsd * If you did not receive a copy of the license a...
ReportLink:https://hackerone.com/reports/2746 WeaknessName:Improper Authentication - Generic Reporter:https://hackerone.com/jobert ReportedTo:Slack(slack) BountyAmount: Severity: State:Closed DateOfDisclosure:09.12.2014 20:34:59 Summary: The URLs that are used to download the exports can be guessed easily by an attac...
import CardCategory1 from "components/CardCategories/CardCategory1"; import CardCategory4 from "components/CardCategories/CardCategory4"; import Heading from "components/Heading/Heading"; import NavItem2 from "components/NavItem2"; import React, { FC } from "react"; import Nav from "shared/Nav/Nav"; import explore1Svg ...
<template> <v-menu dark location="top"> <template v-slot:activator="{ props }"> <flip-card v-bind="props" :class="cardClass"> <template v-slot:front> <card-front :card="card"></card-front> </template> <template v-slot:back> <card-back :card="card"></card-back> ...
"use client" import { ProfileSchema } from '@/yupschema'; import { useFormik } from 'formik'; import Image from 'next/image'; import Link from 'next/link'; import { useRouter } from 'next/navigation'; import React, { useState } from 'react' import { toast } from 'react-toastify'; import AvatarModel from '../AvatarChang...
{ 'id': 'functional.session.alter-session-reset-decfloat', 'qmid': None, 'tracker_id': '', 'title': """ ALTER SESSION RESET: DECFLOAT parameters must be returned to default values """, 'description': """ Test issue from CORE-5832 about ALTER SESSION RESET: "DECFLOAT parameters (BIND, TRAP and ROUND) must...
package Business; public class Employee { private int id; private String firstName; private String lastName; private int salary; public Employee(int id, String firstName, String lastName, int salary){ this.id = id; this.firstName = firstName; this.lastName = lastName; ...
package main import ( "embed" "fmt" b "gospace/basic" "os" "path/filepath" "time" "github.com/hajimehoshi/ebiten/v2" ) func LoadImagesFromFolder(folder embed.FS) []*ebiten.Image { var images []*ebiten.Image // Walk through the folder and get all files with the .png extension err := filepath.WalkDir("basic...
import { useState } from "react"; import { createSegmentUser } from "../api/createSegmentUser"; import { sendEmail } from "../api/sendEmail"; enum Status { IDLE, SENDING_EMAIL } interface InviteResponse { email: string; phone: string; setEmail: (email: string) => void; setPhone: (phone: strin...
package com.example.hotel_; import android.annotation.SuppressLint; import android.app.AlarmManager; import android.app.NotificationChannel; import android.app.NotificationManager; import android.app.PendingIntent; import android.content.Context; import android.content.Intent; import android.os.Build; import android....
#include "nes-cpu.hpp" internal void nes_cpu_stack_push(NesCpu* cpu, nes_val value) { nes_memory_map_write(&cpu->mem_map, (cpu->registers.sp + NES_MEM_MAP_STACK_ADDR), value); //the stack goes in reverse, so if we are getting down to the beginning //of the stack's address space, we need to reset the ...
// Define these to print extra informational output and warnings. #define MLPACK_PRINT_INFO #define MLPACK_PRINT_WARN #include <mlpack.hpp> using namespace arma; using namespace mlpack; using namespace mlpack::tree; using namespace std; int main() { // Load the datasets. mat dataset; Row<size_t> labels; if (!...
# Unix SMB/CIFS implementation. # # authentication silos - authentication policy management # # Copyright (C) Catalyst.Net Ltd. 2023 # # Written by Rob van der Linde <rob@catalyst.net.nz> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as p...
package com.evaluateyourself.utils; import java.io.IOException; import javax.servlet.FilterChain; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.web...
<chapter id="configure"> <chapterinfo> <authorgroup> <author ><firstname >Pamela</firstname > <surname >Robert</surname > <affiliation > <address ><email >pamroberts@blueyonder.co.uk</email ></address> </affiliation> </author> <othercredit role="translator" ><firstname >Pedro</firstname ><surname >Morais</surname ><aff...
<template> <div> <div class="flex justify-center mt-24"> <img :src="'/images/covers/' + article.cover" :alt="article.title" class="object-cover w-96" /> </div> <div class="px-4 mx-auto sm:px-6 xl:max-w-7xl xl:px-0 mt-10"...
# 符号 在 Shell 中包含许多的的特殊符号,比如我们常见的井号、管道符等。 ## 井号 (comments) 井号后面的是注解文字,不会被执行。 ```bash # 我是注解文字 ``` 如果被用在指令中,或者引号双引号括住的话,或者在倒斜线的后面,那他就变成一般符号,不具上述的特殊功能。 ```bash echo "# 我只是普通字符" ``` 另外,它用在脚本的第一行时通常是指定解释器,即这个脚本必须通过什么解释器执行。这一行以 `#!` 字符开头,后面就是脚本解释器的位置。 ```bash #! /bin/bash ``` 多说一句,除了上面指定方式外,还可以借助 `env` 命令。 ```bash ...
<template> <div class="addAccountBox"> <el-dialog title="提示" :visible.sync="dialogVisible" :close-on-click-modal="false" @close="close"> <div class="search_wrap"> <el-input v-model="searchText" placeholder="支持姓名搜索" size="mini" clearable @clear="search"> <el-button slot="append" class="sear...
import { Directive, Injector, OnDestroy } from '@angular/core'; import { MatBottomSheet } from '@angular/material/bottom-sheet'; import { ToastrService } from 'ngx-toastr'; import { Observable, Subscription } from 'rxjs'; import { BottomPopupComponent, PopupAction } from 'src/app/module/popup/bottom/bottom-popup.compon...
% \iffalse meta-comment % vim: textwidth=75 %<*internal> \iffalse %</internal> %<*internal> \fi \def\nameofplainTeX{plain} \ifx\fmtname\nameofplainTeX\else \expandafter\begingroup \fi %</internal> %<*install> \input docstrip.tex \keepsilent \askforoverwritefalse \preamble -----------------------:| -------------------...
import * as esbuild from 'esbuild-wasm'; // // Immediately invoked function for test purposes // (async () => { // await fileCache.setItem('color', 'red'); // const color = await fileCache.getItem('color') // console.log(color) // })() export const unpkgPathPlugin = () => { return { name: '...
from users.api.serializers import ChangePasswordSerializer from users.models import Account from rest_framework.generics import RetrieveUpdateAPIView, get_object_or_404,ListAPIView,RetrieveAPIView from rest_framework.response import Response from rest_framework.permissions import IsAuthenticated from users.api.serializ...