text stringlengths 184 4.48M |
|---|
// 문제 : 1976
// https://www.acmicpc.net/problem/1976
// 시간 복잡도 : ??
// 알고리즘 : union and find
// 풀이 방향 : union and find 알고리즘 이해 필수
//
#include <iostream>
using namespace std;
int unf[201];
int Find(int v)
{
if (unf[v] == v)
return v;
else
return unf[v] = Find(unf[v]);
}
void Union(int a... |
class RandomizedSet {
private:
unordered_map<int, int> valToIdx;
vector<int> v;
public:
RandomizedSet()
{
}
// O(1)
bool insert(int val)
{
if(valToIdx.count(val))
return false;
valToIdx[val] = (int)v.size();
v.push_back(val);
... |
# -*- coding: utf-8 -*-
# -------------------------------------------------------------------------------
# Name: sfp_bingsearch
# Purpose: Searches Bing for content related to the domain in question.
#
# Author: Steve Micallef <steve@binarypool.com>
#
# Created: 06/10/2013
# Copyright: (c) Stev... |
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Rendering;
using System.Threading.Tasks;
using TUTSHOP.Models.Entities;
using TUTSHOP.Models.Repositories;
using System.ComponentModel.DataAnnotations;
using Microsoft.AspNetCore.Authorization;
namespace TUTSHOP.Areas.Admin.Controllers
{
[Area("Admin"... |
import React, { useState, useEffect } from "react";
import axios from "axios";
function UserList() {
const [users, setUsers] = useState([]);
useEffect(() => {
async function fetchUsers() {
try {
const response = await axios.get("http://localhost:5000/usuarios/");
setUsers(response.data);... |
import React, { useContext, useState } from "react";
import styles from "./LoginCard.module.css";
import { IoIosCloseCircleOutline } from "react-icons/io";
import { IoMdEye } from "react-icons/io";
import { IoMdEyeOff } from "react-icons/io";
import {Context} from "../../main"
import axios from "axios";
const register... |
import { useEffect, useState } from "react";
import { Typography, TextField, Button, Container, Box } from "@mui/material";
import MainLayout from "../mainLayout/MainLayout";
// const CLIENT_ID = "id"; //uncomment add past your id
// const CLIENT_SECRET = "key";
function Search1() {
const [searchInput, setSearchIn... |
import React,{useState} from 'react';
import ReactDOM from 'react-dom/client';
import './index.css';
import './components/CSS/Regular.css'
import reportWebVitals from './reportWebVitals';
import Header from './components/Header';
import About from './components/About';
import Footer from './components/Footer';
import H... |
# Introduction
This language provides a faster alternative to writing code for the BES-8 than assembly language. It aims to offer improved productivity and readability while maintaining performance.
## Expressions
Expressions in this language are fundamental building blocks of code, representing computations or oper... |
<template>
<div class="flex flex-1 flex-col overflow-hidden">
<div class="relative z-0 flex flex-1 overflow-hidden">
<main class="relative z-0 flex-1 overflow-y-auto focus:outline-none ">
<article>
<div>
<div>
<img class="h-32 w-full object-cover lg:h-48" :src="p... |
package com.example.adefault.adapter.home;
import android.content.Context;
import android.graphics.Color;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import android.widget.Toast;
import com.example.adefau... |
import React, { useEffect, useRef, useState } from "react";
import { Card, Table, Button, message, Modal } from "antd";
import { PlusOutlined, ArrowRightOutlined } from "@ant-design/icons";
import LinkButton from "../../components/link-button";
import { reqCategorys, addCategorys, updateCategorys } from "../../api";
im... |
/***************************************************************************
* Copyright (C) 2004-2008 by Thomas Fischer *
* fischer@unix-ag.uni-kl.de *
* *
* This progra... |
@extends ('layouts.app')
@section('content')
@include('admin.includes.errors')
<div class="card">
<div class="card-header">
Editar post {{ $post->title }}
</div>
<div class="card-body">
<h5 class="card-title"></h5>
<form action="{{ route('post.updat... |
package sm2test
import (
"crypto/rand"
"fmt"
"gitee.com/zhaochuninhefei/gmgo/x509"
"io/ioutil"
"testing"
"gitee.com/zhaochuninhefei/gmgo/sm2"
"gitee.com/zhaochuninhefei/gmgo/sm2soft"
)
func TestSm2Sign(t *testing.T) {
privSoft, err := sm2soft.GenerateKey(rand.Reader)
if err != nil {
t.Fatal(err)
}
// 验证... |
#*********************************************
#*********************************************
#' Function for extracting the dimensions of 'x'.
#'
#' @param y is an R object accepted by write.TSD().
#' @param numt is the number of time steps. NA
#' @param ts is a numeric vector specifying the rules for regarding the ... |
import React, {useMemo, useState} from 'react';
import './styles/App.css';
import NoteList from "./components/NoteList";
import ButtonApp from "./components/UI/button/ButtonApp";
import NoteForm from "./components/NoteForm";
import ModalView from "./components/UI/modal/ModalView";
import NoteFilter from "./components/N... |
#include <stdio.h>
void HanoiTowerMove(int, char, char, char);
int main(void)
{
// 막대A의 원반 3개를 막대B를 경유하여 막대C로 옮기기
HanoiTowerMove(3, 'A', 'B', 'C'); //원반갯수, 막대A, 막대B, 막대C
return 0;
}
void HanoiTowerMove(int num, char a, char b, char c)
{
if (num == 1) // 이동할 원반의 수가 1개라면
{
printf("원반 1 : %c --> %c \n", a, c)... |
//
// AppDelegate.swift
// PushManager
//
// Created by Daniyal Yousuf on 10/4/18.
// Copyright © 2018 Daniyal Yousuf. All rights reserved.
//
import UIKit
import UserNotifications
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate,UNUserNotificationCenterDelegate {
var window: UIWin... |
# Contact Summary Layout Editor
**Customize the contact summary screen.**
Have you ever wanted to rearrange the contact summary screen? Move the most important information to the top? Remove unnecessary stuff? Create a simplified layout for your volunteers and interns but a more robust layout for your fundraising tea... |
"use server";
import {cookies} from "next/headers";
import {redirect} from "next/navigation";
import {encrypt} from "@/lib/jwt";
import {getExpires} from "@/lib/session";
/**
* Logs the user in by setting a session cookie
* and redirecting to the profile page
*/
export async function login(formData: FormData) {
... |
import { Injectable } from '@nestjs/common';
import { CreateBusRouteDto } from './dto/create-bus-route.dto';
import { UpdateBusRouteDto } from './dto/update-bus-route.dto';
import { InjectModel } from '@nestjs/mongoose';
import { Model } from 'mongoose';
import { BusRoute, BusRouteDocument } from './entities/bus-route.... |
/*
* Copyright 2005 by Paulo Soares.
*
* The contents of this file are subject to the Mozilla Public License Version 1.1
* (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.mozilla.org/MPL/
*
* Software distributed under the Lic... |
//
// PlayerUIComposer.swift
// ClickmeliveUI
//
// Created by Can on 4.03.2024.
//
import Foundation
import UIKit
final class PlayerUIComposer {
private init() {}
static func makeLiveEventPlayerViewController(id: String,
username: String,
... |
<!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">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>Callie... |
import { CommonModule } from '@angular/common';
import { HttpClient, HttpClientModule } from '@angular/common/http';
import { Component, inject, OnInit } from '@angular/core';
import { MatButtonModule } from '@angular/material/button';
import { Router } from '@angular/router';
import { Observable, tap } from 'rxjs';
im... |
/*
* Copyright 2021-2022 the original author or 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 app... |
import React from 'react';
import logo from './logo.svg';
import './App.css';
import KeyCloakService from './security/KeyCloakService';
import axios from 'axios';
function logout() {
KeyCloakService.CallLogout();
}
function getData() {
console.log("KC_TOKEN: " + KeyCloakService.GetToken());
const config = {
... |
/****************************************************************************************************************************
ISR_Changing_PWM.ino
For AVR ATmega164, ATmega324, ATmega644, ATmega1284 with MightyCore
Written by Khoi Hoang
Built by Khoi Hoang https://github.com/khoih-prog/ATmega_Slow_PWM
Licens... |
package tankgame.game;
import tankgame.GameConstants;
import tankgame.Launcher;
import tankgame.resources.ResourceManager;
import tankgame.game.movable.Tank;
import tankgame.game.movable.TankControl;
import javax.swing.*;
import java.awt.*;
import java.awt.event.KeyEvent;
import java.awt.image.BufferedImage;
public c... |
<template>
<div
ref="imageRef"
class="vac-image-container"
:class="{ 'vac-image-container-loading': isImageLoading || err }"
>
<loader
:style="{ top: `${imageResponsive.loaderTop}px` }"
:show="isImageLoading"
v-if="!isHidden"
/>
... |
import React, { useEffect, useState } from "react";
import { View, Text, FlatList, Image, Alert } from "react-native";
import { api } from "../../services/api";
import { useRoute } from "@react-navigation/native";
import { useFavorite } from "../../hooks/favorites";
import { BackButton } from "../../components/BackBu... |
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
// 오른쪽 상단 디버그 글씨 없애기
debugShowCheckedModeBanner: false,
title: "BBANTO",
home: G... |
import { otherwise, switchTag } from "./mod.ts"
import { assertEquals, assertThrows, Result, test, zip } from "./test_deps.ts"
type ReqResult = Result<number, string>
const switchResult = switchTag("type")
const reqs: ReqResult[] = [
{ type: "ok", value: 1, otherTag: 1 },
{ type: "err", error: "error", otherTag:... |
# BMI Calculator
Simple Python program to calculate Body Mass Index (BMI) for adults. The program asks the user for weight and height in either metric or imperial. The program was inspired by a health app on my iPhone thats linked to a smart scale that tracks changes in my weight.
The program contains helper function... |
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';
import 'package:v01/kit/kit_talep/saglik/cart_model_saglik.dart';
import 'package:v01/kit/taleplerim/taleplerim.dart';
import '../../kargo/constants.dart';
import '../kit_talep/besin/cart_model_besin.dart';
import 'package:v01/kit/kit_tale... |
import React from 'react'
import { FormattedMessage, injectIntl } from 'gatsby-plugin-intl'
import { Container, Row, Col } from 'react-bootstrap'
import Innovation from '../element/innovation'
import watchTVImg from '../../assets/image/watching-tv.jpg'
import snapTVImg from '../../assets/image/snap-with-mobile-phone.j... |
import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { Observable } from 'rxjs';
import { Student } from '../interfaces/student';
import { environment } from 'src/environments/environment';
@Injectable({
providedIn: 'root'
})
export class StudentService {
message: st... |
# 1 - Conectar com o banco de dados
from sqlite3 import connect
conn = connect("blog.db")
cursor = conn.cursor()
# 2 - Definir e criar a table caso ela não exista
conn.execute(
"""\
CREATE TABLE IF NOT EXISTS post(
id integer PRIMARY KEY AUTOINCREMENT,
title varchar UNIQUE NOT NULL,
... |
import axios from "axios"
import { useState } from "react"
import {updateUser } from "./redux/userSlice"
import { useDispatch, useSelector } from "react-redux"
import { useNavigate, useParams } from "react-router-dom"
function UpdateUser() {
const {id} = useParams()
const users = useSelector(state... |
---
title: Linked List
description: Linked List Data Structure
hide_table_of_contents: true
---
import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";
import CodeBlock from "@theme/CodeBlock";
import Go from "!!raw-loader!./assets/linkedList/go.go";
import Java from "!!raw-loader!./assets/linkedList/ja... |
package com.nicolas.zenos.navigationdrawer;
import android.os.Bundle;
import android.view.View;
import android.view.Menu;
import com.google.android.material.floatingactionbutton.FloatingActionButton;
import com.google.android.material.snackbar.Snackbar;
import com.google.android.material.navigation.NavigationView;
i... |
import {
MinLength,
MaxLength,
Min,
Max,
Matches,
Equals,
IsInt,
} from "class-validator";
export class SpellStoreCreateDto {
@MinLength(2)
@MaxLength(16)
@Matches(/^[A-Z]/)
name: string;
@Matches(/^(Dark|Light|Curse)$/g)
type: string;
@IsInt()
@Min(1)
@Max(9999)
atk: number;
@Is... |
import { useState } from "react";
const Header = () => {
const [isOpen, setIsOpen] = useState();
return (
<>
<nav className="bg-gray-800">
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div className="flex items-center justify-between h-16">
<div className="flex i... |
#ifndef UserSession_HPP_H
#define USERS_HPP_H
#include "Globals.hpp"
#include "db/UserInfo.pb.h"
#include <Wt/Auth/AbstractUserDatabase>
#include <Wt/Auth/PasswordHash>
#include <string>
#include <ctime>
namespace W
{
class DatabaseSession;
}
namespace W
{
static const unsigned USERNAME_BUFFER_SIZE = 50;
class ... |
import { CircularProgress, Typography } from '@mui/material'
import React, { useEffect } from 'react'
import { useDispatch, useSelector } from 'react-redux';
import { useNavigate } from 'react-router-dom';
import DoubtCard from '../components/DoubtsCard/DoubtCard'
import { getAllDoubt } from '../redux/actions/doubtActi... |
package com.tyss.flipkart.pages;
import java.util.List;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;
import org.testng.Assert;
import com.tyss.demo.commonUtils.ActionUtility;
import com.tyss.dem... |
Memcache
========
Memcache is an in-memory transient key/value store typically used for caching. It's a key technology for building scalable web apps.
Gem setup
---------
The [memcached](http://github.com/fauna/memcached) gem is the only Ruby memcache client that will work on Heroku. Memcached is a ruby interface t... |
import { useAccount, useChainIdMatched } from '@masknet/plugin-infra/web3'
import { makeStyles } from '@masknet/theme'
import { NetworkPluginID } from '@masknet/web3-shared-base'
import { Button, Divider, Grid, Typography, Container } from '@mui/material'
import { FurucomboIcon } from '../../../resources/FurucomboIcon'... |
import React, { lazy, Suspense, useMemo } from "react";
import { useCustom, useNavigation } from "@refinedev/core";
import { ProjectOutlined, RightCircleOutlined } from "@ant-design/icons";
import { PieConfig } from "@ant-design/plots";
import { Button, Card } from "antd";
import { Text } from "@/components";
import... |
# Server-PS-Checks
Check Drive Space, Optimizes Drives, Checks Logs, and Last Updates
Purpose:
This PowerShell script gathers and outputs various details about a Windows system, performs some optimization tasks, and collects event log data for diagnostic purposes. The script aims to provide insights into the system's ... |
import { create } from "zustand";
import type { Model, Profile, Thread } from "~/types/appstate";
const models = [
{
name: "GPT-3.5-TURBO",
id: "gpt-3.5-turbo",
description:
"Most capable GPT-3.5 model and optimized for chat at 1/10th the cost of text-davinci-003. Will be updated with our latest mo... |
import { Container, Row, Spinner } from "react-bootstrap";
import AlbumCard from "./AlbumCard";
import { useSelector, useDispatch } from "react-redux";
import { fetchAlbums } from "../redux/actions/fetchAlbums";
import { useEffect } from "react";
function Home() {
const fetchedAlbums = useSelector((state) => state.f... |
// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
// Copyright (C) 2012 - Michael Baudin
// Copyright (C) 2012 - Scilab Enterprises - Vincent COUVERT
//
// Copyright (C) 2012 - 2016 - Scilab Enterprises
//
// This file is hereby licensed under the terms of the GNU GPL v2.0,
// pursuant to article 5.3.4... |
package com.blogspot.ostas.leetcode.all.medium.split_array_into_fibonacci_sequence;
import org.junit.jupiter.api.Test;
import java.util.List;
import static org.assertj.core.api.Assertions.assertThat;
class SolutionTest {
/*
Example 1:
Input: num = "1101111"
Output: [11,0,11,11]
Explanation: T... |
import React, { useState } from 'react';
const UserForm = (props) => {
const [firstName, setFirstName] = useState("");
const [firstNameError, setFirstNameError] = useState("");
const [lastName, setLastName] = useState("");
const [lastNameError, setLastNameError] = useState("");
const [email, setEm... |
// import Icon component from antd
import { Icon } from 'antd';
// import Axios module from axios for Promise based HTTP request
import Axios from 'axios';
// import React module from react for JSX
import React from 'react';
// import connect function from react-redux
import { connect } from 'react-redux';
// impor... |
[Главная](../../README.md) / [Помощники](../helpers.md) / is_scalar
[Исходный код](../../src/helpers/is_scalar.mjs)
# `is_scalar`
`is_scalar` — Проверяет, является ли значение скалярным.
## Сигнатура функции
```ts
function is_scalar(value: any): boolean;
```
## Параметры
- `value` (any)
Значение, кото... |
<template>
<section class="max-w-4xl p-6 mx-auto bg-white rounded-md shadow-md dark:bg-gray-800">
<h2 class="text-lg font-semibold text-gray-700 capitalize dark:text-white">Update Password</h2>
<form @submit.prevent="updatePassword">
<div class="grid grid-cols-1 gap-6 mt-4 px-10">
<di... |
import { useRef, useState } from "react";
import toast from "react-hot-toast";
import { useTranslation } from "react-i18next";
import Api from "api";
import { LeanCategoryDocument } from "categories-types/models/Category";
import { FetchFunction } from "core-cra-components/UncontrolledDataTable/types";
import { useAle... |
import pygame
import random
import time
import math
from utils import scale_image, blit_text_center
from cars import PlayerCar, AICar
from cars import create_border_mask
from game_info import GameInfo
import items
pygame.init()
pygame.font.init()
# 기본 설정
FPS = 60
MAIN_FONT = pygame.font.SysFont("comicsans", 35)
# 이... |
import React from 'react';
import { useState } from 'react';
import useEmployee from '../../hooks/useEmployee';
import DatePicker from 'react-datepicker';
import States from '../../datas/states.js';
import Services from '../../datas/services.js';
import 'react-datepicker/dist/react-datepicker.css';
import './form.css'... |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0; you may not use this file except in compliance with the Elastic License
* 2.0.
*/
import { render } from '@testing-library/react';
import { createMe... |
# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries
# SPDX-License-Identifier: MIT
import datetime
import time
import serial
import json
import adafruit_fingerprint
# import board
# uart = busio.UART(board.TX, board.RX, baudrate=57600)
# If using with a computer such as Linux/RaspberryPi, Mac, Windows w... |
<template>
<table>
<tbody>
<tr class="font-bold border-b border-gray-400">
<td class="px-2 py-1">{{ label }}</td>
<td class="text-right pr-1 min-w-8" v-text="partial" />
<td class="pr-2 text-gray-700 text-sm whitespace-nowrap">/ {{ total }}</td>
</tr>
<tr v-for="(count, t... |
# US025 - Cancel an entry in the Agenda
## 4. Tests
**Test 1:** Test if the status of the entry changes to CANCELLED after cancelling
@Test
void cancelEntryShouldChangeStatusToCancelled() {
agendaController.cancelEntry(entry);
assertEquals(Status.CANCELLED, entry.getStatus());
}
}
**Test... |
import React from "react";
import { Table } from "antd";
import { useNavigate } from "react-router-dom";
import { documentTableColumns } from "./document-column.component";
import { useDocument } from "hooks/document.hook";
import { NoContent } from "components/shared/no-content/no-content.component";
import { IDocumen... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<title>ThiNguyen - My Resume</title>
<meta content="" name="description">
<meta content="" name="keywords">
<!-- Favicons -->
<!-- Google Fonts -->
<link href="https:... |
import { useTranslation } from 'next-i18next'
import Link from 'next/link'
import React, { FC } from 'react'
import ReactModal from 'react-modal'
import useLocationPin from '../../lib/useLocationPin'
import { useLocations } from '../../services/apiQueries'
import Button from '../Button'
import Table from '../Table'
ty... |
// This MFC Samples source code demonstrates using MFC Microsoft Office Fluent User Interface
// (the "Fluent UI") and is provided only as referential material to supplement the
// Microsoft Foundation Classes Reference and related electronic documentation
// included with the MFC C++ library software.
// License ... |
Highcharts.chart("supporters_graph", {
chart: {
type: "column",
},
title: {
text: "Número de Hinchas Registrados por Deporte",
},
xAxis: {
categories: [
"Clavados",
"Natación",
"Natación artística",
"Polo acuático",
... |
<%= bootstrap_devise_error_messages! %>
<div class="panel panel-default">
<div class="panel-heading">
<h4>Edit profile</h4>
</div>
<div class="panel-body">
<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => {:method => :put}) do |f| %>
<div class="Cover... |
import React, { ReactElement } from 'react';
import logo from './assets/logo.png';
import Image from 'next/image';
import Link from "next/link"
// icons
import { BsHouseFill } from "react-icons/bs";
import { RiLoginBoxFill } from "react-icons/ri";
import { FaUserPlus } from "react-icons/fa";
import { BsFillInfoCircleF... |
using UnityEngine;
namespace MakeMeLaugh.Scripts
{
[RequireComponent(typeof(BossControl))]
[RequireComponent(typeof(BossStats))]
public class BossAI : MonoBehaviour
{
private Transform _opponent;
[SerializeField] private AnimationCurve approachWeight = AnimationCurve.Linear(0.0f, 200.0... |
#ifndef PUBLICTRANSPORTGRAPH_NETWORK_H
#define PUBLICTRANSPORTGRAPH_NETWORK_H
#include "location.h"
#include "ptrcomparator.h"
#include <iostream>
#include <map>
#include <set>
class BusLine;
class BusStop;
class Network {
public:
friend class LGraphGenerator;
friend class CGraphGenerator;
static const ... |
package UF2.Ejercicio;
import UF2.Exemplos.TascaProgramada;
import java.util.Calendar;
import java.util.GregorianCalendar;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.TimeUnit;
public class Ca... |
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
package com.facebook.react.views.text
import com.facebook.react.common.ReactConstants
/**
* Implementation of [EffectiveTextAt... |
package test.javafx.scene.control;
import static junit.framework.Assert.*;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Ignore;
import org.junit.Test;
import java.time.LocalDate;
im... |
## SOUNDSCAPE CHARACTERIZATION
# References
# Campos‐Cerqueira, M., et al., 2020. How does FSC forest certification affect the acoustically active fauna in Madre de Dios, Peru? Remote Sensing in Ecology and Conservation 6, 274–285. https://doi.org/10.1002/rse2.120
# Furumo, P.R., Aide, T.M., 2019. Using soundscapes to ... |
import { Container, FederatedPointerEvent, Graphics, Sprite, Point } from 'pixi.js';
import "@pixi/math-extras";
import { Direction, Color, DirectionEnum, angleBetween, mod, MoveType } from './Utils';
import { CardQueue } from './CardQueue';
import server from "../server";
const ALLOWED_POS_OFFSET = 5;
const ALLOWED_T... |
package com.dorck.app.code.guard.visitor
import com.dorck.app.code.guard.obfuscate.IAppCodeObfuscator
import com.dorck.app.code.guard.obfuscate.MethodEntity
import com.dorck.app.code.guard.obfuscate.RandomCodeObfuscator
import com.dorck.app.code.guard.utils.DLogger
import com.dorck.app.code.guard.utils.RandomTool
impo... |
import React from "react";
import {
Box,
Flex,
Icon,
Stack,
Button,
Text,
useDisclosure,
useColorMode,
useColorModeValue,
Image,
} from "@chakra-ui/react";
import { X, AlignRight, Sun, Moon } from "react-feather";
import { Link, useNavigate } from "react-router-dom";
import { LOC... |
import 'dart:math';
import 'dart:ui';
import 'package:flutter/material.dart';
class CircularProgressPage extends StatefulWidget {
@override
_CircularProgressPageState createState() => _CircularProgressPageState();
}
class _CircularProgressPageState extends State<CircularProgressPage>
with SingleTickerProvide... |
//
// ssl/rfc2818_verification.hpp
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2021 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#ifndef ASI... |
import { useContext, useState } from "react";
import cardContext from "../../context/CardContext";
import { Spin, message } from "antd";
import { loadStripe } from "@stripe/stripe-js";
const CartTotals = () => {
const { cardItem } = useContext(cardContext);
const [loading, setLoading] = useState(false);
const a... |
import React, { useState } from 'react';
import { Card, Typography, Slider } from '@mui/material';
export const ParameterCard = ({ description, min, max, step, defaultValue, onChange }) => {
const [sliderValue, setSliderValue] = useState(defaultValue);
const handleSliderChange = (event, newValue) => {
setSlid... |
package com.mogo.data.repository
import com.mogo.data.mapper.MovieDetailMapper
import com.mogo.data.remote.NetworkService
import com.mogo.data.remote.handleNetworkCall
import com.mogo.domain.model.MovieInfo
import com.mogo.domain.repository.MovieDetailRepository
import com.mogo.domain.utils.Result
import javax.inject.... |
/*
* JBoss, Home of Professional Open Source.
* Copyright 2006, Red Hat Middleware LLC, and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify i... |
\documentclass{beamer}
%\documentclass[aspectratio=169]{beamer}
\usetheme{metropolis}
\input{wuespace_style}
\newcommand\Wider[2][3em]{%
\makebox[\linewidth][c]{%
\begin{minipage}{\dimexpr\textwidth+#1\relax}
\raggedright#2
\end{minipage}%
}%
}
\AtBeginSubsection
{
\begin{frame}
\frametitle{... |
### sqlalchemy
https://www.tutorialspoint.com/sqlalchemy/sqlalchemy_core_connecting_to_database.htm
https://docs.sqlalchemy.org/en/20/tutorial/dbapi_transactions.html
## create_engine()
Engine class connects a Pool and Dialect together to provide a source of database connectivity and behavior.
An object of Engine clas... |
namespace IntervalTimer_Uno.Presentation;
public partial class TimerViewModel : ObservableObject
{
#region External References
// ----------------------------------------------
private INavigator navigator;
private Business.Models.Timer timer;
// ----------------------------------------------
... |
package com.ascendcorp.androidtechpoc.screen.home.main.adapter
import android.content.Context
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.core.view.doOnPreDraw
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import com.ascend... |
import { API_RESPONSES, NOTI_MESSAGES, STATUS_CODE } from "@/lib/constants";
import { getAuthSession } from "@/lib/auth";
import prisma from "@/lib/db/prisma";
import { NextRequest, NextResponse } from "next/server";
import { isAdmin, isCreator } from "@/lib/db/db";
import { Entity } from "@prisma/client";
//POST: /ap... |
import pika
from pydantic import json
from fastapi import FastAPI
from pydantic import BaseModel
app = FastAPI()
class RabbitMQ:
def __init__(self, host, port, queue_name):
self.connection = pika.BlockingConnection(
pika.ConnectionParameters(host=host, port=port)
)
self.channe... |
import React, { useState } from "react"
import ToDoCss from "../css/ToDoCss.css"
import { Form, Container, Button, Row, Col } from 'react-bootstrap';
import { BsX } from 'react-icons/bs';
const ToDo = () => {
const [toDo, setToDo] = useState("")
const [toDoArray, setToDoArray] = useState([])
const addToDo ... |
import logging
import os
from joblib import Parallel, delayed
from functools import partial
import numpy as np
from sklearn.utils import resample
from sklearn.metrics import f1_score, average_precision_score
import torch
from ignite.utils import setup_logger
from .utils import archive_code, expanduservars, _build_d... |
# rvest run -------------------------------------------------------------------
library(rvest)
library(lubridate)
library(ggplot2)
library(leaflet)
library(here)
# read in activity
activity <- read_html(here::here('data', "run_outdoor.gpx"))
#extractmetrics: heart rate, timepoints, and coordinates
hr <- as.numeric(ac... |
import java.util.Scanner;
public class example {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.println("Enter a number: ");
int n = sc.nextInt();
sc.close();
// create a 2D array to store the pattern
int[][] arr = ... |
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
@testable import Client
@testable import Data
import Shared
import Storage
import UIKit
import WebKit
import XCTes... |
export type AnyFunction = (...args: any[]) => any;
/** 小程序组件属性类型 */
export type MpPropType =
| typeof String
| typeof Object
| typeof Number
| typeof Boolean
| typeof Function
| typeof Array
| null;
/** 小程序组件属性 */
export interface MpComponentProp<T = any, C extends MpComponentInstance = an... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.