text
stringlengths
184
4.48M
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Stripe Payment Simulation</title> <!-- Bootstrap CSS --> <link href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet"...
import {Text, TouchableOpacity, TouchableOpacityProps, View } from "react-native" import {Feather} from "@expo/vector-icons" import colors from "tailwindcss/colors" interface Props extends TouchableOpacityProps { checked?: boolean; title: string; } export function CheckBox({title, checked = false, ...rest}:...
// Fill out your copyright notice in the Description page of Project Settings. #pragma once #include "CoreMinimal.h" #include "ModularNavigationCharacter.h" #include "MainCharacter.generated.h" // DOCSONLY: namespace Character { /** Augments UE's character pawn, with additional functionality: jump whilst crouched,...
# -*- coding: utf-8 -*- # (c) 2018, Ansible by Red Hat, inc # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # # You should have received a copy of the GNU General Public License # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # f...
/** @type {{[language: string]: (URL | string)[]}} */ let _urls = {} let _language const _notImplemented = new Set() /** @type {Map<Element, string>} */ const _elementMap = new Map() async function registerDictionary(language, url) { if (!_urls[language]) _urls[language] = [] _urls[language].push(url) awai...
''' 이진탐색이라고 되어 있지만 이진탐색 트리를 몰라도 풀이가 가능하다 중위순회 1. 제일 왼쪽까지 이동 2. 숫자를 배치 3. 오른쪽으로 이동 ''' # D2 5176 이진탐색 def makeTree(n): global count # 배열이니까 배열크기 넘어가지 않도록 if n <= N: # 이게 없으면 에러! # 왼쪽노드는 현재 인덱스 * 2 makeTree(n * 2) # 더이상 못가면 값넣기 tree[n] = count # 값 넣었으면 증가시키기 ...
import type { Meta, StoryObj } from "@storybook/react"; import InputLabel from "./index"; import { TextField } from ".."; const meta: Meta<typeof InputLabel> = { title: "Components/Label", component: InputLabel, }; export default meta; type Story = StoryObj<typeof InputLabel>; export const Default: Story = {}; ...
package net.rnvn.model.dao; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.time.LocalDateTime; import java.util.ArrayList; import java.util.List; import net.rnvn.db.PolizasDAO; import net.rnvn.db.QueryGen; import net.rnvn.model.MedioPago; public class MedioPagoD...
import Head from 'next/head' import Link from 'next/link' import { toast } from 'react-toastify'; import { AiOutlineMail, AiOutlineLock } from 'react-icons/ai' import { useEffect, useState } from 'react'; import Router, { useRouter } from 'next/router'; const Login = () => { const [Email, setEmail] = useState('') c...
import { createGenerator, toEscapedSelector as e } from '@unocss/core' import presetUno from '@unocss/preset-uno' import { autocompleteExtractorAttributify, presetAttributify, variantAttributify } from '@unocss/preset-attributify' import { describe, expect, test } from 'vitest' describe('attributify', async () => { ...
import { Schema, Prop, SchemaFactory } from '@nestjs/mongoose'; import { Recipe } from './Recipe.schema'; import mongoose from 'mongoose'; @Schema() export class User { @Prop({ required: false }) displayName?: string; @Prop({ unique: true, required: true }) email: string; @Prop({ required: true }) passwo...
import { GridSize } from "@mui/material"; import { useState } from "react"; export interface FormControlsProps { inputFields: InputField[]; } export type InputField = { id: string; name: string; label: string; autoComplete: string | undefined; defaultValue: string | undefined; required: boolean | undefi...
from django.contrib.auth import get_user_model from django.db import models from .validators import validate_not_empty from django.conf import settings User = get_user_model() SYMBOLS = settings.SYMBOLS_FOR_TEXT_POST_STR class Post(models.Model): """ Класс Post используется для создания моделей Post (пос...
--- layout: week.njk title: Variables and For Loops weekNum: 3 tags: - p5 - week goals: - "Share and Discuss Coding Sketch #2" - "Clarify or Demo any coding concepts unclear from Coding Sketch #2" - Intro Conditional Statements and Logical Operators - "Start work on Coding Sketch #3" sketch: title: "Codin...
Selenium web driver: 1.Web driver is one of the component in selenium 2.web driver is an java interface which contains all abstract methods,static methods,default methods SearchContext(I) is the first interface they have designed.//parent interface | | webDriver(I) is an interface //child interface //classBrowser ...
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/lo...
<template> <el-dialog :title="$t('table.header_display_field')" :visible.sync="visible" :append-to-body="true"> <tree-transfer :title="[$t('table.fields_to_be_selected'), $t('table.selected_fields')]" :from_data='fromFields' :placeholder="$t('api_test.request.parameters_mock_...
import { ClassNames } from '@emotion/react'; import { IconMinusCircle } from 'hds-react'; import React from 'react'; import { useTranslation } from 'react-i18next'; import { useTheme } from '../../../domain/app/theme/Theme'; import Button from '../button/Button'; import styles from './deleteButton.module.scss'; type ...
import { useCallback, useEffect, useState } from 'react'; import { connect } from 'react-redux'; import { createStructuredSelector } from 'reselect'; import { PublicImage } from '../../common'; import { PublicSound } from '../../common/enums/PublicSound'; import { getEnding, StoreProps, Ending as EndingType...
/*! Copyright 2018 Ron Buckton (rbuckton@chronicles.org) 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 ...
package jecs; import javafx.beans.property.ObjectProperty; import javafx.beans.property.SimpleObjectProperty; import jecs.events.ComponentAddedEvent; import jecs.events.ComponentRemovedEvent; import jecs.events.EventManager; import jecs.events.InstantiationEvent; import java.util.*; /** * An Entity is essentially a...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Models\Testimonial; class TestimonialController extends Controller { public function index(){ $testimonials = Testimonial::get(); return view('admin.testimonial.index', compact('testimonials')); } public function ...
import * as React from "react"; import { useParams } from "react-router-dom"; import useFavourites from "../hooks/useFavourites"; import FavouriteIcon from "../assets/icons/FavouriteIcon"; import useCart from "../hooks/useCart"; import CartIcon from "../assets/icons/CartIcon"; import { booksAPI } from "../services/api....
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateCouponCodesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('coupon_code...
import 'package:ARhomes/models/ItemModel.dart'; import 'package:ARhomes/screens/arViewScreen.dart'; import 'package:ARhomes/screens/color_pallet_explore.dart'; import 'package:ARhomes/screens/homeView.dart'; import 'package:ARhomes/screens/or_divider.dart'; import 'package:flutter/material.dart'; class ExplorePage ext...
package task2; import java.lang.reflect.Field; import java.lang.reflect.Method; /** * Создать свой класс Person с полями: firstName, lastName, age, dateOfBirth. * Добавить класс User, который наследуется от Person, с полями: login, password, email. * Добавить гетеры, сетеры. Добавить метод printUserInfo в User. *...
module Scores::Maintainability import Map; import IO; import util::Math; private bool keys_there(map[str, value] m) { if ("analysability" notin m) return false; if ("changeability" notin m) return false; if ("testability" notin m) return false; return true; } int calculate_maintainability(map[str, in...
import { useEffect, useState } from 'react' import { useRouter } from 'next/router' import _ from 'lodash' import Image from 'next/image' import Client from 'shopify-buy' import Layout from '../../components/layout' import SwiperCore, { Autoplay, Pagination } from 'swiper' import { Swiper, SwiperSlide } from 'swiper/re...
import PropTypes from 'prop-types'; // import s from "./Statistics.module.css"; const Statistics = ({good, neutral, bad, total, feedbackPercentage}) => ( <> <p>Good: {good}</p> <p>Neutral: {neutral}</p> <p>Bad: {bad}</p> <p>Total: {total}</p> <p> Positive feedback: ...
(note: this text just hauled over from EmacsWiki at the moment; home page for this project is really at http://www.emacswiki.org/emacs/EsvMode for now) EsvMode is a simple interface to the ESV API, so you can get passages from the English Standard Version of the Bible. CharlesSebold wrote it. Current version of the ...
package com.aplaz.oauthserver.service; import com.aplaz.oauthserver.entity.User; import com.aplaz.oauthserver.repository.UserRepository; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Bean; import org.springframework.security.core.GrantedAuthority; import o...
"use client"; import { H1 } from "@/components/text"; import { updateListName } from "../../actions"; import { useRef } from "react"; import { AutoGrowInput } from "@/components/AutoGrowInput"; export function ListName({ listId, name }: { listId: string; name: string }) { const inputRef = useRef<HTMLInputElement>(n...
const bcrypt = require("bcrypt") const jwt = require("jsonwebtoken") const { ForbiddenError, AuthenticationError } = require("apollo-server-express") require("dotenv").config() const mongoose = require("mongoose") const gravatar = require("../util/gravatar") module.exports = { newNote: async (parent, args, { models...
// Copyright 2022-2023 The Connect 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 applicable law or...
import Particle from "./Particle"; import React, { useRef } from "react"; import emailjs from "@emailjs/browser"; import { ToastContainer, toast } from "react-toastify"; import "react-toastify/dist/ReactToastify.css"; const Contact = () => { const form = useRef(); const sendEmail = (e) => { e.preventDefault();...
--- draft: true sidebar_label: Overview description: This section documents the official integration between Vault and Kubernetes. --- <!-- TODO: clarify if this will be supported by OpenBao --> # Kubernetes Vault can be deployed into Kubernetes using the official HashiCorp Vault Helm chart. The Helm chart allows user...
import React, { useContext, useEffect } from "react"; import logo from "./assets/images/ededi_new.png"; import Forums from "./pages/Forums"; import Nav from "./components/nav"; import ProfileCard from "./components/profile_card"; import LoginCard from "./components/login_card"; import { GlobalContext } from "./context/...
/** * 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 m...
/** * Compares values to sort them in ascending order. * * @private * @param {*} value The value to compare. * @param {*} other The other value to compare. * @returns {number} Returns the sort order indicator for `value`. */ function compareAscending(value: any, other: any): number { if (value !== other) { ...
<?php /** * Template Name: Page - Left Sidebar * The template used for displaying page content in page.php * * @author Matthias Thom | http://upplex.de * @package upBootWP 0.1 */ get_header(); ?> <div class="container"> <div class="row"> <div class="col-md-4"> <?php get_sidebar(); ?> </div><!-- .col-...
<template> <v-container> <v-card class="pa-4" rounded="lg" > <!-- 若無通知 --> <div v-if="!notifications.length" class="ma-4"> <EmptyNotification /> </div> <!-- 若有通知 --> <v-list v-else max-height="500" class="overflow-y-auto"> ...
from django.utils.http import urlencode from django.template.loader import render_to_string from django.conf import settings from django.urls import reverse from django.utils.translation import ugettext_lazy as _ from utils.text import fmt def make_facebook_url(page_url, msg): title = u'%s: %s' % (msg, page_url) ...
syntax = "proto3"; option java_multiple_files = true; package foodSeller; message CreateFoodSellerRequest { string name = 1; string street = 2; int32 number = 3; string city = 4; string phone_number = 5; string email = 6; string password = 7; string photo = 8; } message UpdateFoodSellerNameRequest { ...
import React, { useState, useEffect } from "react"; import { Form, Input, Button, message, Modal, DatePicker } from "antd"; import { useUpdateUserMutation } from "@/api/user"; import { IUser } from "@/interfaces/user"; import { Link } from "react-router-dom"; import Joi from "@hapi/joi"; import moment from "moment"; c...
import React, {useEffect, useState} from 'react'; import {Link, useNavigate, useParams} from 'react-router-dom'; import Text from "../../components/Text.jsx"; import {patientGet, patientUpdate} from "../../../../http.js"; export default function PatientEdit({}) { const {pesel} = useParams(); const history = useNa...
import java.lang.reflect.Field; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; class TheFinalReflection { private final double pi; TheFinalReflection(double pi) { this.pi = pi; } //The getter public double getPi() {return pi;} } public class ...
<?php namespace App\Controller; use App\Controller\AppController; /** * Followups Controller * * @property \App\Model\Table\FollowupsTable $Followups */ class FollowupsController extends AppController { /** * Index method * * @return \Cake\Network\Response|null */ public function inde...
import 'dart:async'; import 'package:dio/dio.dart'; import 'package:flutter/material.dart'; import 'package:flutter_bloc/flutter_bloc.dart'; import 'package:flutter_svg/flutter_svg.dart'; import 'package:mvp_taplan/blocs/additional_sum_bloc/buy_together_bloc.dart'; import 'package:mvp_taplan/blocs/paymennt_bloc/paymen...
package com.backend.softue.controllers; import com.backend.softue.models.ComponenteCompetencias; import com.backend.softue.services.ComponenteCompetenciasServices; import com.backend.softue.utils.checkSession.CheckSession; import com.backend.softue.utils.response.ErrorFactory; import com.backend.softue.utils.response....
// Copyright © 2020 Australian Government All rights reserved. import UIKit // MARK: Localization extensions extension AlertController { static func createAlertSheetController(localizedTitle: String, localizedMessage: String) -> AlertController { return AlertController(title: localizedTitle, message: localized...
package com.webserver.core; import com.webserver.http.HttpRequest; import java.io.*; import java.net.Socket; import java.util.HashMap; import java.util.Map; /** * 负责与指定客户端进行HTTP交互 * HTTP协议要求与客户端的交互规则采取一问一答的方式。因此,处理客户端交互以三步形式完成: * 1.解析请求(一问) * 2.处理请求 * 3.发送响应(一答) */ public class ClientHandler implements Runnabl...
const Product = require("../models/product"); const Cart = require("../models/cart"); exports.getProducts = (req, res, next) => { Product.fetchAll((products) => { res.render("shop/product-list", { prods: products, pageTitle: "All Products", path: "/products", }); }); }; exports.getIndex = (req, res, ne...
/* * AppController.j * TrackingArea * * Created by Didier Korthoudt on November 2, 2015. * Copyright 2015, Your Company All rights reserved. */ @import <Foundation/Foundation.j> @import <AppKit/AppKit.j> @import <AppKit/CPTrackingArea.j> @class SensibleView; @class SensibleViewTA; @class SensibleViewAutoTA; @cl...
import React, { ReactNode, createContext, useEffect } from "react"; import RNBluetoothClassic from 'react-native-bluetooth-classic'; import { Button, Icon, IconButton, Text } from "react-native-paper"; import { ActivityIndicator, PermissionsAndroid, View } from "react-native"; import Snackbar from "react-native-snackba...
import { Box, Typography, useTheme } from "@mui/material"; interface IMessageErrorProps { text: string; errorMessage: boolean; } export const MessageError = ({ text, errorMessage, }: IMessageErrorProps): JSX.Element => { const theme = useTheme(); return ( <Box sx={{ display: "flex", ...
import { isServer } from "solid-js/web"; // Internals // src/internal/client/types.d.ts export interface Task { abort(): void; promise: Promise<void>; } export interface TickContext<T> { inv_mass: number; dt: number; opts: SpringOptions & { set: SpringSetter<T> }; settled: boolean; } export type Ra...
#include <stdio.h> //LINEAR SEARCH //structure is used to return two values from Extremes() struct pair { int min; int max; }; struct pair extremes(int n,int arr[n]) { struct pair MinMax; // if there is only one element if(n==1) { MinMax.min = arr[0]; MinMax.max = arr[0]; ...
import { ConfigProvider, Spin, SpinProps } from 'antd'; import { FC, ReactNode } from 'react'; interface LoadingProps { loading: boolean; loadingText?: string; children?: ReactNode; } const Loading: FC<LoadingProps & SpinProps> = ({ loading, children, loadingText = 'loading...', ...rest }) => { return ( <...
const router = require("express").Router(); const { Category, Product } = require("../../models"); // The `/api/categories` endpoint router.get("/", async (req, res) => { // find all categories // be sure to include its associated Products try { const allcategories = await Category.findAll({ include: ...
<script setup lang="ts"> import { useI18n } from 'vue-i18n' import { computed, ref } from 'vue' import axios from 'axios' import ApplicationForm from '~/components/auth/ApplicationForm.vue' import useErrorHandler from '~/composables/useErrorHandler' import { useStore } from '~/store' interface Props { id: number ...
/** * Converts an HTML table with class 'table-striped' into a PDF file and triggers a download. */ function generatePDF() { // Create a new jsPDF instance. const doc = new jspdf.jsPDF(); // Select all row elements (tr) from the table. const rows = document.querySelectorAll(".table-striped tr"); // Map ea...
using System; using System.ComponentModel; namespace MenuDemo { /// <summary> /// Defines the behavior of the application. /// </summary> public static class Program { /// <summary> /// The entry point of the application. /// </summary> /// <remarks> /// Thi...
import React from 'react'; import {Button, Form, Input, Space} from "antd"; import {validateIPAddress, validatePort} from "../utils/validators"; export const ProxyForm = ({handleOk, handleCancel}) => { return ( <Form layout={"vertical"} onFinish={handleOk}> <Form.Item name="ipA...
package com.weareadaptive.auction.security; import com.weareadaptive.auction.IntegrationTest; import com.weareadaptive.auction.TestData; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; impo...
import 'package:core/src/cache/core/cache_model.dart'; /// An abstract class representing a cache operation. /// /// This class defines the basic operations that can be performed on a cache, /// such as adding items, removing items, /// clearing the cache, and retrieving items. /// /// The type parameter `T` represent...
import { describe, it, expect, beforeEach, vi } from 'vitest' import { render, screen, cleanup, fireEvent } from '@testing-library/react' import { Router } from '../components/Router' import { getCurrentPath } from '../utils/utils' import { Link } from '../components/Link' import { Route } from '../components/Route' v...
#!/usr/bin/env python import torch # Set the device to GPU device = 'cuda' if torch.cuda.is_available() else ( 'mps' if torch.backends.mps.is_available() else 'cpu' ) # Increase the size of the tensors N = 10000 # Number of rows D_in = 10000 # Input dimension H = 10000 # Hidden layer dimension D_out = 10000 # Ou...
/* ________.__ _____.___.___________ / _____/| | _____ ____ ____ \__ | |\__ ___/ / \ ___| | \__ \ _/ ___\/ __ \ / | | | | \ \_\ \ |__/ __ \\ \__\ ___/ \____ | | | \______ /____(____ /\___ >___ > / ______| |____| \/ \...
/* * Copyright (C) 2014 Freie Universität Berlin * * This file is subject to the terms and conditions of the GNU Lesser General * Public License v2.1. See the file LICENSE in the top level directory for more * details. */ /** * @defgroup board_nrf6310 NRF6310 (Nordic NRF Hardware Development Kit) * @ingroup...
import { useContext } from "react"; import { AuthContext } from "../../Componets/Providers/AuthProvider"; import Swal from "sweetalert2"; const AddToys = () => { const { user } = useContext(AuthContext) const handleAddToy = event => { event.preventDefault(); const form = event.target; ...
package io.github.domgew.kedis.commands.server import io.github.domgew.kedis.KedisException import io.github.domgew.kedis.commands.KedisFullCommand import io.github.domgew.kedis.impl.RedisMessage internal class AuthCommand( val username: String?, val password: String, ) : KedisFullCommand<Unit> { override...
import React, { useEffect, useState } from "react"; import { availableSeats, changeSeatStatus } from "../../util/commonFunctions"; import Booking from "../Booking"; import "./home.css"; import seatsArr from "../../util/seats"; function Home() { //state of no. of seats wanted const [seatsWanted, setSeatsWanted] = u...
%language "c++" %skeleton "lalr1.cc" %require "3.2" %define api.token.raw %define api.token.constructor %define api.value.type variant %define parse.error verbose %code requires { #include <map> #include <list> #include <vector> #include <string> #include <iostream> #include <algorithm> #include <cstddef> #include <c...
package com.example.csc557.ui.theme.search import android.util.Log import androidx.compose.foundation.Image import androidx.compose.foundation.background import androidx.compose.foundation.layout.* import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.foundation.lazy.LazyRow import androidx.compos...
<!-- /** * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures * all the essential functionalities required for any enterprise. * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com * * OrangeHRM is free software: you can redistribute it and/or modify it under the terms of * ...
# Event Horizon ## [Website](https://yandax.pythonanywhere.com/) ## Inspiration In the wake of COVID-19, small businesses have been struggling to get back up to speed, with many unfortunately going [out of business](https://torontosun.com/news/local-news/covid-killing-off-canadas-small-businesses-report). Locals have...
function runToAuthorizeScopes() { /* Run this after setting the scopes to authorize the script before you trigger it via onEdit To add the requierd scopes - open up your appsscript.json file via Settings and add this: "oauthScopes": [ "https://www.googleapis.com/auth/spreadsheets", "h...
{% load static %} <!DOCTYPE html> <html lang="en"> <head> {% block meta %} <meta http-equiv="X-UA-Compatible" content="ie=edge"> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta name="description" content="Buy home decor plants. Fl...
// // ContentView.swift // MultiSelector // // Created by Florian Scholz on 10.11.23. // import SwiftUI struct ItemData: Identifiable, Hashable { var id = UUID().uuidString var name: String var imageName: String } struct SelectionRow: View { var item: ItemData var isSelected: Bool var action: () -> V...
import { Injectable, NotFoundException } from '@nestjs/common'; import { UpdateUserDto } from './dto/update-user.dto'; import { CreateUserDto } from './dto/create-user.dto'; @Injectable() export class UsersService { private users = [ { "id": 1, "name": "Leanne Graham", "...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <style> ul { list-style: none; } * { margin: 0; padding: 0; } div { width: 1150px; height: 400px; margin: 50p...
import { Component, OnInit } from '@angular/core'; import { Category } from 'src/app/models/category.model'; import { ApiService } from 'src/app/services/api.service'; @Component({ selector: 'app-categories', templateUrl: './categories.component.html', styleUrls: ['./categories.component.scss'], }) export class C...
<p align="center"> <img src="images/ATM-APP.png"> <p> <p align="center"> <img src="images/atm.png"> <p> Project description - ### *This is a simple ATM application written in Java using Spring Boot. ATM-app supports authentication and authorization. All CRUD operations are implemented in application* ATM features in...
// SPDX-License-Identifier: GPL-3.0-only /* * Prism Launcher - Minecraft Launcher * Copyright (c) 2022 flowln <flowlnlnln@gmail.com> * Copyright (c) 2023 Trial97 <alexandru.tripon97@gmail.com> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Pub...
// // TransactionBlockInput.swift // SuiKit // // Copyright (c) 2023 OpenDive // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the...
import React from "react"; import ReactDOM from "react-dom"; import CommonDisplay from "../CommonDisplay"; import "./new-profile.css" import Cookie from "js-cookie"; import * as QueryString from "querystring"; class EditProfile extends CommonDisplay{ constructor(props){ super(props); let queryStr...
## Scaling - ### Horizontal **replica count** (*number of pods*) of deployment increased/decreased - #### Manual - `k apply` after changing **spec.replicas** (or *`k edit` deploy my-dep*) - *`k` **`scale`** `deploy my-dep` **`--replicas`**`=4` - #### Automatic - **H...
package com.zy.commonlibrary.base; import android.app.Activity; import android.app.ActivityManager; import android.content.Context; import java.util.List; import java.util.Stack; /** * activity管理 */ public class AppManager { private static Stack<Activity> activityStack; private volatile static AppManager i...
// возвращаемый тип void у функции может приводит к необычному, но ожидаемому повдедению type voidFn = () => void; const f1: voidFn = () => true; const f2: voidFn = () => { return true; }; const f3: voidFn = function() { return true } // мы по сути возвращем bollean, но ts даёт ему тип void // я немного непоним...
rshd - Remote Shell Daemon for Windows NT version 1.6 Written by Silviu C. Marghescu (http://www.cs.umd.edu/~silviu) Copyright (C) 1996 Silviu C. Marghescu, Emaginet, Inc. All Rights Reserved. Password functionality added by Ashley M. Hopkins (http://www.csee.usf.edu/~amhopki2) rshd is free software; you can redist...
import Head from "next/head"; import styles from "../styles/Home.module.css"; import Link from "next/link"; import Loader from "../components/Loader"; import toast from "react-hot-toast"; import PostFeed from "../components/PostFeed"; import { firestore, fromMillis, postToJSON } from "../lib/firebase"; import { useSta...
import { render } from '@testing-library/react' import { StoreProvider } from 'app/providers/StoreProvider' import { type StateSchema } from 'app/providers/StoreProvider/config/StateSchema' import { type ReactNode } from 'react' import { MemoryRouter } from 'react-router-dom' export interface componentRenderOptions { ...
import React from 'react'; import { Layout, Menu, } from 'antd'; import { SolutionOutlined, InfoCircleOutlined, LockOutlined } from '@ant-design/icons'; import examLogo from '../../../assets/test.webp'; const { Header } = Layout; // 菜单项 const menuItems = [ { key: "home", icon: <SolutionOutlined />...
const COMMENT: &str = "//@"; /// A header line, like `//@name: value` consists of the prefix `//@` and the directive /// `name: value`. It is also possibly revisioned, e.g. `//@[revision] name: value`. pub(crate) struct HeaderLine<'ln> { pub(crate) revision: Option<&'ln str>, pub(crate) directive: &'ln str, } ...
/* Built-in Modules */ // Command Prompt -> node node-1.js /* HTTP module creates a server object, listens to server ports and gives a response back to the client */ const http = require("http"); // import * as http from "http"; /* URL module splits query string into readable parts */ const url = require("url"); // i...
# 5G La 5G est une évolution majeur de la [4G](4G.md) (après un certain nombre de release, on estime que la technologie à assez évolué pour le grand publique) Avantage : - Connections mobiles rapide (max 10 Gb/s $\rightarrow$ 100 Mb/s pour un utilisateur) - Nette réduction de la latence (1ms) - Plus grand nombre d'o...
// Can't use aliases here because we're doing exports/require import { DOMAIN } from 'config'; import * as URLParams from 'constants/urlParams'; import ShortUrl from 'services/shortUrl'; const PAGES = require('../constants/pages'); const { parseURI, buildURI } = require('../util/lbryURI'); const COLLECTIONS_CONSTS = ...
<span class="category-row">{{ challenge.category }}</span> <div class="name-row"> <div class="dot"></div> <span class="name">{{ challenge.name }}</span> <difficulty-stars [difficulty]="challenge.difficulty" ></difficulty-stars> </div> <div class="description-row" [innerHtml]="challenge.description"></div> ...
(() => { // 为什么有两个 root 呢? // 因为初始渲染会生成一个 fiber 链表,然后后面 setState 更新会再生成一个新的 fiber 链表,两个 fiber 链表要做一些对比里决定对 dom 节点的增删改,所以都要保存。 // 用 nextUnitOfWork 指向下一个要处理的 fiber 节点 let nextUnitOfWork = null; // 当前正在处理的 fiber 链表的根 wipRoot let wipRoot = null; // 之前的历史 fiber 链表的根 currentRoot let currentRoot = null; //...
import React, { useEffect, useState } from "react"; import { useSelector } from "react-redux"; import colorPalette from "../../style/palette"; import { Button } from "react-bootstrap"; import FavoriteIcon from '@mui/icons-material/Favorite'; import FavoriteBorderIcon from '@mui/icons-material/FavoriteBorder'; export d...