text
stringlengths
184
4.48M
import React, { Component } from "react"; export default class Updating2 extends Component { constructor(props) { super(props); this.state = { name2: this.props.name, }; } static getDerivedStateFromProps(props, state) { console.log( "getDerivedStateFromProps called " + "prop...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" /> <title>Detalii telefon</title> <!-- Bootstrap CSS --> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.co...
import React, { useState, useEffect } from "react"; import PropTypes from "prop-types"; import API from "./../../../API/index"; import SelectField from "./../form/selectField"; import TextAreaField from "../form/textAreaField."; import { validate } from "../../../utils/validatator"; const initialData = { userId: "", c...
1.0 LICENSE: ------------ ITracker is Copyright(c) 2002, 2003, 2004 by Jason Carroll. You can reach the author at jcarroll@cowsultants.com. Any modification or distribution of the program does not release the user from this copyright without express permission of the author. This program is free software; you can re...
<h1 mat-dialog-title>Add Product Form</h1> <div mat-dialog-content> <form [formGroup]="productForm"> <mat-form-field appearance="outline"> <mat-label>Product Name</mat-label> <input formControlName="productName" matInput placeholder="name"> </mat-form-field> <mat-fo...
import os from datetime import datetime, timedelta from fastapi import Security, Depends from fastapi.security import HTTPAuthorizationCredentials, HTTPBearer from jose import JWTError, jwt from sqlalchemy.ext.asyncio import AsyncSession from starlette.status import HTTP_403_FORBIDDEN from api.library.constant import ...
def is_samepatterns(colors, patterns): """ Check whether the colors follow the sequence given in the patterns array. Args: colors (list): A list of strings representing the colors. patterns (list): A list of strings representing the patterns. Returns: bool: True if the colors f...
<?php // Database connection parameters $servername = "localhost"; $username = "root"; $password = ""; $dbname = "gestion"; // Create connection $conn = new mysqli($servername, $username, $password, $dbname); // Check connection if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } // ...
// @flow import type { Ability } from "../index" import { step, targetEnemies, simpleDmg, debuff, multistep, GenericSkill, } from "../skill" // skill id: 1121 /** Attacks all enemies and stuns them with a 30% chance. The damage is proportionate to my MAX HP. */ export default function(roll: (...
#include <stdio.h> // Movie 자료형 struct Movie { int l, r; }; // r을 기준으로 크기를 비교하는 함수 int compare_values(const void* a, const void* b) { // a.r이 앞에 있으면 양수, // b.r이 앞에 있으면 음수, // a.r와 b.r이 같은 값이면 0을 리턴하는 함수 struct Movie A = *(const struct Movie*)a; struct Movie B = *(const struct Movie*)b; if (A.r < B.r) return -...
package com.estockMarket.companyService.filter; //package com.companyService.filter; // //import java.io.IOException; //import java.util.ArrayList; // //import javax.servlet.FilterChain; //import javax.servlet.ServletException; //import javax.servlet.http.HttpServletRequest; //import javax.servlet.http.HttpServletRespo...
import React, { useState, useEffect } from "react"; import ExList from "../components/ExList"; import BaseFilter from "../components/BaseFilter"; const HomePage = () => { const [excercises, setExcercises] = useState([]); const [currentFilter, setCurrentFilter] = useState("all"); const updateFilterHandler = (new...
/* * This file is part of DeepFactors. * * Copyright (C) 2020 Imperial College London * * The use of the code within this file and all code within files that make up * the software that is DeepFactors is permitted for non-commercial purposes * only. The full terms and conditions that apply to the code within t...
<!DOCTYPE html> <html lang="ru" xmlns:th="http://www.thymeleaf.org"> <head> <meta charset="UTF-8"> <title th:text="${clothes.getName()}"></title> <link rel="shortcut icon" href="#" /> <!-- Bootstrap CSS --> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap...
use super::*; pub struct Iter<'a, P, I> { parser: &'a P, input: &'a mut I, } impl<P, I> Iterator for Iter<'_, P, I> where P: Parser<I>, { type Item = P::Output; fn next(&mut self) -> Option<Self::Item> { self.parser.parse(self.input) } } #[derive(Copy, Clone)] pub struct Many<P, F> {...
<?php namespace App\Http\Controllers\Api; use App\Events\Task\StoredTaskEvent; use App\Exceptions\Task\ShowException; use App\Exceptions\Task\StoreSuccessException; use App\Http\Controllers\Controller; use App\Http\Filters\TaskFilter; use App\Http\Requests\Api\Task\IndexRequest; use App\Http\Requests\StoreTaskPerform...
<?php namespace Database\Factories; use Illuminate\Database\Eloquent\Factories\Factory; /** * @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\PurchaseItem> */ class PurchaseItemFactory extends Factory { /** * Define the model's default state. * * @return array<string, mixed>...
using Microsoft.AspNetCore.Identity.EntityFrameworkCore; using Microsoft.EntityFrameworkCore; using UCMS.Models.Domain; namespace UCMS.Data { public class UCMSDbContext : DbContext { public UCMSDbContext(DbContextOptions options) : base(options) { } public DbSet<User> Users { get...
import { GetServerSideProps } from 'next' import { useTranslation } from 'next-i18next' import OmniAural from 'omniaural' import { convertToNowPlayingItem, Episode } from 'podverse-shared' import { Page } from '~/lib/utility/page' import { PV } from '~/resources' import { Meta } from '~/components/Meta/Meta' import { g...
/* * Copyright 2008 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
#+title: Blind SQL Injection #+description: Notes about Blind SQL injection attack from learning path of Portswigger #+author: [[https://github.com/touhidulshawan][Touhidul Shawan]] * Table of Contens :toc: - [[#what-is-blind-sql-injection][What is Blind SQL Injection]] - [[#exploiting-blind-sql-injection-by-triggerin...
<?php declare(strict_types=1); namespace App\Http\Controllers; use Illuminate\Http\Request; use Illuminate\Http\Response; use Faker\Factory as Faker; use Illuminate\Support\Facades\Http; use Carbon\Carbon; use App\Enums\LoanPurposeEnum; use App\Enums\CommonEnum; use App\Enums\TitleEnum; use App\Enums\GenderEnum; use...
#include <ptlib.h> #include <ptlib/video.h> #include <ptlib/videoio.h> #include <ptlib/vconvert.h> class VideoConsumer; class BMediaRoster; class PVideoInputThread; #include <MediaNode.h> /**This class defines a BeOS video input device. */ class PVideoInputDevice_BeOSVideo : public PVideoInputDevice { PCLASSINFO(P...
#./fasta_formatter -h usage: fasta_formatter [-h] [-i INFILE] [-o OUTFILE] [-w N] [-t] [-e] Part of FASTX Toolkit 0.0.12 by gordon@cshl.edu [-h] = This helpful help screen. [-i INFILE] = FASTA/Q input file. default is STDIN. [-o OUTFILE] = FASTA/Q output file. default is STDOUT. [-w N] = max...
import numpy as np import matplotlib.pyplot as plt import matplotlib.patches as patches import matplotlib.transforms as transforms #Parámetros del gripper radio = 39.18 #Radio de la órbita en mm offset_z = 340 #Profundidad de la cámara en mm num_puntos = 100 longitud_tangente = 1...
<template> <div class="pageContent"> <!-- page header; passes through the page title and that the back button should be shown --> <div class="header"> <pageHeader :pageTitle="'Summary of your Enquiry'" :backButton=1 /> </div> <div class="tile is-ancestor menuTile"> ...
--- title: Text swizzle: true --- This field lets you show basic text. It uses Ant Design's [`<Typography.Text>`](https://ant.design/components/typography/#Typography.Text) component. :::simple Good to know You can swizzle this component to customize it with the [**Refine CLI**](/docs/packages/list-of-packages) :::...
import { useMemo, useState } from 'react' import { useDispatch, useSelector } from 'react-redux' import validator from 'validator' import { Link as RouterLink } from 'react-router-dom' import { Grid, Typography, TextField, Button, Link, Alert } from "@mui/material" import AuthLayout from './layout/AuthLayout' import { ...
import 'package:genq/genq.dart'; part 'input.genq.dart'; class Deez { final String type; const Deez._(this.type); static Deez _fromJson(String type) { return Deez._(type); } static String _toJson(Deez deez) { return deez.type; } } @Genq(json: true) class Account with _$Account { factory Acco...
// Modules and libraries import path from "path"; import http from "http"; import * as dotenv from "dotenv"; import express from "express"; import { Server } from "socket.io"; // Utility functions and classes import { generateLocationMessage, generateMessage, } from "./utils/generateMessage.js"; import { isRealStr...
//package org.worker.itagent1.auth; // //import cn.hutool.core.collection.CollectionUtil; //import com.youlai.admin.dto.UserAuthDTO; //import com.youlai.auth.common.enums.PasswordEncoderTypeEnum; //import com.youlai.common.constant.GlobalConstants; //import lombok.Data; //import org.springframework.security.core.Grante...
// Gère un formulaire d'ajout de projet import React, {useEffect} from 'react'; import { useForm, Head, usePage} from '@inertiajs/react'; import AuthenticatedLayout from '@/Layouts/AuthenticatedLayout'; import InputError from '@/Components/InputError'; import PrimaryButton from '@/Components/PrimaryButton'; import Def...
--- description: "Bagaimana Membuat Ayam tahu bumbu kuning Lezat" title: "Bagaimana Membuat Ayam tahu bumbu kuning Lezat" slug: 1304-bagaimana-membuat-ayam-tahu-bumbu-kuning-lezat date: 2020-11-27T12:59:07.401Z image: https://img-global.cpcdn.com/recipes/be90c33c8eae3cf7/751x532cq70/ayam-tahu-bumbu-kuning-foto-resep-ut...
// // Copyright © 2021 Stream.io Inc. All rights reserved. // import Foundation /// A `RawJSON` type. /// Used to store and operate objects of unknown structure that's not possible to decode. /// https://forums.swift.org/t/new-unevaluated-type-for-decoder-to-allow-later-re-encoding-of-data-with-unknown-structure/1111...
# Naming We define the unique name strategy per resource to ensure it is followed uniformly independently of who is producing metadata, so we can connect lineage from various sources. Both Jobs and Datasets are in their own namespaces. Job namespaces are related to their schedulers. The namespace for a dataset is the...
import { useContext, useState } from "react"; import { AuthContext } from "../../context/authContext"; import { useMutation, useQueryClient } from "@tanstack/react-query"; import axios from "axios"; import moment from "moment/moment"; import { Replies } from "../Replies/Replies"; import { ReplyForm } from "../ReplyForm...
import { useToast } from "@chakra-ui/react"; import { useState, useEffect } from "react"; import { ProductQuerySpecification, useLazyGetSubwoofersByQueryQuery } from "../../../../productSlice"; import { getEmptyPage, Page } from "../../../Page"; import { ProductOutputDTO } from "./ProductOutputDTO"; export enum Subwoo...
import React, { useEffect, useState } from 'react'; import { useDispatch, useSelector } from 'react-redux'; import { Link, redirect, useNavigate, useParams } from 'react-router-dom'; import ChatIcon from 'src/icons/ChatIcon'; import DeleteIcon from 'src/icons/DeleteIcon'; import LoadingIcon from 'src/icons/LoadingIcon'...
package org.minejewels.jewelsgens.gen; import eu.decentsoftware.holograms.api.DHAPI; import lombok.Data; import net.abyssdev.abysslib.builders.ItemBuilder; import net.abyssdev.abysslib.config.AbyssConfig; import net.abyssdev.abysslib.location.LocationSerializer; import net.abyssdev.abysslib.nbt.NBTUtils; import org.bu...
/* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ import { SERVER_TELEM_CONSTANTS, Separators, CacheOutcome, Constants, RegionDiscoverySources, RegionDiscoveryOutcomes, } from "../../utils/Constants"; import { CacheManager } from "../../cache...
/**************************************************************************/ /* */ /* Copyright (c) Microsoft Corporation. All rights reserved. */ /* */ /* Thi...
<script setup lang='ts'> import type { DateFare } from '@/common/custom-type' import { dateToString } from '@/common/dw-luxon' import { amountFormat } from '@/common/commons' import { useI18n_ } from '@/plugins/i18n'; import { computed, onMounted, reactive, watch } from 'vue' import $ from 'jquery'; import 'slick-carou...
<!DOCTYPE html> <html xmlns:th="http://www.thymeleaf.org" xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" layout:decorate="layouts/defaultTemplate"> <head> <style> body { font-family: 'Montserrat', sans-serif; line-height: 1.4; font-size: 16px; } button { background-color: #04aa6d; color: #fff; ...
/** * */ package com.centrica.task.configuration; import java.util.ArrayList; import java.util.List; import java.util.Set; import org.apache.catalina.connector.Connector; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Value; import org.springframework.boot.context....
import {useState, useEffect} from 'react' import { UserContext } from './assets/utils/UserContext'; import { BrowserRouter as Router, Switch, Route } from "react-router-dom"; import { MainBackground } from './assets/styledComponents/styledApp' import Header from './assets/components/Header'; import Home from './p...
import { createBrowserRouter } from "react-router-dom"; import MainLayout from "../Layout/MainLayout"; import Home from "../pages/Home/Home/Home"; import ErrorPage from "../pages/ErrorPage/ErrorPage"; import Login from "../pages/Login/login"; import SignUp from "../pages/SignUp/SignUp"; import Dashboard from "../Layout...
import {Component, OnDestroy, OnInit} from '@angular/core'; import {OwnerService} from '../shared/service/owner.service'; import {Owner} from '../shared/entities/owner.type'; import {Subscription} from 'rxjs'; import {Router} from '@angular/router'; @Component({ selector: 'app-owners', templateUrl: './owners.compo...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.24; import {Test, console} from 'forge-std/Test.sol'; import {GameFactory} from '../src/GameFactory.sol'; import {IGame} from '../src/interfaces/IGame.sol'; import {Game} from '../src/Game.sol'; import {MMOSessionModule} from '../src/components/MMOSessionModule.sol'...
/** This file is part of LOVE-frontend. Copyright (c) 2023 Inria Chile. Developed by Inria Chile. 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 opti...
import { ReactElement } from "react"; import styles from "./Map.module.css"; interface MapPropsInterface { mapItems: (string | null)[]; onClickHandler: (index: number) => void; currentPlayer: string; winner: string | null } export default function Map(props: MapPropsInterface): ReactElement { return ( <...
import React,{ useEffect, useState } from 'react' import {Link, useNavigate, useParams } from 'react-router-dom' import LeftBar from './common/LeftBar' import { useForm } from 'react-hook-form' import {io} from "socket.io-client" const socket = io("http://localhost:3004") const SpeechToText = () => { const { regi...
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\HasMany; // Conventions et règles de nommages implites de Laravel (8) // Les tables sont toujours au pluriel (categories, tasks, ...) // Les Models sont au singulier (Category, Task, ...) // Les relations s...
//swapping without using temp variable #include <stdio.h> #include <string.h> int main() { char str1[20] = "Good", str2[20] = "morning"; printf("Strings before swapping: %s %s\n", str1, str2); //User-defined substring function that will take string(str), position(p) and no of c...
# TumorNet Files for training a neural network architecture for semantic segmentation of brain MRI scans of the FLAIR sequence type into tumor and non-tumor categories. Based on the [U-Net architecture](https://arxiv.org/pdf/1505.04597.pdf) proposed by Ronneberger et al., 2015. Trained using the [Brain Tumor Image Dat...
import { createContext, useContext, useEffect, useReducer, useState, } from "react"; import { db } from "../config/firebase"; import { collection, getDocs, addDoc, updateDoc, deleteDoc, getDoc, doc, } from "firebase/firestore"; import { useAuth } from "./AuthContext"; const TodoContext = createC...
# BASIC 1. `What is browser storage, local storage, session storage, cookie` Browser storage refers to the mechanisms provided by web browsers to store data on the client side, allowing websites to save and retrieve information locally on a user's device. This local storage is useful for persisting data across page ...
import React, { useState, useMemo } from "react"; import "./poolsContent.css"; import styled from "styled-components"; import { Route, useRouteMatch } from 'react-router-dom' import BigNumber from 'bignumber.js' import { useWeb3React } from '@web3-react/core' import orderBy from 'lodash/orderBy' import partition from '...
import { Component } from "react"; import BoilingVerdict from "../function/BoilingVerdict"; import TemperatureInput from "./TemperatureInput"; function toCelsius(fahrenheit) { return (fahrenheit -32) * 5 /9; } function toFahrenheit(celsius) { return (celsius * 9/5) + 32; } function tryConvert(temperature,co...
import numpy as np import matplotlib.pyplot as plt import seaborn as sns from matplotlib import colors as mcolors import os from datetime import datetime import json labels = { 's_u_const': r"$\beta$ (S$\rightarrow$U)", 's_a_const': r"$\alpha_S$ (S$\rightarrow$A)", 's_c_const': r"$\omega_S$ (S$\rightarro...
-module(msgpack). -export([pack/1, unpack/1]). -export([pack_term/1, unpack_term/1]). -include_lib("eunit/include/eunit.hrl"). -type msgpack_map() :: {[{msgpack_term(), msgpack_term()}]}. -type msgpack_array() :: [msgpack_term()]. -type msgpack_term() :: msgpack_array() | msgpack_map() | integer() | float() | binar...
// // CharactersWebRepo.swift // Rick and Morty // // Created by Ghenadie Isacenco on 1/7/23. // import Foundation import Combine import Alamofire protocol CharactersWebRepoProtocol { func loadCharacters(withPage page: Int, searchText: String?) -> AnyPublisher<DataResponse<CharactersModel, NetworkError>, Never...
# IgnitionSwagger This is an implementation of Version 2 of the Open API Specification Standard (aka Swagger) using only Ignition WebDev and Scripting resources. ## Status This is a work in progress. It is currently in a **early Alpha** state. ## Compatibility This project is compatible with **Ignition 8.1**. --- #...
import { FC, useEffect, useState, useCallback } from 'react'; import { getCSSVariables } from '../../utils/getCSSVariables.js'; import { capitalizeFirstLetter } from '../../utils/functions.js'; import docStyles from './Colors.module.css'; import type { Storybook } from '@localTypes/storybook.js'; const extractWordSepa...
<!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>Edit Data</title> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" re...
import { fetch as coreFetch } from "undici"; import type { RequestOptions } from "~/types/request"; export async function fetch<TResponse>( options: RequestOptions<true> ): Promise<TResponse>; export async function fetch(options: RequestOptions<false>): Promise<Response>; export async function fetch< T extends Re...
library ieee; use ieee.std_logic_1164.all; use ieee.std_logic_arith.all; use ieee.std_logic_unsigned.all; entity pseudo_mux is port ( RESET : in std_logic; -- reset input CLOCK : in std_logic; -- clock input S : in std_logic; -- control input A,B,C,D : in std_l...
import express from "express"; import logger from "morgan"; import cookieParser from "cookie-parser"; import routes from "./src/routes"; import path from "path"; import createError from "http-errors"; var app = express(); app.use(logger("dev")); app.use(cookieParser()); app.use(express.json()); app.use(express.urlenc...
<template app> <v-main> <v-container> <v-row class="mt-1" justify="start"> <v-col cols="12" md="4"> <SearchByReference @searchResult="showResult($event)" @emptySearch="refresh"></Searc...
import Header from './Header' import Content from './Content' import Footer from './Footer' import { useState, useEffect } from 'react' import AddItem from './AddItem' import SearchItem from './SearchItem' import apiRequest from './apiRequest' function App() { const APP_URL = 'http://localhost:3500/items' const [...
package burp; import java.util.Optional; import java.util.Map.Entry; import burp.api.montoya.BurpExtension; import burp.api.montoya.MontoyaApi; import burp.api.montoya.core.ToolType; import burp.api.montoya.http.HttpService; import burp.api.montoya.http.handler.*; import burp.api.montoya.http.message.HttpHeader; impo...
package com.example.tiptime import android.graphics.Color import android.os.Bundle import androidx.activity.ComponentActivity import androidx.activity.compose.setContent import androidx.annotation.DrawableRes import androidx.annotation.StringRes import androidx.annotation.VisibleForTesting import androidx.compose.foun...
/* 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 not...
--- id: 587d7b8e367417b2b2512b5c title: Comprendere la terminologia della programmazione funzionale challengeType: 1 forumTopicId: 301240 dashedName: understand-functional-programming-terminology --- # --description-- La squadra di FCC ha avuto uno sbalzo di umore e ora vuole due tipi di tè: tè verde e tè nero. Fatto...
import SwiftUI #if canImport(UIKit) extension View { func hideKeyboard() { UIApplication.shared.sendAction(#selector(UIResponder.resignFirstResponder), to: nil, from: nil, for: nil) } } #endif struct LoginView: View { @Environment(\.presentationMode) var presentationMode @State var password:...
import subprocess, os, sys import argparse def video_to_frames(input, output_folder, rate): if os.path.exists(output_folder): print(f"The directory {output_folder} exists.") # TODO: Check if folder is not empty and if so throw an error else: print(f"The directory '{output_folder}' does ...
// // ContentView.swift // AdminCaritas // // Created by Alumno on 07/11/23. // import SwiftUI import CoreMotion struct ContentView: View { //Variable para acceder a los sensores var administrador: Administrador let motion = CMMotionManager() @State private var accelerometerData: CMAccelerometerDat...
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2005,2006 INRIA * Copyright (c) 2009 MIRKO BANCHI * Copyright (c) 2013 University of Surrey * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2...
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\BelongsTo; use Illuminate\Database\Eloquent\Relations\MorphOne; use Illuminate\Database\Eloquent\SoftDeletes; class Quick extends Model { use HasFa...
# 实验打破的 7 种方式 > 原文:<https://towardsdatascience.com/7-ways-experiments-break-63ba4bd4fffa?source=collection_archive---------30-----------------------> ## 开始实验时要避免的常见错误 ![](img/7258effe8f8fb609bbddf406c54320aa.png) 开始实验有点像开始认证。这并不难,而且你有一种感觉,你会弄明白的。但是就像鉴定一样,实验中的错误可能代价高昂。以下是实验中需要注意的一些常见错误。 ## **1。在错误的地方设置作业** 设计实验的一个...
/* Question Formatted question description: https://leetcode.ca/all/296.html Given an m x n binary grid grid where each 1 marks the home of one friend, return the minimal total travel distance. The total travel distance is the sum of the distances between the houses of the friends and the meeting point. The distanc...
// +---------------------------------------------------------------------- // | JavaWeb混编版框架 [ JavaWeb ] // +---------------------------------------------------------------------- // | 版权所有 2019~2020 南京JavaWeb研发中心 // +---------------------------------------------------------------------- // | 官方网站: http://www.javaweb.v...
const MEMORY_SIZE = 65536; type Address = Uint8Array | Uint16Array; export class MMU { /** * The Z80 is an 8-bit chip, so all the internal workings operate on one byte at a time; * 0000-3FFF: 16KB ROM Bank 00 (in cartridge, fixed at bank 00) * 4000-7FFF: 16KB ROM Bank 01..NN (in cartridge, switchable bank ...
{ Copyright 2005 Sandy Barbour and Ben Supnik All rights reserved. See license.txt for usage. X-Plane SDK Version: 1.0.2 } UNIT XPLMUtilities; INTERFACE { } USES XPLMDe...
--- title: How To Reset the Security Questions of Your Apple ID On Your iPhone 13 mini date: 2024-04-07T20:56:50.040Z updated: 2024-04-08T20:56:50.040Z tags: - unlock - remove apple account categories: - ios - iphone description: This article describes How To Reset the Security Questions of Your Apple ID On Yo...
/* * Single-precision SVE cbrt(x) function. * * Copyright (c) 2023, Arm Limited. * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception */ #include "sv_math.h" #include "pl_sig.h" #include "pl_test.h" #include "poly_sve_f32.h" const static struct data { float32_t poly[4]; float32_t table[5]; floa...
# Blazor ## Blazor Server File ### 1. Project File `.csproj` - Framework version `<TargetFramework>net6.0</TargetFramework>` - Nullable `<Nullable>enable</Nullable>` - Library Using Statement; help us to enable using statement for all libraries `<ImplicitUsings>enable</ImplicitUsings>` ### 2. Properties/ Lunch Setting...
<?php require '../vendor/autoload.php'; use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\SMTP; use PHPMailer\PHPMailer\Exception; // Initialize PDO database connection $username = "admin"; $password = "admin"; try { $database = new PDO("mysql:host=localhost;dbname=HairCut;charset=utf8", $username, $pass...
import React, { Dispatch, SetStateAction } from 'react'; import { motion } from 'framer-motion'; import Button from './Button'; interface Props { setShowSubmitModal: Dispatch<SetStateAction<boolean>>; submitSubject: string; } const CheckSubmitModal = ({ setShowSubmitModal, submitSubject }: Props) => { return ( ...
#ifndef MANTARAY_STRATIFIED_SAMPLER_H #define MANTARAY_STRATIFIED_SAMPLER_H #include "pixel_based_sampler.h" #include <vector> namespace manta { class StratifiedSampler : public PixelBasedSampler { public: StratifiedSampler(); ~StratifiedSampler(); virtual void startPixelSession(); ...
import axios from 'axios'; import React, {Component} from "react"; import {browserHistory} from "react-router"; import {Col, Row, Button, Dropdown,} from "react-bootstrap"; import {NotificationContainer, NotificationManager} from "react-notifications"; import 'react-notifications/lib/notifications.css'; import '../App....
############################################################################## #### Final analyses Coelacanth disparity #### #### December 2022 ########################## ############################################################################## library(ggplot2) library(plyr) library(scales) library(grid) librar...
// SPDX-License-Identifier: GPL-3.0 pragma solidity 0.8.18; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol"; import "@openzeppelin/contracts/access/Acce...
package com.mj.musicyun.ui.activity; import androidx.annotation.Nullable; import androidx.appcompat.app.AppCompatActivity; import androidx.lifecycle.ViewModelProvider; import androidx.media3.common.MediaItem; import androidx.media3.common.Player; import androidx.media3.session.MediaController; import android.os.Bundl...
// import PropTypes from "react"; import PropTypes from 'prop-types'; import { useEffect, useState } from "react"; import styled from "@emotion/styled"; import Error from "./Error"; import useSelectMonedas from "../hooks/useSelectMonedas"; import { monedas } from "../data/monedas"; const InputSubmit = styled.input` ...
import React from 'react'; import PropTypes from 'prop-types'; import Row from '@tcp/core/src/components/common/atoms/Row'; import Col from '@tcp/core/src/components/common/atoms/Col'; import { Image } from '@tcp/core/src/components/common/atoms'; import { getIconPath, routerPush } from '@tcp/core/src/utils'; import { ...
rm(list = ls()) gc() set.seed(123) library(car) library(ggplot2) ############### (1) Data cleaning ######################################## ## select variables library(NHANES) df0 <- NHANES df <- NHANES[NHANES$Age >= 18 & NHANES$Age < 60, ] # colSums(is.na(df)) / nrow(df) df <- df[, which(colSums(is.na(df)) / nrow(df) ...
library(shinydashboard) library(shiny) library(latex2exp) library(tidyverse) #source('ui_Info.R', local = TRUE) ui <- dashboardPage( dashboardHeader(title = "確率分布の学習"), dashboardSidebar(), dashboardBody( fluidRow( column(width = 12, tabBox(title = "好きな分布を選んでね",id='tab_norm',width = N...
--- title: "Rethinking Chapter 8" author: "Gregor Mathes" date: "2021-03-22" slug: Rethinking Chapter 8 categories: [] tags: [Rethinking, Bayes, Statistics] subtitle: '' summary: 'Interaction terms as a modest introduction to mixed effect models' authors: [Gregor Mathes] lastmod: "`r format(Sys.time(), '%d %B, %Y')`" f...
<!-- // Copyright © 2022 Hardcore Engineering Inc. // // Licensed under the Eclipse Public 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 https://www.eclipse.org/legal/epl-2.0 // // Unless required by applicable law or...
<!DOCTYPE html> <html> <head> <title>Component 통신</title> </head> <body> <div id="app"> <my-component1></my-component1> <my-component2></my-component2> </div> <script src="https://cdn.jsdelivr.net/npm/vue@2.5.2/dist/vue.js"></script> <script> const cmp1 = { template:...