text
stringlengths
184
4.48M
console.clear(); const arr = [1,2,3,4,5,6,7,8,9]; const arr2 = ["Andrii", "Doroshenko", 25]; // es5 variant // const first = arr[0]; // const second = arr[1]; // const rest = arr.slice(2); const [first, second, ...rest] = arr; let [firstName, lastName, age] = arr2; console.log(`first is ${first}`); console.log(`sec...
package com.geecbrains.services; import com.geecbrains.entities.Autorites; import com.geecbrains.entities.User; import com.geecbrains.repositories.UserRepository; import lombok.RequiredArgsConstructor; import org.springframework.security.core.GrantedAuthority; import org.springframework.security.core.authority.Simple...
import React, { useState } from "react"; import { LuSearch } from "react-icons/lu"; import { GEO_API_URL, geoApiOptions } from "../api/constants"; import { AsyncPaginate, LoadOptions } from "react-select-async-paginate"; import { GroupBase } from "react-select"; import { City } from "../lib/types"; // Custom styles fo...
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> <header> <!--로고 세션 ------------------------------------------------------------------------- --> <section> ...
##plot percent novel taxa for RDP and SILVA ##6/17/16 rm(list=ls()) library(ggplot2) library(reshape2) library(plyr) setwd("C:\\Users\\kwinglee.cb3614tscr32wlt\\Documents\\Fodor\\JobinCollaboration\\dolphin\\corrected metadata rdp abunotu") aotudir = "C:\\Users\\kwinglee.cb3614tscr32wlt\\Documents\\Fodor\\JobinColla...
function madLib(verb, adj, noun) { return `We shall ${verb.toUpperCase()} the ${adj.toUpperCase()} ${noun.toUpperCase()}.`; } // console.log(madLib('make', 'best', 'guac')); function isSubstring(searchString, subString) { return searchString.includes(subString); } // console.log(isSubstring("time to program", "...
package com.cappielloantonio.tempo.viewmodel; import android.app.Application; import android.content.Context; import androidx.annotation.NonNull; import androidx.lifecycle.AndroidViewModel; import androidx.lifecycle.LifecycleOwner; import androidx.lifecycle.LiveData; import androidx.lifecycle.MutableLiveData; import ...
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>carousel</title> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-KK94CHFLLe+nY2dmCWG...
<template> <div> <h1>Create Recipes Below!</h1> </div> <div> <form method="post" class="form"> <input type="hidden" name="csrfmiddlewaretoken" v-bind:value="csrf_token"> <p> <label for="id_name">Recipe Title: </label> &nbsp; ...
import { UnAuthenticatedException } from './auth-error'; import { BadRequestException } from './bad-request'; import { ConflictException } from './conflict-error'; import { NotFoundException } from './not-found'; import { UnAuthorizedException } from './permission-error'; import { ServerException } from './server-error...
#include <bits/stdc++.h> using namespace std; class Shape { private: int area; public: Shape() { area = 0; } Shape(int a) { area = a; } // copy constructor Shape(Shape& obj) { area = obj.area; } void draw() { cout << "I am a shape" << en...
import { BaseEntity, Column, Entity, PrimaryGeneratedColumn, CreateDateColumn, UpdateDateColumn, Generated, ManyToOne, OneToMany, } from "typeorm"; import { Pet } from "../Pet/Pet"; import { Post } from "../Post/Post"; @Entity("users") export class User extends BaseEntity { @PrimaryGeneratedColumn() public...
package pl.com.britenet.hobbyapp.admin import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.Toast import androidx.fragment.app.Fragment import androidx.fragment.app.viewModels import androidx.recyclerview.widget.LinearLayoutManager imp...
using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Security.Cryptography; using System.Text; using System.Threading.Tasks; using DocumentFormat.OpenXml.Spreadsheet; using ImportData; using ImportData.Entities.Databooks; namespace Tests { internal static cla...
import { QplData } from './IQplData'; const express = require('express'); const app = module.exports = express(); const bodyParser = require('body-parser'); const rawJsonData = require("./qpl-data.json"); const port = 3080; app.use(bodyParser.urlencoded({ extended: false })); app.use(bodyParser.json()); const error...
using System.Collections; using System.Collections.Generic; using UnityEngine; using TMPro; public class PlayerInventory : MonoBehaviour { [Header("References")] public Camera playerCam; public Transform heldItemPosition; public GameObject throwingBottle; public GameObject heldBottle; [Header(...
import chai from 'chai'; import { expect } from 'chai'; import chaiAsPromised from 'chai-as-promised'; chai.use(chaiAsPromised); import sinon from 'sinon'; import sinonChai from 'sinon-chai'; chai.use(sinonChai); import mongoose from 'mongoose'; import { Configuration, OpenAIApi } from 'openai'; import { validateInpu...
-- ------------------------------------------------------------------ -- Program Name: apply_lab4_step9.sql -- Lab Assignment: N/A -- Program Author: Michael McLaughlin -- Creation Date: 27-Aug-2020 -- ------------------------------------------------------------------ -- Change Log: -- -------------------------...
import React from "react"; import "./card.css"; interface CardProps { /** * How large should the card be? */ size?: "small" | "medium" | "large"; /** * Should it be bordered? */ bordered?: boolean; } /** * Primary UI component for user interaction */ export const Card = ({ size = "medium", b...
//Bruteforce Approach import java.util.*; public class Test { public static void main(String[] args) { Scanner sc=new Scanner(System.in); System.out.println("Enter 'n':"); int n=sc.nextInt(); int res=findSmallest(n); if(res==-1) System.out.println("Not Po...
import _debounce from "lodash.debounce"; import { useEffect, useRef } from "react"; export const useReachedBottom = <T extends HTMLElement>(cb?: () => void, options: Partial<{ offset: number, throttle: number }> = {}) => { const { offset = window.innerHeight * 2, throttle = 600 } = options const ref = useRef...
"use client"; import { useMutation } from "@tanstack/react-query"; import Link from "next/link"; import { useRouter } from "next/navigation"; import { SubmitHandler, useForm } from "react-hook-form"; import { useShallow } from "zustand/react/shallow"; import { login } from "@/app/auth/actions"; import { useModalStore ...
import 'dart:async'; import 'package:firebase_core/firebase_core.dart'; import 'package:flutter/material.dart'; import 'package:get/get.dart'; import 'package:posttest7_1915016020_annisaadhiasalsabila/ss.dart'; Future<void> main() async { WidgetsFlutterBinding.ensureInitialized(); await Firebase.initializeApp(); ...
<template> <div class="container container--sm"> <div class="py-10"> <div class="pt-12 pb-6"> <div class="text-center text-white pb-8"> <p> {{ $t('invitation.text', { company }) }} </p> <p>{{ $t('invitation.hint') }}</p> </div> <div class="f...
"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(gene...
# frozen_string_literal: true require_relative "JohnPaulIII_palindrome/version" module JohnPaulIIIPalindrome # Returns true for a palindrome, false otherwise. def palindrome? processed_content == processed_content.reverse && processed_content != "" end private # Returns content for palindrome testi...
<main class="header-partner"> <div *ngIf="partner" class="licni-podaci"> <div class="d-flex flex-column flex-xl-row"> <div class="strana"> <div class="header2"> <h1>Licni podaci</h1> </div> <ul> <li> <span class="leva-strana"> Naziv: ...
#version 330 core // Atributos de vértice recebidos como entrada ("in") pelo Vertex Shader. // Veja a função BuildTrianglesAndAddToVirtualScene() em "main.cpp". layout (location = 0) in vec4 model_coefficients; layout (location = 1) in vec4 normal_coefficients; layout (location = 2) in vec2 texture_coefficients; // M...
<template> <div> <v-btn icon class="my-2" @click="dialog = true" > <v-icon>mdi-pencil</v-icon> </v-btn> <v-dialog v-model="dialog" max-width="400px" > <v-card> <v-card-title>Ed...
<template> <div class="toast" role="alert" ref="toast" > <div class="toast-header" :class="{ 'text-bg-danger': !singleMsg.success, 'text-bg-success': singleMsg.success }" > <strong class="me-auto">{{ singleMsg.event }}</strong> </div> <div class="t...
# # Copyright (C) 2019 University of Amsterdam # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 2 of the License, or # (at your option) any later version. # # This program is dis...
import {Component, OnInit, OnDestroy} from '@angular/core'; import {IngredientModel} from "../shared/ingredient.model"; import {Observable} from "rxjs"; import {Store} from "@ngrx/store"; import * as shopListActions from "./store/shopping-list-actions"; import * as fromAppStore from '../store/app.reducer' import {trigg...
import React from 'react'; import styled from 'styled-components'; import { useSelector } from 'react-redux'; import { selectProductsPrice, selectTotalItemsAmount, selectTotalPrice } from '@/store/selectors/orderSelectors'; import Button from '@/components/Button'; interface Props { placeOrder: Function, isLoadin...
const express = require('express'); const app = express(); const routes = require('./routes'); const path = require('path'); const { middlewareGlobal } = require('./src/middlewares/middleware'); app.use(express.urlencoded({ extended: true })); app.use(express.static(path.resolve(__dirname, 'public'))); // Acessa os a...
#pragma once #include <vector> #include "ICharacter.h" #include "IWeapon.h" class WoodElf : public ICharacter { private: std::string name; int health; int intelligence; int dexterity; int strength; std::vector<std::string> weaponOptions; public: WoodElf(); std::string GetName() const override { return na...
import { formData } from '../../types/car.types'; import useCarForm from '../../hooks/useCarForm'; import useCarModal from '../../hooks/useCarModal'; import Modal from '../modal/Modal'; interface IProps { initialState: formData; } function CarForm({ initialState }: IProps) { const { showModal, openModal, closeMod...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <script> // ECMAScript5 //Es6 是JavaScript的一种新的规范,兼容各个浏览器最新的版本 // console.log(str);//undefined // var str="zhufengpeixun"; // var str="peixun"; // console.log(str); //在es5中可以对同一个变量进行重复的声明 ...
### 1. Kafka Topics - Topics:一种特殊的数据流 - 就像数据库中的表,但没有所有的约束 - 可以有任意多的 Topics - 一个 Topic 由它的 name 定义 - 任意格式的消息格式 - Topic 中的消息序列称为 data stream - 你无法像数据库一样查询 Topics ### 2. Partitions and offsets - Topics 被划分为 Partitions - 每个分区中的消息会被排序 - 每个分区中的消息会有一个递增的 id,即 offset - Kafka topics是不可变的,一旦数据写入到分区就不可修改 - 数据只保留有限时间(默认是一周,...
import PropTypes from 'prop-types' import React from 'react' import Icon from 'components/layout/Icon' import BookingStatusCellHistory from './BookingStatusCellHistory' import { getBookingStatusDisplayInformations } from './utils/bookingStatusConverter' const BookingStatusCell = ({ bookingRecapInfo }) => { let boo...
var VendaAuto = VendaAuto || {}; VendaAuto.ComboMarca = (function(){ function ComboMarca(){ this.combo = $('#marca'); this.emitter = $({}); this.on = this.emitter.on.bind(this.emitter); } ComboMarca.prototype.iniciar = function(){ this.combo.on('change', onMarcaAlterada.bind(this)); } function onMarca...
import { EXP, PrismaClient } from "@prisma/client" import express from "express" import airdropRoutes from "./modules/airdrop" import announcementRoutes from "./modules/announcement" import blogRoutes from "./modules/blog" import chatRoutes from "./modules/chat" import datingRoutes from "./modules/dating" import groupR...
import React, {useEffect, useState} from 'react' import Typography from "@material-ui/core/Typography"; import Toolbar from "@material-ui/core/Toolbar"; import Avatar from "@material-ui/core/Avatar"; import image from "../../images/memberberries.png"; import AppBar from "@material-ui/core/AppBar"; import useStyles from...
import { describe, expect, it } from 'bun:test'; import { mockEventId, mockSeatDataFree, setMockAdminUser, setMockPatronUser } from '@/v1/tests/mocks'; import { treaty } from '@elysiajs/eden'; import { Elysia } from 'elysia'; import { handleListSeats } from './listSeats'; const apiAdminAuthorized = treaty(new Elysia()...
import { Icon28UserCircleOutline } from "@vkontakte/icons"; import { Cell, Epic, Group, Panel, PanelHeader, PanelHeaderBack, Placeholder, Platform, SplitCol, SplitLayout, Tabbar, TabbarItem, useAdaptivityConditionalRender, usePlatform, View } from "@vkontakte/vkui"; import React from "react"; export const Screen = () ...
import 'package:firebase_auth/firebase_auth.dart'; import 'package:flutter/material.dart'; import 'package:cloud_firestore/cloud_firestore.dart'; import 'package:my_flutter_app/Bottom_NavigatorTrain.dart'; import 'package:my_flutter_app/Trains/BookedTicketHistory.dart'; import 'package:razorpay_flutter/razorpay_flutter...
import {doRpc, isObject, ServerError} from './rpc' import {ref, Ref} from "vue"; interface MessagesResponse { messages: Array<string>, } // TODO: Find a more concise way to check the response object. function isMessagesResponse(object: unknown): object is MessagesResponse { if (!isObject(object)) { re...
package com.swipe.application import android.util.Log import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.BaseAdapter import android.widget.Button import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.launch ...
// 创建中介类。 public class ChatRoom { public static void showMessage(User user, String message){ System.out.println(new Date().toString() + " [" + user.getName() +"] : " + message); } } //创建 user 类。 public class User { private String name; public String getName() { return name; } ...
@keras_export("keras.activations.get") @tf.__internal__.dispatch.add_dispatch_support def get(identifier): """Returns function. Args: identifier: Function or string Returns: Function corresponding to the input string or input function. Example: >>> tf.keras.activations.get('softmax')...
import React, { useState, useEffect } from "react"; import Layout from "../../layout/layout"; import { ToastContainer, toast } from "react-toastify"; import { useRive, useStateMachineInput } from "rive-react"; import { motion, AnimatePresence, Reorder } from "framer-motion"; import "react-toastify/dist/ReactToastify.c...
using Business.Abstracts; using Business.DTOs.Request.Category; using Business.Rules.ValidationRules; using Core.DataAccess.Paging; using Microsoft.AspNetCore.Mvc; namespace WebAPI.Controllers { [Route("api/[controller]")] [ApiController] public class CategoriesController : ControllerBase { pr...
<?php include('BD/crud.php'); ?> <?php # recupera o registro para edição if (isset($_GET['edit'])) { $id = $_GET['edit']; $update = true; $record = mysqli_query($db, "SELECT * FROM produtos WHERE id=$id"); # testa o retorno do select e cria o vetor com os registros trazidos if ($record) { ...
<?php use Illuminate\Http\Request; use Illuminate\Support\Facades\Route; use App\Http\Controllers\EmployeeController; use App\Http\Controllers\MachineController; use App\Http\Controllers\WorkProcessController; /* |-------------------------------------------------------------------------- | API Routes |--------------...
import DytePlugin from '@dytesdk/plugin-sdk'; import React, { useEffect, useState } from 'react' import { canPlay } from '../utils/helpers'; const MainContext = React.createContext<any>({}); type PlayerType = 'youtube' | 'vimeo' | 'facebook' | 'twitch' | 'file' | ''; interface GlobalConfig { loop: boolean; hi...
// // GameViewController+Delegate.swift // BubbleHero // // Created by Yunpeng Niu on 04/03/18. // Copyright © 2018 Yunpeng Niu. All rights reserved. // import UIKit /** Extension for `GameViewController`, which acts as its delegate. - Author: Niu Yunpeng @ CS3217 - Date: Feb 2018 */ extension GameViewContro...
import * as chalk from 'chalk'; import { Mm2LevelInfo, Mm2User } from '../../services/mm2Api'; import { ChatMessage } from '../../services/chat'; import { CommandBase } from '../base'; import { TwitchBot } from '../../twitchBot'; import { getDateDifference } from '../../utility/dateHelper'; export class CurrentComma...
import React, { useRef } from "react"; import { Typography, TextField, Button, Box, Grid } from "@mui/material"; import MailIcon from '@mui/icons-material/Mail'; import emailjs from '@emailjs/browser'; const serviceId = process.env.REACT_APP_YOUR_SERVICE_ID; const templateId = process.env.REACT_APP_YOUR_TEMPLATE_ID; c...
<?xml version="1.0"?> <?xml-stylesheet type="text/xsl" href="../isisxsl.xsl"?> <isis lang="en"> <stitle>Electrical System Troubleshooting Guide - BE 200, CE 200, CE 300 Model - MULTIPLEXING (DATA LINKS)</stitle> <svcman/> <svcsection id="s0829052" division="truck" date="12/14/2004"> <title>MULTIPLEX...
<?php namespace Tests\Feature; use App\Http\Requests\VerifyUserRequest; use App\Http\Controllers\AuthController; use Tests\TestCase; class VerifyUserRequestTest extends TestCase { protected $VerifyUser; public function setUp(): void { parent::setUp(); $authController = new AuthController(...
import toLength from '../../fn/Lang/toLength.js' import lod_toLength from '../../node_modules/lodash-es/toLength.js'; const lod = {}; lod.toLength = lod_toLength; // Примеры использования console.log('-----------------lodash-----------------'); console.log("lod.toLength(3.2)", lod.toLength(3.2)); console.log("lod.toLe...
"use client" import { unstable_createNodejsStream } from "next/dist/compiled/@vercel/og"; import React, { ReactNode, createContext, useContext, useReducer } from "react"; type UserData = { name: string } type AuthState = { isAuthenticated: boolean; userData: UserData | undefined }; type AuthAction = { ...
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>vim学习 | Juner&#39;Blog</title> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <meta name="description" content="第一讲小结 光标在屏幕文本中的移动既可以用箭头键,也可以使用 hjkl 字母键。 h (左移) j (下行) k (上行) l (右移) 欲进入 Vim 编辑器(...
import {useState, useEffect, useRef} from "react" function useFetch(url, options, type) { const optionsRef = useRef(options) const [loading, setLoading] = useState(true) const [error, setError] = useState(null) const [data, setData] = useState(null) useEffect(() => { const fetchData = ...
import './App.css' import {v1} from 'uuid'; import {useState} from 'react'; import {AddForm} from './components/AddRevenue/AddForm.tsx'; import {Revenues} from './components/Revenues/Revenues.tsx'; import {Statistic} from './components/Statistic/Statistic.tsx'; import {Wallets} from './components/Wallets/Wallets.tsx'; ...
package gui.panel; import javax.swing.*; import java.awt.*; public class CenterPanel extends JPanel { private double rate; // 拉伸比例 private JComponent c; // 显示组件; private boolean stretch; // 是否拉伸 private CenterPanel(double rate, boolean stretch) { this.setLayout(null); ...
package com.chinthaka.pointofsalesystem.entity; import com.chinthaka.pointofsalesystem.dto.order.RequestOrderDetailsSave; import javax.persistence.*; import java.util.Date; import java.util.List; import java.util.Set; @Entity @Table(name = "purchase_order") public class Order { @Id @GeneratedValue(strateg...
--- layout: post title: "Side Quest 4" description: "Find the git commit with the QR, SQL inject to generate a URL to SSRS the files needed to generate the Werkzeug PIN. Then use the python terminal to generate a reverse shell, find mcskidy's poor password hygiene, then hijack the sudo check script to get root." date: ...
<template lang="pug"> .curate-content.markdown( v-if="readmeContent" v-html="readmeContent" ) </template> <script lang="ts"> import { Vue, Component, Watch, Prop } from 'vue-property-decorator' import markdown from 'markdown-it' import { FileSystemConfig } from '@/Globals' import HTTPFileSystem from '@/js/HTTPFi...
/* ===== Código de TypeScript ===== */ /* ===== DESESTRUCTURACION FUNCION ===== */ export interface Producto { Descripcion: string; Precio: number; } const telefono: Producto = { Descripcion: "Samsung A21", Precio: 200 } const iphone: Producto = { Descripcion: "Iphone X", Precio: 100...
""" Plotlyst Copyright (C) 2021-2023 Zsolt Kovari This file is part of Plotlyst. Plotlyst is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. ...
// ignore_for_file: must_be_immutable, use_key_in_widget_constructors import 'package:flutter/material.dart'; class Elaborate extends StatefulWidget { Map data; String did; Elaborate(this.data, this.did); @override State<Elaborate> createState() => _ElaborateState(); } class _ElaborateState extends State<E...
package com.example.androidproject; import androidx.appcompat.app.AlertDialog; import androidx.appcompat.app.AppCompatActivity; import android.annotation.SuppressLint; import android.content.DialogInterface; import android.content.Intent; import android.content.SharedPreferences; import android.os.Bundle; import andr...
<?php namespace App\Http\Controllers; use App\Enums\ChronicDiseasesEnum; use App\Http\Controllers\Controller; use App\Models\MealHistory; use Carbon\Carbon; use GuzzleHttp\Client; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; use Illuminate\Pagination\LengthAwarePaginator; class RecipeController ...
/* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ import type { DefaultImageType } from '../models/DefaultImageType'; import type { FileInfoDto } from '../models/FileInfoDto'; import type { CancelablePromise } from '../core/CancelablePromise'; import type { BaseHttpRequest } from '../core/BaseHttpRe...
import { useState } from "react"; import axiosInstance from "../utils/axiosInstance"; import { useNavigate } from "react-router-dom"; import "../css/LoginForm.css" const LoginForm = () => { const navigate = useNavigate(); const [email, setEmail] = useState(""); const [password, setPassword] = useState("...
/* eslint-disable react-hooks/exhaustive-deps */ import React from 'react'; import './table-style.css'; export default function DBUpdate() { let [data, setData] = React.useState('') const form = React.useRef() React.useEffect(() => { fetch('/api/db/read') //อ่านข้อมูลมาแสดงผล .then(response...
use std::sync::Arc; use bevy::{ prelude::*, render::renderer::{RenderAdapter, RenderContext, RenderInstance}, }; use bevy_egui::{ egui::{Align2, Area, Label}, *, }; use crate::prelude::{ AiEnvironment, AiError, AiModel, AiPromptEvent, AiPromptEvents, CurrentPrompt, CurrentResponse, }; #[derive(De...
import React from 'react'; import chatStyle from './chat.module.css'; import { Avatar } from '@mantine/core'; type IProps = { name: string, msg: string, time: string, avatar: string } export default function MsgItem(props: IProps){ const myName = localStorage.getItem('userName'); const isMe = myName === ...
import { useCallback } from 'react'; import { Text, Modal as ChakraModal, ModalBody, ModalCloseButton, ModalContent, ModalHeader, ModalOverlay, } from '@chakra-ui/react'; import { ModalProps } from '@global-components/Modal/types'; import { useModal } from '@global-stores/useModal'; export const Modal...
import request from 'supertest'; import { app } from '../../app'; import { userSignUp } from '../../test/utils'; describe('GET /api/users/current-user', () => { // --------------------- // SUCCESSFUL REQUEST it('returns status 200 on successful request', async () => { const signUpRes = await userSignUp('tes...
import { schema, CustomMessages, rules } from '@ioc:Adonis/Core/Validator' import type { HttpContextContract } from '@ioc:Adonis/Core/HttpContext' import { TransactionMethods, TransactionStatus, TransactionTypes } from '../lib/enums' export default class UpdateTransactionValidator { constructor(protected ctx: HttpCo...
package org.example; import java.util.ArrayList; import java.util.Scanner; public class InterpolDatabaseApp { public static void main(String[] args) { InterpolDatabase interpolDatabase = new InterpolDatabase(); Scanner scanner = new Scanner(System.in); System.out.println("Добро пожаловать...
// Ignore Spelling: Mtu Rssi Uuid Uuids using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Linq; using UnityEngine; //! \defgroup Unity_CSharp //! @brief A collection of C# classes for the Unity game engine that provides a simplified access //! to Bluetooth Low En...
// Ten program korzysta z instrukcji switch do określenia // pozycji wybranej z menu. #include <iostream> #include <iomanip> using namespace std; int main() { int choice; // Przechowywanie wybranej opcji int months; // Przechowywanie liczby miesięcy double charges; // Przechowywanie miesięcznych...
import { useContext, useState } from "react"; import { Link, Redirect, useHistory } from "react-router-dom"; import AuthContext from "../../context/AuthContext"; import useFetch from "../Utils/useFetch"; import authService from "../../services/AuthService"; import { AUTH_ROUTES } from "../../services/Apis"; import Sign...
package com.easyshopping.entity; import java.util.ArrayList; import java.util.List; import javax.persistence.CascadeType; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.persisten...
#!/usr/bin/env python """ Created by amandebu 2024 Forked from https://github.com/RalfZim/venus.dbus-fronius-smartmeter by Ralf Zimmermann (mail@ralfzimmermann.de) in 2020. Used https://github.com/victronenergy/velib_python/blob/master/dbusdummyservice.py as basis for this service. Reading information from the Froni...
import { FormEvent, useState } from "react"; import { Room } from "./component/Room"; import { Home, SignIn } from "./globalStyle"; const App = () => { const [ username, setUsername ] = useState<string>('') const [ showChat, setShowChat ] = useState<boolean>(false) const handleSignInChat = (event: FormEvent) =...
#include "binary_trees.h" /** * binary_tree_size - get the size of a binary tree * @tree: the binary tree * Return: number of nodes in the binary tree */ size_t binary_tree_size(const binary_tree_t *tree) { size_t s = 0; if (tree != NULL) { s += 1; s += binary_tree_size(tree->left); s += binary_tree_size...
# Distributed File System ![image-20240510015655403](./01-intro.assets/image-20240510015655403.png) ``` **Google File System** => used by MapReduce(mainly) 1. Why? There are many other systems(NFS,..) 2. Special workload 1. Big File, not optimized for small file 3. Interface 1. app-level library, not POSIX int...
/** * Copyright (c) 2021 BlockDev AG * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ package docker import ( "errors" "fmt" "os" "os/exec" "runtime" "github.com/mysteriumnetwork/myst-launcher/model" "github.com/mysteriumnetw...
import axios from 'axios'; export const GET_USER = 'GET_USER'; export const UPLOAD_PICTURE = 'UPLOAD_PICTURE'; export const UPDATE_BIO = 'UPDATE_BIO'; export const UPDATE_WORK = 'UPDATE_WORK'; export const FOLLOW_USER = 'FOLLOW_USER'; export const UNFOLLOW_USER = 'UNFOLLOW_USER'; export const DELETE_USER = 'DELETE_USE...
{% load static %} <!DOCTYPE html> <html lang="pt-br"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>ManageParking</title> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.1/font/bootstrap-icons.css"> <link r...
import { ZENDESK_TICKET_ID, TEST_COMMENT_COPY } from '../../utils/tests/testConstants' import { handler } from './handler' import { updateZendeskTicketById } from '../../sharedServices/zendesk/updateZendeskTicket' import { constructSqsEvent } from '../../utils/tests/events/sqsEvent' import { logger } from '../../sh...
module CNDVEstablishmentMod !----------------------------------------------------------------------- ! !DESCRIPTION: ! Calculates establishment of new pfts ! Called once per year ! ! !USES: use shr_kind_mod, only: r8 => shr_kind_r8 use abortutils , only: endrun use decompMod , only : bounds_type ...
import React from 'react'; import { useSearchParams } from 'react-router-dom'; import { getActiveNotes } from '../utils/network-data'; import NoteActive from '../components/NoteActive'; import NoteSearch from '../components/NoteSearch'; import PropTypes from 'prop-types'; import ContextChange from '../components/Contex...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="keywords" content="HTML, CSS, JavaScript" /> <meta name="author" content="John Doe" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>JavaScript</title> </head> <body> <h4>Heading</h4>...
// // DetailsInfoCollectioViewCell.swift // TestOnlineShop // // Created by Konstantin Grachev on 18.03.2023. // import UIKit final class DetailsInfoCollectionViewCell: UICollectionViewCell { static let cellID = "DetailsInfoCollectioViewCell" private let nameLabel = CustomLabel(.detailsNameIntoCe...
package net.minecraft.block; import net.minecraft.block.enums.DoorHinge; import net.minecraft.block.enums.DoubleBlockHalf; import net.minecraft.entity.Entity; import net.minecraft.entity.LivingEntity; import net.minecraft.entity.ai.pathing.NavigationType; import net.minecraft.entity.player.PlayerEntity; import net.min...
package com.eurotech.tests.day_10_TupeOfWebElement; import com.eurotech.utilities.WebDriverFactory; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.testng.Assert; import org.testng.annotations.AfterMethod; import org.testng.annotations.BeforeMethod...