text
stringlengths
184
4.48M
// function without parameter and return // function print(){ // console.log("hello world"); // } // print() // // function with return value // function passMessage(){ // return "I am happy to learn web dev" // } // const message = passMessage() // console.log(message); // console.log(message.toUpperCase...
<template> <div class="wrapper"> <form> <div class="containerr"> <h2 id="error">{{ message }}</h2> <h1>Register</h1> <p>Please fill in this form to create an account.</p> <label for="fstname"><b>First Name</b></label ><br /> <input type="text" ...
package work.test; import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.function.Consumer; /** * @author 30391 */ public class StreamTest { public static void main(String[] args) { List<String> name = new ArrayList<>(); Collections.addAll(name, "张三丰"...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" re...
# My first postmortem ## __Outage Postmoterm: Database Replication Failure__ ### Issue Summary: - __Duration:__ July 29, 2023, 09:00 AM - Aug 04, 2023, 04:30 AM (UTC) - __Impact:__ Unavailability of critical services leading to a complete downtime of our application. 74% of users were unable to access the platf...
import { CommonModule } from '@angular/common'; import { Component, inject } from '@angular/core'; import { FormControl, ReactiveFormsModule } from '@angular/forms'; import { Observable, catchError, debounceTime, distinctUntilChanged, filter, of, switchMap, tap } from 'rxjs'; import { FlightService } from '../../../boo...
<template> <div class="submit-form"> <div v-if="!submitted"> <div class="form-group"> <label for="title">Title</label> <input type="text" class="form-control" id="title" required v-model="link.title" name="title" /> </...
import React, { useState } from 'react'; import { useDispatch } from 'react-redux'; import { useNavigate } from 'react-router-dom'; import { GoogleLogin } from 'react-google-login'; import { Form, Input, Button } from 'antd'; import 'antd/dist/antd.css'; import { signup, googleSignup } from '../actions/auth'; import { ...
<template> <jet-action-section> <template #content> <jet-dialog-modal :show="isModalActive" @close="closeModal"> <template #title> <div class="flex justify-between"> {{title}} <slot name="title"> </slot> ...
package Controller; import Model.*; import View.*; import javax.swing.*; import javax.swing.table.DefaultTableModel; import javax.swing.table.TableRowSorter; import java.awt.*; import java.io.BufferedReader; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; import java.util....
import type { Photo } from "@/utils/types"; import Image from "next/image"; import { useState } from 'react'; import RequestEditModal from "./RequestEditModal"; import EditModal from "./EditModal"; export default function ImageCard({ photo }: { photo: Photo }) { const { urls, alt_description } = photo; const [isRe...
<?php use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\Exception; require '../vendor/phpmailer/phpmailer/src/Exception.php'; require '../vendor/phpmailer/phpmailer/src/PHPMailer.php'; require '../vendor/phpmailer/phpmailer/src/SMTP.php'; function sendemail($email, $name) { try { $mail = new PHP...
import Head from 'next/head' import { useEffect, useState } from 'react' import SignupLayout from '../../components/layouts/SignupLayout' import ChooseMoviesView from '../../components/simpleSetup/ChooseMoviesView' import { getOptions } from '../../components/APIHelpers/toFetchDataObjects' import { fetchedContentType...
from app import db import celery import pptx from pptx import Presentation import fitz from PIL import Image from celery import shared_task from celery.utils.log import get_task_logger import io logger = get_task_logger(__name__) def extract_text_from_pptx(pptx_path): presentation = Presentation(pptx_path) te...
# 40. Combination Sum II ## 解題程式碼 ```javascript var combinationSum2 = function (candidates, target) { const result = []; candidates = candidates.sort((a, b) => a - b); const backTracking = (sum, path, index) => { if (sum > target) return; if (sum === target) { result.push([...path]); return...
import axios from 'axios'; import {UsersResponseType} from '../redux/users-reducer'; import {ProfileType} from '../redux/profile-reducer'; const instance = axios.create({ withCredentials: true, baseURL: 'https://social-network.samuraijs.com/api/1.0/', headers: { 'API-KEY': 'eb07f558-5d2f-47f9-adac-...
#include<bits/stdc++.h> #include<iostream> using namespace std; class Node{ public: bool flag; Node* links[26]; Node(){ // constructor to initialize nodes. flag = 0; for(int i = 0;i < 26;i++) links[i] = NULL; } }; class Trie{ public: Node* root; Trie(){ root = new Node(); } ...
from permuted_tree import merkelize, mk_branch, verify_branch, mk_multi_branch, verify_multi_branch from utils import get_power_cycle, get_pseudorandom_indices from poly_utils import PrimeField from fft import fft # Generate an FRI proof that the polynomial that has the specified # values at successive powers of the ...
from sys import stdin from collections import deque def bfs(graph, x, y, visited): n = len(graph) queue = deque() queue.append((x, y)) graph[x][y] = 0 visited[x][y] = True num_houses = 1 while queue: x, y = queue.popleft() for i in range(4): nx, ny = x + dx[i],...
exports.run = async (_client, msg, args, _content, _command, Discord, config) => { //Check the permissions. if (!msg.member.hasPermission("MANAGE_MESSAGES")) { const notEnoughPermsMessage = new Discord.MessageEmbed() .setColor("#8b0000") .setTimestamp() .setFooter(`Denegado a ${msg.member.disp...
import os import click import pickle # from typing import Any import numpy as np import scipy from sklearn.ensemble import RandomForestClassifier from sklearn.metrics import classification_report from sklearn.metrics import precision_recall_fscore_support import mlflow from mlflow.entities import ViewType from mlflo...
package cn.cloud9.domain; import cn.cloud9.dto.BaseDTO; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import io.swagger.annotations.ApiModel; import io.s...
// Package is provides functions for checking types and values. package is import ( "reflect" "strings" "github.com/n4x2/zoo/constraints" "github.com/n4x2/zoo/regex" ) // Alpha checks if the value is letters a-z or A-Z. func Alpha(v string) bool { return regex.Alpha.MatchString(v) } // AlphaDash checks if the ...
load @wavebond/snow/amazonaws.com/dms/2016-01-01/base/boolean-optional take form boolean-optional load @wavebond/snow/amazonaws.com/dms/2016-01-01/base/integer-optional take form integer-optional load @wavebond/snow/amazonaws.com/dms/2016-01-01/base/tag-list take form tag-list load @wavebond/snow/amazonaws.com...
let back; // CSV 파일 경로 const csvFilePath = 'data/shopping_on.csv'; let topTags = []; // 상위 태그 배열 초기화 let tagImages = {}; // 태그 이미지 객체 초기화 // 전역 변수 let tagCounts; let maleRatio; let femaleRatio; let ageGroupRatios; // 태그 이미지 객체를 저장할 객체 function preload() { back = loadImage('data/cloud.png'); // 배경이미지 파일 경로 font = l...
# auth blueprint / kinda like a sub-app / module import functools from flask import ( Blueprint, flash, g, redirect, render_template, request, session, url_for ) from werkzeug.security import check_password_hash, generate_password_hash from blog.db import get_db bp = Blueprint('auth', __name__, url_prefix='/auth...
package types import ( "fmt" "gopkg.in/yaml.v3" ) const ( // DefaultSendEnabled enabled DefaultSendEnabled = true // DefaultReceiveEnabled enabled DefaultReceiveEnabled = true ) // NewParams creates a new parameter configuration for the ibc transfer module func NewParams(enableSend, enableReceive bool) Params...
<div class="page-layout simple card fullwidth inner-scroll p-12" fxLayout="column" fxLayoutGap="12px" > <!-- FILTRO --> <mat-card> <form [formGroup]="form" novalidate fxLayoutGap="12px"> <!-- CURRICULO --> <mat-form-field appearance="outline" fxFlex="1 0 auto"> ...
#pragma once /* * Adplug - Replayer for many OPL2/OPL3 audio file formats. * Copyright (C) 1999 - 2003 Simon Peter, <dn.tlp@gmx.net>, et al. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software F...
import Moralis from "moralis/dist/moralis.js"; /** * Save json file to ipfs * * @param {string} name * @param {object} json * @returns Promise */ const saveJsonToIPFS = async (name: string, json: object): Promise<any> => { const file = new Moralis.File(name + ".json", { base64: btoa(JSON.stringify(json))...
import { ChainId } from "@pancakeswap/chains"; import cron from "node-cron"; import { Address, PublicClient } from "viem"; import { redisClient } from ".."; import { getViemClient } from "../blockchain/client"; import { AppLogger } from "../util/logger"; import CronJob from "./utils/conUtils"; import { cronLock } from ...
#!/usr/bin/python3 """ A script that adds the State object “Louisiana” to the database hbtn_0e_6_usa and prints the new state's id. """ from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker from model_state import Base, State import sys if __name__ == "__main__": username, password, database...
package az.lahza.iamrich.view import androidx.compose.foundation.Image import androidx.compose.foundation.background import androidx.compose.foundation.border import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.fillMaxSize import andr...
#include <benchmark/benchmark.h> #ifndef FASTNOISE_PERLINNOISE_HPP_INCLUDED #define FASTNOISE_PERLINNOISE_HPP_INCLUDED #ifdef __GNUC__ #pragma GCC system_header #endif #ifdef __clang__ #pragma clang system_header #endif #include "FastNoise/FastNoise.h" #endif /* static void generate_3d_word(benchmark::State &state) {...
package com.sedsoftware.common.domain.entity import com.sedsoftware.common.domain.type.RemindiePeriod import com.sedsoftware.common.domain.type.RemindieType import kotlinx.datetime.LocalDateTime import kotlinx.datetime.TimeZone import kotlinx.datetime.getDayEnd import kotlinx.datetime.getDayStart import kotlin.test.Te...
const fs = require('fs'); const path = require('path'); // remeber to install colors package // npm -D i colors require("colors"); // import fs from 'fs'; // import path from 'path'; const componentName = process.argv[2]; if (!componentName) { console.error('Please specify a component name.'); process.exit(1); }...
#ifndef ATOM_H #define ATOM_H #include <bits/stdc++.h> #include <math.h> #include <algorithm> #include <iostream> #include <memory> #include <numeric> #include <ostream> #include <set> #include <sstream> #include <string> namespace symbolicAlgebra { class Expression; } namespace symbolicAlgebra::implementation { clas...
import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import {ProductsListComponent} from "./components/products-list/products-list.component"; import {LoginComponent} from "./components/login/login.component"; import {RegisterComponent} from "./components/register/register.c...
function inv = nbin_inv (x, r, p) %NBIN_INV Inverse of Negative binomial cumulative distribution function (inv). % % Y = NBIN_CDF(X,R,P) Returns inverse of the Negative binomial cdf with % parameters R and P, at the values in X. % % The size of Y is the common size of the input arguments. A scalar input % f...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>DongHoDemNguoc</title> <style> * { margin: 0; padding: 0; bo...
import sys import argparse import gymnasium as gym import math import random import matplotlib import matplotlib.pyplot as plt from collections import namedtuple, deque from itertools import count from tree import SumTree from utils import set_seed import csv import numpy as np import torch import torch.nn as nn impor...
/* Copyright 2022-2022 Stephane Cuillerdier (aka aiekick) 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 ...
use std::collections::BTreeMap; use anyhow::Result; use serde::{Deserialize, Serialize}; use serde_json::value::Value; use tera::Context; use crate::render::Render; #[derive(Clone, Debug, Default, Deserialize, Serialize)] #[serde(rename_all = "kebab-case")] pub struct Vars { #[serde(flatten)] pub map: BTreeM...
// 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 may...
Array#each_cons(cnt)はselfからcnt個ずつ要素を取り出しブロックに渡します。ブロック引数には配列で渡されます。 取り出す要素は、[要素1, 要素2, 要素3], [要素2, 要素3, 要素4] ...と1つづ前に進みます。 似たメソッドにArray#each_slick(cnt)があります。 以下が、それぞれの実行結果です。 (1..10).each_cons(3) {|arr| p arr } # <実行結果> # [1, 2, 3] # [2, 3, 4] # [3, 4, 5] # [4, 5, 6] # [5, 6, 7] # [6, 7, 8] # [7, 8, 9] # [8, 9, 10]...
/* eslint-disable react/prop-types */ import { Formik, Form, Field } from "formik"; import { Box, Button, Flex, FormLabel, Image, Radio, SimpleGrid, Text, } from "@chakra-ui/react"; // import { quizData } from "../database/data"; import { GoArrowLeft, GoArrowRight } from "react-icons/go"; import { useD...
from numbers import Number from _common_decl cimport * from cython.operator cimport dereference as deref from _cy_affine cimport cy_Affine, get_Affine, is_transform cdef class cy_GenericInterval: """ Represents all numbers between min and max. Corresponds to GenericInterval in 2geom. min and max can be...
using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using KSPMock; using Moq; using NUnit.Framework; using OrbitPOInts.Data.POI; using OrbitPOInts.Tests.Mocks; namespace OrbitPOInts.Tests { #if TEST [Parallelizable(ParallelScope.None)] [TestFixture] public class ...
import React, { useContext, useEffect, useState } from 'react'; import CartContext from '../../store/cart-context'; import CartIcon from '../Cart/CartIcon'; import classes from './HeaderCartButton.module.css'; const HeaderCartButton = (props) => { const [btnIsHighlighted, setBtnIsHighLighted] = useState(false); ...
import { ComposableMap, Geographies, Geography, Marker } from "react-simple-maps" import { useEffect, useState } from "react"; import { Tooltip } from "react-tooltip"; import { useApiContext } from "../../../contexts/APIcontext.jsx"; const geoUrl = "https://raw.githubusercontent.com/deldersveld/topojson/master/world...
import { faker } from "@faker-js/faker"; import { formatPlacesLived, formatYears, getRandomDateFromYear, getAgeFromBirthday, } from "../../utils/populateHelperFunctions"; import { LifeEventData } from "../../../../types/IUser"; export const getLifeEvents = (birthday: Date) => { const age = getAgeFromBirthday(bir...
import React, { useEffect, useState } from "react"; import { fetchMe } from "../api/users"; import AllPost from "./AllPost"; import { postMessage } from "../api/messages"; import { fetchPosts } from "../api/post"; import { deletePost } from "../api/post"; import useAuth from "../hooks/useAuth"; import { Link, useNavig...
package api import ( "encoding/json" "net/http" "github.com/adinovcina/golang-setup/tools/logger" status "github.com/adinovcina/golang-setup/tools/network/statuscodes" "github.com/adinovcina/golang-setup/tools/paging" ) // BaseResponse structure that will have on all responses from all APIs. type BaseResponse s...
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE sect2 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.docbook.org/xml/4.3/docbookx.dtd"> <!-- section history: 2008-01-04 ude: replaced calloutlist with orderedlist 2007-10-23 j.h: updated en;fr to v2.4 2007-05-19 Added Spanish transl...
import { Body, Controller, Delete, Get, Param, Post, Put } from '@nestjs/common'; import { ApiOperation, ApiTags } from '@nestjs/swagger'; import { SchedulesService } from '@modules/schedules/schedules.service'; import { CurrentUser } from '@common/decorators/current-user.decorator'; import { IJwtPayload } from '@modul...
#include <iostream> enum PermissionFlags { Read = 0x01, // 0001 Write = 0x02, // 0010 Execute = 0x04, // 0100 All = Read | Write | Execute// 0111 }; void checkPermissions(unsigned char permissions) { std::cout << "Permissions: "; if (permissions & Read) std::cout <...
// // ManufacturerDetailViewController.swift // iBeer // // Created by Francisco Javier Gallego Lahera on 27/12/21. // import UIKit class ManufacturerDetailViewController: UIViewController, UITableViewDelegate, UITableViewDataSource, UIImagePickerControllerDelegate, UINavigationControllerDelegate { // MARK: O...
using AbstractDifferentiation using Test using FiniteDifferences, ForwardDiff, Zygote const AD = AbstractDifferentiation const FDM = FiniteDifferences ## FiniteDifferences struct FDMBackend1{A} <: AD.AbstractFiniteDifference alg::A end FDMBackend1() = FDMBackend1(central_fdm(5, 1)) const fdm_backend1 = FDMBackend...
package io.webwidgets.core; import java.io.*; import java.util.*; import java.sql.*; import java.net.*; import java.util.function.BiFunction; import net.danburfoot.shared.Util; import net.danburfoot.shared.CoreDb; import net.danburfoot.shared.ArgMap; import net.danburfoot.shared.FileUtils; import net.danburfoo...
"use client"; import { useAppSelector } from "@/hooks"; import { Box, Button, Flex, FormControl, FormLabel, Input, Text, useToast, } from "@chakra-ui/react"; import { useState, FormEvent, ChangeEvent } from "react"; import { useAppDispatch } from "@/hooks"; import { clearCart } from "@/features/cart.sli...
<template> <div class="event base-grid"> <template v-if="event"> <div class="event__title content"> <p class="event__title__date"> {{ event.date.weekday }} {{ event.date.day }}. {{ event.date.month }} {{ event.date.year }}</p> <div class="event__tit...
// ignore_for_file: avoid_print, unused_local_variable, dangling_library_doc_comments /// overview-1 int opCount = 0; int performOp(int a, int b) { opCount += 1; // Mutating global variable! return a + b; } /// overview-1 /// overview-2 int multiply(int a, int b) { print('multipying $a x $b'); // Side effec...
import Combine import ComposableArchitecture import Core import MacAppRoute import TestSupport import XCTest import XExpect @testable import App @testable import Gertie @MainActor final class AppReducerTests: XCTestCase { func testDidFinishLaunching_Exhaustive() async { let (store, _) = AppReducer.testStore(exh...
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @provides...
<nav class="navbar navbar-expand-lg" [ngClass]="{'no-user' : !currentUser || !isAuthenticated, 'collapsed': isNavBarCollapsed}"> <div class="navbar-logos" *ngIf="isAuthenticated"> <div class="programme-logo-container show-pointer" (click)="router.navigate(['app'])"> ...
import os from processfiles.timing import TimeTracker from processfiles.base import BaseProcessTracker class FileProcessTracker(BaseProcessTracker): def __init__(self, folder=None, restart=False, file_types=('csv',)): if folder is None: self.folder = os.getcwd() else: se...
struct ASNet{DO,TO,MP<:NamedTuple, P<:Union{Dict,Nothing},KB<:Union{Nothing, KnowledgeBase},S<:Union{Nothing,Matrix},G<:Union{Nothing,Matrix}} domain::DO type2obs::TO model_params::MP predicate2id::P kb::KB init_state::S goal_state::G function ASNet(domain::DO, type2obs::TO, model_params::MP, predicate2id::P, ...
<template> <div class="manager"> <!-- 这是头部导航栏 --> <div class="tabbar"> <div id="logo">后台管理系统</div> <div class="icon-setting"> <el-button icon="el-icon-search" circle type="primary" size="mini"></el-button> <el-button icon="el-icon-setting" circle type="primary" size="mini"></el-but...
<?php namespace App\Http\Controllers\Admin; use App\Designation; use App\EmployeeDetails; use App\Helper\Reply; use App\Http\Requests\Designation\StoreRequest; use App\Http\Requests\Designation\UpdateRequest; class ManageDesignationController extends AdminBaseController { public function __construct() { ...
let user = require("../models/userModel"); let bcrypt = require("bcrypt"); let jwt = require("jsonwebtoken"); const userModel = require("../models/userModel"); let getUser = async (req, resp) => { try { resp.status(200).send(await user.findOne({ id: req.params.id })); } catch (error) { console.log(error); ...
import React, { useCallback, useRef, useState } from 'react'; import auth from '@react-native-firebase/auth'; import { StyleSheet, View, TextInput, Button, Text, Alert } from 'react-native'; export default function Join({ navigation: { goBack } }) { const passwordRef = useRef(); const [email, setEmail] = useState(...
<?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_heigh...
import styles from "./styles.module.scss"; import { MdReplay } from "react-icons/md"; import EditBtn from "../EditBtn"; import DeleteBtn from "../DeleteBtn"; const Table = ({ categoriesState, getData, loading }) => { return ( <div className={styles.main}> <div className={styles.head}> <button class...
/** * @jest-environment jsdom */ /* eslint-disable @typescript-eslint/no-explicit-any */ import { parseUnits } from 'ethers/lib/utils' import { configure } from 'mobx' // This is needed to be able to mock mobx properties on a class configure({ safeDescriptors: false }) const { rootStore } = global const PPO_BALANCE...
import React from "react"; import { CloseButton, Box } from "@mantine/core"; interface Props { label: string; value: string; subLabel?: string; startIcon?: React.ReactElement; onRemove?: () => void; onClick?: (value: string) => void; } export default function RootTag({ onRemove, onClick, label, va...
import { Module, NestModule, MiddlewaresConsumer } from '@nestjs/common'; import { loggerMiddleware } from './common/middlewares/logger.middleware'; import { CatsModule } from './cats/cats.module'; import { AuthModule } from './auth/auth.module'; import { CatsController } from './cats/cats.controller'; @Module({ mod...
package mvc.controller; import mvc.model.User; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RestController; import org.springframework.web.client.RestTemplate; import java.u...
import { IsEnum, IsNumber, IsString, IsUUID } from 'class-validator'; import { PropertyType } from '../../../domain/property/property'; import type { UUID } from '../../../../types/uuid.type'; export class CreatePropertyRequestDto { @IsEnum(PropertyType) type!: PropertyType; @IsNumber() amount!: number; @I...
package com.app.server.repository.salesboundedcontext.sales; import com.app.server.repository.core.SearchInterface; import com.app.config.annotation.Complexity; import com.app.config.annotation.SourceCodeAuthorClass; import java.util.List; @SourceCodeAuthorClass(createdBy = "shubhangivhanale@gmail.com", updatedBy = "s...
// <reference types="Cypress" /> import * as requests from '../support/commandsRequests'; import * as createSignal from '../support/commandsCreateSignal'; import { SIGNAL_DETAILS } from '../support/selectorsSignalDetails'; import { MANAGE_SIGNALS, FILTER } from '../support/selectorsManageIncidents'; const sizes = ['ip...
<?php namespace app\model; use think\Model; class CreditInquiryAttachment extends Model { protected $autoWriteTimestamp = true; protected $updateTime = false; protected $createTime = 'create_time'; /** * 编辑征信申请图片处理 * @return bool * @throws \think\db\exception\DataNotFoundException ...
; ; 問題 2.63 ; ; 下の二つの手続きはそれぞれ二進木をリストに変換する. ; ; a. 二つの手続きはすべての木に対して同じ結果を生じるか. ; そうでなければ, 結果はどう違うか. ; 二つの手続きは図2.16のような木からどういうリストを生じるか. ; ; b. n個の要素の釣合っている木をリストに変換するのに必要なステップ数の増加の程度は, ; 二つの手続きで同じか. 違うなら, どちらがより遅く増加するか. ; (define (entry tree) (car tree)) (define (left-branch tree) (cadr tree)) (define (ri...
package com.alphamstudios.hiscs; import android.bluetooth.BluetoothAdapter; import android.bluetooth.BluetoothDevice; import android.content.Intent; import android.os.Bundle; import android.support.design.widget.FloatingActionButton; import android.support.design.widget.Snackbar; import android.support.v7.app.AppCompa...
package com.example.superagenda.data.network import com.example.superagenda.data.models.TaskModel import com.example.superagenda.data.network.response.ApiResponse import retrofit2.http.Body import retrofit2.http.DELETE import retrofit2.http.GET import retrofit2.http.Header import retrofit2.http.POST import retrofit2.h...
import React, { useState, useRef } from "react"; import Container from '@material-ui/core/Container' import clsx from "clsx"; import { makeStyles } from "@material-ui/core/styles"; import { Paper, Box, Button } from "@material-ui/core"; import { ButtonGroup } from "./button-group/button-group"; import { Drawer as MUI...
# coding=utf-8 # Copyright 2022 The Pax 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 ag...
# Fees Allo collects a fee on each pool that is created through the protocol. There are two fee mechanisms, a base fee and a percentage fee. ## Base Fee The base fee is a fixed amount that is charged when a pool is created. The base fee is paid in ETH and should be included in the `msg.value` when calling either met...
package logic import ( "context" "github.com/IM-Lite/IM-Lite-Server/app/rpc/websocket/pb" "github.com/IM-Lite/IM-Lite-Server/common/xhttp" "google.golang.org/protobuf/proto" "github.com/IM-Lite/IM-Lite-Server/app/api/internal/svc" "github.com/IM-Lite/IM-Lite-Server/app/api/internal/types" "github.com/zeromicr...
interface ICategory { id: string name: string thumbnail: string } interface IColor { color: { color: string } } enum SizeEnum { XS = 'XS', S = 'S', M = 'M', L = 'L', XL = 'XL', XXL = 'XXL', } interface IProductSize { size: { size: SizeEnum } } interface IAddress { id: string ad...
--- title: グループテンプレート description: コミュニティサイトを形成する一連の有線化済みのページや機能に対して、グループテンプレートコンソールにアクセスする方法を説明します。 contentOwner: Janice Kendall products: SG_EXPERIENCEMANAGER/6.5/COMMUNITIES topic-tags: administering content-type: reference docset: aem65 role: Admin exl-id: aed2c3f2-1b5e-4065-8cec-433abb738ef5 source-git-commit: 00b...
import { useState ,useEffect, useRef} from 'react' import './App.css' import Navbar from './components/navbar' import {Routes , Route, useLocation} from 'react-router-dom' import Home from './pages/home' import About from './pages/about' import Works from './pages/works' import Discourses from './pages/discourses' impo...
import React from 'react' import { useGlobalContext } from '../context/globalContext' import { dateFormat } from '../utils/dateFormat' import {FaGraduationCap, FaFileMedical, FaHouseUser, FaReceipt} from 'react-icons/fa' import {MdFastfood} from 'react-icons/md' import {GiClothes, GiNotebook} from 'react-icons/gi' impo...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title> Archana - Personal Portfolio Website </title> <link rel="stylesheet" href="style.css"> <link rel="s...
package adapters import ( "context" "errors" "fmt" "time" "cloud.google.com/go/spanner" "github.com/google/uuid" "gitlab.cmpayments.local/creditcard/authorization/internal/data" "gitlab.cmpayments.local/creditcard/authorization/internal/entity" "gitlab.cmpayments.local/creditcard/authorization/internal/infra...
from tkinter import * from phones import * from tkinter import ttk def whichSelected () : print ("At %s of %d") % (select.curselection(), len(phonelist)) return int(select.curselection()[0]) def addEntry () : phonelist.append ([nameVar.get(), phoneVar.get()]) setSelect () def updateEntry() : pho...
import { fetchCurrentUserData } from "@/redux/currentUserData"; import React, { useEffect } from "react"; import { useDispatch, useSelector } from "react-redux"; const Profile = () => { const dispatch = useDispatch(); const userData = useSelector((state) => state.currentUserData.data); const status = useSelector...
"use client"; import { Label } from "@/components/ui/label"; import { Input } from "@/components/ui/input"; import { Button } from "@/components/ui/button"; import Link from "next/link"; import { useForm } from "react-hook-form"; import { FcGoogle } from "react-icons/fc"; import toast from "react-hot-toast"; import { u...
import React, { useState, useEffect } from "react"; import { useNavigate } from "react-router-dom"; import "./CSS/login.css"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { faFacebookF, faGoogle, faTwitter, } from "@fortawesome/free-brands-svg-icons"; import Cookies from "js-cookie"; i...
package uconcurrent.producer_consumer; import java.util.concurrent.locks.Condition; import java.util.concurrent.locks.Lock; import java.util.concurrent.locks.ReentrantLock; /** * @author Kelly * @create 2020-04-26 14:32 * * 使用 lock 的生产者消费者 Demo */ public class ProducerConsumerDemo { public static void main(S...
import { useState, useEffect } from 'react'; import Box from '@mui/material/Box'; import Alert from '@mui/material/Alert'; import IconButton from '@mui/material/IconButton'; import Collapse from '@mui/material/Collapse'; import CloseIcon from '@mui/icons-material/Close'; export default function TransitionAlerts({name...