text stringlengths 184 4.48M |
|---|
using AutoMapper;
using AutoMapper.QueryableExtensions;
using Helpdesk.Application.Exceptions;
using Helpdesk.Application.Interface;
using Helpdesk.Domain.Entities;
using Helpdesk.Models;
using MediatR;
using Microsoft.EntityFrameworkCore;
using System;
using System.Linq;
using System.Threading;
using System.Threading... |
"use strict";
// solved in < 40 minutes
/*
Problem: determine whether a string could be spelled using a set of "blocks"
input: a "word string" (could have upper or lowercase letters)
output: true or false
-true if can be spelled using the blocks
-each block has two letters. cannot use both letters from the... |
library(foreach)
library(ltmle)
library(data.table)
library(tidyverse)
set.seed(100)
max_iter=200
##potential values of p, amounts of missingness
# p <- c(0,0.5,0.625,0.825,0.97,1)
p <- c(0)
##potential coefficient values for the L (strength of confounding)
c <- seq(1,10,2)
parameter_vals <- expand.grid(p,c)
##gen... |
package ru.otus.sc.dao.impl.user
import java.util.UUID
import ru.otus.sc.model.{Role, User}
case class UserRow(
id: Option[UUID],
userName: String,
password: String,
firstName: String,
lastName: String,
age: Int
) {
def toUser(roles: Set[UUID]): User = User(id, userName, password, firstName,... |
import React, {useState, useEffect} from 'react';
import NavCard from './NavCard';
import '../../stylesheet/NavOptios.css';
const NavOptions = ({miPhones,redmiPhones,tv,laptop,fitnessAndLifeStyle,home,audio,accessories}) => {
//hooks
//const [state, setState] = useState(initState);
const [miPhoneToggle, se... |
import { Repository, createConnection, Connection } from 'typeorm';
import User from '../../../database/models/User';
import Barbershop from '../../../database/models/Barbershop';
import ServiceType from '../../../database/models/ServiceType';
import BarbershopService from '../../../database/models/BarbershopService';
... |
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{% block title %} Cars Multimarcas {% endblock %}</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet"
int... |
/*
* File: c2ftable.c
* ----------------
* This program illustrates the use of functions by generating
* a table of Celsius to Fahrenheit conversions or opposite.
*/
#include <stdio.h>
#include "genlib.h"
/*
* Constants
* ---------
* LowerLimit -- Starting value for temperature table
* UpperLimit -- Final va... |
#include "raylib.h"
#include <time.h>
#include <stdlib.h>
//------------------------------------------------------------------------------------
// Program main entry point
//------------------------------------------------------------------------------------
int main(void)
{
// Initialization
//--------------... |
import { useEffect, useRef } from 'react';
function useCloseElement(close: () => void, listenCapture = true) {
const ref = useRef<HTMLDivElement | null>(null);
useEffect(() => {
function handleClick(e: any) {
if (ref.current && !ref.current!.contains(e.target)) {
close();
}
}
docu... |
import 'package:flutter/material.dart';
import 'package:flutter_svg/flutter_svg.dart';
class PhoneNumberTile extends StatelessWidget {
const PhoneNumberTile({super.key, required this.city});
final String city;
@override
Widget build(BuildContext context) {
return Padding(
padding: const EdgeInsets.... |
from discord.commands import Option,slash_command,user_command
from discord import Embed,User,ApplicationContext,Role
from .subcog import ExtensionFunSubCog
from random import choice,randint
from asyncio import sleep
from time import time
from re import sub
class ExtensionFunCommands(ExtensionFunSubCog):
@slash_comm... |
package exam.service.impl;
import com.google.gson.Gson;
import exam.model.dto.CustomerSeedDto;
import exam.model.dto.LaptopSeedDto;
import exam.model.entity.Customer;
import exam.model.entity.Laptop;
import exam.repository.LaptopRepository;
import exam.service.LaptopService;
import exam.service.ShopService;
import exa... |
---
description: "Cara Gampang Menyiapkan Soto Tauco/ Tauto yang nikmat"
title: "Cara Gampang Menyiapkan Soto Tauco/ Tauto yang nikmat"
slug: 1540-cara-gampang-menyiapkan-soto-tauco-tauto-yang-nikmat
date: 2020-07-13T00:20:43.138Z
image: https://img-global.cpcdn.com/recipes/856ddbc4c946e88f/751x532cq70/soto-tauco-tauto... |
import { Injectable } from '@nestjs/common';
import { UserBusiness } from 'src/entities/booster/user/user.business.entity';
import { ReportType } from 'src/enums/user/report/report.type';
import { ServiceData } from 'src/models';
import { DateRangeDto } from 'src/modules/main/dto/date.range.dto';
import { CrefiaCardPro... |
const express = require('express');
const ruta = express.Router();
const Singer = require('../models/singer_model');
const Album = require('../models/album_model');
ruta.get('/:id', (req, res)=> {
const id = req.params.id;
const result = listAlbumsOnSinger(id);
result.then(albums => {
res.send(albu... |
package pt.isel.ps.energysales.products
import io.kotest.assertions.ktor.client.shouldHaveContentType
import io.kotest.assertions.ktor.client.shouldHaveStatus
import io.kotest.matchers.equals.shouldBeEqual
import io.kotest.matchers.shouldBe
import io.ktor.client.call.body
import io.ktor.client.request.delete
import io... |
import React, { useState, useEffect } from 'react';
import { View, Text, Button } from 'react-native';
import { login, signup, getProducts, deleteProduct, updateProduct, patchProduct } from './apiCalls';
const App = () => {
useEffect(() => {
// Example usage of API calls
const fetchData = async () => {
... |
import { ITextSimplify } from '../../../interfaces/IPost/Decorator/IPostDecorator';
export class BasicTextEditorSimplify implements ITextSimplify {
private text: string;
constructor() {
this.text = '';
}
simplify(text: string) {
this.text = text;
}
getText(): string {
... |
import React from "react";
import { MDBDataTableV5, MDBTable } from "mdbreact";
import {
BarChart,
Bar,
XAxis,
YAxis,
CartesianGrid,
Tooltip,
Legend,
LineChart,
Line,
ResponsiveContainer,
} from "recharts";
import { GrFormNextLink } from "react-icons/gr";
import { NavLink } from "react-router-dom";... |
let professor = {
Name: "Siddharth Raghvan",
Age: 42,
Occupation: "Philosopher",
Department: "Indian Philosophy",
College: "JNU Delhi",
degrees: {
MasterDegree: "Philosophy",
PHD: "Western Philosphy & Indian Philosophy",
BacholerDegree: "BA in Philosophy",
College: "Pune University",
ce... |
import { strict as assert } from "node:assert";
import { readFile } from "node:fs/promises";
import { dirname, resolve } from "node:path";
import test from "node:test";
import { fileURLToPath } from "node:url";
import puppeteer, { PuppeteerLaunchOptions } from "puppeteer";
const __dirname = dirname(fileURLToPath(impor... |
import java.util.Scanner;
//Creando cuenta
public class Cuenta {
private int numeroCuenta;
private long dniCliente;
private double saldoActual;
// Constructor por defecto
public Cuenta() {
}
// Constructor con DNI, saldo, número de cuenta e interés
public Cuenta(int numeroCuenta, long ... |
package comp3350.teachreach.tests.unitTests.logic.account;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
import comp3350.teachreach.logic.account.PasswordManag... |
pragma solidity 0.4.18;
// Contains value transfer related utility functions
library Transfers {
// base structure for storing config and current state
struct Shared {
address[] beneficiaries; // config, constant
uint[] shares; // config, constant
uint[] thresholds; // config, constant
mapping(address => uin... |
/*
Digital Clock: countdown timer plugin
Copyright (C) 2017-2020 Nick Korotysh <nick.korotysh@gmail.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the L... |
// C++ program for implementation of Lagrange's Interpolation
#include <bits/stdc++.h>
using namespace std;
// To represent a data point corresponding to x and y = f(x)
struct Data
{
int x, y;
};
// function to interpolate the given data points using Lagrange's formula
// xi corresponds to the new data point whos... |
# LitGuten
Este es un proyecto de ejemplo que muestra cómo trabajar con libros y autores en una aplicación de biblioteca.
## Descripción
LitGuten es una aplicación en consola de biblioteca que permite administrar libros y autores. Proporciona endpoints para obtener información sobre los libros, los autores y realiza... |
!******************************************************************************
! Content:
! This example demonstrates use of API as below:
! CHPMV
!
!******************************************************************************
program CHPMV_MAIN
*
implicit none
include "nvpl_blas_f77_bl... |
# RootMe
Question:
`Scan the machine, how many ports are open?`
```sh
nmap -sV $ip
Nmap scan report for $ip
Host is up (0.084s latency).
Not shown: 998 closed tcp ports (reset)
PORT STATE SERVICE VERSION
22/tcp open ssh OpenSSH 7.6p1 Ubuntu 4ubuntu0.3 (Ubuntu Linux; protocol 2.0)
80... |
'''
There are n people that are split into some unknown number of groups. Each person is labeled with a unique ID from 0 to n - 1.
You are given an integer array groupSizes, where groupSizes[i] is the size of the group that person i is in.
For example, if groupSizes[1] = 3, then person 1 must be in a group of size 3... |
import requests
import pytest
base_url = 'http://localhost:8000'
add_drug_url = f'{base_url}/add_drug'
get_drugs_url = f'{base_url}/get_drugs'
get_drug_by_id_url = f'{base_url}/get_drug_by_id'
update_drug_url = f'{base_url}/update_drug'
delete_drug_url = f'{base_url}/delete_drug'
new_drug = {
"id": 99,
"name... |
namespace FinalStudentManagement.Presentation
{
class Presentation
{
private ClassPresentation classPresentation;
private ScorePresentation scorePresentation;
private StudentPresentation studentPresentation;
private SubjectPresentation subjectPresentation;
public Present... |
from unittest import TestCase
from unittest.mock import patch
from game import move_character
import io
class TestMoveCharacter(TestCase):
def test_move_character_north(self):
board = {'Dimensions': (2, 2),
(0, 0): {'Enemy': [], 'Explored': False},
(0, 1): {'Enemy': [], '... |
'use client'
import { createContext, useState, useEffect, Dispatch, SetStateAction } from "react"
import sustainIcon from "../assets/images/icons/SP_sustainability_icon.svg"
import historyIcon from "../assets/images/icons/SP_history_icon.svg"
import geologyIcon from "../assets/images/icons/SP_geology_icon.svg"
import a... |
<#@ template language="C#" inherits="TypeScriptTemplateBase<object>" #>
<#@ assembly name="System.Core" #>
<#@ import namespace="System.Collections.Generic" #>
<#@ import namespace="System.Linq" #>
<#@ import namespace="Intent.Modules.Common" #>
<#@ import namespace="Intent.Modules.Common.Templates" #>
<#@ import names... |
import tkinter as tk, tkinter.filedialog
from PIL import ImageTk, Image
import numpy as np
import cv2 as cv
from sklearn.cluster import KMeans
import os
import shutil
"""
TODO:
1. Thresholding
2. Fourier Filtering
3. Image Stacking
used this for writing the oop code
https://stackoverflow.com/questions/7546050/switch... |
//
// CurrencyFormatter.swift
// MC2-United-Hands
//
// Created by Priskilla Adriani on 26/06/23.
//
import Foundation
extension Formatter {
//xxx.xxx.xxx
static let currencyFormatter: NumberFormatter = {
let formatter = NumberFormatter()
formatter.numberStyle = .decimal
formatter.l... |
package com.example.jazaronline;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.os.Bundle;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
i... |
import React, { Component } from 'react';
import { observer } from "mobx-react";
import { Form, Row, Col, Button, Select, Input } from 'antd';
import { formItemLayout, createFormField } from 'ADMIN_UTILS/searchFormUtil';
import { selectInputSearch } from 'ADMIN_UTILS';
const FormItem = Form.Item;
const Option = Select... |
// Copyright (C) 2021 Microsoft. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.prototype.findlast
description: >
Predicate called as F.call( thisArg, kValue, k, O ) for each array entry.
info: |
Array.prototype.findLast ( predicate[ , thisArg ] )
... |
//
// ViewController.swift
// MSAL-Office365-Login
//
// Created by EOO61 on 19/07/21.
//
import UIKit
import MSAL
class ViewController: UIViewController {
// Update the below to your client ID you received in the portal. The below is for running the demo only
let kClientID = "66855f8a-60cd-445e-a9bb-8cd8... |
using System;
namespace Fundamentals
{
public class LongestSubstring
{
public static void run()
{
Console.WriteLine("\nInforme a string que deseja analisar: ");
string s = Console.ReadLine().ToLower();
int n = s.Length, maxLength = 0, left = 0;
... |
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Edit Test</title>
</head>
<body>
<%@ page import="rs.ac.metropolitan.eLearning.database.dao.TestDAO" %>
<%@ page import="rs.ac.metropolit... |
import React, { useState, useEffect } from 'react'
import axios from 'axios';
const App = () => {
const [prompt,setPrompt]=useState('')
const [story,setStory]=useState('')
const PromptShare=(event)=>{
event.preventDefault()
const data={key1:prompt}
fetch("http://127.0.0.1:8080/story",{
method: "... |
realm.write {
// Create a Frog object named 'Kermit'
// with a RealmSet of favorite snacks
val frog = copyToRealm(
Frog().apply {
name = "Kermit"
favoriteSnacks.add(Snack().apply { name = "Flies" })
favoriteSnacks.add(Snack().apply { name = "Crickets" })
... |
import React, { useState, useEffect } from "react";
import axios from "axios";
import styled from "styled-components";
import { useNavigate, Link } from "react-router-dom";
import { ToastContainer, toast } from "react-toastify";
import "react-toastify/dist/ReactToastify.css";
import { registerRoute } from "../utils/API... |
; (c) Copyright 1991, Martin Stitt
; xmit_par.asm - tsr program, doesparallel port output
; to be loaded in the test machine.
outport equ 03bch ; parallel port base addr
include dumpmacs.inc ; include for intvect equate
_TEXT segment para public 'CODE'
assume cs:_TEXT,ds:_TEXT,es:_TEXT,ss:_TEXT
org 0100H
s... |
package no.nav.modia.soknadsstatus
import io.ktor.http.*
import io.ktor.serialization.kotlinx.json.*
import io.ktor.server.application.*
import io.ktor.server.auth.*
import io.ktor.server.plugins.callloging.*
import io.ktor.server.plugins.contentnegotiation.*
import io.ktor.server.plugins.cors.routing.*
import io.ktor... |
import 'package:flutter/material.dart';
import 'package:task_manager/ui/utils/dimens.dart';
class ImageNetwork extends StatelessWidget {
const ImageNetwork({
super.key,
required this.imageUrl,
this.size,
this.borderRadius,
});
final String imageUrl;
final BorderRadiusGeometry? borderRadius;
... |
using FlyingFishMenuWeb.Server;
using FlyingFishMenuWeb.Server.Data;
using Microsoft.EntityFrameworkCore;
using Microsoft.Data.Sqlite;
using Windows.Storage;
using FlyingFishMenuWeb.Server.Repository;
using FlyingFishMenuWeb.Server.Service;
using Azure.Identity;
using FlyingFishMenuWeb.Server.Logger;
using Microsoft.Ex... |
# Copyright 2018-2019 QuantumBlack Visual Analytics Limited
#
# 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
#
# THE SOFTWARE IS PROVIDED "AS IS"... |
/*
* QML Extras - Extra types and utilities to make QML even more awesome
*
* Copyright (C) 2014 geiseri
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation, either version 2.1 of the
* Lice... |
import React from "react";
import { Link } from "react-router-dom";
import { MapPinIcon, CurrencyDollarIcon } from "@heroicons/react/24/solid";
const Job = ({ job }) => {
const {
id,
company_name,
logo_url,
job_title,
job_full,
job_types,
salary,
location,
job_description,
job... |
import PropTypes from 'prop-types';
import '../../../assets/css/file-upload.css';
import '../../../assets/css/text.css';
import '../../../assets/css/color.css';
import '../../../assets/css/icon.css';
import { FeatureIcon } from '../../../Style-Guid/Misc-Icons/MiscIcon';
import { Button } from './../../../components/but... |
import { HttpErrorResponse } from '@angular/common/http';
import { Component, OnInit } from '@angular/core';
import { FormArray, FormBuilder, FormControl, FormGroup, Validators } from '@angular/forms';
import { catchError, concatMap, distinctUntilChanged, finalize, of } from 'rxjs';
import { PioneerDataService } from '... |
import streamlit as st
import os
from moviepy.editor import *
from pytube import YouTube
from youtubesearchpython import VideosSearch
OUTPUT_PATH = "static/mashup/"
def fetch_video_clips(artist_name, num_clips):
"""
Retrieve video clips from YouTube based on the artist's name.
"""
prefix = "https://w... |
import { MdxLayout } from "components/mdx-layout.tsx";
export const meta = {
slug: "feature-report-improvements",
publishedAt: "2023-01-20T09:00:00.000Z",
title: "Adding some magic to the feature report",
headerImage:
"https://june-changelog.s3.eu-central-1.amazonaws.com/feature-report-improvements/header.... |
//------------------------------------------------------------------------------
// @file: AccessCmd.hh
// @author: Fabio Luchetti - CERN
//------------------------------------------------------------------------------
/************************************************************************
* EOS - the CERN Disk Sto... |
import { rest } from 'msw';
import { server } from './serverMock';
import { competitionToUpdate, competitionsStateSuccessMock, newCompetition } from '../testDataMocks/competitions';
const baseUrl = process.env.REACT_APP_API_BASE_URL;
const competitionsSuccessHandlers = [
rest.get(`${baseUrl}/competitions/all`, (re... |
/**
* Creates an Paginator object.
*/
class Paginator {
// List of records or items.
items;
// Max items per page.
itemsPerPage = 10;
// Div container with paginated items.
container;
// Div container with pagination controls.
controls;
currentPage = 1;
pages;
/**
* S... |
import PropTypes from "prop-types";
import { TextField } from "@mui/material";
import { useValidateField } from "../../hooks/useValidateField";
export default function DateTimeField({
fieldSchema,
value,
setField,
sx,
...rest
}) {
const isValid = useValidateField(fieldSchema, value);
return (
<TextF... |
import React from "react";
import { useNavigate } from "react-router-dom";
const NewsCard = ({ id, name, month, day, category, image }) => {
const navigate = useNavigate();
return (
<button
onClick={() => navigate("/single-post")}
className="relative pb-32"
>
<div className=" group ">
... |
@extends('sabloni.app')
@section('naziv', 'Šifarnici | Spratovi')
@section('meni')
@include('sabloni.inc.meni')
@endsection
@section('naslov')
<h1 class="page-header">
<img alt="Šifarnik spratova" class="slicica_animirana"
src="{{url('/images/spratovi.jpg')}}" style="height:64px;">
... |
# rh-aws-saml-login
[](https://github.com/astral-sh/ruff)
[][pypi-link]
[![PyPI platforms][pypi-platforms]][pypi-link]
;
const canvas = document.getElementById('canvas');
const context = canvas.getContext('2d');
if (navigator.mediaDevices && navigator.mediaDevices.getUserMedia) {
navigator.mediaDevices.getUserMedia({ video: true }).then(stream => {
video.srcObject = stream;
... |
---
Created: 2024-03-05
Programming language: "[[Java]]"
Related:
Completed:
---
---
## Index
- [[#Introduzione|Introduzione]]
- [[#Struttura|Struttura]]
- [[#Metodi statici]]
- [[#Perché il metodo main() è dichiarato static?]]
- [[#Metodi final]]
- [[#Metodi final#Esempio|Esempio]]
- [[#Esempi|Esempi]]
---
## Intro... |
import 'package:flutter/material.dart';
import 'package:form_ui/core/themes.dart';
class CommonButton extends StatelessWidget {
final String text;
final Function()? func;
const CommonButton({
super.key,
required this.func,
required this.text,
});
@override
Widget build(BuildContext context) {
... |
import { Dialog, Transition } from "@headlessui/react";
import { Fragment } from "react";
import Image from "next/image";
import Link from "next/link";
import PropTypes from "prop-types";
import emailVerifPic from "../public/img/email-verification.jpg";
const EmailVerification = ({
isOpen = false,
email = "",
co... |
import React, { memo} from "react";
import { BsCartPlusFill } from "react-icons/bs";
const ProductCard = memo(({ id, img, price, descrip, name, addToCart,itemsInCart }) => {
return (
<div className="flex w-60 h-[310px] shadow-gray-300 flex-col rounded-xl items-center p-3 m-4 shadow-xl hover:scale-110 duration... |
function [grRatio,grRateKO,grRateWT,hasEffect,delRxn,fluxSolution] = singleRxnDeletion(model,method,rxnList,verbFlag)
%singleRxnDeletion Performs single reaction deletion analysis using FBA,
%MOMA or linearMOMA
%
% [grRatio,grRateKO,grRateWT,hasEffect,delRxns,hasEffect] = singleGeneDeletion(model,method,rxnList,verbFl... |
<!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 -->
... |
import React, { useState } from 'react';
import { useSelector } from 'react-redux';
import makeStyles from '@material-ui/core/styles/makeStyles';
import Fade from '@material-ui/core/Fade';
import OutsideClickHandler from 'react-outside-click-handler';
import UserTooltip from 'components/Misc/UserTooltip';
import { Rea... |
import Combine
import Foundation
import UIKit.UIImage
public final class ImageDownloader {
public static let shared = ImageDownloader()
private init() {}
public func loadImage(from url: URL) -> AnyPublisher<UIImage?, Never> {
URLSession.shared.dataTaskPublisher(for: url)
.map(\.data)
... |
/*
* adm1021.c - Part of lm_sensors, Linux kernel modules for hardware
* monitoring
* Copyright (c) 1998, 1999 Frodo Looijaard <frodol@dds.nl> and
* Philip Edelbrock <phil@netroedge.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Genera... |
import React, { useState } from "react";
import { useDispatch, useSelector } from "react-redux";
import { addUser } from "../slices/slice";
import { useNavigate } from "react-router-dom";
export default function Create() {
const [name, setName] = useState('')
const [email, setEmail] = useState('')
const use... |
<template>
<div class="annotation-mark"
:class="markIsSelected ? 'selected-mark' : ''">
<div class="annotation-mark-details">
<div class="annotation-mark-details-image">
<svg ref="icon">
</svg>
</div>
<div v-if="!editingMarkLabel"
... |
########
###caesar cipher
pt = input("Enter the plain Text").lower()
pt = [ord(a)-97 for a in pt]
key = int(input("Enter the key"))
print("Encrypted text is")
cip = []
for i in pt:
cip.append((i+key)%26)
print(chr((i+key)%26+97),end="")
print()
print("Decrypted text is")
for i in cip:
print(chr((i-key)%26+9... |
import Head from 'next/head'
import Image from 'next/image'
import { Inter } from '@next/font/google'
import { useState, useEffect, useRef } from 'react'
import Utils from '../components/animation/utils.js';
import Animator from '../components/animation/animationManager';
import Cursor from '../components/cursor/cursor... |
// Fungsi untuk membatasi input hanya angka dan tombol "backspace" menggunakan event keydown
const renderCountInput = (event) => {
// Ambil kode tombol yang ditekan (cross-browser support)
const count = (event.which) ? event.which : event.keyCode;
// Periksa apakah tombol yang ditekan adalah karakter angka (di... |
class Light
{
PVector position;
color diffuse;
color specular;
Light(PVector position, color col)
{
this.position = position;
this.diffuse = col;
this.specular = col;
}
Light(PVector position, color diffuse, color specular)
{
this.position = position;
this.diffuse = diffuse;
thi... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package es.albarregas.controllers;
import es.albarregas.beans.Calculator;
import es.albarregas.exceptions.DivisionPorCeroException;
im... |
#![cfg(feature = "test-sbf")]
#![allow(clippy::items_after_test_module)]
mod program_test;
use {
program_test::TestContext,
solana_program_test::{processor, tokio, ProgramTest},
solana_sdk::{
account::Account as SolanaAccount, instruction::InstructionError, pubkey::Pubkey,
signature::Signer... |
import React, { useContext } from 'react';
import { Container, Segment, Header, Button, Image } from 'semantic-ui-react';
import { Link } from 'react-router-dom';
import './styles.css';
import { RootStoreContext } from '../../app/stores/root.store';
import LoginForm from '../user/login.form';
import { RegisterForm } f... |
/*
* Copyright (c) 2012-2023 Red Hat, Inc.
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Red Hat, Inc. - initial API a... |
....
<img src="guide-logo.png" width=400 />
....
== Project: J2 Instance
https://j2ledflashlight.com/[J2 LED Flashlight] is a trusted expert and
authorized seller of premium LED light products and accessories.
Guide Analytics is a company that powers a
https://guideanalytics.ca/[market Intelligence platform] and wil... |
/*
The visualization page which lets users choose a date range and displays the route visualizations.
This page includes logic for:
* validating the dates and prompting the api
* sorting data as requested by the user, ie, displaying individual routes or combined visualizations
* displayi... |
import { useEffect, useState } from "react"
import { useParams } from "react-router-dom";
import { getFirestore, collection, getDocs, query, where } from "firebase/firestore"
import Container from '@mui/material/Container';
import CircularProgress from '@mui/joy/CircularProgress';
import { ItemList } from "./ItemList"... |
package com.schedule.service;
import com.schedule.dao.ScheduleDao;
import com.schedule.dao.ScheduleRepository;
import com.schedule.dto.*;
import com.schedule.entity.Schedule;
import com.schedule.exception.DublicateException;
import lombok.RequiredArgsConstructor;
import org.apache.poi.ss.usermodel.Sheet;
import org.ap... |
/*
* 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 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server... |
import { TAX_BRACKET } from "../../config/config"
import { env } from "../../env"
import { Order } from "../../types/trades"
import { ViewDefinition, GeneratedView } from "../../types/views"
import { getPriceBySymbol, getDatePlus3y, getDateDiffDisplay, getDateDiff } from "../../utils"
type View = {
symbol: string
... |
"A wrapper class that exposes any [[Set]] as unmodifiable,
hiding the underlying `Set` implementation from clients,
and preventing attempts to narrow to [[MutableSet]]."
by ("Gavin King")
serializable class UnmodifiableSet<out Element>(Set<Element> set)
satisfies Set<Element>
given Element satisfies... |
#ifndef _XMLWRITER_H_
#define _XMLWRITER_H_
#include <string>
#include <vector>
#include <memory>
#include <ostream>
namespace luteconv
{
/**
* An XML attribute
*/
class XMLAttrib
{
public:
/**
* Constructor
*
* @param[in] name
* @param[in] value
*/
XMLAttrib(const char* name, co... |
<?php
declare(strict_types=1);
namespace Modules\Expense\Tests\Feature\Application\Http\Controllers\Api\V1\ExpenseController;
use Modules\User\Domain\Models\User;
use Modules\User\Domain\Models\UserVehicle;
use Tests\TestCase;
class Create
{
public function testMissingRequiredFields(): void
{
$user ... |
new.html.haml
%section.new_todo
%h3 Add a new todo
= form_for @todo do |f|
= f.label :name, "Name"
= f.text_field :name
= f.label :description, rows: 6
%br
= f.submit "Add This Todo"
The issue with this code above this that it is not pulling in the
errors - but rather than errors on the object ... |
package org.example.approach2;
import java.math.BigInteger;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.ExecutionException;
public class Participant {
private CompletableFuture... |
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* RobotomyRequestForm.hpp :+: :+: :+: */... |
import { BloodGroup, DayOff, Gender } from '@prisma/client';
import { z } from 'zod';
const createSpecialist = z.object({
body: z.object({
name: z.string({ required_error: 'Name is Required!' }),
email: z.string({ required_error: 'Email is Required!' }),
password: z.string({ required_error: 'Password is ... |
#
# Copyright 2024 José Falero <jzfalero@gmail.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
#... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.