text
stringlengths
184
4.48M
"use strict"; /* console.log(document.querySelector(".message").textContent); document.querySelector('.message').textContent = 'Correct Number!'; console.log(document.querySelector(".message").textContent); document.querySelector('.number').textContent = 13; document.querySelector('.score').textContent = 10; document...
/*! \page Skin_Timers Skin Timers \brief **Programatic time-based resources for Skins** \tableofcontents -------------------------------------------------------------------------------- \section Skin_Timers_sect1 Description Skin timers are skin resources that are dependent on time and can be fully controlled from ...
{# started.twig #} {% extends "layout.twig" %} {% block subHeader %} <h2 class="sub-header-tit">GET STARTED</h2> <div class="sub-header-content"> <p class="sub-header-txt">XEIcon 사용방법은 매우 간단합니다. 자신의 웹사이트에 단 두 줄만 추가하는 것으로 바로 사용할 수 있습니다.<br>XEIcon과 함께라면 더욱 멋지고 빠르게 프로젝트를 완성할 수 있습니다.</p> </div> <img src="assets/img/im...
/*{ "type": "action", "targets": ["omnifocus"], "author": "Niels van Hoorn", "identifier": "nl.zekerwaar.omnifocus.paklijst", "version": "1.0", "description": "Creates a project of single-actions used as a packing list.", "label": "Paklijst", "paletteLabel": "Packing List" }*/ (() => { var action = new PlugI...
# Step 5: Add Search This is fine for a small number of tracks, but the original iPod could store one thousand songs! Just listing them out wouldn't be manageable. We're going to add search, and in the process we'll touch on applying functional programming in python. ## Objectives Learn to: * Use Python Lambdas. #...
import { Map, Set } from 'immutable'; import { State } from '../types/store-types'; import { NONE_TAG_ID, NONE_TAG } from '../util/tag-util'; /** * The initial state of the app. * This state is dummy. It needs to be patched by the data from the backend ASAP. * @type {State} */ export const initialState: State = { ...
import PropTypes from 'prop-types'; import { useNavigate } from 'react-router-dom'; import Button from '../Button/Button'; import Checkbox from '../Checkbox/Checkbox'; function TableRow(props) { const { cols } = props; const navigate = useNavigate(); const status = cols.filter((col) => col.status && col.stat...
import React from 'react'; import LoadingIcon from './LoadingIcon'; import CreditCardIcon from '@material-ui/icons/CreditCard'; import DescriptionIcon from '@material-ui/icons/Description'; import AccountCircleIcon from '@material-ui/icons/AccountCircle'; import ExitToAppIcon from '@material-ui/icons/ExitToApp'; impo...
<mat-vertical-stepper [linear]="isLinear" #stepper> <mat-step [stepControl]="firstFormGroup"> <ng-template matStepLabel>Personal Info</ng-template> <form [formGroup]="firstFormGroup"> <mat-form-field> <mat-label>Name</mat-label> <input matInput placeholder...
<?php /* Plugin Name: XML Sitemaps Plugin URI: http://www.semiologic.com/software/xml-sitemaps/ Description: Automatically generates XML Sitemaps for your site and notifies search engines when they're updated. Version: 2.4 Author: Denis de Bernardy & Mike Koepke Author URI: http://www.getsemiologic.com Text Domain: xml...
import {useState} from 'react'; import './App.css'; import {formatDate} from './lib/utils'; function App() { // State const [msg, setMsg] = useState(null); const [runTrends, setRunTrends] = useState(null); // Methods const fetchFromDate = async date => { let isoDate = `${new Date(date).toI...
# Nicholas Ducharme-Barth # 04/14/2022 # Combine research_fishing_dt and camera_dt data sets into a single analysis ready data set # Copyright (c) 2022 Nicholas Ducharme-Barth # You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>. #___...
// // Copyright 2021 The Project Oak 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 o...
// As seen in the previous exercise, the time of day can be represented as the number of minutes before or after midnight. If the number of minutes is positive, the time is after midnight. If the number of minutes is negative, the time is before midnight. // Write two functions that each take a time of day in 24 hour ...
import {Board} from './Board'; import {Turn} from './Turn'; import {Coordinate} from './Coordinate'; import {Color, colorGetInitialColor} from './Color'; import {Piece} from './Piece'; import {Pawn} from './Pawn'; import {Error} from './Error'; import {Draught} from './Draught'; export class Game { private board: B...
--- title: 'ECS integration troubleshooting: No data appears' type: troubleshooting tags: - Integrations - Elastic Container Service integration - Troubleshooting metaDescription: Troubleshooting tips for when New Relic's on-host Amazon ECS integration is not reporting data. redirects: - /docs/ecs-integration-n...
--- createdAt: 2023-10-03T12:15:05.061Z title: Document Field slug: fields/document --- This field is used to store markdown content. When used in a collection schema, Rescribe will render a markdown editor. The editor supports markdown shortcuts and some rich-text shortcuts. You can create a document field in your c...
import logging from colorama import Fore, Style class ColoredFormatter(logging.Formatter): COLORS = { 'DEBUG': Fore.CYAN, 'INFO': Fore.GREEN, 'WARNING': Fore.YELLOW, 'ERROR': Fore.RED, 'CRITICAL': Fore.RED + Style.BRIGHT, } def format(self, record): timest...
<?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet version="2.0" xml:lang="en" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:dml="http://purl.oclc.org/NET/dml/1.0/" xmlns:pml="http://purl.oclc.org/NET/pml/1.0/" xml...
package com.example.weichen.bookstore2.asyncTasd; /** * Created by Administrator on 2017/04/02. */ import android.content.Context; import android.content.Intent; import android.os.AsyncTask; import android.view.View; import android.widget.AdapterView; import android.widget.ListView; import com.example.weichen.book...
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%> <!DOCTYPE html> <html> <head> <link href="webjars/bootstrap/5.1.3/css/bootstrap.min.css" rel="stylesheet"> <link href="webjars/bootstrap-datepicke...
--- title: Konversi VSS ke PDF linktitle: Konversi VSS ke PDF second_title: GroupDocs.Konversi .NET API description: Konversikan file VSS ke PDF dengan mudah menggunakan GroupDocs.Conversion untuk .NET. Konversi batch, opsi yang dapat disesuaikan, dan integrasi yang lancar. type: docs weight: 11 url: /id/net/converting...
import { useEffect, useState } from "react"; //member APIs import { getBanners, getRecentBooks, addToBookBag, reserveBook, } from "../../Utils/MemberApis"; import Banner from "../../Components/Banner/Banner"; import BookCard from "../../Components/Cards/BookCard"; import RecentBooksCard from "../../Components/...
// Copyright 2021 Optiver Asia Pacific Pty. Ltd. // // This file is part of Ready Trader Go. // // Ready Trader Go is free software: you can redistribute it and/or // modify it under the terms of the GNU Affero General Public License // as published by the Free Software Foundation, either version 3 of // ...
import { useEffect, memo, useMemo } from 'react'; import { useSelector, useDispatch } from 'react-redux'; import ItemContact from './ItemContact'; import { contactsActions } from '../../redux/contacts'; import { contactsSelectors } from '../../redux/contacts'; import s from './ContactList.module.css'; const ContactLis...
const { ActionRowBuilder, ButtonBuilder, ButtonStyle } = require('discord.js'); const fs = require('fs'); async function send_giveaway(client, giveaway) { // # 好欸,有抽獎欸 // ## 誰辦的? 👉 感謝拔拔 <@971730686685880322> // ## 抽幾個人? 👉 抽 100 個人 // ## 什麼時候開獎? 👉 <t:1716182040:F> 準時開獎! // ## 備註 ...
/* cmplx.c * * Complex number arithmetic * * * * SYNOPSIS: * * typedef struct { * double r; real part * double i; imaginary part * }cmplx; * * cmplx *a, *b, *c; * * cadd( a, b, c ); c = b + a * csub( a, b, c ); c = b - a * cmul( a, b, c ); c = b * a * cdiv( a, b...
<!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 to CSS File --> <link rel="stylesheet" href="palindrom...
package appointments; import java.time.LocalDate; import java.time.LocalDateTime; import java.time.LocalTime; import java.time.format.DateTimeFormatter; import java.util.ArrayList; import java.util.List; import java.util.Locale; import java.util.stream.Collectors; public class DocCalendar { private List<PatientAppo...
--- title: What's New in the Mobile, Multiplayer, & More update (version 1.18.45) date: 2022-02-24T18:46:02Z updated: 2024-05-22T23:15:37Z categories: Product link: https://educommunity.minecraft.net/hc/en-us/articles/4484636118420-What-s-New-in-the-Mobile-Multiplayer-More-update-version-1-18-45 hash: h_01HYH9BZF73ZC...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Illuminate\Support\Facades\Validator; //panggil validator untuk memvalidasi inputan use App\Models\Product; //panggil model Product.php class ProductController extends Controller { // menambahkan data ke database public function store (Re...
import { LockOutlined, Visibility, VisibilityOff } from "@mui/icons-material"; import { LoadingButton } from "@mui/lab"; import { Container, Paper, Avatar, Typography, Box, TextField, Grid, InputAdornment, IconButton } from "@mui/material"; import { Link, useLocation, useNavigate } from "react-router-dom"; import { Fie...
# 快速入门 为了方便开发者入门,我们部署了 [web3infra.dev](http://web3infra.dev) 方便开发者永存数据。快速入门将介绍如何使用 arseeding-js 将数据存通过 [web3infra.dev](http://web3infra.dev) 存储到 Arweave 网络。 # 准备 为了快速完成数据上传,你需要提前准备: 1. node.js 开发环境 2. 拥有一个 MetaMask 钱包。 3. 该钱包拥有在 everPay 上任意一种资产。 如果还没做好准备,请查看:[everPay 充值指南](../other/2.getAR.md#swapdeposit) # 创建项目 ...
/* eslint-disable no-unused-vars */ import { useFormik } from "formik"; import { loginSchema } from "../../schemas"; import { Request } from "../../requests/request"; import { ToastContainer, toast } from "react-toastify"; import { useNavigate } from "react-router-dom"; import { SignInChoose, LoginWrapper } from "./L...
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <script src="https://unpkg.com/axios/dist/axios.min.js"></script> <script src="https://cdn.bootcss.com/sql.js/0.5.0/js/sql-optimized.js"></script> <script type="text/javascript" src="sqlite.js"></script> </head> <body> <div id=""> ...
import { createSlice, PayloadAction } from "@reduxjs/toolkit"; type sort = { name: string; sortProperty: string; }; interface DataState { sort: sort; choiceItem: string; searchValue: string; } const initialState: DataState = { sort: { name: "популярности", sortProperty: "rating", }, choiceItem: "phones",...
import React, { useEffect, useState } from "react"; import { useNavigate } from "react-router-dom"; import Navbar from "./Navbar"; import InputMask from "react-input-mask"; import Patients from "./Patients"; const Home = () => { const navigate = useNavigate(); const [searchText, setSearchText] = useState(''); co...
import * as cfn from '@aws-cdk/aws-cloudformation'; import { NestedStackProps } from '@aws-cdk/aws-cloudformation'; import { Construct, Duration } from '@aws-cdk/core'; import * as sqs from '@aws-cdk/aws-sqs'; import * as lambda from '@aws-cdk/aws-lambda'; import * as kms from '@aws-cdk/aws-kms'; import * as cdk from '...
/* eslint-disable no-nested-ternary */ /* eslint-disable prettier/prettier */ /* eslint-disable jsx-a11y/click-events-have-key-events */ /* eslint-disable jsx-a11y/no-static-element-interactions */ import React from 'react'; import { useSelector, useDispatch } from 'react-redux'; import { Box } from '@mui/material'; im...
import 'package:flutter/material.dart'; import 'package:url_launcher/url_launcher.dart'; void main() { runApp(const MyApp()); } class MyApp extends StatelessWidget { const MyApp({Key? key}) : super(key: key); @override Widget build(BuildContext context) { return MaterialApp( title: 'Flutter Demo', ...
<?php declare(strict_types = 1); namespace MyApp\Entity; class Type { // on crée un objet Type // on crée les attributs (variables) de l'objet : private ?int $typeID = null; // on associe pas de valeur car la table incrémentera l'id par elle-même private string $label; ...
/* * Copyright (C) 2022 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
import { Injectable } from '@angular/core'; @Injectable({ providedIn: 'root' }) export class StringResourcesService { data = [ { "id": "copyright", "val": { "en": "Warning! Place a copyright string for the image at the end of your recipe description. Recepies without theese strings will no...
import React, { useEffect } from "react"; import Head from "next/head"; import './globalStyles.css'; import { CssBaseline } from "@material-ui/core"; import CustomTheme from "../src/theme/CustomTheme"; export default function MyApp(props) { const { Component, pageProps } = props; useEffect(() => { // Remove t...
import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { LoginComponent } from './login/login.component'; const routes: Routes = [ { path: '', component: LoginComponent }, { path: 'app-user-registration', loadChildren: () =>...
package com.bazarooma.flatbus.unittests; import org.junit.Before; import org.junit.Test; import com.bazarooma.flatbus.server.ServerEventBus; import com.bazarooma.flatbus.server.ServerEventBusFactory; import com.bazarooma.flatbus.test.OurEventBus; import com.bazarooma.flatbus.test.mathservice.MathService; import stat...
import { SubmitHandler, useForm } from "react-hook-form"; import { StyledButton } from "../../../styles/button"; import { StyledForm } from "../../../styles/form"; import Input from "../Input"; import { useContext } from "react"; import { UserContext } from "../../../providers/UserContext"; import { zodResolver } from ...
<template> <div> <div class="container" :style='{"minHeight":"100vh","width":"100%","alignItems":"flex-start","background":"url(http://codegen.caihongy.cn/20230128/effb535f5a6142daa256f40fb8542933.jpg) no-repeat center bottom / 100% 100%,#fff","justifyContent":"flex-start","display":"flex"}'> <el-form ref="loginForm...
import java.util.Scanner; public class Question { private final String prompt; private final String[] answers; private final int correctAnswer; private static final int ANS_QTY = 4; private static final char[] IDENTIFIERS = {'A', 'B', 'C', 'D'}; public Question(String prompt, int cAnswer,...
<template> <div> <form class="edit-poll" @submit="editPoll"> <h1>Edit Poll</h1> <input type="text" placeholder="Question" v-model="question" class="question-form" required /> <br /> <VueDatePicker v-model="expiration_date" class="expiration-date-form"></VueDatePicker> <br /> <d...
// Copyright(c) 2006 to 2020 ZettaScale Technology and others // // This program and the accompanying materials are made available under the // terms of the Eclipse Public License v. 2.0 which is available at // http://www.eclipse.org/legal/epl-2.0, or the Eclipse Distribution License // v. 1.0 which is available at //...
package main import ( "fmt" "time" ) /// Arrays, slices, maps and loops /// https://www.youtube.com/watch?v=8uiZC0l4Ajw func main() { /// Arrays var intArr [3]int32 // varName [Length] datatype fmt.Println(intArr[0]) fmt.Println(intArr[1:3]) /// Changing array values fmt.Println(intArr[1]) intArr[1] = 123...
import React, { useState } from "react"; import { Dialog, DialogTitle, DialogContent, TextField, Button, FormControl, InputLabel, Select, MenuItem, Typography, Box, } from "@mui/material"; export default function ReminderCreation({ open, onClose, onSaveReminder, selectedStartTime, }) { ...
<?php namespace App\Http\Middleware; use Closure; use Exception; use Illuminate\Http\Request; use Dcat\Admin\Support\Helper; use Illuminate\Support\Facades\Log; use App\Models\AffiliateSystem\ReferralCode; class StoreReferralCode { /** * Handle an incoming request. * * @param \Illuminate\Http\Req...
<?php namespace App\Http\Controllers\API\V1; use App\Repositories\ConclusionContractRepository; use App\Http\Controllers\Controller; use Illuminate\Http\Request; use App\Traits\ResponseTrait; use Illuminate\Http\JsonResponse; class ConclusionContractController extends Controller { use ResponseTrait; protec...
import React, { useState } from "react"; import "../resources/layout.css"; import { useNavigate } from "react-router-dom"; import { useSelector } from "react-redux"; const DefaultLayout = ({ children }) => { const [collapse, setCollapse] = useState(false); const { user } = useSelector((state) => state.users); co...
<?php /** * @file * Create table for typical_entity_example_2. */ /** * Implements hook_schema(). */ function typical_entity_example_2_schema() { $schema = array(); $schema['typical_entity_example_2'] = array( 'description' => 'The base table for typical_entity_example_2.', 'fields' => array( '...
package org.d3if2074.kontak.network import android.app.PendingIntent import android.content.Context import android.content.Intent import androidx.core.app.NotificationCompat import androidx.core.app.NotificationManagerCompat import androidx.work.Worker import androidx.work.WorkerParameters import org.d3if2074.kontak.M...
from hashlib import sha256 from loguru import logger import time class Block: """初期化 diff: 難易度の調整\n previous_hash: 前のブロックのハッシュ値\n transaction_data: 登録したい取引データの辞書\n """ def __init__(self, diff: int, previous_hash: str, transaction_data: dict) -> None: self.diff: int = int(diff) ...
= mibl - tools for meta-programming OCaml builds Scheme tools for herding OCaml projects; in particular analyzing and editing link:https://dune.readthedocs.io/en/latest/[Dune], link:https://opam.ocaml.org/doc/Manual.html[OPAM], and link:http://projects.camlcity.org/projects/dl/findlib-1.9.4/doc/ref-html/r759.html[META...
const { Sequelize, DataTypes, Model } = require('sequelize'); import sequelize from '../connection/db'; interface UserAttributes { firstName: string; lastName: string; fullName: string; dob: Date, age: number; gender: string; email: string; pno: number; password: string; confirm...
import React from "react"; import { Provider } from "react-redux"; import { BrowserRouter } from "react-router-dom"; import { AppShell, ColorScheme, ColorSchemeProvider, MantineProvider, } from "@mantine/core"; import { useLocalStorage } from "@mantine/hooks"; import { NotificationsProvider } from "@mantine/n...
//! //! Low-level Block-oriented I/O functions //! use super::ephemeral_file::EphemeralFile; use super::storage_layer::delta_layer::{Adapter, DeltaLayerInner}; use crate::context::RequestContext; use crate::page_cache::{self, PageReadGuard, ReadBufResult, PAGE_SZ}; use crate::virtual_file::VirtualFile; use bytes::Byte...
--- layout: post title: Aggregates in Vue Grid component | Syncfusion description: Learn here all about Aggregates in Syncfusion Vue Grid component of Syncfusion Essential JS 2 and more. control: Aggregates platform: ej2-vue documentation: ug domainurl: ##DomainURL## --- # Aggregates in Vue Grid component Aggregate ...
class External::LessonsController < ExternalController before_action :set_event, only: %i[ index show ] before_action :get_ticket, only: %i[ form ] before_action :get_lesson, only: [ :show ] before_action :get_video_embedder, only: %i[ index show ] def index @lessons = @event.lessons @lessons_checker ...
import { PIECES } from "../constants"; import { Piece, PieceKeys } from "../types/piece"; export const setRandomPiece = (excludeKey: PieceKeys = "o") => { // Step 1: Get keys as an array const keysArray: PieceKeys[] = Object.keys(PIECES).filter( (key) => key !== excludeKey ) as PieceKeys[]; // Step 2: Gen...
interface DBUserProps { image?: string, githubUsername: string, name: string, summary?: string, githubLink?: string, linkeldn?: string } interface ThemeProps { handleTheme: () => void, theme: SetThemeProps setTheme: React.Dispatch<React.SetStateAction<SetThemeProps>> } interface SetThemeProps { checked: boo...
import { Body, ConsoleLogger, Controller, Delete, Get, HttpStatus, Param, Post, Put, Res, UploadedFile, UseInterceptors } from '@nestjs/common'; import { ApplicationService } from './application.service'; import { Application } from '../schemas/application.schema'; import { FileInterceptor } from '@nestjs/platform-expr...
package com.a6raywa1cher.rescheduletsuspring.components.importers.tsutimetable; import com.a6raywa1cher.rescheduletsuspring.components.importers.AbstractExternalModelsImporter; import com.a6raywa1cher.rescheduletsuspring.components.importers.ImportException; import com.a6raywa1cher.rescheduletsuspring.components.impor...
/* Copyright (©) 2003-2023 Teus Benschop. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the h...
import React from 'react' import { Container } from './styles' import { motion } from 'framer-motion' const Results = ({ query, results }: Result) => { return ( <motion.div initial="collapsed" animate="open" exit="collapsed" variants={{ open: { opacity: 1, height: "auto" }, ...
use websocket::ClientBuilder; use websocket::OwnedMessage; use clap::{ArgAction, Parser}; // •✖ #[derive(Parser)] struct Cli { #[arg( short = 'p', long = "port", default_value = "8080", help = "Server port" )] port: u16, #[arg(short = 'D', long = "debug", help = "Enabl...
--- title: no_registry 匯入屬性 ms.date: 08/29/2019 f1_keywords: - no_registry helpviewer_keywords: - no_registry attribute ms.assetid: d30de4e2-551c-428c-98fd-951330d578d3 ms.openlocfilehash: 7c81cc2f570cb9ac4e977dac6d55cb69e491d3b2 ms.sourcegitcommit: 6e1c1822e7bcf3d2ef23eb8fac6465f88743facf ms.translationtype: MT ms.con...
import { jwtDecode } from "jwt-decode"; class AuthService { async login(email, password) { try { const response = await fetch("http://localhost:5267/api/user/login", { method: "POST", headers: { "Content-Type": "application/json", }, body: JSON.stringify({ email, p...
class ThresholdsController < ApplicationController before_action :set_threshold, only: [:show, :edit, :update, :destroy] # GET /thresholds # GET /thresholds.json def index @thresholds = Threshold.all end # GET /thresholds/1 # GET /thresholds/1.json def show end # GET /thresholds/new def new...
// 实现 add(1)(2)(3) => 6 function add(x) { return function (y) { if (typeof y === "undefined") { return x; } else { return add(x + y); } }; } function add(x) { // let args = [].slice.call(arguments) // console.log(args) return function (y) { if (typeof y === "undefined") { r...
import type { Metadata } from "next"; import { Poppins } from "next/font/google"; import "./globals.css"; import Navbar from "./components/nav/Navbar"; import Footer from "./components/footer/Footer"; import CartProvider from "@/providers/CartProvider"; import { Toaster } from "react-hot-toast"; import { getCurrentUser...
# 1.1.1 Disable unused filesystems A number of uncommon filesystem types are supported under Linux. Removing support for unneeded filesystem types reduces the local attack surface of the system. If a filesystem type is not needed it should be disabled. Native Linux file systems are designed to ensure that built-in secu...
--- title: '项目总体' --- ### 开发平台首页 - 开发平台首页,显示前十个帖子 - 生成实体类对应discuss_post表,并将其对应dao层完成 - 分页查询,若需查某一个id的评论,则userId动态加入sql - 查询所有评论数,若需查某一个id的所有评论数,则加入动态sql - 开发分页组件,分页显示所有帖子 ### 开发平台登录模块 #### 发送邮件 - 邮箱设置 - 启用客户端SMTP服务 - 功能开发 - 导入jar包 - 邮箱参数配置 - 使用JavaMailSender发送邮件 - 模板引擎 - 使用 Thymeleaf 发送HTML邮件 #...
import { Component, Host, Prop, h, Element , State } from '@stencil/core'; import { Breakpoints } from '../../utils/breakpoints'; import { mediaQueryListenerManager } from '../../utils/media-query-listener-manager' import { StyleManager } from '../../utils/style-manager'; import { StyleDefinition } from '../../utils/s...
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-spring4-4.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://thymeleaf.or"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Listagem de sócios</title> <lin...
package com.example.calcease; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.TextView; import androidx.appcompat.app.AppCompatActivity; public class MainActivity extends AppCompatActivity { private TextView display; private String currentInput = ""; ...
#!/usr/bin/env Rscript library("ggplot2") solicitudes <- c(30,30,30,50,50,50,100,100,100) concurrencia <- c("25%","50%","75%","25%","50%","75%","25%","50%","75%") tiempo <- c(8.823,7.552,6.827,10.215,12.506,13.959,26.966,22.850,24.473) solicitudes.factor <- factor(solicitudes) concurrencia.factor <- factor(concurrenc...
@extends('layouts.app') @section('content') <div class="container py-5"> <div class="row justify-content-center"> <div class="col-md-8 col-lg-6"> <div class="py-2 border-bottom border-secondary mb-4"> <h2 class="fw-bold text-center fs-1">Iniciar sesión</h2> </div> ...
// Copyright 2022 ByteDance and/or its affiliates. // // 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...
/**************************************************************************** ** ** SPDX-License-Identifier: BSD-2-Clause-Patent ** ** SPDX-FileCopyrightText: Copyright (c) 2023 SoftAtHome ** ** Redistribution and use in source and binary forms, with or without modification, ** are permitted provided that the following...
/// <reference path="../../../global.d.ts" /> /** * The window in the game. * * @class * @extends PIXI.Container */ export default class Window extends PIXI.Container { _isWindow: boolean; _windowskin: unknown; _width: number; _height: number; _cursorRect: typeof Rectangle; _openness: unkno...
# # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # from datetime import datetime import pytest from source_marketo.utils import clean_string, format_value, to_datetime_str test_data = [ (1, {"type": "integer"}, int), ("string", {"type": "string"}, str), (True, {"type": ["boolean", "null"]}, bo...
# Frequently Asked Questions This document will focus on the technology behind the Nebulas platform. For broader questions, please view the [Reddit FAQ](https://www.reddit.com/r/nebulas/comments/7nt5y0/frequently_asked_questionsfaq/). For a better understanding of the Nebulas platform it's highly recommended to read ...
<template> <Page> <ActionBar title="Detail" class="action-bar" /> <ScrollView orientation="vertical"> <StackLayout orientation="vertical" margin="10"> <Image :src="selectedApartment.Image_URL" height="300" stretch="aspectFill" /> <Label class="h1" :text="selectedApartment.Property_Title"...
/**Decorators wrap another function in another function */ /**Support the principle of DRY code */ let sum = (...args) => { return [...args].reduce((acc, num) => acc + num) } /**Let is recommended for use with decorator functions */ const callCounter = (fn) => { let count = 0; return (...args) => { ...
<template> <view class="page-content"> <uv-navbar leftText="" :placeholder="true" title="监控项目详情" autoBack> <template v-slot:right> <uv-icon name="edit-pen" size="20" @click="edit"></uv-icon> </template> </uv-navbar> <uv-form labelPosition="left" labelWidth="8...
import React, { useState } from "react"; import { Input } from "./Input"; import { ObjectiveInput } from "./ObjectiveInput"; import { Select } from "./Select"; export const Form = ({ formData, onChangeInput, onSubmittttttt, reset }) => { return ( <form onSubmit={onSubmittttttt}> <Input label="Name" name="n...
//non binary solution var missingNumber = function(nums) { let length = nums.length; nums = new Set(nums) while (length > - 1) { if (nums.has(length)) length--; else break; } return length; }; //algorithmic way n * (n + 1) / 2 where //o(n)time -- o(1) space var missingNumber = function(nums) { let...
Фундаментальная теория тестирования В тестировании нет четких определений, как в физике, математике, которые при перефразировании становятся абсолютно неверными. Поэтому важно понимать процессы и подходы. В данной статье разберем основные определения теории тестирования. Перейдем к основным понятиям Тестирование прогр...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>David Ramalho Portfolio</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/7.0.0/normalize.min.css" /> ...
"use client"; import React, { useState } from "react"; import FilterDropDown from "../FilterDropDown"; import Title from "../Title"; import AssetCard from "./AssetCard"; import { GetNftsForOwnerOptions } from "alchemy-sdk"; import { useAccount } from "wagmi"; import { useQuery } from "@tanstack/react-query"; import { u...
import { Box, Container, Paper, Tab, Tabs, styled } from "@mui/material"; import { useState } from "react"; import Stake from "../components/stake"; import UnStake from "../components/unstake"; interface TabPanelProps { children?: React.ReactNode; index: number; value: number; } function a11yProps(index: number...
import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; import { AuthGuard } from './guards/auth.guard'; import { HomeComponent } from './home/home.component'; import { BuscaComponent } from './busca/busca.component'; import { ArtistaComponent } from './artista/artista.compon...
// // TestAppearView.swift // Mamaste // // Created by Jeremy Raymond on 15/11/23. // import SwiftUI struct TestAppearView: View { @State var selected: Color = .red let colors: [Color] = [.red, .blue, .green] var body: some View { VStack { Picker("Color Picker", selection: $sel...