text
stringlengths
184
4.48M
% % Valve network planning for Advent of Code 2022 Day 16. % % From https://github.com/zayenz/advent-of-code-2022 % Instead of using differnet networks for varying hardness, this model % uses different planning horizons for adjusting the hardness of the problem. % % Model by Mikael Zayenz Lagerkvist % include "global...
(* DO NOT EDIT THIS FILE CASUALLY !!! *) foo (* line 1 *) """ this is a triple quote confined to a single line """ (* line 2 *) # Ocaml doesn't recognize this as a comment (* line 3 *) (* This line starts a multi-line nested comment bar (* (* ...
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <script> //The cells contain 0 or 1 but the font is so small it effectively //renders them invisible const stopStartText = ["Start", "Stop"] const startTextIndex = 0 const stopTextIndex = 1 const classes = ["grid-item set-green", "grid-item set-red"] const delay = 7...
"""Removes duplicate entries from a JSONL file.""" import warnings import click import json from pathlib import Path import logging from huggingface_hub import HfApi from huggingface_hub.hf_api import RepositoryNotFoundError import re from tqdm.auto import tqdm logging.basicConfig( level=logging.INFO, format="%(a...
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.17; import {SafeERC20} from "openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import {IERC20Metadata} from "openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol"; import {TypeCasts} from "../../../shared/libraries/TypeCasts.sol"; import ...
import { ICard, ICardImage, BanlistInfo } from './card.interface'; enum Category { MONSTER, SPELL, TRAP, } const trapCardId = 'Trap Card'; const spellCardId = 'Spell Card'; export class Card { id: number; name: string; type: string; race: string; desc: string; card_images: ICardImage[]; archetype...
import { HttpClient } from '@angular/common/http'; import { EventEmitter, Injectable } from '@angular/core'; import { Observable, catchError, map, throwError } from 'rxjs'; import { Producto } from '../models/producto'; const API_URL = 'https://static.compragamer.com/test/productos.json'; @Injectable({ providedIn: ...
// // FailViewModel.swift // CombineLearning // // Created by Artem Vinogradov on 14.06.2022. // import Foundation import Combine enum InvalidNumError: Error { case lessThanZero case moreThanTen } class FailViewModel: ObservableObject { @Published var num = 0 @Published var error: InvalidNumErro...
<template> <div> <!-- 검색어 입력 input --> <div class="searchfield-wrap"> <input id="searchfield" type="text" :placeholder="placeholder" @touchstart="recentKeyword = true, dimmed = true" @keyup="relatedKeyword = true, recentKeyword = false" > <img class="img-search" inline src="@/assets/im...
<!DOCTYPE html> <html> <head> <title>Home</title> <style> /* Add some styling to the page */ body { margin: 0; padding: 0; font-family: sans-serif; } .container { display: flex; justify-content: center; align-items: center; height...
from flask import Flask, render_template, request, redirect, url_for, flash from flask_sqlalchemy import SQLAlchemy from sqlalchemy.exc import IntegrityError from sqlalchemy import func from flask_bootstrap import Bootstrap # Flask WTF from flask_wtf import FlaskForm from wtforms import StringField, TextAreaField from...
# Glaze calculator import numpy as np import re class Element: def __init__(self, symbol, name, atWt): self.symbol = symbol self.name = name self.atWt = atWt element_data = [ \ ('Aluminum', 'Al', 26.97), \ ('Barium', 'Ba', 137.36), \ ('Bismuth', 'Bi', 209.00), \ ('Boron', '...
![screenshot](design/screenshot.png) Fancy RWKV client. [Preview](https://rwkv-web-01.surge.sh/) (may be out-of-date. Install this locally for best experience) This application requires [rwkv-flask](https://github.com/iacore/rwkv-flask) running as the server. Go to that repo for installation guide. ## Installation ...
/** * 加载远程css * 可根据 :root 变量判断 防止重复添加 * @param {string|string[]} url * @param {() => boolean} [checkFunc] * @param {string} prop */ export function loadRemoteCss(url: string | string[], checkFunc: Function, prop: string) { return new Promise(async (resolve, reject) => { if (typeof url === 'string') { ...
import Knex from 'knex' import { GraphDBModel } from '../core/models/graphModel' import { SchemaDBModel } from '../core/models/schemaModel' import { SchemaTagDBModel } from '../core/models/schemaTagModel' import { ServiceDBModel } from '../core/models/serviceModel' export async function up(knex: Knex): Promise<void> {...
import { FileOps } from './plugins/file-ops/file-ops'; import { ICallgraphEdge } from './interfaces/callgraph-edge.interface'; import { CallGraphTransformations } from './plugins/callgraph-transformations'; import { ASTTransformations } from './plugins/ast-transformations'; import { Node } from './models/node.model'; i...
import React from "react" import { useEffect } from "react" import { useState } from "react" function App() { const [todos, setTodos] = useState([]) useEffect(()=>{ setInterval(function() { fetch("https://sum-server.100xdevs.com/todos").then( // it's the backend server to get the todos lis...
/* * This file is part of the SYMPLER package. * https://github.com/kauzlari/sympler * * Copyright 2002-2013, * David Kauzlaric <david.kauzlaric@frias.uni-freiburg.de>, * and others authors stated in the AUTHORS file in the top-level * source directory. * * SYMPLER is free software: you can redistribute it a...
import 'dart:io'; import 'package:path_provider/path_provider.dart'; import 'package:sqflite/sqflite.dart'; import 'note.dart'; class DatabaseHelper1 { static DatabaseHelper1 _databasseHelper; static Database _database; String noteTable = 'note_table'; String colId = 'id'; String colTitle = 'title'; Str...
<?php namespace App\Http\Controllers; use App\Models\project; use Illuminate\Http\Request; class ProjectController extends Controller { /** * Display a listing of the resource. */ protected $project; public function __construct() { $this->project = new project(); } public ...
import React from 'react' import { DndContext, closestCenter } from "@dnd-kit/core"; import { SortableContext, rectSortingStrategy, } from "@dnd-kit/sortable"; import { useState, useEffect } from "react"; import { SortableItem } from "../component/SortableItem"; import Header from "../component/Header"; import Load...
import { Button, CircularProgress, Container, Grid, Typography } from "@material-ui/core"; import axios from "axios"; import React, { lazy, Suspense, useEffect, useState } from "react"; import { useSelector } from "react-redux"; import { useParams } from "react-router"; import { toast } from "react-toastify"; import au...
import React from 'react' import { Col } from 'reactstrap'; import { Link } from 'react-router-dom'; import { motion } from 'framer-motion'; import '../../styles/product-card.css' const ProductCard = ({i}) => { return ( <Col lg='3' md='4' className='mb-2'> <div className="product__item"> ...
/**************************************************************************** * Copyright (c) 2023, CEA * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * 1. Redistributions of source code must retai...
package com.hemanth.junit5testing; import com.hemanth.junit5testing.model.Book; import com.hemanth.junit5testing.service.BookService; import org.junit.jupiter.api.Test; import java.util.List; import static org.junit.jupiter.api.Assertions.assertTrue; public class AssertTrueDemo { @Test public void assertTr...
//package com.fruntier.fruntier.running.repository; // //import com.fruntier.fruntier.running.domain.Coordinate; //import com.fruntier.fruntier.running.domain.Edge; //import com.fruntier.fruntier.running.domain.Vertex; //import org.assertj.core.api.Assertions; //import org.junit.jupiter.api.AfterEach; //import org.juni...
import { Injectable } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { Observable } from 'rxjs'; import { Student } from './student.model'; @Injectable({ providedIn: 'root' }) export class StudentService { private apiUrl = 'assets/students.json'; // Emplacement du fichier JSON c...
<!DOCTYPE html> <html lang="en" dir="ltr"> <head> <meta charset="utf-8" /> <title>Task 5</title> <script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha256-4+XzXVhsDmqanXGHaHvgh1gMQKX40OUvDEBTu8JcmNs=" crossorigin="anonymous" ></script> </head> <body> <...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <link rel="icon" href="favicon.ico" /> <link rel="stylesheet" href="main.css" /> <title>Minx</title> </head> <body> <header> <h1 style="font-weigh...
import React, { useEffect } from 'react' import { useDispatch, useSelector } from 'react-redux' import { Link, useParams } from 'react-router-dom' import { fetchUser, getUser } from '../features/User' import Display from './Display' const UserDetail = () => { const { id } = useParams() const dispatch = useDisp...
import 'package:flutter/material.dart'; import 'package:hooks_riverpod/hooks_riverpod.dart'; import 'package:portfolio/src/common/widgets/animated_fade_slide.dart'; import 'package:portfolio/src/common/widgets/selection_area.dart'; import 'package:portfolio/src/constants/sizes.dart'; import 'package:portfolio/src/featu...
defmodule TextClient.Impl.Player do @typep game :: Hangman.game @typep tally :: Hangman.tally @typep state :: { game, tally } @spec start() :: :ok def start() do game = Hangman.new_game() tally = Hangman.tally(game) interact({ game, tally }) end # @type state :: :intializing | :won | :...
import React, { useContext, useState } from 'react' import { createContext } from 'react' const AuthContext=createContext(null) const AuthProvider = ({children}) => { const [user ,setUser]=useState(null) const login = (user)=>{ setUser(user) } const logout = ()=>{ setUser(n...
package com.example.colorquest import android.os.Bundle import androidx.activity.ComponentActivity import androidx.activity.compose.setContent import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.material3.MaterialTheme import androidx.compose.material3.Surface import androidx.compose.material...
/* * Copyright (C) 2013-2017 microG Project Team * * 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 ...
<x-app-layout> <x-slot name="header"> <h2 class="font-semibold text-xl text-gray-800 dark:text-gray-200 leading-tight"> {{ __('Code') }} </h2> </x-slot> <div class="container text-center" x-data="{ number:'' }"> <div class="row"> <div class="col-4 flex items-...
import uniq from "lodash/uniq"; import uniqBy from "lodash/uniqBy"; import { useCallback, useEffect, useMemo, useState } from "react"; import { useQuery } from "react-query"; import { useNotification } from "../../components/NotificationProvider"; import { KeywordSearchResponse } from "../../connector/AbstractConnector...
using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using LawAPI.Database.Entities; using LawAPI.Dto.MenuElement; using LawAPI.ORM; using LawAPI.Repositories.ExtendedBaseEntityRepositories; using Swashbuckle.Swagger.Annotations; using System.Net; namespace LawAPI.Controllers { [ApiController...
import { useDispatch, useSelector } from "react-redux"; import {FaWhatsapp,FaMoneyCheckAlt} from 'react-icons/fa' import { useNavigate } from "react-router"; import { Link } from "react-router-dom"; import { addToCart } from "../slices/cartSlice"; import { useEffect, useState } from "react"; import axios from "axios";...
<h3>Add / Edit Performer <small>Add a new Performer or Edit an existing Performer.</small> </h3> <!-- START row--> <div class="row"> <div class="col-lg-6"> <form name="artistInfo" validate-form="" novalidate role="form"> <!-- START panel--> <div class="panel panel-default"> <div class="panel...
#include "CalculateScore.h" class CalculateScore : public ICalculateScore { public: /// <summary> /// Tüm taþlarýn katsayýsýna göre puanlamalarýnýn hesaplanmasýný saðlar. /// </summary> /// <param name="chessboard">Santranç Tahtasý</param> std::map<std::string,double> calculateScore(std::vector<st...
import { Alert, FlatList, Pressable, StyleSheet, Text, View } from "react-native"; import { useDispatch, useSelector } from "react-redux"; import CartListItem from "../components/CartListItem"; import { selectSubCartTotal, selectDeliveryFee, selectTotal, clearCart, } from "../store/cartSlice"; import { useCre...
import 'package:flutter/material.dart'; import 'package:kima/src/utils/colors.dart'; import 'package:qr_flutter/qr_flutter.dart'; import '../../utils/widgets/common/button_widget.dart'; class ProfileQRCodeScreen extends StatefulWidget { const ProfileQRCodeScreen({super.key}); static const route = '/profile/qr_co...
import torch import numpy as np import os from typing import Tuple from torch.utils.data import Dataset from torchvision.transforms import ToTensor, Resize from LookGenerator.datasets.utils import load_image class PersonSegmentationDatasetMultichannel(Dataset): """ DEPRECATED Dataset for a Person Segmen...
--- date: 2024-06-06 id: processors title: Log Processors --- Every pipeline includes a chain of processors that define the transformations it will apply to logs. When a log matches a pipeline's filter, it is transformed by each processor in the pipeline one by one. The following log transformation processors are ava...
// // SignUpViewModel.swift // VolunteerSigniiner // // Created by Jhen Mu on 2023/4/2. // import Foundation import RxSwift import RxCocoa import RxRelay import GoogleSignIn import FirebaseAuth import FBSDKLoginKit enum AuthError: Error { case unknown case cancelled } class SignUpViewModel { var ...
--- description: 設定可傳送Customer Journey Analytics資料的雲端匯出位置 keywords: Analysis Workspace title: 設定雲端匯出位置 feature: Components exl-id: 93f1cca0-95da-41a0-a4f9-5ab620a5b9da source-git-commit: dbc0210936e8205fbe97b3c88e6c37597e7e43e3 workflow-type: tm+mt source-wordcount: '1510' ht-degree: 4% --- # 設定雲端匯出位置 在您可以將Customer ...
package com.google.android.setupdesign.view; import android.content.Context; import android.content.res.TypedArray; import android.util.AttributeSet; import android.view.KeyEvent; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.view.accessibility.Accessibilit...
<script lang="ts"> import { PatientReadingGraph } from '$lib/components'; import type { PageData } from './$types'; import { page } from '$app/stores'; import { getContext } from 'svelte'; import type { Writable } from 'svelte/store'; import type { Toast } from '$lib/stores'; import { goto } from '$app/navigatio...
=head1 NAME WebService::UMLSKS::ConnectUMLS - Authenticate the user before accessing UMLSKS with valid username and password. =head1 SYNOPSIS =head2 Basic Usage use WebService::UMLSKS::ConnectUMLS; print "Enter username to connect to UMLSKS:"; my $username = <>; print "Enter password:"; ReadMode 'noecho...
<!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"> <!-- Bootstrap CSS --> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css...
import axios from 'axios'; import { faker } from '@faker-js/faker'; import { AxiosHttpClient } from './axios-http-client'; import { mockFailureHttpResponse, mockGetRequest } from '@/data/test/mock-http'; import { mockAxios, MockedAxios } from '../test'; jest.mock('axios'); type SutTypes = { sut: AxiosHttpClient; ...
import React, { useContext, useState, useEffect } from "react"; import { AuthContext } from "../../context/auth-context"; import { PostContext } from "../../context/post-context"; import { useHttpClient } from "../../hoc/http-hook"; import LikeThumb from "./LikeThumb"; function PostLikeButton() { const auth = useCo...
import React from "react"; import { NOTE_TYPE } from "../../../const.js"; import { useStoryMap } from "../../../hooks/useStoryMap/useStoryMap.js"; import { Story } from "../../../models/story.model.ts"; import { Note } from "../../Note/Note.tsx"; interface StoryNoteComponentProps { story: Story; selected: { id: st...
/* * @lc app=leetcode.cn id=120 lang=cpp * * [120] 三角形最小路径和 */ #include <vector> #include <algorithm> using namespace std; // @lc code=start class Solution { public: int minimumTotal(vector<vector<int>> &triangle) { if (triangle.size() == 1) { return triangle[0][0]; } ...
<ion-header> <nl-modal-navbar [title]="title" (modalClosed)="dismiss()"></nl-modal-navbar> </ion-header> <ion-content class="csPlainGray"> <form #newCircularForm="ngForm" (ngSubmit)="onSubmit()"> <ion-card> <ion-item> <ion-label stacked> ...
import * as path from "path"; import * as nodeDir from "node-dir"; let fs: any = require("fs-extra"); // reference: https://www.gregjs.com/javascript/2016/checking-whether-a-file-directory-exists-without-using-fs-exists/ /** * checks whether a path specified by filePath is a file * @param filePath path to the file ...
using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Logging; using SocialNetwork.DataAccess.Context; using SocialNetwork.DataAccess.Entities; using SocialNetwork.DataAccess.Repositories.Abstract; using System.Linq.Expressions; namespace SocialNetwork.DataAccess.Repositories.Concrete { public class Gen...
import { Component, OnInit } from '@angular/core'; import { ClientService} from '../client.service'; import { AnnouncementPost } from '../annocement_post'; import { FormGroup, FormBuilder, FormControl, Validators } from '@angular/forms'; import { Brand } from '../brand'; import { Subject, Observable, merge, of, throwEr...
<div class="row"> <div class="col"> <h1>*ngIf</h1> <div *ngIf="mostrar" class="card text-white bg-dark mb-3" style="width:100;%"> <div class="card-header">Card</div> <div class="card-body"> <h5 class="card-title">{{frase.autor}}</h5> <p class="...
// // ScoreViewer.swift // ScoreViewer // // Created by Leonore Yardimli on 2021/12/17. // import Foundation import SwiftUI import WebKit struct ScoreViewer: UIViewRepresentable { var url: URL var scoreXML: String func makeUIView(context: UIViewRepresentableContext<ScoreViewer>) -> WKWebView { let preferenc...
/** * Copyright (C) 2012 Red Hat, Inc. and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required...
"use client"; import React, { useState, useEffect } from "react"; import { useUser } from "@auth0/nextjs-auth0/client"; import CommentView from "./CommentView"; const CommentSection = ({ postId }) => { //console.log("userName in CommentSection:", userName); const { user } = useUser(); const [comment, setComment]...
// Copyright 2021 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chromeos/ash/services/bluetooth_config/device_name_manager_impl.h" #include "base/strings/strcat.h" #include "base/strings/string_number_conversions.h" #include "bas...
package com.wanted.budget.guardian.app.web.controller.auth; import com.wanted.budget.guardian.app.domain.auth.AuthService; import com.wanted.budget.guardian.app.web.dto.auth.AccessTokenResponseDto; import com.wanted.budget.guardian.app.web.dto.auth.LoginRequestDto; import com.wanted.budget.guardian.app.web.dto.auth.Re...
import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:ktr/models/user_model_one.dart'; import 'package:ktr/providers/user_provider.dart'; import 'package:ktr/views/input_location.dart'; class AddContentPage extends ConsumerStatefulWidget { const AddContentPa...
-- PART 1 -- FOREIGN KEY constraints ALTER TABLE Admins ADD CONSTRAINT FK_Admins_Users FOREIGN KEY (userID) REFERENCES Users(userID); ALTER TABLE Author ADD CONSTRAINT FK_Author_Books FOREIGN KEY (bookID) REFERENCES Books(bookID); ALTER TABLE Books ADD CONSTRAINT FK_Books_Edition FOREIGN KEY (bookID) REFERENCES Boo...
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.InputSystem; public class PlayerController : MonoBehaviour { private Rigidbody2D rb; private SpriteRenderer spriteRenderer; private PhysicsCheck physicsCheck; public PlayerInputControl inputCo...
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>내장 객체 - request</title> </head> <body> <% //post 방식으로 전송된 한글이 깨지는 현상을 처리한다. request.setCharacterEncoding("UTF-8"); /* getParameter(): input 태그의 text, radio 타입처럼 하나의 값이 전...
import React, { useContext, useEffect, useRef, useState } from "react"; import DeleteIcon from "@mui/icons-material/Delete"; import { IconButton } from "@mui/material"; import SendIcon from "@mui/icons-material/Send"; import MessageSelf from "./MessageSelf"; import MessageOthers from "./MessageOthers"; import { useDis...
/** * Lists all installed Deno commands by reading the Deno installation directory. * It checks the directory for executable files and prints their names. * * @async * @function listCommands * @description Lists all installed Deno commands. * @returns {Promise<void>} A promise that resolves when the command list...
Wrapping a paper net onto a cube This Kata is about wrapping a net onto a cube, not folding one into a cube. There is another kata for that task. Think about how you would fold a net into a cube. You would fold at the creases of the net at a 90 degree angle and make a cube. Wrapping a net onto a cube is simalar to fold...
@extends('layouts.app') @section('title', (isset($title)) ? $title : '') @section('description', (isset($description)) ? $description : '') @section('content') <?php /* @var $event App\Event */ ?> <section class="main"> <div class="container"> <div class="row"> <div class="col...
<?php /** * The template for displaying Comments. * * The area of the page that contains both current comments * and the comment form. The actual display of comments is * handled by a callback to omega_comment() which is * located in the inc/template-tags.php file. * * @package Omega */ /* * If the current p...
import 'dart:convert'; Weather? weatherFromJson(String str) => Weather.fromJson(json.decode(str)); String weatherToJson(Weather data) => json.encode(data.toJson()); class Weather { Coord? coord; List<WeatherElement> weather; String? base; Main main; int? visibility; Wind? wind; Rain? rain; Clouds? cl...
package br.edu.infnet; import java.util.ArrayList; import java.util.List; public class Turma { private String codigo; private Disciplina disciplina; private Professor professor; private List<Aluno> alunosInscritos; public Turma(String codigo, Disciplina disciplina, Professor professor) { ...
# -*- coding: utf-8 -*- # # Copyright 2022 Google LLC. All Rights Reserved. # # 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 requir...
<html> <head> <title>Portfolio</title> <link rel="stylesheet" href="styles.css"> <script src="https://kit.fontawesome.com/984e4357af.js" crossorigin="anonymous"></script> </head> <body> <div id="header"> <div class="container"> <nav> ...
import { Product } from '@/lib/types'; import { Sheet, SheetContent, SheetDescription, SheetHeader, SheetTitle, SheetTrigger, } from './ui/sheet'; import { Button } from './ui/button'; import { Input } from './ui/input'; import { useState } from 'react'; import { Separator } from './ui/separator'; export i...
import argparse import os import json from distutils.util import strtobool as boolean from pprint import PrettyPrinter import wandb import torch.utils.data.distributed import torchvision.models as models from MBM.better_mistakes.util.rand import make_deterministic from MBM.better_mistakes.util.folders import get_ex...
from dataclasses import dataclass from datetime import date from typing import Union from tabatu.periodicidade import Periodicidade from tabatu.premissas import Premissas from src.calculadora_vpa import CalculadoraVPAPagamento from src.idades_prazos import IdadesPrazosPagamento @dataclass(frozen=True) class Pagamen...
import { CommonModule } from '@angular/common'; import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { AlquileresComponent } from '../alquileres/alquileres.component'; import { AppComponent } from '../app.component'; import { LectoresComponent } from '../lectores/lect...
import { createContext, useCallback, useEffect, useMemo, useState, } from "react"; import { Devices } from "../Resources/DeviceResources"; import { DevicePresets, defaultPresets } from "../Resources/PresetResources"; import { ServerResponse } from "../Resources/ServerResponseResources"; import { cloneDeep } f...
/* eslint-disable @typescript-eslint/no-explicit-any */ import { IconButton, Flex, Button } from '@chakra-ui/react' import { useState } from 'react' import { FaPlus, FaMinus } from 'react-icons/fa' import CustomInput from '../../components/CustomInput' import ModalContainer from '../../components/ModalContainer' impor...
import { makeStyles, createStyles } from "@material-ui/core/styles"; import React from "react"; export type IconProps = { width?: number; height?: number; color?: string; href?: string; className?: string; }; export default function MinusCircleIcon(props: IconProps) { const { width, height, color } = prop...
function out = CO_Embed2_Dist(y,tau) % CO_Embed2_Dist Analyzes distances in a 2-d embedding space of a time series. % % Returns statistics on the sequence of successive Euclidean distances between % points in a two-dimensional time-delay embedding space with a given % time-delay, tau. % % Outputs include the autocor...
@extends('layouts.dashboard') @section('content') <div class="card"> <div class="card-header"> <h3 class="card-title">Tabel Pencarian Kos</h3> </div> <!-- /.card-header --> <div class="card-body"> <table id="tableCariKos" class="table table-bordered table-striped"> <thead> ...
package com.example.topheadlinesappcompose.ui import android.content.Context import android.content.Intent import android.os.Bundle import androidx.activity.ComponentActivity import androidx.activity.compose.setContent import androidx.compose.animation.EnterTransition import androidx.compose.animation.ExitTransition i...
import { AvatarConfig, ResponseStatus } from '@/types/main'; import { Prisma, User } from '@prisma/client'; export const apiRoot = !process.env.NODE_ENV || process.env.NODE_ENV === 'development' ? 'http://localhost:3000/api' : 'https://phishingphun.com/api'; export const attemptLoginClient = ( username: s...
import React, { useEffect, useState } from "react"; import { StyleSheet, View, TouchableWithoutFeedback, Text, FlatList } from "react-native"; import { Searchbar, ActivityIndicator } from "react-native-paper"; import axios from "axios"; import { AntDesign } from "@expo/vector-icons" import { useNavigation, useRoute } f...
<?php namespace App\Models; use App\Services\MedicalService; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Query\Builder; use Illuminate\Support\Facades\DB; class ControlPointModel extends Model { use HasFactory; protected $table = 'co...
import React from "react"; import HourlyForecast from "./HourlyForecast.js"; import WeatherInformation from "./WeatherInformation.js"; import unknown from "./weather-icons/unknown.svg"; import { useState } from "react"; import clear from "./weather-icons/clear.svg"; import cloudy from "./weather-icons/cloudy.svg"; impo...
import 'dart:math'; import 'package:svart/svart.dart'; class RegisterFileUnit extends Module { RegisterFileUnit( Var clock, Var write, Var address, Var inputData, { int actualRegisterAddressSpace = 7, super.instanceName, }) : super(definitionName: 'register_file_unit') { clock = addInpu...
import requests import xml.etree.ElementTree as ET import csv import pandas as pd import plotly.graph_objects as go from scipy import stats import matplotlib.pyplot as plt import numpy as np url = "https://www.opec.org/basket/basketDayArchives.xml" try: # Odešleme HTTP požadavek GET a získáme odpověď response...
import React, { useState } from 'react'; import { Button, TextField } from '@mui/material'; import fetchApi from '../utils/fetchApi'; import { useNavigate } from 'react-router-dom'; import { SubmitHandler, useForm } from 'react-hook-form'; import { LoginInterface } from '../interfaces/login.interface'; import { Cookie ...
import { FiAlertCircle } from "react-icons/fi"; import ActionButton from "./ActionButton"; import Modal from "./Modal"; export default function ErrorModal({ title, message, primaryButtonLabel, onPrimaryButtonClick, onClose, }: { title: string; message: string; primaryButtonLabel: string; onPrimaryBut...
import { memo } from "react"; import { IMessage } from "../../services/ChatService/types"; import "./ChatMessage.scss"; const formatDate = (dateStr: string): string => { const date: Date = new Date(dateStr); return `${String(date.getHours()).padStart(2, "0")}:${String( date.getMinutes(), ).padStart(2, "0")}`...
#include <stdio.h> #include <stdlib.h> #include <math.h> int isPrime(int x); int isGcd1(int x); int is2mod5(int x); int modulo_pow(int base, int exponent, int modulo); void swap(int* a, int* b); int gcd(int a, int b); int main(void){ int x; int p, q, r; /*printf("Hvilket heltal vil du tjekke?\n"); sc...
--- *mini.extra* Extra 'mini.nvim' functionality --- *MiniExtra* --- --- MIT License Copyright (c) 2023 Evgeni Chasnovski --- --- --- Extra useful functionality which is not essential enough for other 'mini.nvim' --- modules to include directly. --- --- Features: --- --- - Various pickers for 'mini.pick': --- - B...
import { CursorMessage, TextMessage, messageSchema } from "@/party/schema" import { Button, TextField } from "@kobalte/core" import { useParams, useSearchParams } from "@solidjs/router" import PartySocket from "partysocket" import { HiSolidPaperAirplane } from "solid-icons/hi" import { For, createEffect, createSi...