text stringlengths 184 4.48M |
|---|
import React from 'react';
import { CarparkType } from 'types/types';
interface CarparkListProps {
carparks: CarparkType[];
}
interface CarparkCardProps {
carpark: CarparkType;
}
const CarparkCard = ({ carpark }: CarparkCardProps) => {
const { weekdayRate, weekdayMin, ppName, ppCode, parkCapacity } = carpark;
... |
// MIT License
//
// Copyright(c) 2019-2022 Filippos Gleglakos
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files(the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, c... |
# [SpaText: Spatio-Textual Representation for Controllable Image Generation](https://arxiv.org/abs/2211.14305)
## What is the central research question or hypothesis that this paper addresses?
Based on my reading, the key research questions/hypotheses addressed in this paper are:
1. Can a spatio-textual representat... |
import React, { useEffect, useState } from "react";
import useEnroll from "../../hooks/useEnroll";
import Container from "../../components/Container/Container";
import { useForm } from "react-hook-form";
import useAuth from "../../hooks/useAuth";
import axios from "axios";
import toast, { Toaster } from "react-hot-toas... |
package com.team2898.engine.utils
import kotlin.math.PI
import kotlin.math.absoluteValue
import kotlin.math.pow
import kotlin.math.round
// Don't show warnings if these functions are unused or could be private
@Suppress("unused", "MemberVisibilityCanBePrivate")
/**
* Sugar is an object where we are adding convenien... |
using Entities.Entities;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Mvc;
using PdfSharpCore.Drawing;
using QRCoder;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
namespace Web_ECommerce.Models
{
public cl... |
;; We've added new operators to our lookup table. The system now knows
;; how to dispatch '(complex) data that requires the operation
;; 'magnitude. Essentially, we have added a route for operations on
;; the complex-package that require implementations in
;; rectangular/polar packages.
;;
;; z is represented as a box-... |
import { createContext, useContext, useReducer } from "react";
import userReducer from "../reducers/userReducer";
import productsReducer from "../reducers/productsReducer";
// 1. Crear el contexto
const AppContext = createContext(null);
// 2. Proveer el contexto
export const AppContextProvider = ({ children }) => {... |
package com.example.labdiary.view.screens
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.com... |
////
Copyright 2023 Matt Borland
Distributed under the Boost Software License, Version 1.0.
https://www.boost.org/LICENSE_1_0.txt
////
= Getting Started
:idprefix: build_
== B2
Run the following commands to clone the latest versions of Boost and Charconv, prepare the Boost.Build system for use, and build the librari... |
import React, { useState, useEffect } from 'react';
import { useNavigate } from 'react-router';
const TrackDetails = () => {
const navigate=useNavigate();
const [currentStep, setCurrentStep] = useState(0);
const [progress, setProgress] = useState([0, 0, 0, 0]);
const stepLabels = ['Order Placed', 'Order Packed... |
IDOR Checker Tool
IODRHunter is an IDOR (Insecure Direct Object Reference) checker tool built with Python. The tool scrapes a given URL for links, extracts the parameters from those links, and checks for potential IDOR vulnerabilities using payloads from a specified wordlist.
Features
- Fetches the content of a web... |
package datastructures.D_Recursion;
/**
* Allowed Movements are Bottom or Right side only
*/
public class NumberOfWaysInMatrix {
public static void main(String[] args) {
System.out.println("Ways in 1 x 1 matrix = " + getNumberOfWays(1, 1));
System.out.println("Ways in 1 x 2 matrix = " + getNumber... |
/**
* @file message_handler.c
* @brief Provides facilities for creating and posting HTTP messages
*/
#include "common.h"
#include "nxjson.h"
#include "wifi_interface.h"
#include "http_client.h"
#include "controller.h"
#include "message_handler.h"
// Controls debug output to the serial port:
// 0 - nothing output
/... |
import React, { useState } from "react";
import { useTranslation } from "react-i18next";
// Contains the value and text for the options
const languages = [
{ value: "", text: "Options" },
{ value: "en", text: "English" },
{ value: "hi", text: "Hindi" },
{ value: "bn", text: "Bengali" },
];
function Helper() {... |
--Creating the Batch Table--
CREATE TABLE ContactBatch
(
BatchID int Primary key Identity(1,1),
DateCreated DateTime,
CreatedBy nvarchar(50),
DateModified DateTime,
[Status] nvarchar(20)
)
--Adding BatchID to Contact table--
ALTER TABLE Contacts
ADD BatchID int,
FOREIGN KEY (BatchID) REFERENCES ContactBatch(BatchID)
... |
// 入口文件
// ----------------------------实现了一个基本的 Hello World
// // 1. 加载 express 模块
// const express = require('express');
//
// // 2. 创建一个 app 对象(类似于创建一个 server 对象)
// const app = express();
//
// // 通过中间件监听指定路由的请求
// app.get('/index', function (req, res) {
// // body...
// // res.end('hello world!你好世界!');
// ... |
import React, { useEffect, useState } from 'react';
import Box from '@mui/material/Box';
import Toolbar from '@mui/material/Toolbar';
import IconButton from '@mui/material/IconButton';
import Typography from '@mui/material/Typography';
import Menu from '@mui/material/Menu';
import MenuIcon from '@mui/icons-material/Men... |
package ex04_OutputStream;
import java.io.BufferedOutputStream;
import java.io.DataOutputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectOutputStream;
import java.nio.charset.StandardCharsets;
import java.util.Arrays;
import java.util.List;
public class M... |
import React, { useState } from 'react'
import { CardComponent } from '../components/CardComponent'
import { LoadingComponent } from '../components/LoadingComponent';
import { NoResultsComponent } from '../components/NoResultsComponent';
import { SearcherBarComponent } from '../components/SearcherBarComponent'
import... |
/* Angular/vendor imports. */
import { Injectable } from '@angular/core';
/* Package Imports. */
import { Observable } from 'rxjs/Observable';
import { Subscription } from 'rxjs/Subscription';
import * as _ from 'lodash';
import { NgRedux, select } from '@angular-redux/store';
import { SagaHelper } from '@setl/utils/in... |
package org.example;
public class JvmComprehension {
public static void main(String[] args) {
// Создание в Stack Memory в пределах одного фрейма, связанного с методом main, примитивной переменной и присваивание ей 1
int i = 1;
// Создание объекта класса Object: в куче выделится место под ... |
package com.challenge.bricks.controller.response;
import com.challenge.bricks.persistence.model.Product;
import lombok.*;
import java.math.BigDecimal;
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class ProductListResponse {
private Long productId;
private String name;
private I... |
""" The following script creates two data visualisations based on the results within euros_results.py.
The visualisations are as follows: - Bar Chart of the top ten highest xG players at the euros
- Scatter plot of xG per 90 vs actual goals per 90"""
import pandas as pd
import num... |
package br.senai.sp.jandira.triproom.dao
import android.content.Context
import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
import br.senai.sp.jandira.triproom.model.User
@Database(entities = [User::class], version = 3)
abstract class TripDb: RoomDatabase() {
abstract fun u... |
'use client';
import React, { useState, useCallback } from "react";
import { AiOutlineMinus, AiOutlinePlus } from "react-icons/ai";
interface CounterProps {
title: string;
subtitle: string;
value: number;
onChange: (value: number) => void;
allowZero?: boolean;
}
const Counter: React.FC<CounterProps> = ({
... |
<?php
namespace AppBundle\Entity;
use AppBundle\Traits\BlameableEntityAssociation;
use AppBundle\Validator\Constraints as AppAssert;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Timestampable\Traits\TimestampableEntity;
use JMS\Serializer\Annotation as JMS;
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity... |
package alyonachern;
import alyonachern.model.JsonModel;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.junit.jupiter.api.Test;
import java.io.File;
import static org.junit.jupiter.api.Assertions.*;
public class JsonParsingTest {
ObjectMapper objectMapper = new ObjectMapper();
@Test
pu... |
import { useEffect } from "react";
type UseAddDocumentKeydownProps = {
condition: (e: KeyboardEvent) => boolean;
callback: (e: KeyboardEvent) => void;
};
export function useAddDocumentKeydown({
condition,
callback,
}: UseAddDocumentKeydownProps) {
useEffect(() => {
document.addEventListener("keydown", (... |
import time as t
## Animal is-a object (yes, sort of confusing) look at the extra credit
class Animal(object):
def __init__ (self):
print "I'm an animal"
t.sleep(1)
## Dog is-a Animal
class Dog(Animal):
def __init__(self, name):
## Dog has-a name
self.name = name
print "Bark bark i'm a dog"
t.sleep(1)
... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Hot Gadget</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5P... |
import Image from "next/image"
import React, { ReactNode, useContext, useState } from "react"
import LoadingSpinner from "../components/LoadingSpinner"
const ImageFullViewContext = React.createContext<any>(null)
export const ImageFullViewProvider = ({ children }: { children: ReactNode }) => {
const [imageFullViewTog... |
import React from 'react';
import { useState } from 'react';
import Button from 'react-bootstrap/Button';
import Col from 'react-bootstrap/Col';
import Form from 'react-bootstrap/Form';
import InputGroup from 'react-bootstrap/InputGroup';
import Row from 'react-bootstrap/Row';
import './Driver.css'
import axios from 'a... |
<template>
<div>
<div class="navbar is-dark" role="navigation" aria-label="main navigation">
<div class="navbar-brand">
<a class="navbar-item" href="/">
Warket
</a>
<a class="navbar-burger" aria-label="menu" aria-expanded="false" data-target="navbar-menu" @click="showMobil... |
import React, { useState, useEffect } from 'react'
import { useParams } from 'react-router-dom'
import { utils, writeFileXLSX, read } from 'xlsx'
import { Button, Card, Col, message, Modal, Row, Space, Typography, Upload } from 'antd'
import groupApi from '~/api/groupApi'
import { CrownTwoTone, ExclamationCircleOutline... |
import { Meta, StoryObj } from '@storybook/react';
import { Heading, HeadingProps } from "./Heading";
export default {
title: 'Components/Heading',
component: Heading,
args:{
children: 'Lorem ipsum',
size: 'md',
},
argTypes:{
size: {
options: ['sm', 'md', 'lg'],
... |
package com.example.quizbox;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import androidx.recyclerview.widget.RecyclerView;
import java.util.Collections;
import java.util.List;
public class Adapter extend... |
<template>
<q-page padding>
<GenericTable
v-if="getterData.length > 0"
ref="child"
:table-title="'Usuarios'"
:form-config="formConfig"
:title-export="'users'"
:getter-data="getterData"
:delete-keys="deleteKeys"
:api-route="'users/'"
:front-route="'/config/user... |
% addarrows Add arrows along a contour handle
%
% [AR TX TY] = addarrows(H,[OPTIONS_PAIRS])
%
% Add arrows along a contour handle H.
%
% Options:
% arrowgap = 10; % Nb of points between arrows
% arrowangle = 10; % Arrow angle
% arrowlength = 1; % Arrow length
% arrowsharpness = 1; % How sharp is the arrow ? (1 fo... |
import React, { Component } from 'react'
import { Col, Grid, Row } from 'react-bootstrap'
import ChannelActions from '../actions/ChannelActions'
import ChannelsStore from '../stores/ChannelsStore'
import connectToStores from 'alt/utils/connectToStores'
class Channel extends Component {
renderMessage(message) {
... |
# Import libraries
import geopandas
import plotly.express as px
import streamlit as st
import pandas as pd
import numpy as np
import os
from PIL import Image
# Functions
@st.cache_data
def create_features(df_raw):
df_raw['basement']... |
---
title: "In 2024, Master the Art of Livestream Recession with These 24 Dynamic Tips"
date: 2024-06-12T01:15:17.372Z
updated: 2024-06-13T01:15:17.372Z
tags:
- screen-recording
- ai video
- ai audio
- ai auto
categories:
- ai
- screen
description: "This Article Describes In 2024, Master the Art of Livest... |
package command
import (
"context"
"sync"
)
type pwdCommand struct {
args []string
inputChannel <-chan string
outputChannel chan<- string
errorChannel chan<- error
}
func (p *pwdCommand) Execute(ctx context.Context, wg *sync.WaitGroup) {
defer wg.Done()
wd, err := getwd()
if err != nil {
p.erro... |
#pragma once
#include <functional>
#include "ChartPoint.h"
#include "ObserverValue.h"
#include "DBWrapper.h"
#include "Properties.h"
#include <iostream>
namespace angarawindows {
using namespace System;
using namespace System::Windows::Forms;
using namespace System::Data::OleDb;
delegate void CalculateDelegat(d... |
<script>
import Label from '@/components/Label'
import LabelWarning from '@/components/LabelWarning'
import { mapActions, mapGetters } from 'vuex'
export default {
components: {
Label,
LabelWarning
},
props: {
flow: {
type: Object,
default: () => {}
},
flowGroup: {
type: Obj... |
----------------------------------------------------------------------
Freeciv Rulesets
----------------------------------------------------------------------
(Originally by David Pfitzner, dwp@mso.anu.edu.au)
Quickstart:
-----------
Rulesets allow modifiable sets of data for units, a... |
---
title: Administer teams
weight: 1
sidebarTitle: Teams
sidebarIgnore: true
description: Manage team access and permissions across all your projects and organizations.
---
Organizations on {{% vendor/name %}} are made up of both [projects](/projects/) and [users](/administration/users.md).
While organizations by the... |
import { Injectable } from '@angular/core';
import { InMemoryDbService } from 'angular-in-memory-web-api';
import { User } from '../interfaces/user';
@Injectable({
providedIn: 'root',
})
export class DataService implements InMemoryDbService {
createDb() {
const userPreferences: User[] = [
{... |
#include <stdio.h>
int isValidDate(int day, int month, int year) {
if (year < 0 || month < 1 || month > 12 || day < 1)
return 0;
int maxDays;
switch (month) {
case 2:
if ((year % 4 == 0 && year % 100 != 0) || year % 400 == 0)
maxDays = 29;
else
... |
@extends('layouts.main')
@section('content')
@if(session()->has('success-msg'))
<div class="p-4 mb-4 fixed right-5 z-50 alert-msg w-80 mx-2 mt-4 flex justify-between items-center text-sm text-green-800 rounded-lg bg-green-200/50 dark:bg-gray-800 dark:text-green-400" role="alert" >
<span class... |
package cc.haoduoyu.demoapp.autoscrollviewpager;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.os.SystemClock;
import android.support.v4.util.LruCache;
import android.support.v4.view.ViewPager;
import android.support.v4.view.ViewPager.OnPageChangeListener;
import androi... |
@extends('layouts.backend.app')
@section('title')
<!-- start page title -->
<div class="row">
<div class="col-12">
<div class="page-title-box d-flex align-items-center justify-content-between">
<h4 class="page-title mb-0 font-size-18">{{__('Place Order')}}</h4>
... |
(ns tools.utils
(:require
[babashka.fs :as fs]
[clojure.edn :as edn]
[clojure.java.io :as io]
[clojure.string :as str]))
;;;; File io
(defn get-local-fname
"Get the full filename when in same dir as this file."
[fname]
(-> (fs/parent *file*)
(fs/path fname)
str))
(defn read-local-file
... |
import React, { FC } from 'react';
import { useUser } from '../helpers/mock/mock-data';
import { DetailsItem } from './details-item';
export const PersonalInfoDetails: FC = (): JSX.Element => {
const { name, age, country } = useUser();
const personalInfo: Array<[string, string | number]> = [['Name', name], ['Age... |
using System;
using System.Collections.Generic;
using System.Linq;
using Elders.Pandora;
using Multitenancy.Delivery.Serialization;
using PushNotifications.Aggregator.InMemory;
using PushNotifications.Contracts.PushNotifications.Delivery;
using PushNotifications.Contracts.Subscriptions;
using PushNotifications.Deliver... |
/*
* Copyright (C) Igor Sysoev
* Copyright (C) Nginx, Inc.
*/
#ifndef _NGX_LIST_H_INCLUDED_
#define _NGX_LIST_H_INCLUDED_
#include <ngx_config.h>
#include <ngx_core.h>
typedef struct ngx_list_part_s ngx_list_part_t;
/*
链表节点 节点大小 = size * nelts
节点元素用完后每次就会分配一个新的节点
*/
struct ngx_list_part_s {
void ... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateStudentActivitiesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('stude... |
import { Link, useGlobal, getItemsSelector } from '@metafox/framework';
import React from 'react';
import { ItemText, ItemTitle, ItemView, LineIcon } from '@metafox/ui';
import { styled, Box, Button, MenuItem, Menu } from '@mui/material';
import LoadingSkeleton from './LoadingSkeleton';
import { slugify } from '@metafo... |
use std::collections::HashSet;
use std::env;
use std::fs::File;
use std::io::prelude::*;
use std::io::BufReader;
use std::str::FromStr;
use anyhow::{Context, Result};
use utils::measure;
type Input = Vec<Card>;
#[derive(Debug)]
struct Card {
winning_numbers: HashSet<i32>,
numbers_you_have: HashSet<i32>,
}
... |
// AdcDataPlotter.h
// David Adams
// July 2017
//
// Tool to make channel vs. tick displays of data from an ADC channel data map.
//
// Configuration:
// LogLevel - 0=silent, 1=init, 2=each event, >2=more
// DataType - Which data to plot: 0=prepared, 1=raw-pedestal, 2=signal, 3=not signal
// DataView - Which vi... |
import Container from 'react-bootstrap/Container';
import Navbar from 'react-bootstrap/Navbar';
import Sidebar from './Sidebar';
import { useAuthContext, useDarkMode } from '../hooks';
import { Link } from 'react-router-dom';
function Nav({ show, setShow }) {
const { user, logout } = useAuthContext();
const handl... |
package PiedraPapelYTijera;
import java.util.Random;
import java.util.Scanner;
public class PiedraPapelYTijera {
public static void main(String[] args) {
Scanner entrada = new Scanner(System.in);
Random random = new Random();
int jugador, computadora, resultadoJugador = 0, resultadoComput... |
import React, { ButtonHTMLAttributes, DetailedHTMLProps, ReactNode } from 'react';
import styles from './button.module.css';
import cn from 'classnames';
interface ButtonProps extends DetailedHTMLProps<
ButtonHTMLAttributes<HTMLButtonElement>,
HTMLButtonElement
> {
children: ReactNode;
isLoading?: boolean;
}
... |
<div class="container">
<div class="row">
<div class="col-5 mx-auto">
<div class="card">
<div class="card-header text-center">
<h3 class="bg-primary text-white p-3">
{{getName()}}' TODO List
</h3>
</div>
<div class="card-body">
<div class=... |
import { pluralize } from 'lib/shared/utils/pluralize';
import { ExpandablePanel } from 'lib/ui/Panel/ExpandablePanel';
import { Spinner } from 'lib/ui/Spinner';
import { HStack, VStack } from 'lib/ui/Stack';
import { Text } from 'lib/ui/Text';
import { centerContentCSS } from 'lib/ui/utils/centerContentCSS';
import { ... |
from typing import List
import torch
import torch.nn as nn
from .ModelBase import ModelBase
# https://github.com/brysef/rfml/blob/master/rfml/nn/model/cnn.py
class LSTM2(ModelBase):
"""
References
S. Rajendran, W. Meert, D. Giustiniano, V. Lenders, and S. Pollin,
“Deep Learning Models for Wir... |
# This the fourth R Code File for the Introduction to R Course available at
# https://github.com/brfitzpatrick/Intro_to_R
# Copyright (C) 2015 Ben R. Fitzpatrick.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as publish... |
import React, {useEffect, useState} from 'react'
import {CSmartTable} from '../../custom/smart-table/CSmartTable'
import PropTypes from 'prop-types'
import {CBadge, CButton, CCol, CFormInput, CRow} from '@coreui/react'
import RangeDatePicker from '../../common/RangeDatePicker'
import moment from 'moment'
import {isPric... |
import {createBrowserRouter, RouterProvider} from 'react-router-dom';
import App from './App.jsx';
import Home from './pages/Home.jsx';
import ProductList from './pages/ProductList.jsx';
import Product from './pages/Product.jsx';
import ShoppingCart from './pages/ShoppingCart.jsx';
import Contact from './pages/Contact.... |
# Declaring packages
using JuMP, HiGHS
# Preparing an optimization model
m = Model(HiGHS.Optimizer)
# Declaring variables
@variable(m, x[1:2])
@variable(m, z[1:3])
# Setting the objective
@objective(m, Max, 2x[1] + 3z[1])
# Adding constraints
@constraint(m, c1, z[1] <= x[2] - 10)
@constraint(m, c2, z[1] <= -x[2] + ... |
// Path: quote/static/quote/main.js
/*
--> Ideas for JavaScript Enhancements
1. Dynamic Loading of Quotes: Instead of loading all quotes at once, use JavaScript to load them dynamically as the user scrolls down the page. This is often called "infinite scrolling" and can improve performance and user experience.
2. Fo... |
package fr.sqli.formation.gamelife.service;
import fr.sqli.formation.gamelife.entity.ProduitEntity;
import fr.sqli.formation.gamelife.ex.ProduitException;
import fr.sqli.formation.gamelife.repository.ProduitRepository;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import org.springframewo... |
import { useLocation, useNavigate } from 'react-router-dom'
import { getAuth, signInWithPopup, GoogleAuthProvider } from 'firebase/auth'
import { doc, setDoc, getDoc, serverTimestamp } from 'firebase/firestore'
import { db } from '../firebase.config'
import { toast } from 'react-toastify'
import googleIcon from '../ass... |
import React, { Dispatch, SetStateAction, useEffect, useState } from 'react';
import { Button, TextField, useTheme } from '@mui/material';
import Loading from './Loading';
import styles from '../styles/MainForm.module.css';
import { signIn } from 'next-auth/react';
import { Company } from '@prisma/client';
const Creat... |
import { useState } from 'react';
import PropTypes from 'prop-types';
import { FaPlus } from 'react-icons/fa';
import { v4 as uuid } from 'uuid';
import ParticipantService from '../services/ParticipantService';
const Form = ({ add, loader }) => {
const [note, setNote] = useState('');
const handleSubmit = async ev... |
local options = {
backup = false, -- creates a backup file
cmdheight = 1, -- more space in the neovim command line for displaying messages
fileencoding = "utf-8", -- the encoding written to a file
hlsearch = false, ... |
/**
* @jest-environment jsdom
*/
import { render, fireEvent } from '@testing-library/react';
import '@testing-library/jest-dom';
import { Gravatar } from '../';
describe( 'Gravatar', () => {
/**
* Gravatar URLs use email hashes
* Here we're hashing MyEmailAddress@example.com
* @see https://en.gravatar.com/sit... |
# Dynamic Proxy
## Dynamic Proxy?
> Application이 실행되는 도중에(Runtime시) 특정 Interface들을 구현하는 클래스 또는 인스턴스를 만드는 기술
## Reflection Instance
> `Proxy`의 `newProxyInstance(ClassLoader, Class<?>[](구현해야 하는 인터페이스 타입), InvocationHandler)`를 필요로 하며 `InvocationHandler`에서 `Object`타입을 반환한다.
> 하지만 두번째 인자인 인터페이스 타입을 클래스로 제공하기 때문에 형변환이 가능... |
import { BiLogoCss3, BiLogoNodejs, BiLogoJavascript, BiLogoTypescript, BiLogoReact, BiLogoHtml5 } from 'react-icons/bi'
import { FaBootstrap } from 'react-icons/fa'
import { AiOutlineAntDesign } from 'react-icons/ai'
import { SiJest, SiExpo } from 'react-icons/si'
import { TbBrandReactNative } from 'react-icons/tb'
imp... |
main <- function(Fichier_entree){
#import des fonctions de calc consult
source("R/I2M2_v1.0.6_calc_consultYM.r")
print(paste("fichier entree :",Fichier_entree))
#version/indic
indic <- "I2M2"
vIndic <- "v1.0.6"
## CHARGEMENT DES PACKAGES ----
dependencies <- c("dplyr", "sfsmisc", "tidyr")
loadDependencies <- functi... |
package ru.ncideas.magazinof.gwt.client.registry;
import ru.ncideas.magazinof.gwt.client.event.BaseEvent;
import ru.ncideas.magazinof.gwt.client.event.EventType;
import ru.ncideas.magazinof.gwt.client.event.Listener;
import java.util.List;
public interface Observable {
/**
* Adds a listener bound by the gi... |
use compact_str::CompactString;
use serde::{Deserialize, Serialize};
use smallvec::SmallVec;
use uuid::Uuid;
#[derive(Deserialize)]
pub struct PersonPostDTO {
#[serde(rename = "nome")]
pub name: CompactString,
#[serde(rename = "apelido")]
pub handle: CompactString,
#[serde(rename = "nascimento")]
... |
import * as dotenv from "dotenv";
dotenv.config();
import mongoose from "mongoose";
function connectWithRetry() {
const dbUser = process.env.DB_USER;
const dbPassword = process.env.DB_PASS;
return new Promise((resolve, reject) => {
mongoose
.connect(
`mongodb+srv://${dbUser}:${dbPassword}@mon... |
import { Category } from '@shared/domain/entities/category'
import Link from 'next/link'
import styles from './CategoryCard.module.css'
export type CategoryCardProps = {
category: Category
href: string
}
export function CategoryCard({ category, href }: CategoryCardProps) {
const customStyles = {
'--image-u... |
<template>
<policy-form
:model="model"
:insurance-companies="insuranceCompanies">
<div
slot="buttons"
class="form-footer text-right">
<el-button @click="cancel">
{{ __('Отменить') }}
</el-button>
<el-button
... |
= watsonx.ai Chat
With https://dataplatform.cloud.ibm.com/docs/content/wsj/getting-started/overview-wx.html?context=wx&audience=wdp[watsonx.ai] you can run various Large Language Models (LLMs) locally and generate text from them.
Spring AI supports the watsonx.ai text generation with `WatsonxAiChatModel`.
== Prerequ... |
# Team Profile Generator
Project Repo: [Github-repo](https://github.com/timothymichaelcook/10_team_profile_generator)
## Description
The focus of this project was to create an application in that runs in the terminal, gathers user data about employees based on their job title. Every employee will be asked to input ... |
## What is Spring Boot
Spring Boot helps to quickly create Spring-based applications without having to write the same boilerplate
configuration over again.
Spring is a popular JavaEE framework for building web and enterprise applications.
Why is it popular
* Dependency injection
* Powerful database transaction manag... |
using System;
using System.Collections.Generic;
namespace Decorator
{
//É o Decorator Concreto
public class Emprestado : Decorator
{
protected List<string> emprestados = new List<string>();
public Emprestado(ItemBiblioteca itemBiblioteca): base(itemBiblioteca)
{
}
... |
import { useFormik } from "formik";
import { object, string, number } from "yup";
export default function RegistrationForm() {
const formik = useFormik({
initialValues: {
userName: "",
amount: "",
},
validationSchema: object({
userName: string()
.min(2, "Must be at least 10 char... |
//: Playground - noun: a place where people can play
import Cocoa
//Swift 语言提供Arrays、Sets和Dictionaries三种基本的集合类型用来存储集合数据。数组是有序数据的集。集合是无序无重复数据的集。字典是无序的键值对的集。
var someInts = [Int]()
someInts.append(3)
// someInts 现在包含一个 Int 值
someInts = []
// someInts 现在是空数组,但是仍然是 [Int] 类型的。
var threeDoubles = [Double](count: 3, repea... |
import { useLocation } from 'react-router-dom';
import { searchGame } from './searchResultsViewModel';
import { useEffect, useState } from 'react';
import { SingleGameInterface } from '../../../API/apiMethods/gamesApi/gamesApi';
import { LoadingBackdrop } from '../../common/loadingModal/loadingmodal';
import { GameCard... |
import { FaRegQuestionCircle } from "react-icons/fa";
import {
MdHome,
MdMenu,
MdOutlinePerson,
MdRequestQuote,
} from "react-icons/md";
import { NavLink, Outlet, Link } from "react-router-dom/dist";
import useDataUser from "../../../hooks/useUser/useDataUser";
import { AiFillProfile } from "react-icons/ai";
im... |
##DESCRIPTION
##ENDDESCRIPTION
## DBsubject(Calculus - single variable)
## DBchapter(Techniques of integration)
## DBsection(Integration by parts (without trigonometric functions))
## Institution(Univeristy of Utah)
## Author(Utah ww group)
## MLT(notrig_01)
## Level(2)
## Static(1)
## TitleText1('Calculus II')
## Auth... |
/* manual_licenses.cpp
*
* Copyright (C) 1992-2023 Paul Boersma
*
* This code 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 2 of the License, or (at
* your option) any later version.
*... |
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { LoginComponent } from './auth/login/login.component';
import { SignupComponent } from './auth/signup/signup.component';
import { ChatComponent } from './chat/chat.component';
import { HeaderComponent } from './hea... |
<?php
namespace App\Mail\Myaccount\Admin;
use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Contracts\Queue\ShouldQueue;
class PickupRequest extends Mailable
{
use Queueable, SerializesModels;
/**
* Create a new message instance.
*
... |
library(dplyr)
library(magrittr)
library(dplyr)
library(ggpubr)
mds <- function(data) {
# Compute MDS
mds <- data %>%
dist() %>%
cmdscale() %>%
as_tibble()
colnames(mds) <- c("Dim.1", "Dim.2")
# Plot MDS
plot <- ggscatter(mds, x = "Dim.1", y = "Dim.2",
label = rownames(data... |
import Kwako from '../../Client'
import { Message, MessageEmbed, TextChannel } from 'discord.js'
import GuildConfig from '../../interfaces/GuildConfig';
module.exports.run = async (msg: Message, args: string[], guildConf: GuildConfig) => {
if (!msg.member.hasPermission('MANAGE_MESSAGES')) return;
if (args.len... |
/*
* eGov SmartCity eGovernance suite aims to improve the internal efficiency,transparency,
* accountability and the service delivery of the government organizations.
*
* Copyright (C) 2017 eGovernments Foundation
*
* The updated version of eGov suite of products as by eGovernments Foundation
* ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.