text
stringlengths
184
4.48M
// var realAge = 30; // let person = { // name: "cheems", // surname: "doge", // realAge: "12", // normalAge: function () { // // console.log("this in normal is", this); // console.log(`doge is ${this.realAge} years old `); // }, // /** // * the difference between normal and arrow fucntion is tha...
import React, { useState, useEffect } from 'react'; import Backdrop from '@mui/material/Backdrop'; import Box from '@mui/material/Box'; import Modal from '@mui/material/Modal'; import Fade from '@mui/material/Fade'; import Button from '@mui/material/Button'; import YouTubeIcon from '@mui/icons-material/YouTube'; // imp...
install.packages("CausalImpact") install.packages('tidyr') install.packages('lubridate') library(CausalImpact) library(tidyr) library(dplyr) library(lubridate) setwd('C:/Users/dmz38/Downloads/1654157067295-데멘토_지원신청서_및_개인정보활용동의서') # 2018-03을 시작으로 월을 기준으로 2022-05-01까지의 Date형태의 변수 생성 time.points <- seq.Date(as.Date('201...
using System.Text; using gettmail_final.services.acctSession; using Microsoft.AspNetCore.Identity; using Microsoft.AspNetCore.Identity.UI.Services; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.WebUtilities; using Microsoft.EntityFrameworkCore; using RandomStringCreator; public class RegisterController :...
import { Entity, Column, PrimaryGeneratedColumn, BeforeInsert, BeforeUpdate, AfterLoad, } from "typeorm"; import {IsEmail, IsOptional} from "class-validator"; import { hashSync } from "bcrypt"; import {JoinTable, ManyToMany, OneToMany} from "typeorm/index"; import {Team} from "./Team"; import {...
library(lubridate) library(stringr) library(tidyverse) library(ggplot2) library(viridis) library(geojsonio) library(RColorBrewer) library(rgdal) incidents <- read.csv("./inputs/incidents_state.txt") states <- read.csv("./inputs/wildfire_states.txt") incidents$FireDiscov <- mdy(word(incidents$FireDiscov,1)) incidents$y...
--- title: Kapitel 9. Einen FreeBSD-Kernel bauen und installieren prev: books/developers-handbook/partiii next: books/developers-handbook/kerneldebug showBookMenu: true weight: 12 path: "/books/developers-handbook/" --- [[kernelbuild]] = Einen FreeBSD-Kernel bauen und installieren :doctype: book :toc: macro :toclevels...
package com.example.jetpackcomposecatalog.components import android.annotation.SuppressLint import androidx.compose.foundation.background import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Spacer import androidx.compose.foundation.la...
/* * Copyright 2021-2022 the original author and 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 ap...
document.addEventListener('DOMContentLoaded', (event) => { let movieNameRef = document.getElementById("movie-name"); let searchBtn = document.getElementById("search-btn"); let result = document.getElementById("result"); let pagination = document.getElementById("pagination"); let currentPage = 1; ...
# تكبير الشفاه - اليكم كافة الطرق! __شارك __غرد علاج تكبير الشفاه هي عملية تتطلّب من الطبيب معرفة تشريحية, معرفة دقيقة لمواد التعبئة المختلفة وميزاتها, معرفة تقنيات حقن مختلفة والقدرة على التعامل مع المضاعفات التي ممكن أن تظهر. منذ قدم الزمان، كانت تعتبر الشفاه جزءا هاما من سحر وجمال الشخص. وكان الرسامون في عصر الن...
<!DOCTYPE html> <html> <head> <title>Blogger</title> <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> <%= stylesheet_link_tag 'application', 'http://fonts.googleapis.com/css?family=Titillium+Web:600' %> <%= javascript_include_tag 'application', 'data-turbolinks-track' =...
<!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>展示星期数</title> </head> <body> <script> // 写一个函数 getWeekDay(date) 来显示一个日期的星期数, // 用简写表示:...
<?php /* * Copyright 2014 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 t...
import React, { useEffect, useState } from 'react'; import Categoriesloaded from './Categoriesloaded'; const AllCategories = () => { const [categories, setCategories] = useState([]); const [isLoading, setIsLoading] = useState(true); // Add loading state useEffect(() => { fetch('https://reread-server.vercel....
<script> import axios from 'axios' import { mapState } from 'vuex' export default { name: 'PlaylistCategories', components: {}, data() { return { pageId: 'PlaylistCategories', isOpen: false, playlistFeatures: [], } }, async created() { tr...
// // File.swift // // // Copyright 2022 Oliver Letterer // import Foundation import CheckedScanner public struct MethodDefinition: Hashable { public var name: String public var isImpure: Bool public var arguments: [FunctionDefinition.FunctionArgumentDefinition] public var returns: TypeId? ...
# This file is part of The Family's treasure tale. # The Family's treasure tale 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. # The...
<template> <div class="demo-form-mobile"> <div class="page__hd"> <h1 class="page__title">Form</h1> <p class="page__desc">表单(纯展示)</p> </div> <div class="demo-form-mobile-hide-padds"> <tiny-form ref="ruleForm" :model="createData" :rules="rules" :hide-required-asterisk="false" :inline="fals...
// Roar Source Code // Wasim Abbas // http://www.waZim.com // Copyright (c) 2008-2019 // // 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 /...
import React from "react"; import { useState, useEffect } from "react"; import { useParams, Outlet, Link, useNavigate } from "react-router-dom"; import { getMovieInfo } from "services/api"; import { Wrapper, Paragraph, Button, MovieImage } from "./MoviesInfo.styled"; const MovieInfo = () => { const { movieId } = ...
<template> <section class="bill" v-if="this.$store.state.car.length > 0"> <article class="bill-create"> <h2>Factura a pagar</h2> <form action="" class="bill-form mt-3"> <select class="bill-form-select" v-model="selected"> <option v-for="(address, index) in registeredAddre...
import { RefObject } from "react"; import { vec3, mat4 } from "wgpu-matrix"; import mesh from "./mesh.ts"; import vertexShaderCode from "./shaders/vert.wgsl?raw"; import fragmentShaderCode from "./shaders/frag.wgsl?raw"; import computeShaderCode from "./shaders/compute.wgsl?raw"; let canvas: HTMLCanvasElement | null...
import { Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, type CarouselApi, } from "@/components/ui/carousel"; import React from "react"; import { CarouselContentData } from "@/utils/mock/data"; export default function CarouselSection() { const [api, setApi] = React.useState<Caro...
<template> <div> <!-- 面包屑导航 --> <el-breadcrumb separator-class="el-icon-arrow-right"> <el-breadcrumb-item :to="{ path: '/home' }">首页</el-breadcrumb-item> <el-breadcrumb-item>权限管理</el-breadcrumb-item> <el-breadcrumb-item>权限列表</el-breadcrumb-item> </el-breadcrumb> <!-- 卡片区 --> <el-...
# Задача 4 # Задана натуральная степень k. Сформировать случайным образом список # коэффициентов (значения от 1 до 100, можно создать свой генератор # случайных чисел или использовать готовый) многочлена и записать в файл # многочлен степени k. # Пример: # k=2 => 2*x² + 4*x + 5 = 0 from random import randint import...
import { Link, useNavigate } from "react-router-dom"; import { useState } from "react"; import { BiCameraMovie, BiSearchAlt2 } from 'react-icons/bi'; import "./Navbar.css"; const Navbar = () => { const [search, setSearch] = useState(""); const navigate = useNavigate(); // Criando função de submit do formu...
import { RequestHandler, compose } from "@hattip/compose"; import { once } from "@hiogawa/utils"; import { loggerMiddleware } from "@hiogawa/utils-experimental"; import { globApiRoutes } from "@hiogawa/vite-glob-routes/dist/hattip"; import { importIndexHtml } from "@hiogawa/vite-import-index-html/dist/runtime"; import ...
// This file is part of www.nand2tetris.org // and the book "The Elements of Computing Systems" // by Nisan and Schocken, MIT Press. // File name: projects/03/a/PC.hdl /** * A 16-bit counter with load and reset control bits. * if (reset[t] == 1) out[t+1] = 0 * else if (load[t] == 1) out[t+1] = in[t] * else i...
// Time complexity can only be calculated on same programming device //Notation for different type of complexity --> Omega, Theta, Big O /* 1. Big oh Notation --> upper bound [Time Complexity] a. for(int i=0;i<n;i++){ cout<<"MoniChaurasiya\n"; --> n time loop will execute } ...
import { NextApiRequest, NextApiResponse } from "next"; import { sesClient } from "../../lib/aws/sesClient"; import sanitizeHtml from 'sanitize-html'; import { randomUUID } from "crypto"; import { isPossiblePhoneNumber } from "react-phone-number-input"; import isEmail from "validator/lib/isEmail"; import IContact from ...
import 'dart:convert'; import 'dart:io'; import 'package:event/data/controllers/limit_query_controller.dart'; import 'package:event/data/models/event_model.dart'; import 'package:event/data/models/filter_model.dart'; import 'package:event/data/repositories/repository.dart'; class EventRepository extends Repository { ...
pragma solidity 0.4.24; // File: contracts\lib\Ownable.sol /** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */ contract Ownable { address public owner; event OwnershipRenounce...
import React, { useState, useEffect } from "react"; import { useNavigate, useParams } from "react-router-dom"; import axios from "axios"; import Navbar from "../components/navbar"; import { Link } from "react-router-dom"; const EditBook = () => { const [loading, setLoading] = useState(true); const [error, setError...
<script setup> import AuthenticatedLayout from '@/Layouts/AuthenticatedLayout.vue'; import { Head, usePage, router } from '@inertiajs/vue3'; import StatusEnum from '../enums/StatusEnum' import TypeEnum from '../enums/TypeEnum' import PrimaryButton from '@/Components/PrimaryButton.vue'; import Trash from '@/Components/T...
const data = [ { id: 1, title: "The Lord of the Rings", publicationDate: "1954-07-29", author: "J. R. R. Tolkien", genres: [ "fantasy", "high-fantasy", "adventure", "fiction", "novels", "literature", ], hasMovieAdaptation: true, pages: 1216, tran...
def find_longest_tubes(tube_lengths, L1, L2): # Sort the tube lengths in descending order tube_lengths.sort(reverse=True) # Initialize the longest tube lengths as the first two tubes longest_tubes = [tube_lengths[0], tube_lengths[1]] # Initialize the total length of the longest tubes as th...
<mat-card elevation="5" fxFlex class="content"> <mat-card-title> <h2>Calculate BMI</h2> </mat-card-title> <mat-card-content id="form-content"> <form (ngSubmit)="onSubmit()" *ngIf="!submitted" [formGroup]="form" id="form1-content"> <mat-form-field> <label>Tezina...
import { useState, useEffect } from 'react'; export default function useFetch(url, options) { const [data, setData] = useState(null); const [error, setError] = useState(null); const [loading, setLoading] = useState(false); useEffect(() => { const fetchData = async () => { setLoading(true)...
import { useDispatch, useSelector } from "react-redux"; import { useEffect } from "react"; import { END } from "redux-saga"; import axios from "axios"; import AppLayout from "../components/AppLayout"; import PostForm from "../components/PostForm"; import PostCard from "../components/PostCard"; import { LOAD_POSTS_REQ...
var crypto = require("crypto"); const axios = require("axios"); var db = require("../../models"); var RoleService = require("../../services/RoleService"); var roleService = new RoleService(db); var MembershipService = require("../../services/MembershipService"); var membershipService = new MembershipService(db); var Us...
package com.albertojr.practicaandroidavanzado.Data.Remote import javax.inject.Inject import javax.inject.Singleton @Singleton class RemoteDataSourceImpl @Inject constructor( // private val moshi : // private val okHttpClient = // private val retrofit = private val api: DragonBallApi ) : RemoteDataSource...
/* * Copyright (c) 2021 Talent Beyond Boundaries. * * This program 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 the License, or any later version. * * This program is distr...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>HTML5 Canvas</title> </head> <body> <canvas id="draw" width="800" height="800"></canvas> <script> var canvasContainer = document.querySelector("#draw"); var ctx = canvasContainer.getContext("2d"); canvasContainer.width = windo...
<template> <CheckableGroup id="closed_with_solutions" :label="labels.closed_with_solutions" :info="info" validationName="Est-ce que ce site a été résorbé définitivement ?" > <span class="mb-4" >Un site est considéré comme résorbé si une solution pérenne en ...
import * as firebase from 'firebase/compat' import 'firebase/auth' import 'firebase/firestore' import 'firebase/storage' import { getAuth, onAuthStateChanged, sendEmailVerification } from 'firebase/auth'; import { getFirestore, setDoc, doc, arrayUnion, getDoc, } from 'firebase/firestore'; import { Alert } from 'react-n...
--- title: "Lab 9: Baby Names" format: html: self-contained: true editor: visual code-fold: true execute: warning: false theme: mint --- ## ```{r} #| include: false library(tidyverse) bb_names <- read_csv(here::here("supporting_artifacts", "ref.work", "lab9", "StateNames_A.csv")) bb_names <- bb_names |> re...
<template> <div class="file-list" > <form class="file-list__form" @submit.prevent> <select v-model="selectedValue" class="file-list__select" > <option v-for="(file, index) in fileList" :key="index" :value="file.id" >{{ file.project.na...
import hashlib import os from parso._compatibility import FileNotFoundError, is_pypy from parso.pgen2 import generate_grammar from parso.utils import split_lines, python_bytes_to_unicode, parse_version_string from parso.python.diff import DiffParser from parso.python.tokenize import tokenize_lines, tokenize from parso...
import React, { useEffect, useState } from "react"; import Chart from 'react-apexcharts'; import axios from "axios"; const PieChart = ({ selectedDateTime }) => { const [checkinCount, setCheckinCount] = useState(0); const [borrowedBooksCount, setBorrowedBooksCount] = useState(0); const [loading, setLoading] = use...
// composables/useInvoiceStorage.js import { ref, onMounted } from 'vue'; import { Invoice } from '~/types/Invoice'; // Save the invoices to localStorage // Save the invoices to localStorage function saveInvoices(invoices: Invoice[]) { if (process.client) { localStorage.setItem('invoices', JSON.stringify(i...
/* * Copyright (C) 2015 Canonical, Ltd. * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published * by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY...
import { Controller, Get, Post, Body, Patch, Param, Delete } from '@nestjs/common'; import { ValidationPipe } from '@src/validation.pipe'; import { FakultasService } from './fakultas.service'; import { UpdateFakultaDto } from './dto/update-fakultas.dto'; import { CreateFakultasDto } from './dto/create-fakultas.dto'; @...
package com.shubham.blog.services.impl; import org.modelmapper.ModelMapper; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.shubham.blog.entities.Comment; import com.shubham.blog.entities.Post; import com.shubham.blog.entities.User; import com.s...
using AutoMapper; using Cursus.Constants; using Cursus.DTO; using Cursus.DTO.Assignment; using Cursus.Entities; using Cursus.Services.Interfaces; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; namespace Cursus.Controllers { [Route("api/[controller]")] ...
# Electronic Items Management Please copy this markdown and use [markdownlivepreview.com](https://markdownlivepreview.com) to view it. ## Software Requirements - NodeJS - Postman - Installed NPM Packages: `express, Joi, fs` ## How to run 1. Install [NodeJS](https://nodejs.org/en/download) 2. Go to the NodeJS app f...
/* * MIT License * * Copyright (c) 2022-2023 Alexis Jehan * * 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...
package christmas.domain; import christmas.view.input.dto.InputMenuDto; import christmas.view.input.error.InputError; import christmas.view.input.error.InputIllegalException; import java.util.Arrays; import java.util.EnumMap; import java.util.Map; import java.util.Set; import java.util.stream.Collectors; public enum ...
import { MongoClient } from 'mongodb' import { execFile } from 'node:child_process'; import { promisify } from 'node:util'; import axios from 'axios'; const execFilePromise = promisify(execFile); async function provision(uri) { console.log('Provisioning', uri) const client = new MongoClient(uri); await client.co...
/* Copyright (C) 2017 Daniel Schultz This file is part of FLINT. FLINT is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (LGPL) as published by the Free Software Foundation; either version 2.1 of the License, or (at your option)...
<template> <div class="section fp-auto-height"> <div class="content" id="open-source-content"> <b-row> <b-col> <p class="content-header">🌱 Open Source Projects</p> </b-col> <b-col style="text-align:right"> <b-button size="lg" id="github-btn" href="https://github....
from django.core.exceptions import ValidationError from django.db import transaction from rest_framework import serializers from ..common import validators from ..common.clean import sanitize_html from ..common.helper import SerializerHelper from ..riskofbias.serializers import AssessmentRiskOfBiasSerializer from . im...
# Copyright 2023 Efabless Corporation # # 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 in...
// Copyright 2023 Northern.tech AS // // 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 ...
package main import ( "bytes" "fmt" "os" "strconv" ) func parseInput(filename string) [][]int { buff, _ := os.ReadFile(filename) buff = bytes.TrimSpace(buff) lines := bytes.Split(buff, []byte("\n")) sequences := make([][]int, len(lines)) for i, line := range lines { fields := bytes.Fields(line) sequenc...
Background HIV infection among women in the United States has increased significantly over the last fifteen years, and recent estimates suggest that as many as 160,000 adult and adolescent women are living with HIV infection and/or AIDS [ 1 ] . Women accounted for almost one four...
import { useDispatch } from "react-redux"; import { useHistory } from "react-router-dom"; //actions import { signin } from "../../store/actions/authActions"; import React from "react"; import IconButton from "@material-ui/core/IconButton"; import InputLabel from "@material-ui/core/InputLabel"; import Visibility from ...
# coding=utf-8 # RUBEM Hydrological is a QGIS plugin that assists in setup the RUBEM model: # Copyright (C) 2021-2024 LabSid PHA EPUSP # 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 ver...
import { Field, FieldValue, FieldValues, useForm } from "react-hook-form"; import { zodResolver } from "@hookform/resolvers/zod"; import { z } from "zod"; import categories from "./categories"; const schema = z.object({ name: z.string().min(3, { message: "Require at least 3 characters" }), amount: z .number({ ...
% This demo script reproduces the analysis reported in the user guidebook % Junpeng Lao, 2015 March, University of Fribourg %-------------------------------------------------------------------------- % Copyright (C) iMap Team 2015 %% load data file p = userpath; addpath(genpath([ p(1:end-1) '/Apps/iMAP'])); clear all c...
import { RESUME_DATA } from "@/data/resume-data"; import { GlobeIcon, MailIcon } from "lucide-react"; import { Button } from "./ui/button"; import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar"; import Link from "next/link"; export default function Hero() { return ( <div className="...
import { Star, StarOutline, GitHub } from "@mui/icons-material"; import React, { useEffect, useState } from "react"; import "./Explore.css"; import image from "../../assets/image.jpg"; import avatar from "../../assets/avatars/4.png"; import Modal from "../Modal/Modal"; import ProjectInfo from "./ProjectInfo"; export de...
<section> <header> <h2 class="text-lg font-medium text-gray-900"> {{ __('Update Password') }} </h2> <p class="mt-1 text-sm text-gray-600"> {{ __('Ensure your account is using a long, random password to stay secure.') }} </p> </header> <form method="p...
# Gestione delle Priorità nelle Interruzioni Ci potrebbe essere la necessità di stabilire un grado di importanza per gli interrupt che si manifestano, in modo da far gestire alla CPU quello più prioritario. Ogni sistema che si rispetti ha gli interrupt prioritarizzati. Generalmente gli interrupt di I/O hanno meno pr...
2806. Account Balance After Rounded Purchase Easy Topics Companies Initially, you have a bank account balance of 100 dollars. You are given an integer purchaseAmount representing the amount you will spend on a purchase in dollars. At the store where you will make the purchase, the purchase amount is rounded to the ...
using System; using System.IO; using System.Text; using System.Collections.Generic; namespace NAudio.Midi { /// <summary> /// Represents a MIDI sysex message /// </summary> public class SysexEvent : MidiEvent { private byte[] data; //private int length; /// <summa...
<!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 rel="stylesheet" href="{{ url_for('static',filename='css/style.css') }}" /> <link href="https://cdn.jsdelivr....
import Image from "next/image"; import React from "react"; import { useDispatch } from "react-redux"; import { decreaseQTY, increaseQTY, removeFromCart } from "../slices/cartSlice"; import { MinusIcon, PlusIcon } from "@heroicons/react/24/outline"; import Link from "next/link"; const CartItem = ({ item }: any) => { ...
package Zadanie3; import java.util.Random; public class Zadanie3 { private static final int ARRAY_SIZE = 100000000; private static final int THREAD_COUNT = 2; private static int[] generateArray(int size) { Random rand = new Random(); int[] arr = new int[size]; for (int i = 0; i <...
const Koa = require("koa"); const Router = require("koa-router"); const koaStatic = require("koa-static"); const VueServerRenderer = require('vue-server-renderer'); const fs = require('fs') const path = require('path') const router = new Router(); const app = new Koa(); const serverBundle = fs.readFileSync(path.resol...
package com.enigma.tokopedia.Entity; import com.fasterxml.jackson.annotation.JsonBackReference; import jakarta.persistence.*; import lombok.*; @Entity @Table(name = "m_product_price") @Setter @Getter @AllArgsConstructor @NoArgsConstructor @Builder(toBuilder = true) public class ProductPrice { @Id @Generated...
##Libraries library(arules) library(arulesViz) library(dplyr) library(twitteR) library(ROAuth) library(ggplot2) library(tokenizers) library(stopwords) library(rtweet) library(plyr) library(stringr) library(rtweet) library(networkD3) ##Setting Twitter authorization keys consumer_key<-'klef9rsiaHCjKuU0RJUKTPsY9' consume...
#include <iostream> #include <vector> using namespace std; vector<bool> che(int n) { // 1부터 n까지 사용할거라 n+1 크기의 true로 초기화 한 벡터 vector<bool> isPrime(n + 1, true); // 0과 1은 일단 소수가 아니다. isPrime[0] = isPrime[1] = false; for (int p = 2; p * p <= n; p++) { if (isPrime[p]) { ...
import 'package:flutter/material.dart'; import 'package:flutter_staggered_grid_view/flutter_staggered_grid_view.dart'; import 'package:notes/services/notes_database.dart'; import 'package:notes/model/notes.dart'; import 'package:notes/widgets/note_list_widget.dart'; import 'note_edit_page.dart'; import 'note_detail_pag...
<template> <main> <Link href="/2">Link to other page</Link> <Link href="/" :only="['lazy_prop']">Partial reload (only lazy prop)</Link> <button @click="counter++"> Reactive button (clicked {{ counter }} times) </button> <div class="props"> <h1>Props</h1> <span> Message: {{ messag...
package com.example.Final_Project_9team.service; import com.example.Final_Project_9team.dto.InvitationResponseDto; import com.example.Final_Project_9team.dto.ResponseDto; import com.example.Final_Project_9team.dto.user.UserResponseDto; import com.example.Final_Project_9team.entity.Mates; import com.example.Final_Proje...
# Music Representing Corpus Virtual (MRCV) At the same time that MRCV is the title of the musical work, it is the name of the code repository that accompanies said musical work. The main purpose of this work is to introduce the non-technical &| non-machine-learning-ai people to AI/ML (artificial intelligence/machine le...
# Copyright (C) 2021 Greenbone Networks GmbH # Some text descriptions might be excerpted from (a) referenced # source(s), and are Copyright (C) by the respective right holder(s). # # SPDX-License-Identifier: GPL-2.0-or-later # # This program is free software; you can redistribute it and/or # modify it under the terms o...
import { View, Text, TouchableOpacity, Image } from "react-native"; import BouncyCheckbox from "react-native-bouncy-checkbox"; import trash from "../../assets/trash.png"; import { styles } from "./styles"; type TaskProps = { text: string; isComplete: boolean; handleCompleteTask: () => void; handleRemoveTask...
import { existsSync, promises as fs } from 'node:fs' import { join } from 'node:path' import { dir } from './meta.mjs' const sizes = [ 'sm', 'lg', 'xl', ] const colors = map( [ 'red', 'orange', 'blue', ], [ '200', '400', ], ) const variants = [ 'hover', 'first', 'active', 'd...
import React, { useState } from 'react'; const IterationSample = () => { //const names = ['눈사람','얼음','눈','바람']; //const nameList = names.map((name,index) => <li key={index}>{name}</li>) //return <ul>{nameList}</ul>; const [names, setNames] = useState([ { id : 1, text: '눈사람'}, { id : 2, ...
import { points } from './points.ts' type Props = { tenbou :number honba :number oya: string rival: string tsumo: boolean ron: boolean ron_direct: boolean } type HData = { method: string tensa : number aka: string rate: number ex1: string ex2: string ex3: string...
package com.ericsson.swot.messaging.bus; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; import java.net.URL; import java.util.Properties; import java.util.logging.Logger; import com.ericsson.swot.messaging.common.Constants; public class Config { private ...
import React from "react"; import { serverSideTranslations } from "next-i18next/serverSideTranslations"; import WorkProgress from "../sections/WorkProgress"; import Services from "../sections/Services"; import Pictures from "../sections/Pictures"; import Footer from "../sections/Footer"; import Navbar from "../componen...
// // Write a function in C to find the sum of rows and columns of a Matrix. // // Header Files #include <stdio.h> #include <conio.h> #include <stdlib.h> #define MAX_ROWS 10 #define MAX_COLS 10 // // Functions Declarations (Prototypes) void input2DArray(int (*)[], int, int); void print2DArray(int (*)[], int, int); v...
import React from "react"; import { Search } from "@mui/icons-material"; import { IconButton,InputBase } from "@mui/material"; import { GridToolbarDensitySelector, GridToolbarContainer, GridToolbarExport, GridToolbarColumnsButton, } from "@mui/x-data-grid"; import FlexBetween from "./FlexBetween"; const DataGr...
package heman.redis; import java.io.BufferedReader; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.net.HttpURLConnection; import java.net.URL; import java.security.KeyStore; import javax.net.ssl.HttpsURLConnection; import javax.net...
using DinoTrans.Shared.Contracts; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DinoTrans.Shared.DTOs { public class UserDTO { //new user [Required] public strin...
from typing import Tuple, Union, List, Optional import time import itertools from random import Random from CL.Interface.ModularCL.EvalCache import EvalCache from CL.Interface.ModularCL.ModularCLAlgorithm import ModularCLAlg from CL.Interface.Problem import Problem from CL.Interface.NNEvaluator import NNEvaluator from...
import React from 'react'; import { render, screen } from '@testing-library/react'; import { Brand } from 'src/types/brand'; import DevOverlay from '../index'; describe('The DevOverlay Component', () => { it('renders the dev overlay', () => { render( <DevOverlay variables={[]} hideDevOver...