text stringlengths 184 4.48M |
|---|
import GeoThailandAPI from "./GeoThailandAPI";
import WeatherDTO from "./WeatherDTO";
import kelvinToCelcius from "./kelvinToCelcius";
export default class WeatherAPI {
#geoAPI;
#apiKey;
constructor() {
this.#geoAPI = new GeoThailandAPI();
this.#apiKey = process.env.OPENWEATHER_API_KEY;
}
async fet... |
/*
* Kuali Coeus, a comprehensive research administration system for higher education.
*
* Copyright 2005-2015 Kuali, Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, eithe... |
<?php
namespace App\Http\Controllers;
use App\Models\clientes;
use Illuminate\Http\Request;
class cliente extends Controller
{
//create client
public function createClient(Request $request)
{
$data = $request->validate($this->validateClient());
$client = clientes::create($data);
r... |
package matrix;
import java.util.Iterator;
import java.util.Optional;
public final class PeekingIterator<T> implements Iterator<T> {
private final Iterator<T> it;
private Optional<T> next;
private PeekingIterator(Iterator<T> iterator) {
this.it = iterator;
this.next = Optional.of(iterato... |
import { Component, OnInit, ViewChild } from '@angular/core';
import { MatDialog } from '@angular/material/dialog';
import { MatPaginator, PageEvent } from '@angular/material/paginator';
import { MatSnackBar } from '@angular/material/snack-bar';
import { MatTableDataSource } from '@angular/material/table';
import { Veh... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<script src="../../../webcomponentsjs/webcomponents-lite.js"></script>
<script src="../../../web-component-tester/browser.js"></script>
<link rel="import" href="../../pagination/view.html" />
</head>
<body>
<test-fixture id="pa... |
package com.yldbkd.www.seller.android.activity;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.support.v4.app.Fragment;
import com.yldbkd.www.library.android.common.AppManager;
import com.yldbkd.www.library.android.common.ToastUtils;
imp... |
import { Component } from '@angular/core';
@Component({
selector: '<%= selector %>',
<% if(inlineTemplate) { %>template: `
<dw-checkbox-group [(ngModel)]="checkOptionsOne" (ngModelChange)="log(checkOptionsOne)"></dw-checkbox-group>
<br>
<br>
<dw-checkbox-group [(ngModel)]="checkOptionsTwo" (ngModel... |
"use client";
import { ContractTransactionReceipt, Network, ethers } from "ethers";
import { createContext, useContext, useState ,useEffect } from "react";
import Web3Modal from "web3modal";
import { contractAbi,contractAddress } from "./constants";
const getContract = (type) => {
const contract = new ethers.Cont... |
import { ThumbsUp, Trash } from "phosphor-react";
import { useState } from "react";
import { Avatar } from "../Avatar";
import styles from "./Comment.module.css";
interface CommentProps {
content: string;
onDeleteComment: (content: string) => void;
}
export function Comment({ content, onDeleteComment }: CommentPro... |
<?php
namespace App\Http\Controllers;
use App\Models\posisi;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Session;
class posisiController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
... |
package org.example;
public class Cat extends Animal {
private String color;
private Integer age;
public Cat(String name, String color, Integer age) {
this.name = name;
this.color = color;
if (age < 0) {
System.out.println("данные введены некоректно");
} else ... |
'''
Feature: Achievements
Functionalities:
- check_achievement()
- view_achievement()
- view_connected_tm_achievement()
- toggle_achievement_visibility()
- share_achievement()
'''
import time
from firebase_admin import firestore
from .helper import *
db = firestore.client()
#####################################... |
package ca.liashova.notesapp.database
import androidx.lifecycle.LiveData
import androidx.room.Dao
import androidx.room.Delete
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import androidx.room.Update
import ca.liashova.notesapp.model.Note
@Dao
interface NoteDao {
@... |
<.header>
Listing Trucks
<:actions>
<.link patch={~p"/trucks/new"}>
<.button>New Truck</.button>
</.link>
</:actions>
</.header>
<.table id="trucks" rows={@streams.trucks} row_click={fn {_id, truck} -> JS.navigate(~p"/trucks/#{truck}") end}
>
<:col :let={{_id, truck}} label="Vin">
<%= truck... |
/*
* Copyright (c) 2024, Quo <https://github.com/Quoded>
* 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 retain the above copyright notice, this
... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ma... |
"use client"
import Breadcrumb from '@/app/components/breadcrumb/Breadcrumb';
import Image from 'next/image';
import React, { useState } from 'react'
const BlogForm = () => {
const [formData, setFormData] = useState({
title: '',
content: '',
author: '',
image: '',
});
... |
from __future__ import annotations
from typing import Dict, Any, Union
import numpy as np
import wigners
import torch
ArrayLike = Any
Array = Any
class ClebschGordanReal:
def __init__(self, l_max: int) -> None:
self._l_max = l_max
self._cg = {}
# real-to-complex and complex-to-real tran... |
#include "mass.hpp"
#include <format>
#include <iostream>
#include <string>
template <typename LHS, typename RHS>
std::string spaceshipCompare(const LHS& lhs, const RHS& rhs)
{
if (lhs <=> rhs == std::strong_ordering::less || lhs <=> rhs == std::partial_ordering::less)
{
return "less";
}
else ... |
import { useState, useEffect } from 'react';
import { ToastContainer, toast } from 'react-toastify';
import 'react-toastify/dist/ReactToastify.css';
import { fetchApiImg } from '../services/api';
import Searchbar from './Searchbar';
import ImageGallery from './ImageGallery';
import Button from './Button';
import Modal... |
<h1 id="gnome-blasting">Gnome Blasting</h1>
<p><a href="https://github.com/mrjmac/competitive-programming/blob/main/UIL/westwoodInv23/Gnome.java">GitHub link</a></p>
<p>This was a problem from the 2023 Westwood UIL invitational.</p>
<p>The problem goes like this: You are given an array of "."s and "g&quo... |
import { RegisterInput } from '../inputs/register.input';
import { Request } from 'express';
import { HttpException, HttpStatus, Inject, Injectable } from '@nestjs/common';
import { ConfigService } from '@nestjs/config';
import * as jwt from 'jsonwebtoken';
import * as bcrypt from 'bcrypt';
import { User } from '../mod... |
import { useState } from 'react';
import { FiSearch } from 'react-icons/fi';
import { Btn, Header, Input, SearchForm } from './Searchbar.styled';
export const Searchbar = ({ onSubmit }) => {
const [query, setQuery] = useState('');
const handleChange = evt => {
setQuery(evt.target.value.trim().toLowerCase());
... |
# Tixar Mobile App
**Tixar** is a mobile application that allows fans to get verified and purchase event tickets. As we don't have developer accounts on the App Store or Google Play Store, we will run our app on Expo. You will need Yarn installed as we have dependencies in our yarn.lock file.
## Prerequisites
- **Ya... |
const fs = require('fs').promises;
const path = require('path');
const { nanoid } = require('nanoid');
const contactsPath = path.join(__dirname, 'db/contacts.json');
async function listContacts() {
const contacts = await fs.readFile(contactsPath);
return JSON.parse(contacts);
}
async function getContactById(cont... |
#include <Arduino_FreeRTOS.h>
#include <semphr.h> // add the FreeRTOS functions for Semaphores (or Flags).
#define HEATING_PIN 4
#define LED_PIN 5
#define COOLING_PIN 6
#define TEMP_PIN A0
#define BLINK_SLOW 30
#define BLINK_MID 20
#define BLINK_FAST 10
#define DISP_STATUS_COOL "COLD"
#define DISP_STATU... |
******************************************************************************************************
* Unless you are a developer or absolutely must have the bleeding-edge latest version of retcon, *
* you should stop reading this and download a pre-built Windows binary from the URL in README.md *
***********... |
#pragma once
#include "cappch.h"
#include "Cappuccino/Core.h"
#include "Cappuccino/Events/Event.h"
namespace Cappuccino {
struct WindowProps {
std::string Title;
unsigned int Width;
unsigned int Height;
WindowProps(const std::string title = "Cappuccino Engine",
unsigned int width = 1280,
unsigned int... |
package com.example.runpal.filters
import android.location.Location
import com.example.runpal.models.PathPoint
/**
* Even when a device is stationary, the location provided by the GPS satellite will oscillate.
* These oscillations should not count as running distance.
* Therefore, this class filters them out.
* T... |
import { Component } from 'react';
import { nanoid } from 'nanoid';
import ContactForm from './ContactForm/ContactForm';
import Filter from './Filter/Filter';
import ContactList from './ContactList/ContactList';
import styles from './App.module.css';
export class App extends Component {
state = {
contacts: [
... |
class Node:
def __init__(self, key, color, parent, left=None, right=None):
self.key = key
self.color = color
self.parent = parent
self.left = left
self.right = right
class RedBlackTree:
def __init__(self):
self.NIL_LEAF = Node(None, "black", None)
self.ro... |
<template>
<Row :gutter="10" class="set-message-center-page">
<i-col span="24">
<Row>
<Form ref="searchForm" :model="searchForm" :label-width="100" inline>
<Row>
<FormItem :label="$t('userDetail.billLists.time')">
<Row>
<Col span="11">
... |
import express from "express";
import bodyParser from "body-parser";
import pg from "pg";
const app = express();
const port = 3000;
const db = new pg.Client({
user: "postgres",
host: 'localhost',
database: 'todo',
password: 'Divya123',
port: 5432,
});
db.connect()
.then(() => {
console.log('Connected... |
<template>
<form class="mb-3 p-3 shadow" @submit.prevent="submitData">
<div class="mb-3">
<label for="first_name" class="form-label">Name</label>
<input
ref="name"
type="text"
class="form-control"
:class="{'is-invalid': processing && invalidName}"
id="first_name"
place... |
package com.springboot.microservice.customer.config;
import com.springboot.microservice.customer.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframewor... |
from dataclasses import dataclass, asdict
from datetime import datetime
from math import sqrt, cos, sin
from typing import Union, TextIO
import numpy as np
import serial
def convert_to_quaternion(euler: tuple) -> np.ndarray:
"""Convert euler angle orientation to ndarray quaternion
Inputs
* euler: 3-tupl... |
import React from "react";
import { Modal, ModalProps } from "react-bootstrap";
export default function HelpModal(props: ModalProps) {
return (
<Modal
show={props.show}
onHide={() => {
if (props.onHide) props.onHide();
}}
aria-labelledby="help-modal-title"
>
<Modal.Heade... |
#!/usr/bin/python3
#coding:utf-8
import os
import numpy as np
import time
from lib.utils.convert_RGB import convert
import torch
import torch.nn as nn
from torch.autograd import Variable
from lib.loss.mse_loss import get_mse_loss_function
from lib.loss.L1_loss import get_l1_loss_function
from lib.utils.utils import... |
<?php
namespace Tests\Controllers;
use App\Models\Factories\ImageFactory;
use App\Models\Factories\UserFactory;
use App\Models\ThreadModel;
use App\Models\UserModel;
use CodeIgniter\Exceptions\PageNotFoundException;
use CodeIgniter\I18n\Time;
use Exception;
use Tests\Support\Database\Seeds\TestDataSeeder;
use Tests\S... |
# *Dasypops schirchi* Miranda-Ribeiro, 1924
**Autores(as)**: Tatianne P. F. Abreu-Jardim, Monira Bruno Bicalho, Bruno R. Ribeiro, Karlo Guidoni, André Yves e Henrique C. Costa
{width="6.486111111111111in" height="5.119183070866142in"}![Fonte: Lucas Aosf - Inaturalist... |
import kotlin.math.sqrt
fun Regex.findAllWithOverlap(input: CharSequence) = generateSequence({ find(input) }, { find(input, it.range.first + 1) })
object Regexp {
val integer = "-?\\d+".toRegex()
}
fun Boolean.toInt() = if (this) 1 else 0
fun String.toLongs() = Regexp.integer.findAll(this).map { it.value.toLong... |
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<!-- 动态查询 -->
<mapper namespace="top.jionjion.mybatis.mapper.StudentDynamicQueryMapper">
<!-- Bean映射规则,当Bean属性与数据库表字段类型不同时,需要指定 -->
<resultMap id="StudentResultMap"... |
<!DOCTYPE html>
<html lang="en">
<head>
<title>Title of the document</title>
</head>
<body>
<script src="https://unpkg.com/@babel/standalone/babel.min.js"></script>
<script crossorigin src="https://unpkg.com/react@17/umd/react.development.js"></script>
<script crossorigin src="https://unpkg.com/react-dom@17/umd/rea... |
import BaseCommand from "../structures/BaseCommand";
import { MessageEmbed } from "discord.js";
import type Disc_11 from "../structures/Disc_11";
import type { IMessage } from "../../typings";
export default class SkipCommand extends BaseCommand {
public constructor(public client: Disc_11, public readonly path: st... |
package com.team2.service.member;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.dao.DataIntegrityViolationException;
import org.springframework.stereotype.Service;
import com.team2.domain.member.MemberDTO;
import com.team2.mapper.member.MemberMapper;
import com.team2.util.B... |
var database_uri = 'mongodb+srv://DevonteWhitely:August01@cluster0.fnaqv.mongodb.net/Cluster0?retryWrites=true&w=majority';
// server.js
// where your node app starts
// init project
var express = require('express');
var mongo = require('mongodb');
var mongoose = require('mongoose');
var bodyParser = require('body-pa... |
<template>
<div>
<a-card :bordered="false" style="margin-bottom: 10px;">
<!-- 条件搜索 -->
<div class="table-page-search-wrapper">
<a-form :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-row :gutter="48">
<a-col :md="6" :sm="24">
<a-form-item label="登录地址">
... |
<?php
/*
*
* ____ _ _ __ __ _ __ __ ____
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
* |_| \___/ ... |
import React from "react";
import PropTypes from "prop-types";
import "./orderItem.css";
function OrderItem(props) {
return (
<div className="Order-Item clearfix">
<span className="delete-btn mr-2" onClick={props.delete}>
<span className="oi oi-x" title="x" aria-hidden="true" />
</span>
... |
package com.fun_todo.memesandtodocombine.ui.todo.roomDbPackage
import android.content.Context
import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
//todo learn why we use version in database - Migration
@Database(entities = [TodoEntity::class], version = 1, exportSchema = false)... |
import React, { useEffect, useState } from 'react';
import { Loader } from "./";
import { useDispatch, useSelector } from 'react-redux';
import { postQuestion, SET_ERROR, getQuestion, updateQuestion } from '../redux/actions';
import { ToastContainer, toast } from 'react-toastify';
import { BsPlusLg, BsCheck2 } from "re... |
from base64 import b64encode
from dataclasses import dataclass
from csvbase.value_objs import User
@dataclass
class ExtendedUser(User):
password: str
def basic_auth(self) -> str:
"""The HTTP Basic Auth header value for this user"""
hex_api_key = self.hex_api_key()
user_pass = f"{self... |
# Push to Platinum
## Overview
Welcome to the "Push to Platinum" repository! This project serves as a model for GitHub best practices, demonstrating how to enhance your repository and showcase coding maturity. Whether you're a seasoned developer or just starting, these examples will guide you toward creating a polish... |
package com.apin.qunar.order.service.national.impl;
import com.apin.qunar.common.utils.BeanUtil;
import com.apin.qunar.order.dao.impl.NationalReturnOrderDaoImpl;
import com.apin.qunar.order.dao.impl.NationalReturnPassengerDaoImpl;
import com.apin.qunar.order.dao.model.NationalReturnOrder;
import com.apin.qunar.order.d... |
---
title: "Alcohol consumption by Portuguese students"
output: html_notebook
author: Shiva Kumar Pendem, Sricharan Cheeti, Kaushik Parvathaneni
---
```{r}
library(dplyr)
library(tidyverse)
library(tidyr)
library(corrplot)
library(plotly)
library(caTools)
library(car)
```
```{r}
Mat = read.csv('studentMat.csv')
```
... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<title>Personal Template</title>
<meta content="" name="description">
<meta content="" name="keywords">
<!-- Favicons -->
<link href="assets/img/favicon.png" rel="icon">... |
import { fireEvent, screen } from '@testing-library/react';
import { BrowserRouter } from 'react-router-dom';
import { renderWithProviders } from '../../../helpers/test-utils';
import RulesContext from '../RulesContext';
import { useNavigate } from 'react-router-dom';
jest.mock('react-router-dom', () => ({
...jest... |
import React, { startTransition, useEffect, useRef, useState, useTransition } from "react";
import NavBar from "../Acceuil/NavBar/NavBar";
import "./DiseaseSearch.css"
import"https://clinicaltables.nlm.nih.gov/autocomplete-lhc-versions/17.0.2/autocomplete-lhc.min.js";
import 'https://ajax.googleapis.com/ajax/libs/jqu... |
<?php
namespace App\Models;
use Laravel\Sanctum\HasApiTokens;
use Illuminate\Notifications\Notifiable;
use Illuminate\Contracts\Auth\MustVerifyEmail;
use PHPOpenSourceSaver\JWTAuth\Contracts\JWTSubject;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Foundation\Auth\User as Authenticatable;
use ... |
import styled from "styled-components";
import { Dispatch, SetStateAction, useState, useRef, useCallback } from "react";
import upload from "../../assets/upload.svg";
import { useCertificateUserApi } from "../../utils/api/user";
interface Props {
setModalState: Dispatch<SetStateAction<boolean>>;
}
const CertifiedMo... |
import React from 'react';
import { useRouter } from 'next/router';
import styled from 'styled-components';
import { darken, lighten } from 'polished';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { faSearch, faPlus } from '@fortawesome/free-solid-svg-icons';
import JobTicketsCard from 'com... |
/* test for gslice cross thread allocation/free
* Copyright (C) 2006 Stefan Westerfeld
* Copyright (C) 2007 Tim Janik
*
* This library 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
* ver... |
#ifndef NEIGHBORLIST_H
#define NEIGHBORLIST_H
#include <vector>
#include "atom.h"
#include "atomicsystem.h"
using namespace std;
//! Class to generate and hold neighbor lists
/*! This will divide the box into bins and for a given atom, loop over
atoms in neighboring bins to generate its neighbor list. This sp... |
import { Inject } from '@angular/core';
import { LOCAL_STORAGE , WINDOW} from '@ng-toolkit/universal';
import {
Component,
OnInit,
AfterViewInit,
AfterContentInit,
ChangeDetectorRef,
Input,
Output,
EventEmitter,Optional
} from '@angular/core'
import { ExploreMenuService } from '../explore-menu.service'
... |
<template>
<div>
<h1>Inloggen</h1>
<div class="pin-code">
<div class="pin-point" :class="{ active: pin.length > 0 }" />
<div class="pin-point" :class="{ active: pin.length > 1 }" />
<div class="pin-point" :class="{ active: pin.length > 2 }" />
<div class="pin-point" :class="{ active: pin.length > ... |
<!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">
<title>Marketplace</title>
<link rel="stylesheet" href=" https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dis... |
from django.contrib.auth import get_user_model
from config.base_api_test import BaseTest
from rest_framework import status
from django.urls import reverse
from ..models import Product, Category, FigureField
from ..serializers import CategoryInputSerializer
class ModelItemTestCase(BaseTest):
def test_list_categor... |
package com.daniil.halushka.simplecard
import android.annotation.SuppressLint
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.material3.Scaffold
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
im... |
const express = require('express');
const app=express();
const port=8080;
const path = require('path');
const { v4: uuidv4 } = require('uuid');
const methodOverride = require('method-override');
app.use(methodOverride("_method"));
app.use(express.urlencoded({ extended: true }));
app.use(express.static(path.join(_... |
<?php
namespace App\Entity;
use Symfony\Component\Validator\Constraints as Assert;
use App\Repository\CommentRepository;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Context\ExecutionContextInterface;
#[ORM\Entity(repositoryClass: CommentRepository::class)]
class Comment
{
#[ORM\Id]
#[ORM\... |
{% extends "base.html" %}
{% block load %}{% load leaflet_tags %}{% endblock %}
{% block head %}
{% leaflet_js plugins="ALL" %}
{% leaflet_css plugins="ALL" %}
<!--
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.5/leaflet.css" />
<script src="http://cdn.leafletjs.com/leaflet-0.5/leaflet.... |
/*
* Pueda usar esta plantilla para la carga del reto a iMaster
* Copie las clases de los paquetes Modelo, Vista, Controlador y Util
* No incluya los import de los archivos .java solo las clases
*/
// Importaciones necesarias en iMaster
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.Resu... |
import React from 'react';
import PropTypes from 'prop-types';
import { ListItem, Divider } from '@material-ui/core';
import ListItemText from './styles/UserTransactionsListItem.styled';
const UserTransactionsListItem = ({ transaction }) => (
<>
<ListItem>
<ListItemText
primary={<strong>USER</str... |
package domain
import (
"github.com/stretchr/testify/require"
"niseoku-go/pkg/domain"
"testing"
)
// 商品を作成できる
func Test_CreateProduct(t *testing.T) {
// Given
productId := domain.GenerateProductId()
productType := domain.ProductTypeGeneric
productName, err := domain.NewProductName("iPhone")
require.NoError(t,... |
<div class = "bootstrap-wrapper">
<div class = "container">
<div class = "row" style = "margin-top : 20px;">
<div class = "col-md-6 offset-md-3">
<mat-card>
<form (ngSubmit) = "onSubmit()" #warehouseForm = "ngForm">
<div [innerHtml]="htmlContentHeader"></div>
<mat-form-f... |
import React from 'react'
import { ModuleProvider, ModuleProviderValue } from './provider'
import { Context } from './context'
import { ModuleContextOptions, ModuleContext } from './module-context'
/**
* ModuleContext for manager dependencies
*/
export type ModuleCtor<T = any> = new (...args: any[]) => T
export type... |
package christmas.domain.orderdetails;
import christmas.domain.Event;
import christmas.domain.Order;
import christmas.domain.orderdetails.benefit.DDayBenefit;
import christmas.domain.orderdetails.benefit.GiftBenefit;
import christmas.domain.orderdetails.benefit.SpecialBenefit;
import christmas.domain.orderdetails.bene... |
import { BsChevronDown, BsChevronRight } from "react-icons/bs";
import useComponentVisible from "../../hooks/useComponentVisible";
import { useState } from "react";
type SearcDropdownProps = {
handleSearchCategoryChange: (category: string) => void;
}
const SearchDropdown: React.FC<SearcDropdownProps> = ({handleSe... |
<!doctype html>
<html lang="pt-br">
<head>
<title>Bootstrap - Margin e Wrap</title>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/b... |
import { AuthenticationService } from './../../index/service/authentication.service';
import { SharedService } from '../../shared/service/shared.service';
import { PlaceStatus } from '../../shared/common';
import { Router } from '@angular/router';
import { Observable } from 'rxjs';
import { Component, OnInit } from '@a... |
defmodule Rabble.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
@impl true
def start(_type, _args) do
children = [
# Start the Ecto repository
Rabble.Repo,
# Start the Telemetry supervisor
... |
---
layout: about
title: home
permalink: /
subtitle: <i>An NGF-funded project with a 2.1 million Euro budget applying technical methods to the law with the aim of making the EU's ambitious AI regulation – particularly the GDPR and AI Act – work in practice.</i>
profile:
align: right
image: logo.png
image_circula... |
var Modal = require('../../../src/symphony/extensions/modal');
var ModalView = require('../../../src/symphony/views/modal');
var sandbox = require('../../mocks/sandboxMock');
var core = {
sandbox: sandbox,
start: $.noop
};
describe("The modal core extension", function() {
beforeEach(function() {
m = new Mo... |
# Summary {.unnumbered}
## Some words before going
**"Have you used Cryptography?"** I have asked this question to several of my friends and some of them would say, no. But look around, the website you love has a way to secretly communicate with you everyday, through some web protocols with cryptography. You may reve... |
import numpy as np
import torch
from torch.utils.data import Dataset
from skimage.io import imread
import random
import torchvision
import os
import pickle
import pandas as pd
import cv2
from scipy.ndimage import gaussian_filter
# This class processes multiple IMC file types and returns pre-processed tiles of the ima... |
"use client";
import React from "react";
import Link from "next/link";
import Image from "next/image";
import { TypeAnimation } from "react-type-animation";
import { motion } from "framer-motion";
const SectionOne: React.FC = () => {
return (
<section className="lg: py-16">
<div className="grid grid-cols-1... |
import { Spinner } from '@chakra-ui/spinner';
import { SendHorizonal } from 'lucide-react';
import toast from 'react-hot-toast';
import { useState } from 'react';
import { tokenDecoder } from '../../../utils/tokenDecoder';
import axios from '../../../services/axios';
import { AnswersProtocol } from '../../../interface... |
package entity
import (
"github.com/TEDxITS/website-backend-2024/constants"
"github.com/google/uuid"
"gorm.io/gorm"
)
type (
PE2RSVP struct {
ID uuid.UUID `json:"id" form:"id" gorm:"type:uuid;primary_key;default:uuid_generate_v4()"`
Name string `json:"name" form:"name"`
Email string ... |
import React, { useState } from "react";
import { Link } from "react-router-dom";
import { useCartContext } from "../../context/cartContext";
import { higherThanStock } from "../../helpers";
import "./ItemCount.css";
function ItemCount({ id, stock, initial, nombre, img, precio }) {
const { agregarItem } = useCartCo... |
import { Paysheet, type PaysheetType } from '@/data/paySchema'
import { useAddPay } from '@/hooks/usePay'
import { ArrowForwardIcon } from '@chakra-ui/icons'
import {
Box,
Button,
Flex,
FormControl,
FormErrorMessage,
FormHelperText,
FormLabel,
Icon,
Input,
Spacer,
useColorModeValue,
useConst,
} ... |
import config from './config';
import apiRouter from './api';
import express from 'express';
import sassMiddleware from 'node-sass-middleware';
import path from 'path';
const server = express();
server.use(sassMiddleware({
src: path.join(__dirname, 'sass'),
dest: path.join(__dirname, 'public'),
outputStyle: 'com... |
<!--
* @Description:
* @Author: lys1626/刘芹芹
* @Date: 2019-12-06 15:01:28
* @LastEditors : lys1626/刘芹芹
* @LastEditTime : 2019-12-25 16:10:40
-->
<template>
<div class="hard-ware-con" style="width:100%">
<div class="circle-container">
<i-circle
:size="size"
:percent="percent*100"
... |
<?php
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. T... |
/*
! tailwindcss v3.3.1 | MIT License | https://tailwindcss.com
*//*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/
*,
::before,
::... |
//
// BookManager.swift
// BFY
//
// Created by Анастасия Московчук on 16.11.2021.
//
import Foundation
final class BookInfo: Equatable {
let id: String
let title: String
let authors: [String]?
let image: String?
convenience init(from book: BooksBody) {
self.init(
... |
---
id: 72
title: 'C#: Working with Azure IMDS'
summary: 'C#: Working with Azure IMDS'
date: '2023-08-22T13:58:28+00:00'
author: admin
layout: post
guid: 'https://porotnikov.com/?p=72'
permalink: /2023/08/22/c-working-with-azure-imds/
categories:
- Code
---
## C#: Working with Azure IMDS
```csharp
class Program
{... |
import pytest
from sqlalchemy.exc import IntegrityError
from aurweb import db, time
from aurweb.models.account_type import PACKAGE_MAINTAINER_ID
from aurweb.models.user import User
from aurweb.models.vote import Vote
from aurweb.models.voteinfo import VoteInfo
@pytest.fixture(autouse=True)
def setup(db_test):
re... |
import { When, Then } from '@cucumber/cucumber';
import { AnyCcdFormPage } from '../../pages/any-ccd-form.page';
import { expect } from 'chai';
const anyCcdPage = new AnyCcdFormPage();
When('I select {string} and {string} Elements', async function (string, string2) {
await anyCcdPage.clickElementById('elementsDispu... |
import "./style/App.css";
import "./style/App.mobile.css";
import React from "react";
import { createBrowserRouter, RouterProvider } from "react-router-dom";
import Home from './pages/Home';
import Detail from './pages/Detail';
import Login from "./pages/Login";
import Register from "./pages/Register";
import ChooseS... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.