text
stringlengths
184
4.48M
<?php /** * LICENSE: The MIT License (the "License") * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * https://github.com/azure/azure-storage-php/LICENSE * * Unless required by applicable law or agreed to in writing, software * distributed under the L...
import { useContext } from "react"; import { TransactionsContext } from "../context/TransactionContext"; import dummyData from "../utils/dummyData"; import { shortenAddress } from "../utils/shortenAddress"; import useFetch from "../hooks/useFetch"; import { Loader } from './'; // transactions card comp const Transacti...
'use client' import Avatar from '@/app/components/Avatar'; import useOtherUser from '@/app/hooks/UseOtherUsers'; import { Conversation, User } from '@prisma/client'; import Link from 'next/link'; import { useMemo, useState } from 'react'; import { HiChevronLeft, HiEllipsisHorizontal } from 'react-icons/hi2'; import Pr...
import { useMutation, useQueries, useQuery, useQueryClient } from '@tanstack/react-query'; import { useEffect } from 'react'; import { BankAccount } from '../account.types'; import { addSavedAccount, getSavedAccounts } from '../services/accounts.firebase'; import { getInstitutionAccount } from '../services/accounts.nor...
// // WizardDomainViewController.swift // GenericApp // // Created by Eric Bariaux on 18/06/2022. // Copyright © 2022 OpenRemote. All rights reserved. // import UIKit import MaterialComponents.MaterialTextFields import ORLib class WizardDomainViewController: UIViewController { var configManager: ConfigManage...
<script lang="ts"> import { client, Audit } from "../../clients"; import { PUBLIC_BLOG_TABLE } from "$env/static/public"; import Textarea from "$lib/textarea.svelte"; import { goto } from "$app/navigation"; let id: string; let title: string; let authors: string; let content: string; const today = ne...
.\" @(#)getmsg.2 1.1 92/07/30 SMI; from S5R3 .TH GETMSG 2 "21 January 1990" .SH NAME getmsg \- get next message from a stream .SH SYNOPSIS .nf .ft B #include <stropts.h> .ft .LP .ft B .nf int getmsg(fd, ctlptr, dataptr, flags) int fd; struct strbuf *ctlptr; struct strbuf *dataptr; int *flags; .ft .fi .SH DESCRIPTION .I...
import pygame pygame.init() WIDTH, HEIGHT = 700,500 WIN = pygame.display.set_mode((WIDTH, HEIGHT)) pygame.display.set_caption("PingPongPython") FPS = 60 WHITE = (255,255,255) BLACK = (0,0,0) PADDLE_WIDHT,PADDLE_HEIGHT = 20, 100 BALL_RADIUS = 7 WINNING_SCORE = 10 SCORE_FONT = pygame.font.SysFont("comicsans", 48) c...
import { StyledMain, StyledUl } from "./style"; import { useState, useEffect } from "react"; import { Api } from "../API"; import { ToastContainer, toast } from "react-toastify"; import ModalStyled from "../Modal"; export default function Main() { const [openPost, setOpenPost] = useState(false); const [openEdit, s...
#ifndef VEHICLE_H #define VEHICLE_H #include <iostream> #include "VehicleType.h" class Vehicle { private: std::string _id; std::string _brand; float prize; VehicleType _Vtype; public: Vehicle(std::string _id, std::string _brand, float prize, VehicleType _Vtype); ...
<!DOCTYPE html> <html lang="en" xmlns:th="http://www.thymeleaf.org"> <head> <meta charset="UTF‐8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width,initial-scale=1"> <title>注册</title> <!--css--> <link rel="stylesheet" href="/layui/css/layui...
class HashTable<T = any> { //创建一个数组,用来存放链地址中的链(数组) storage: [string, T][][] = []; //定义数组的长度 private length: number = 7 //记录已经存放元素的个数 private count: number = 0 /** * 哈希函数,将key映射称index * @param key 转换的key * @param max 数组的长度(最大的数值) * @returns 索引值 */ private hashFun...
/* * Wave, containers provisioning service * Copyright (c) 2023, Seqera Labs * * 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, either version 3 of the License, or * (at your ...
<!DOCTYPE html> <html lang="en" xmlns:th="http://www.thymeleaf.org"> <head> <meta charset="UTF-8"> <title>Create Room</title> <!-- Bootstrap CSS link --> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="..." crossorigin="anonymous"> </head...
"use server"; import { revalidatePath } from "next/cache"; import Product from "../models/product.model"; import { connectToDB } from "../mongoose"; import { scrapeAmazonProduct } from "../Scraper"; import { getAveragePrice, getHighestPrice, getLowestPrice } from "../utils"; import { User } from "@/types"; import genra...
from pathlib import Path from libcst import parse_module, CSTNode, CSTVisitor, Call # 定义一个访问器来查找特定模式 class CustomAnalyzer(CSTVisitor): def __init__(self): super().__init__() # 调用父类的构造函数 self.function_calls = [] def visit_Call(self, node: "Call") -> None: # 检查是否是函数调用 if isinsta...
//DobreaMariusDorian2127lab6pb3 package Problema3; interface Int1{ int a=0; int b=0; static void sum(int a,int b) { } //prototip de metoda } package Problema3; interface Int2{ double a=0; double b=0; static void product(double a,double b) { }; //prototip de metoda } package Problema3; publi...
class UsersController < ApplicationController before_action :load_user, :logged_in_user, except: %i(index new create) before_action :correct_user, only: %i(edit update) def index @users = User.load_user.paginate page: params[:page], per_page: Settings.user.per_page end def new @user = User.new end...
#pragma once #include <queue> #include "./cell_point.hpp" namespace Algorithms { // Pair of distance and CellPoint that will be stored in the priority queue. typedef std::pair<int, Algorithms::CellPoint> DistanceCell; class DistanceCellComparator { public: bool operator() (DistanceCell a, Di...
import classnames from 'classnames' import { forwardRef } from 'react' type EntryIndicatorProps = { focused: boolean onMouseEnter: () => void onClick: () => void children: React.ReactNode } const EntryIndicator = forwardRef<HTMLDivElement, EntryIndicatorProps>( ({ focused, onMouseEnter, onClick, children },...
import { TbLocationFilled } from "react-icons/tb"; import { BsFillBookmarkFill } from "react-icons/bs"; import { AiOutlineFileDone } from "react-icons/ai"; import Tag from "./Tag/GreyTag"; import { useDispatch, useSelector } from "react-redux"; import { setJobdetails } from "../redux/JobDetailsSlice"; import BlueTag ...
package com.guroomsoft.icms.biz.code.service; import com.guroomsoft.icms.biz.code.dao.ItemDAO; import com.guroomsoft.icms.biz.code.dto.Item; import com.guroomsoft.icms.biz.code.dto.ItemReq; import com.guroomsoft.icms.common.exception.CDatabaseException; import com.guroomsoft.icms.sap.JcoClient; import lombok.RequiredA...
module App exposing (..) import Html exposing (Html, beginnerProgram, div, button, text) import Html.Events exposing (onClick) type alias Model = Int model : Model model = 0 type Msg = Increment | Decrement update : Msg -> Model -> Model update msg model = case msg of Increment -> model + 1 Decre...
package com.javiersan.prueba.controllers; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.stream.Collectors; import org.apache.juli.logging.Log; import org.apache.juli.logging.LogFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework....
import { ApolloClient, ApolloLink, InMemoryCache, NormalizedCacheObject } from "@apollo/client"; import { onError } from "@apollo/client/link/error"; import { createUploadLink } from "apollo-upload-client"; import { useMemo } from "react"; let apolloClient: ApolloClient<NormalizedCacheObject>; const createApolloClien...
import { useState, useEffect } from "react"; import { useLocation} from 'react-router-dom' import { Link } from "react-router-dom" import Trim from './trim.js'; import Card from '@mui/material/Card'; import CardContent from '@mui/material/CardContent'; import Typography from '@mui/material/Typography'; function S...
import React, { useEffect, useState } from 'react'; import { URL_ATTRIBUTE_KEY, PROJECT_ATTRIBUTE_KEY, TOKEN_ATTRIBUTE_KEY, } from 'components/constants'; const authTypeAttributesOptions = [{ value: 'OAUTH', label: 'ApiKey' }]; const DEFAULT_FORM_CONFIG = { authType: 'OAUTH', }; export const IntegrationFormFi...
### Codes to create Figure 1 in the article ################################################################################################################### ### This material is provided to the aims of reproducibility and replicability of the findings reported in the paper: ### Antonio Preti, Sara Siddi, Marcello ...
"""Calculation and processing of holding token allocations. Contains policy functions (PF) and state update functions (SUF). Functions: holding_agent_allocation (PF): Policy function to calculate the agent holding. update_agents_after_holding (SUF): Function to update agent holding allocations update_u...
USB Connector USB connector node represents physical USB connector. It should be a child of USB interface controller. Required properties: - compatible: describes type of the connector, must be one of: "usb-a-connector", "usb-b-connector", "usb-c-connector". Optional properties: - label: symbolic name ...
import { Stats } from 'lib/constants' import { AbilityEidolon, precisionRound } from 'lib/conditionals/utils' import { baseComputedStatsObject, ComputedStatsObject } from 'lib/conditionals/conditionalConstants.ts' import { Eidolon } from 'types/Character' import { ConditionalMap, ContentItem } from 'types/Conditionals'...
import tensorflow as tf from tensorflow.keras import layers, Model, Input, regularizers from residualBlocks import residual_cell from convNetArchitecture import conv_block, de_conv_block class CRVAE(Model): """ The encoder and decoder of the FAE framework """ def __init__(self, latent_dim, channels):...
#include <Wire.h> /*~ Librería I2C ~*/ #include <LiquidCrystal_I2C.h> /*~ Librería LCD ~*/ /*~ Página para crear iconos personalizados ~*/ /*~ https://maxpromer.github.io/LCD-Character-Creator/ ~*/ /*~ Los siguientes arrays contienen un caracter, es decir se indica que pixel se enciendo o apaga dependie...
"use client"; import Link from "next/link"; import { toast } from "react-toastify"; import { SubmitButton } from "./SubmitButton"; import Image from "next/image"; import { useFormState } from "react-dom"; import { userSignup } from "../../../actions/user/auth"; import { useEffect } from "react"; import { useRouter } f...
# frozen_string_literal: true module ThemeStore end class ThemeStore::GitImporter COMMAND_TIMEOUT_SECONDS = 20 attr_reader :url def initialize(url, private_key: nil, branch: nil) @url = GitUrl.normalize(url) @temp_folder = "#{Pathname.new(Dir.tmpdir).realpath}/discourse_theme_#{SecureRandom.hex}" ...
<?php namespace _5balloons\LivewireTooltip; use Livewire\Component; use Livewire\Attributes\On; /** Usage * <a class="tooltip-link" tooltip-method="\App\Directory\Class::methodName">Link Name</a> * or * <a class="tooltip-link" tooltip-method="\App\Directory\Class::methodName" data-param1="value">Li...
import { sortBy, sortStrings } from "common/collections"; import { BooleanLike, classes } from "common/react"; import { ComponentType, createComponentVNode, InfernoNode } from "inferno"; import { VNodeFlags } from "inferno-vnode-flags"; import { sendAct, useBackend, useLocalState } from "../../../../backend"; import { ...
import React from "react"; import {InputBase} from "../../../../common/base-input/base-input"; import {KComponent} from "../../../../common/k-component"; import {Select} from "../../../../common/select/select"; import {userInfo} from "../../../../../common/states/user-info"; import {customHistory} from "../../../routes...
import "./globals.css"; import { Inter, Poppins } from "next/font/google"; import { ClerkProvider } from "@clerk/nextjs"; import { ModalProvider } from "@/provider/modal-provider"; import { ToasterProvider } from '@/provider/toast-provider'; import { ThemeProvider } from "@/provider/theme-provider" const font = Poppin...
import java.util.Arrays; import java.util.Iterator; import org.apache.spark.SparkConf; import org.apache.spark.api.java.JavaPairRDD; import org.apache.spark.api.java.JavaRDD; import org.apache.spark.api.java.JavaSparkContext; import org.apache.spark.api.java.function.FlatMapFunction; import org.apache.spark.api.java.fu...
<?php namespace App\Http\Controllers\Auth; use App\Http\Controllers\Controller; use Illuminate\Http\Request; use App\Models\User; use Hash; class RegisterController extends Controller { public function showRegistrationForm() { return view('register'); } public function register(Request $requ...
using System.Collections.Concurrent; using CloudPillar.Agent.Wrappers; using CloudPillar.Agent.Entities; using Shared.Entities.Messages; using Shared.Entities.Twin; using CloudPillar.Agent.Handlers.Logger; using Shared.Entities.Services; using Microsoft.Extensions.Options; using System.Security.AccessControl; using Sy...
import { Injectable } from '@nestjs/common'; import { ConfigService } from '@nestjs/config'; import { BullRootModuleOptions, SharedBullConfigurationFactory, } from '@nestjs/bull'; @Injectable() export class BullSharedOptions implements SharedBullConfigurationFactory { constructor(private configService: ConfigSer...
package com.intelligent.bot.service.sys.impl; import cn.hutool.core.bean.BeanUtil; import cn.hutool.core.exceptions.ValidateException; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.intelligent.bot.api.midjourney.loadbal...
--- title: "2\\. Metabolic Rates" author: - name: Marguerite Butler url: https://butlerlab.org affiliation: School of Life Sciences, University of Hawaii affiliation_url: https://manoa.hawaii.edu/lifesciences/ description: "The different types of metabolic rates and what influences them" date: 2023-08-2...
import { newScreenPoint, type ScreenPoint } from '@/oxyplot' /** * Provides functionality to decimate lines. */ export class Decimator { /** * Decimates lines by reducing all points that have the same integer x value to a maximum of 4 points (first, min, max, last). * @param input The input points. * @par...
@model SciaSquash.Model.Entities.Player @{ ViewBag.Title = "Edit"; } <h2>Edit</h2> @using (Html.BeginForm("Edit", "Player", FormMethod.Post, new { enctype = "multipart/form-data" })) { @Html.AntiForgeryToken() <div class="form-horizontal"> <h4>Player</h4> <hr /> @Html.Validatio...
# AWS EFS CSI driver Amazon Elastic File System (Amazon EFS) provides serverless, fully elastic file storage so that you can share file data without provisioning or managing storage capacity and performance. The Amazon EFS Container Storage Interface (CSI) driver provides a CSI interface that allows Kubernetes cluste...
"use client" import Image from "next/image" import { useOrganization, useOrganizationList } from "@clerk/nextjs" import { cn } from "@/lib/utils" import { Hint } from "@/components/hint" interface ItemProps { id: string name: string imageUrl: string } export const Item = ({ id, name, imageUrl } : It...
package com.rk.afterstart import android.app.KeyguardManager import android.content.Context import android.content.DialogInterface import android.content.Intent import android.content.pm.PackageManager import android.hardware.biometrics.BiometricPrompt import android.os.Build import androidx.appcompat.app.AppCompatAct...
from typing import Optional import sklearn.naive_bayes as skl_nb import sklearn.dummy as skl_dummy import sklearn.linear_model as skl_lm import sklearn.ensemble as skl_ensemble import lib_processing TRAIN_MAX_INSTANCES: Optional[int] = None TEST_MAX_INSTANCES: Optional[int] = None def main() -> None: print("em...
import 'package:firebase_auth/firebase_auth.dart'; class UserModel { late String phoneNumber; late String uid; late List<String> usersList; late List<String> groupList; UserModel({ required this.usersList, required this.groupList, required this.uid, required this.phoneNumber, }); //from ...
<?php namespace App\Mail; use Illuminate\Bus\Queueable; use Illuminate\Mail\Mailable; use Illuminate\Queue\SerializesModels; use Illuminate\Contracts\Queue\ShouldQueue; use App\Models\Admin; class Register extends Mailable { use Queueable, SerializesModels; public $name; public $email; public $passw...
import 'package:flutter/material.dart'; import '../models/alert_alignment.dart'; import '../widgets/custom_progress_indicator.dart'; class AlertOverlay extends StatefulWidget { final Duration duration; final Color backgroundColor; final Color accentColor; final IconData icon; final String title; final Aler...
<!DOCTYPE html> <html lang="pt-br"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Portifólio</title> <link rel="stylesheet" href="./css/style.css"> <link href='https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css' rel='stylesheet'> </hea...
<x-app-layout> <x-slot name="style"> @vite(['resources/css/app.css', 'resources/js/app.js', 'resources/css/style.css']) </x-slot> <x-slot name="banner"> <img src="{{ asset('storage/images/banner-4.jpg') }}" style="width: 100%; height: auto;"> </x-slot> <main> @if (!empty($r...
package heap_pq; import java.util.Comparator; import java.util.PriorityQueue; /** * The median is the middle value in an ordered integer list. If the size of the list is even, there is no middle value, * and the median is the mean of the two middle values. * * For example, for arr = [2,3,4], the median is 3. ...
import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import {HomeComponent} from "./pages/home/home.component"; import {CalcComponent} from "./pages/calc/calc.component"; import {AboutComponent} from "./pages/about/about.component"; const routes: Routes = [ {path : 'home...
import React from "react"; import ReactDOM from "react-dom/client"; import swiggy_logo from "../swiggy_logo.png"; /** * * Header * - Logo * - Nav items * Body * - Search * - Restaurant Container * - RestaurentCard * - img * - Name of Res, Star Rating, Cuisine, Delivery Title *...
import datetime from DAO import assignment_dao from sdms_bot_creating import bot from templates import notification from aiogram import types, Dispatcher from aiogram.dispatcher import FSMContext from aiogram.dispatcher.filters import Text from services.authorization_service import whitelist from keyboards.auth_menu_k...
# Flashcards Make flashcards to capture all of your *knowledge*, aka anything you learn *about the test*. !!! note "Terminology note" On this page, and elsewhere in *the lightweight LSAT*, I use this format to describe flashcards: > "Side A" / "Side B" ## Anki I strongly recommend using **Anki**, an open-...
import style from './index.module.css'; import { useDispatch } from '../..'; import { useNavigate } from "react-router-dom"; import { FC, useEffect } from 'react'; import { wsFeedInit, wsFeedCloseConnection } from '../../services/actions/ws-feed'; import { TStore, TWSAnOrder } from '../../utils/types'; import OrderLI f...
import express, { Request, Response } from "express"; import { ApolloServer } from "@apollo/server"; import { expressMiddleware } from "@apollo/server/express4"; import { InMemoryLRUCache } from "@apollo/utils.keyvaluecache"; import { applyMiddleware } from "graphql-middleware"; import { makeExecutableSchema } from "@g...
package com.example.demo.domain; import jakarta.persistence.*; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; import java.util.HashSet; import java.util.Set; @Entity @Data @AllArgsConstructor @NoArgsConstructor @Builder @Table(name = "types") public clas...
package com.shopcuatao.bangiay.dtos; import com.fasterxml.jackson.annotation.JsonProperty; import jakarta.persistence.Column; import jakarta.validation.constraints.Min; import lombok.*; import java.time.LocalDate; import java.util.Date; import java.util.List; @AllArgsConstructor @NoArgsConstructor @Getter @Setter @B...
package com.mikyegresl.valostat.features.agent.details import androidx.compose.foundation.BorderStroke import androidx.compose.foundation.ExperimentalFoundationApi import androidx.compose.foundation.LocalOverscrollConfiguration import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.la...
const displayCalc = document.querySelector('.display'); const allBtns = document.querySelectorAll('button'); let operator = ''; let currentValue = ''; let previousValue = ''; let exp = ''; let hasDecimal = false; allBtns.forEach((buttons) => { buttons.addEventListener('click', handleClick); }); document.addEventLi...
import { Injectable } from '@angular/core'; import { ActivatedRouteSnapshot, CanActivate, Router, RouterStateSnapshot, UrlTree, } from '@angular/router'; import { map, Observable, take } from 'rxjs'; import { AuthService } from 'app/core/services/auth.service'; @Injectable({ providedIn: 'root', }) export...
// SPDX-License-Identifier: MIT pragma solidity 0.8.13; import "forge-std/Test.sol"; import "@openzeppelin/contracts/token/ERC721/utils/ERC721HolderUpgradeable.sol"; import "../../utils/fixtures/OffersLoansRefinancesFixtures.sol"; import "../../../interfaces/niftyapes/offers/IOffersStructs.sol"; import "../../../inte...
import { useCallback, useState } from 'react' import toast from 'react-hot-toast' import { useTranslation } from 'react-i18next' import { useSetRecoilState } from 'recoil' import { genericTokenBalancesSelector } from '@dao-dao/state' import { Loader, useCachedLoading, useChain, useDaoInfoContext, } from '@dao-...
import React from "react"; import "react-responsive-carousel/lib/styles/carousel.min.css"; // requires a loader import { Carousel } from "react-responsive-carousel"; import { BiArrowBack } from "react-icons/bi"; import { slideOne, slideTwo, slideThree } from "@/public"; import Image from "next/image"; import Wrapper fr...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" href="css/styles.css"> <link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined" rel="stylesheet" /> <title>Layout de 8 p...
<script lang="ts"> import { account } from "$lib/state/account.state"; import { abbreviate, slugify } from "$lib/util/functions"; import { Avatar, Button, RoleBadge } from "$lib/ui/util"; import { ArrowDownSLine, ArrowLeftRightLine, ArrowRightSLine, ArrowUpSLine, BookLine, CheckLine, CloseLine, CupL...
<!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>switch button</title> </head> <style> body{ display: flex; justify-content: center; align-items: center...
import unittest import sys from concurrent.futures import ThreadPoolExecutor as _Executor import time import os sys.path.append("server") import server.app as _app from server.fleetv2_http_api.models.message import Message, Payload, DeviceId from server.enums import MessageType class Test_Waiting_For_Statuses_To_Be...
// ------------------------------------------------------------------------------------------ // Copyright (c) Natsuneko. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. // -------------------------------------------------------------------------------...
# Modified code from https://github.com/rois-codh/kmnist/blob/master/download_data.py import requests import os try: from tqdm import tqdm except ImportError: tqdm = lambda x, total, unit: x # If tqdm doesn't exist, replace it with a function that does nothing print('**** Could not import tqdm. Please in...
package threading; class Mythr implements Runnable{ private String name; public Mythr(String name){ this.name=name;//if super(name)....in thread class there is already a constructor which takes the name } public void run(){ int i = 0; while (i<10) { System.out.print...
import { Data } from "plotly.js"; import { useEffect, useState } from "react"; import Plot from "react-plotly.js"; interface Props {} export const ScatterChart = ({}: Props) => { const [data, setData] = useState<Data[]>([]); const fetchData = async () => { const response1 = await fetch("http://127.0.0.1:800...
const functions = require("firebase-functions"); const admin = require("firebase-admin"); const axios = require("axios"); const { Configuration, OpenAIApi } = require("openai"); const cors = require("cors")({ origin: true }); const db = admin.firestore(); const configuration = new Configuration({ apiKey: "", }); co...
using Newtonsoft.Json; using Newtonsoft.Json.Linq; using System.Diagnostics; namespace BA66UsbFrontend.Content.Weather { public enum WeatherUnits { Standard, Metric, Imperial } public abstract class OpenWeatherMapContent : ContentBase { protected static readonly Dictionary<WeatherUnits, string> weatherUnitsDict...
<?php namespace App\Http\Controllers\Backend; use App\Http\Controllers\Controller; use App\Models\Order; use App\Models\OrderItem; use App\Models\Product; use Illuminate\Support\Facades\DB; use PDF; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; class OrderController extends Controller { publ...
# template-gas Template for Google Apps Script project. ## Tech stack - [Docker](https://www.docker.com/) - [Node.js](https://nodejs.org/) - [pnpm](https://pnpm.io/) - [clasp](https://github.com/google/clasp) - [Jest](https://jestjs.io/) ## Develop with containers - Install [Docker Desktop](https://www.docker.com/...
<?php namespace backend\controllers; use common\models\Employee; use common\models\EmployeeMeta; use common\models\EmployeeSearch; use yii\web\Controller; use yii\web\NotFoundHttpException; use yii\filters\VerbFilter; use Yii; use yii\web\Response; use yii\db\Query; /** * EmployeeController implements the CRUD acti...
@extends('layouts.admin.app') @section('title',translate('messages.parcel_category')) @section('content') <div class="content container-fluid"> <!-- Page Header --> <div class="page-header"> <h1 class="page-header-title"> <span class="page-header-icon"> ...
#pragma once #include <cstring> #include <type_traits> namespace vx { namespace math { // https://stackoverflow.com/questions/13888210/extremely-slow-bilinear-interpolation-compared-to-opencv // https://www.youtube.com/watch?v=_htjjOdXbmA /// @brief Apply bilinear filtering to an image. /// /// This function appl...
//package com.conseller.conseller.user; // //import com.conseller.conseller.TestConfig; //import com.conseller.conseller.entity.User; //import com.conseller.conseller.user.dto.request.EmailAndNameRequest; //import com.conseller.conseller.user.enums.AccountBanks; //import com.conseller.conseller.user.enums.UserStatus; /...
package ru.sorbo.inventory.framework; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; import org.junit.jupiter.api.Test; import ru.sorbo.inventory.domain.entity.CoreRouter; import ru.sorbo.inventory.domain.vo.IPAddress; import ru.sorbo.inventor...
from core.base import Base from core.openGLUtils import OpenGLUtils from core.attribute import Attribute from core.uniform import Uniform from OpenGL.GL import * # mover un triángulo alrededor de la pantalla con las arrow teclas class Test(Base): def initialize(self): print("Inicializando programa ...") vsCode...
import { Link } from 'react-router-dom'; import { Icon } from 'components/ReusableComponents'; import { useIsCourseContentUserBar, useAppSelector } from 'hooks'; interface IProps { lesson_number: number; lesson_type: string; lesson_title: string; lesson_time_minutes: number; } export const LessonItem ...
import { useEffect, useState } from "react" export default function MousePointer() { const [mouseCoords, setMouseCoords] = useState({ x: 0, y: 0 }) const [isTouchEnabled, setIsTouchEnabled] = useState(false) useEffect(() => { const handleWindowMouseMove = (event: MouseEvent) => { setTi...
// // QuestionTextCell.swift // BMW Games // // Created by Natalia Givojno on 5.12.22. // import UIKit class QuestionTextCell: UITableViewCell { static var reuseID = "QuestionTextCell" private lazy var backgroundCellView: UIView = { var view = UIView() view.backgroundColor = UICol...
from PyQt5.QtCore import * from PyQt5.QtWidgets import * from PyQt5.QtGui import * import PySpin import matplotlib.pyplot as plt import sys import keyboard import numpy as np import time import cv2 class CameraThread(QThread): imageAcquired = pyqtSignal(QPixmap) global continue_recording continu...
import * as actionTypes from './actionTypes'; import axios, { AxiosError, AxiosResponse } from 'axios'; import { Dispatch } from 'react'; import { IQuestion } from '../reducers/quiz'; import { AppState } from "~/index"; interface CategoriesServerData { results: IQuestion[]; }; export const initQuiz = () => { ...
// Copyright 2021 Crown Copyright (Single Trade Window) // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by appl...
#include <LiquidCrystal.h> LiquidCrystal lcd(8, 9, 10, 11, 12, 13); // LCD connected to these pins as rs = 8, en = 9, d4 = 10, d5 = 11, d6 = 12, d7 = 13 #include <Servo.h> Servo myservo; const int stepPin = 7; // Stepper Motor as Extruder step pin 7 const int dirPin = 6; // stepper Motor as Extruder Direction pin 6 ...
import axios from 'axios'; import * as actionTypes from './actiontypes'; export const fetchAssignments = (token, courseID) => { return (dispatch) => { dispatch(fetchAssignmentsStart()); const url = `http://127.0.0.1:8000/api/${courseID}/assignment/list/`; const headers = { 'Content-Type': 'applic...
import Button from '@material-ui/core/Button'; import Card from '@material-ui/core/Card'; import CardHeader from '@material-ui/core/CardHeader'; import Grid from '@material-ui/core/Grid'; import Paper from '@material-ui/core/Paper'; import { styled } from '@material-ui/core/styles'; import Table from '@material-ui/core...
<template> <div class="bg-container"> <div class="form-container"> <pv-card> <template #header> <div class="header"> <div class="logo-container"> <img class="logo" src="src/assets/logo.png" alt="logo"> <span>AgriPure</span> </div> ...
#include <iostream> #include <fstream> #include "the6.h" void print_adj_list(std::vector< std::vector< std::pair<int,int> > >& adj_list) { int N = adj_list.size(); if (N == 0) { std::cout << "list is empty!" << std::endl; return; } for (int v=0;v<N;v++) { std::cout << v <<...