text
stringlengths
184
4.48M
import { Avatar, Badge, Box, Button, Container, FormControl, FormLabel, Heading, IconButton, InputGroup, List, ListItem, Modal, ModalBody, ModalCloseButton, ModalContent, ModalFooter, ModalHeader, ModalOverlay, Stack, StackDivider, Text, Textarea, useDisclosure, VStack } from "@chakra-ui/react"; import { Form, Formik }...
<#include "../../../_layout/_layout2.0.html"><#t> <@header/> <div id="form-save" style="margin: 15px"> <form name="custom-form" class="layui-form layui-form-pane" id="custom-form"> <blockquote class="layui-elem-quote">客户信息:</blockquote> <div class="layui-form-item"> <label class="layui-form-label"><span>*</span...
package gql import ( "errors" "github.com/graphql-go/graphql" "github.com/kyeeego/flowershop/domain" "github.com/kyeeego/flowershop/service" ) type Customer struct{ service *service.Service } func (c *Customer) initServices(serv *service.Service) { c.service = serv } func (c Customer) ResolveOne(p graphql.Reso...
// Use only core 1 for demo purposes #if CONFIG_FREERTOS_UNICORE static const BaseType_t app_cpu = 0; #else static const BaseType_t app_cpu = 1; #endif // Globals static int shared_var = 0; static TaskHandle_t task_1 = NULL; static TaskHandle_t task_2 = NULL; //********************************************************...
<?php namespace app\entity; use Yii; /** * This is the model class for table "basket". * * @property int $id * @property int $user_id * @property int|null $price * @property string|null $timestamp * * @property BasketToTours[] $basketToTours * @property Users $user */ class Basket extends \yii\db\ActiveRec...
# coding: utf-8 # Copyright (C) 2021, [Breezedeus](https://github.com/breezedeus). # 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 f...
package changes_tui import ( "github.com/charmbracelet/bubbles/help" bubbleKey "github.com/charmbracelet/bubbles/key" "github.com/charmbracelet/bubbles/spinner" "github.com/charmbracelet/bubbles/viewport" tea "github.com/charmbracelet/bubbletea" "github.com/charmbracelet/lipgloss" "github.com/plandex/plandex/sh...
import React from "react"; import { useTranslatedConstants } from "../constants"; import RadioGroup from "./RadioGroup"; export const boolToYesNoUnknown = ( value: boolean | null | undefined ): YesNoUnknown | undefined => { if (value) { return "YES"; } if (value === false) { return "NO"; } if (va...
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.13; import "forge-std/console.sol"; import "forge-std/Test.sol"; import "erc721a/contracts/ERC721A.sol"; import "../../contracts/AllowList.sol"; contract AllowListTest is Test { AllowListMock public mock; address private signer = 0x74049685c0227b5...
import React, { useState, useReducer, useContext } from "react"; type Todo = { text: string; done: boolean; }; const initialState = [ { text: "learn html", done: true }, { text: "learn css", done: true }, { text: "learn js", done: false }, { text: "learn react", done: false } ]; // same partern as redux ...
<h1>Course Outline</h1> <p><b>Pre-work:</b> Python</p> <b>Unit 1:</b> Django <ul> <li>Install and setup Django</li> <li>Views (methods)</li> <li>Template</li> <li>Request and response objects</li> <li>Cookies Handling</li> <li>Forms (simple)</li> </ul> <b>Unit 2:</b> Basic front-end <ul> <li>Html</li...
import React, { useState, useEffect, ReactNode } from "react"; interface FadeInWrapperProps { children: ReactNode; duration?: number; delay?: number; } const FadeInWrapper: React.FC<FadeInWrapperProps> = ({ children, duration = 400, delay = 50, }) => { const [isVisible, setIsVisible] = useState(false); ...
package Day3; public class Test1_1_2 { // 강사님이 보내주신 코드 public static void main(String[] args) { // 객체 사전적인 정의로 실제 존재하는 것을 말한다 // 클래스 템플릿 // 다형성 // 상속 // 캡슐화 // 객체지향 장점 => 코드 재사용성이 좋다 (모듈성), 유지보수 용이 // 단점 =>복잡해진다 // Person newFace = new Person(); // ...
import axios from "axios"; import { useMutation, useQueryClient } from "@tanstack/react-query"; import { useNotificationDispatch } from "../NotificationContext"; const AnecdoteForm = () => { const notificationDispatch = useNotificationDispatch(); const queryClient = useQueryClient(); const { mutate: anecdoteMu...
# Meals App Architecture and Documentation ## Introduction This document provides an overview of the app's architecture, user stories, specifications, and file/folder structure based on the provided code structure. The app is designed to help users explore and manage meal categories, view meal details, and apply filt...
# libraries & options #### library(tidyverse) # A collection of R packages for data science library(tidytext) # Text mining using tidy data principles library(legiscanrr) # Interface with the LegiScan API for accessing legislative data / devtools::install_github("fanghuiz/legiscanrr") library(pscl) # Political...
import { ref, onMounted, reactive, mergeProps, useSSRContext } from "vue"; import { ssrRenderAttrs, ssrInterpolate, ssrRenderAttr, ssrRenderList } from "vue/server-renderer"; import { useI18n } from "vue-i18n"; import { useRouter } from "vue-router"; const _sfc_main = { __name: "FilterArticle", __ssrInlineRender: t...
import matplotlib.pyplot as plt from matplotlib import rcParams # 设置全局字体为Times New Roman rcParams['font.family'] = 'Times New Roman' rcParams['font.size'] = 14 # Data params = [9814, 96542, 264704, 420192, 504000] models = ['LITE', 'MMM4TSC', 'FCN', 'Inception', 'ResNet'] accuracy = [0.8304, 0.8494, 0.7883, 0.8411, 0....
DOFAndBloomGatherPixelShader.usf: Pixel shader for gathering the combined depth of field and bloom samples for blurring. Copyright 1998-2013 Epic Games, Inc. All Rights Reserved. // also includes Common.usf #include "PostProcessCommon.usf" // for CalcUnfocusedPercent() #include "DepthOfFieldCommon.usf" /** [x] Cu...
using Application; using Infrastructure; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using Microsoft.OpenApi.Models; using FluentValidation.AspNetCore; using Applicat...
#include <iostream> using namespace std; // Forward declaration class complex; class calculator { public: int add(int a, int b) { return a + b; } int sumRealComplex(complex o1, complex o2); int sumComComplex(complex, complex); }; class complex { int a, b; public: void setNumber(i...
# coding: utf-8 # # Copyright © 2013-2015 Ejwa Software. All rights reserved. # # This file is part of gitinspector. # # gitinspector 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 Lic...
/** * SPDX-FileCopyrightText: (c) 2000 Liferay, Inc. https://liferay.com * SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06 */ package com.liferay.portal.kernel.model.adapter; import com.liferay.portal.kernel.model.adapter.builder.ModelAdapterBuilder; import com.liferay.porta...
const mongoose = require('mongoose'); function isRegExValid(v) { return /^https?:\/\/[www]?(.[\w,-]{1,}.?){1,}/.test(v); } const avatarSchemaValidator = [isRegExValid, 'Ссылка на аватар невалидна']; const userSchema = new mongoose.Schema({ name: { type: String, minlength: 2, maxlength: 30, default...
const fs = require('fs'); const markdownIt = require('markdown-it'); const hljs = require('highlight.js'); const PDFDocument = require('pdfkit'); async function convertMarkdownToHtml(markdownText) { const md = markdownIt({ highlight: function (str, lang) { if (lang && hljs.getLanguage(lang)) { ...
<?php namespace App\Controller; use App\Projection\NotificationProjection; use App\Projection\NotificationResponseProjection; use Exception; use App\Service\NotificationService; use JMS\Serializer\SerializerInterface; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Sym...
import * as React from "react"; import { useEffect, useState } from "react"; import { styled, alpha } from "@mui/material/styles"; import AppBar from "@mui/material/AppBar"; import Box from "@mui/material/Box"; import Toolbar from "@mui/material/Toolbar"; import Typography from "@mui/material/Typography"; import InputB...
import { Button, Dialog, DialogActions, DialogContent, DialogTitle, MenuItem, Step, StepContent, StepLabel, Stepper, TextField, Typography, } from '@mui/material'; import { useState } from 'react'; import { BACKEND_URL } from 'url'; export default function RemoteCreateDialog({ open, onClose }) ...
<html> <head> <title> Mole Cave Testing </title> <style> table{ width: 50%; height: 50%; text-align: center; } table, tr, td{ border: 1px solid black; border-collapse: collapse; /* font-weight: "bold"; */ } </style> </head> <body> <label>Start ...</label> <input type="button" id...
"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { t...
# NLW Expert - Trilha Python ## Sobre o repositório Este repositório é destinado ao armazenamento de uma aplicação Back-End construída em Python durante o evento nlw expert da RocketSeat. O projeto consiste em uma aplicação capaz de gerar código de barras com o python-barcode. Este evento foi muito important...
import 'package:flutter/material.dart'; import 'package:flutter1/sharedpreference_login/sp_home.dart'; import 'package:shared_preferences/shared_preferences.dart'; class MyLoginPage extends StatefulWidget { const MyLoginPage({super.key}); @override State<MyLoginPage> createState() => _MyLoginPageState(); } cla...
/* NAME: TMachine.cpp DESCRIPTION: NMachine tests. COPYRIGHT: Copyright (c) 2006-2021, refNum Software All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source ...
from datetime import date from typing import Optional from pydantic import BaseModel, constr, ValidationError, validator, field_validator, Field class User(BaseModel): last_name: str = Field(min_length=3, default=None, max_length=40) first_name: str = Field(min_length=3, default=None, max_length=40) midd...
/* * Blink 3 Blink LED1 with a 200ms cycle (5Hz) Utilizing the Timer1 rather than delay functions. */ extern "C" void __attribute__((interrupt(),nomips16)) Timer1Handler(void); int pin = 33; // LED pin int frequency = 5; // Hz int PRS = 5; //******************************************************...
<!DOCTYPE html> <html> <head> <title>MembersOnly</title> <%= csrf_meta_tags %> <%= csp_meta_tag %> <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %> <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %> <meta name="viewport"...
import { useEffect, useRef } from 'react'; import { isFunction } from '../utils'; const useUnmount = (fn: () => void) => { const ref = useRef(fn); if (process.env.NODE_ENV === 'development') { if (!isFunction(fn)) { console.error( `useUnmount expected parameter is a function, got ${typeof fn}` ...
import React, { useState, useEffect } from "react"; import { useHistory } from "react-router-dom"; import { Link } from "react-router-dom"; import "../components/ticketList.css" import 'bootstrap/dist/css/bootstrap.css'; import {withRouter} from 'react-router-dom'; import Moment from 'react-moment' import dayjs from 'd...
package NLB import ( "encoding/json" "fmt" "log" "time" "github.com/Appkube-awsx/awsx-common/authenticate" "github.com/Appkube-awsx/awsx-common/awsclient" "github.com/Appkube-awsx/awsx-common/cmdb" "github.com/Appkube-awsx/awsx-common/config" "github.com/Appkube-awsx/awsx-common/model" "github.com/aws/aws-...
import NextAuth, {type DefaultSession } from "next-auth" import authConfig from "@/auth.config" import { PrismaAdapter } from "@auth/prisma-adapter" import db from "@/lib/db" import { getUserById } from "@/lib/data/user" import { UserRole } from "@prisma/client" import { getTwoFactorConfirmationByUserId } from "@/lib/d...
package com.minwan.weatherforecast import com.minwan.weatherforecast.helper.TimeHelper import org.junit.* class TimeHelperUnitTest { @Test fun convertEpochTimeToDisplayText_isCorrect() { val epochTime = 1629028800L val displayTime = TimeHelper.convertEpochTimeToDisplayText(epochTime) Assert.assertEqua...
import { createSlice, PayloadAction } from "@reduxjs/toolkit"; interface UserState { currentUser: UserData | null; isLoading: boolean; isError: boolean; error: string | null; } interface UserData { _id: string; name: string; email: string; } const initialState: UserState = { currentUser: null, isLo...
import { Logger } from 'winston'; import { AxiosInstance } from 'axios'; import { isNumber } from 'class-validator'; import { MissingDataException } from '@zro/common'; import { JdpiErrorTypes, JdpiFormatQrCode } from '@zro/jdpi/domain'; import { PersonType } from '@zro/users/domain'; import { CreateQrCodeDynamicDueD...
import * as React from 'react'; import Stack from '@mui/material/Stack'; import Snackbar from '@mui/material/Snackbar'; import MuiAlert, {AlertProps} from '@mui/material/Alert'; import {useDispatch, useSelector} from "react-redux"; import {AppRootStateType} from "../../app/store"; import {setAppErrorAC} from "../../app...
# Original sample data ants <- c(43, 59, 22, 25, 36, 47, 19, 21) # Set seed for reproducibility set.seed(1) # Number of bootstrap samples num_samples <- 1000 # Empty vector to store means of bootstrap samples bootstrap_means <- numeric(num_samples) # Generate bootstrap samples and calculate means for (i in 1:num_sa...
// Copyright (c) 2022 Javier Castro - jcastro0x@gmail.com // // 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 rights to use, copy, m...
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { RouterModule, Routes } from '@angular/router'; import { PROPERTY_DETAIL_ROUTE, PROPERTY_LIST_ROUTE } from './constants/route.constant'; import { PropertyListComponent } from './components/property-list/property-list.compo...
<?php declare(strict_types=1); namespace App\Http\Livewire\Categories; use App\Models\Category; use Illuminate\Contracts\View\Factory; use Illuminate\Contracts\View\View; use Illuminate\Support\Facades\Gate; use Jantinnerezo\LivewireAlert\LivewireAlert; use Livewire\Component; class Edit extends Component { use...
import { SVGProps } from 'react'; export type IconSvgProps = SVGProps<SVGSVGElement> & { size?: number; }; export type BaseAnswer = { score: number; domain: string; facet: number; }; export type Answer = BaseAnswer & { id: string }; export type DbResult = { testId: string; lang: string; invalid: boole...
/* * "Commons Clause" License Condition v1.0 * * The Software is provided to you by the Licensor under the * License, as defined below, subject to the following condition. * * Without limiting other conditions in the License, the grant * of rights under the License will not include, and the * License does not g...
//map method is used to iterate over the array elements and operate on the elements. //It takes a function as an argument that can consist of array element, index and array itself as function parameters. //It returns a new array. let arr = [1,2,3,4,5,6,7,8,9,10]; let square = arr.map( (element) => { return elemen...
"""The emails tests module.""" import pytest from tests.fixtures.auth import USER_EMAIL from communication.notifications.email import mail_managers, mail_user from users.models import User pytestmark = pytest.mark.django_db def test_mail_managers(mailoutbox): """Should send an email to the system managers.""" ...
/* Copyright 2014 Sheldon Neilson www.neilson.co.za * * 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 l...
import * as React from 'react'; import { useController, UseControllerProps } from 'react-hook-form'; import { ErrorMessage } from '@hookform/error-message'; import styles from './Input.module.scss'; const Input = ({ type, label, placeholder, inputMode, errors, ...props }: { label: string; placeholder?:...
import pandas as pd from sklearn.ensemble import RandomForestClassifier from spring.utils.variables import ( X_COLS, Y_COLS, ) if "custom" not in globals(): from mage_ai.data_preparation.decorators import custom if "test" not in globals(): from mage_ai.data_preparation.decorators import test def _mode...
"""Test titiler-image utils.""" import os import numpy import pytest from fastapi import HTTPException from rio_tiler.io import ImageReader from titiler.image.utils import image_to_bitonal, image_to_grayscale, rotate PREFIX = os.path.join(os.path.dirname(__file__), "fixtures") boston_jpeg = os.path.join(PREFIX, "bo...
# https://leetcode.com/problems/two-sum/ # 1. Two Sum from typing import List class Solution: def twoSum(self, nums: List[int], target: int) -> List[int]: num_to_index_hash = {} for i, num in enumerate(nums): if target - num in num_to_index_hash: return [num_to_index_ha...
'use client'; import React, { useState, useEffect } from 'react'; import Image from 'next/image'; import styled from 'styled-components'; import SVGPattern1 from './svg/Pattern1'; import SVGPattern2 from './svg/Pattern2'; import SVGPattern3 from './svg/Pattern3'; import SVGPattern4 from './svg/Pattern4'; import Diamon...
import * as core from '@actions/core' import * as github from '@actions/github' import axios from 'axios' async function getMessage( actor: string, pipelineFixed: boolean ): Promise<object> { const owner = github.context.repo.owner const repo = github.context.repo.repo const runId = github.context.runId c...
import * as React from 'react'; import { RelinkDialog } from './RelinkDialog'; // @ts-ignore import { setup as setupI18n } from '../../js/modules/i18n'; // @ts-ignore import enMessages from '../../_locales/en/messages.json'; import { storiesOf } from '@storybook/react'; import { boolean } from '@storybook/addon-knobs...
#!/usr/bin/env python # -*- coding: utf-8 -*- # vim: set et ai sta sts=2 sw=2 ts=2 tw=0: """ Get information from the system disks and partitions. For now it only handles (S/P)ATA disks and partitions, RAID and LVM are not supported yet. MSDOS/GPT partition scheme is indicated if 'parted' is installed. /proc and /sys s...
class ConcreteComponentA; class ConcreteComponentB; //访问者基类;因为我们有两个组件A和B,所以访问者提供了对两个组件的访问; class Visitor{ public: virtual void VisitConcreteComponentA(const ConcreteComponentA *element)const=0; virtual void VisitConcreteComponentB(const ConcreteComponentB *element)const=0; }; //组件基类; class Component{ public: ...
#include <stdio.h> #include <stdbool.h> #include <limits.h> int main() { int sum = 0; int n_numbers = 0; // iniciar "lower" com o máximo valor possível // iniciar "greater" com o minímo valor possível // assim quaisquer que sejam os valores introduzidos // "lower" e "greater" serão devidam...
/* * Copyright 2012 - 2013 Kulykov Oleh * * 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 applicab...
class Solution { public: void helper(vector<int>& candidates,int target, vector<int> v,vector<vector<int>> &res,int index) { if(target==0){ res.push_back(v); return; } for(int i=index;i<candidates.size();i++) { if( i>ind...
START-IMPORT-TASK() START-IMPORT-TASK() NAME start-import-task - DESCRIPTION Starts an import task, which allows you to import details of your on-premises environment directly into Amazon Web Services Migration Hub without having to use th...
import { useState } from "react"; import { GrPowerReset } from "react-icons/gr"; type Props = { initialCount?: number; min?: number; max?: number; }; export default function Counter({ initialCount = 0, min = -5, max = 5, }: Props) { const [count, setCount] = useState(initialCount); const increment = ...
import { Context, CodePipelineEvent } from 'aws-lambda'; import * as CodePipeline from 'aws-sdk/clients/codepipeline'; import { Octokit } from '@octokit/core'; let codePipelineClient: CodePipeline; exports.handler = async ( event: CodePipelineEvent, context: Context, ): Promise<any> => { context.callbackWaitsFo...
import React, { useEffect, useState } from "react"; import InputAdornment from "@material-ui/core/InputAdornment"; import IconButton from "@material-ui/core/IconButton"; import Visibility from "@material-ui/icons/Visibility"; import VisibilityOff from "@material-ui/icons/VisibilityOff"; import { ValidatorForm, TextVali...
// Copyright Epic Games, Inc. All Rights Reserved. #pragma once #include "CoreMinimal.h" #include "InputCoreTypes.h" #include "UObject/GCObject.h" #include "UnrealWidgetFwd.h" #include "Editor.h" #include "EditorUndoClient.h" #include "Widgets/Layout/SWidgetSwitcher.h" #include "EdMode.h" #include "Elements/Framewor...
#pragma once #include <optional> #include <string> #include <functional> #include "PImpl.hh" class Toml { class Impl; using Node = PImpl<Impl, 16, 8>; Node impl_; public: using EnumArrayCallback = std::function<void(const std::string& value)>; using EnumArrayCallbackW = std::function<void(cons...
/* * * Copyright (c) 2017 Xilinx, Inc. * All rights reserved. * * Author: Chris Lavin, Xilinx Research Labs. * * This file is part of RapidWright. * * 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...
""" Projet 2 : Ricosheep Amal ABDALLAH Nicolas SEBAN Adam SOUIOU """ import subprocess import sys import tkinter as tk import tkinter.simpledialog from typing import Union, Tuple, Optional, Literal, List from tkinter import Entry from collections import deque from os import system, PathLike from time import time, sle...
package com.uit.cart_service.service.impl; import java.util.ArrayList; import java.util.List; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.uit.cart_service.dto.CartItemDto; import com....
import AboutParagraphs from "./AboutParagraphs.jsx"; import { Box, Divider } from "@mui/material"; import { localize } from "../../../Translation.jsx"; import { CartContext } from "../../../App.jsx"; import React, { useContext } from "react"; const About = () => { let { language } = useContext(CartContext); retu...
<!-- Name : form.html Assignment : Lab 3 Exercise C Author(s) : Mahdi Ansari, William Arthur Philip Louis Submission : May 21, 2030 Description : A simple HTML file for form tag. --> <!DOCTYPE html> <html> <head> <title>Form Elements Demonstration</title> </head> <body> <h1>HTML Form Element...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Generate Cover Letter</title> <style> /* CSS styles here */ body { font-family: Arial, sans-serif; background-color: #f4f4...
package com.rct.payroll.infra.persistence.entity.employee import com.rct.payroll.infra.persistence.entity.hr.Department import jakarta.persistence.Column import jakarta.persistence.Entity import jakarta.persistence.GeneratedValue import jakarta.persistence.GenerationType.AUTO import jakarta.persistence.Id import jakar...
import Footer from "../../components/shared/Footer"; import MetaInformation from "../../components/shared/MetaInformation"; import HeaderTribe from "./HeaderTribe"; interface LayoutProps { children: React.ReactNode; title: string; description: string; } export default function Layout({ title, description, child...
/* Copyright ESIEE (2009) m.couprie@esiee.fr This software is an image processing library whose purpose is to be used primarily for research and teaching. This software is governed by the CeCILL license under French law and abiding by the rules of distribution of free software. You can use, modify and/ or redist...
import React from "react"; import {BrowserRouter, Route, Routes} from "react-router-dom"; import './App.css'; import Homepage from "./component/homepage"; import axios from "axios"; import Q1 from "./component/q1" import Q2 from "./component/q2"; import Q3 from "./component/q3"; import Q4 from "./component/q4"; import...
; A lightweight book about the built-in function update-nth. ; ; Copyright (C) 2008-2011 Eric Smith and Stanford University ; Copyright (C) 2013-2023 Kestrel Institute ; ; License: A 3-clause BSD license. See the file books/3BSD-mod.txt. ; ; Author: Eric Smith (eric.smith@kestrel.edu) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;...
package com.patriciafiona.bookstore.model import android.os.Parcelable import kotlinx.parcelize.Parcelize import kotlinx.serialization.Serializable @Parcelize data class VolumeInfo( val title: String, val subtitle: String, val description: String, val imageLinks: ImageLinks? = null, val authors: L...
import React from "react"; // nodejs library to set properties for components import PropTypes from "prop-types"; // @material-ui/core components import { makeStyles } from "@material-ui/core/styles"; import Grid from "@material-ui/core/Grid"; const styles = { grid: { position: "relative", maxWidth: "300", ...
<?php namespace src\Interpreter\Runtime\Values; use src\AST\Expressions\Expression; use src\AST\Expressions\FunctionExpression; use src\AST\Statements\Statement; use src\Interpreter\Interpreter; use src\Interpreter\ReturnSignal; use src\Interpreter\Runtime\Environment; use src\Interpreter\Runtime\LoxType; class Func...
import { useEffect, useState } from "react"; import Alert from "../alert/Alert"; import Button from "../button/Button"; import UploadButton from "../button/UploadButton"; import Dropdown from "../Dropdown"; import Input from "../input/Input"; import TextArea from "../input/TextArea"; import BaseModal from "./BaseModal"...
import json import os from web3 import Web3 from dotenv import load_dotenv from solcx import compile_standard, install_solc load_dotenv() # Install specific Solidity compiler version install_solc("0.8.0") # Set up web3 connection provider_url = os.environ.get("CELO_PROVIDER_URL") web3 = Web3(Web3.HTTPProvider(provi...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta http-equiv="X-UA-Compatible" content="ie=edge" /> <title>Document</title> <style> div { display: flex; width: 80%; height: 3...
--- title: Files and Directories name: files-and-directories section: lists-and-indices view: docs.html description: Complete List of Files and Directories --- <!--qgoda-no-xgettext--> [% USE q = Qgoda %] <!--/qgoda-no-xgettext--> A typical Qgoda site contains a couple of standard files and directories. They are descr...
import { Outlet } from 'react-router-dom' import Header from './Components/Header.jsx' import { useState, useEffect } from 'react' const getCartFromLocalStorage = () => { const cart = localStorage.getItem('cart') try { return cart ? JSON.parse(cart) : [] } catch (e) { console.error('Error parsing cart fr...
# # (C) Tenable Network Security, Inc. # # The descriptive text and package checks in this plugin were # extracted from Gentoo Linux Security Advisory GLSA 201009-07. # # The advisory text is Copyright (C) 2001-2016 Gentoo Foundation, Inc. # and licensed under the Creative Commons - Attribution / Share Alike # license...
import React, { Component } from "react"; import PropTypes from "prop-types"; import isEmpty from "../../validation/is-empty"; class ProfileAbout extends Component { render() { const { profile } = this.props; const firstName = profile.user.name.trim().split(" ")[0]; return ( <div className="row">...
import 'package:audioplayers/audioplayers.dart'; import 'package:cloud_firestore/cloud_firestore.dart'; import 'package:emoji_picker_flutter/emoji_picker_flutter.dart'; import 'package:file_picker/file_picker.dart'; import 'package:firebase_auth/firebase_auth.dart'; import 'package:firebase_storage/firebase_storage.dar...
from hooks import Hooks HOOKS = Hooks() class Color: __slots__ = ('r', 'g', 'b') def __init__(self, r: int, g: int, b: int): self.r = r self.g = g self.b = b def __repr__(self): return f'Color({self.r}, {self.g}, {self.b})' class Screen: def __init__(self, x: int,...
import { useEffect, useState } from "react"; import NavBar from "../components/navbar/NavBar"; import { Grid, GridItem, Box } from '@chakra-ui/react'; import Sidemenu from "../components/SideMenu"; import { ImMenu } from "react-icons/im"; import BlogTitle from "../components/blog/BlogTitle"; import { useDispatch, useSe...
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This program is distributed in the hope that it will be us...
import React, { useState } from 'react' import { useDispatch } from 'react-redux'; import { fetchEpisodesAsync } from '../../redux/app/features/episodes/episodesSlice'; import { fetchCharactersAsync } from '../../redux/app/features/characters/charactersSlice'; import './Search.css'; export default function Search() {...
import { BrowserRouter, Route, Routes, Navigate } from 'react-router-dom'; import './TodoApp.css' import LogoutComponent from './LogoutComponent'; import HeaderComponent from './HeaderComponent'; import ListTodosComponent from './ListTodosComponent'; import ErrorComponent from './ErrorComponent'; import WelcomeComponen...
"""Unit tests of the task delete form.""" from django.test import TestCase from tasks.forms import RemoveMemberForm from tasks.models import Team class RemoveMemberFormTestCase(TestCase): """Unit tests of the remove team member form.""" fixtures = [ 'tasks/tests/fixtures/other_users.json', ...
--- title: "Unlock The Secret To Crafting The Ultimate Minecraft Adventure: Learn How To Make A Map Now!" ShowToc: true date: "2023-02-25" author: "Thomas Stanley" --- ***** # Unlock The Secret To Crafting The Ultimate Minecraft Adventure: Learn How To Make A Map Now! Are you tired of wandering aimlessly in Minecraft...