text
stringlengths
184
4.48M
using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; using System.Text.Json; using System.Threading.Tasks; using ChatRoom.Common; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using M...
################################### # FONKSİYONLAR , KOŞULLAR , DÖNGÜLER , COMPHERENSİONS #################################### # - Fonksiyonlar (Functions) # - Koşullar (Conditions) # - Döngüler (Loops) # - comprehesions ################################### # FONKSİYONLAR (FUNCTİONS) #################################...
import os import pickle # os.environ["LANGCHAIN_HANDLER"] = "langchain" # os.environ["LANGCHAIN_SESSION"] = "Test" import numpy as np from sklearn.manifold import TSNE import faiss import openai import pandas as pd import plotly.express as px from clearml import Task from colored import attr, fg from joblib import Mem...
import "./Search.css"; import Header from "../../components/Header/Header.jsx"; import Footer from "../../components/Footer/Footer"; import { useState, useEffect } from "react"; import PopUpModal from '../../components/PopUpModal/PopUpModal'; import ParkList from "../../components/ParkList/ParkList"; import { useUser }...
"use client"; import { useAppSelector } from "@/hooks"; import "./style.scss"; import { Checkout, Footer, Header, Carousel } from "@/components"; import { useGetProductByIdQuery } from "@/reducers"; import { Rating } from "react-simple-star-rating"; import { useEffect, useMemo, useState } from "react"; import { getArra...
/** * @vitest-environment happy-dom */ import { beforeEach, describe, it, expect, beforeAll } from "vitest"; import { renderWebComponent } from "./webComponentRenderer"; import PaltaNoteDefaults from "palta-note"; describe("webComponentRenderer", () => { beforeAll(() => { const { PaltaNote } = PaltaNoteDefaults;...
package com.raion.coinvest.presentation.screen.stocksSection import android.annotation.SuppressLint import android.util.Log import androidx.compose.foundation.clickable import androidx.compose.foundation.interaction.MutableInteractionSource import androidx.compose.foundation.isSystemInDarkTheme import androidx.compose...
import { expect } from "vitest"; import { getRandomNameWithSample, pokeNamesList, positiveAdjectivesList, randomWordFromListStartingWithLetter, } from "./name"; describe("randomWordFromListStartingWithLetter", () => { for (const char of "abcdefghijklmnopqrstuvwxyz") { for (let i = 0; i < 100; i++) { ...
// Вам необходимо построить поле для игры "Сапер" по его конфигурации – размерам и координатам расставленных // на нем мин. // Вкратце напомним правила построения поля для игры "Сапер": // Поле состоит из клеток с минами и пустых клеток // Клетки с миной обозначаются символом * // Пустые клетки содержат число ki,j, ...
/** * Copyright 2016-2019 University of Piraeus Research Center * * 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...
<script setup> import { request } from '../../api/request.js' import { onMounted, ref } from 'vue' import { ElMessage } from 'element-plus' import { Plus } from '@element-plus/icons-vue' import EbookManager from '../../components/admin/EbookManager.vue' const categoryList = ref([]) const fetchCategory = () => request(...
import { addGroup as addDrawerGroup, addItem as addDrawerItem, removeItem as removeDrawerItem, setItems as setDrawerItems, setOpen as setOpenDrawer, store, updateItem as updateDrawerItem, } from "@/redux"; import { DrawerItem, DrawerItemLabel } from "@/types"; import { ReactNode, useCallback } from "react...
import { Component,OnInit } from '@angular/core'; import {ConfirmDialogModule,ConfirmationService,DataTableModule,SharedModule} from 'primeng/primeng'; import {Car} from './car'; import {CarService} from './car.service'; @Component({ selector: 'app-root', template: ` <input type="text" [(ngModel)]="name" pI...
import express from "express"; import cluster from "cluster"; import os from "os"; const numCPUs = os.cpus().length; if (cluster.isMaster) { console.log(numCPUs); console.log(`PID number: ${process.pid}`); for (let i = 0; i < numCPUs; i++) { cluster.fork(); } cluster.on("exit", (worker) => { conso...
/********************* */ /*! \file contraction_origins.h ** \verbatim ** Top contributors (to current version): ** Gereon Kremer ** This file is part of the CVC4 project. ** Copyright (c) 2009-2019 by the authors listed in the file AUTHORS ** in the top-le...
import { Request, Response } from 'express'; import db from '../db/dbConfig'; import parseCSV from '../utils/csvParser'; import transformObject from '../utils/objectTransformer'; import getAllKeys from '../utils/keyExtractor'; declare global { namespace Express { interface Request { file?: Express.Multer.F...
import { ThisReceiver } from '@angular/compiler'; import { Component, ElementRef, OnInit, QueryList, ViewChildren } from '@angular/core'; import { findIndex, Subject } from 'rxjs'; import { Queue } from 'src/app/Queue'; import { AuthService } from 'src/app/services/auth.service'; import { QueueService } from 'src/app/s...
import { BadRequestError, ControllerArgs, responseHandler } from "../../../core" import { CreateProject } from "../../project/services/create_project.service" import { DecideProposalDto } from "../dto" import { Proposal } from "../models" export class DecideProposal { constructor( private readonly dbProposal: ty...
<template> <div :ref="id" :class="b()" :style="style"> <div :id="targetId" ref="box" :style="styleName" :class="b('box')"></div> <!-- <span>{{option.frontContent||''}}</span> --> <!-- <span>{{option.backunit||''}}</span> --> </div> </template> <script> import { CountUp } from 'countup.js' import common...
# Adding Excitement to &lt;select&gt; Transform any &lt;select&gt; element into a searchable dropdown. View the [Live example](https://droverbuild.github.io/BootstrapDropdownSelect/). ## Features: - Use a pre-rendered &lt;select&gt; tag or fetch from server via AJAX with customizable search params - Search is deboun...
<template> <div class="sidebar" :class="getSidebarState"> <div v-if="isSidebarOpen" class="sidebar--back-color" @click="closeSidebar" /> <div class="sidebar-content"> <div class="sidebar-content__logo"> <img src="../../assets/icon-left-font-monochrome-white.svg" alt="logo"> </div> <...
import { Divider, Row, Space, Tag, Timeline, Watermark, Typography, } from "antd"; import React from "react"; import ComponentPreview from "./ComponentPreview"; import { ShareAltOutlined, FilePdfOutlined, CalendarOutlined, WhatsAppOutlined, AndroidFilled, AppleFilled, LinkOutlined, } from "@...
"use client"; import useCountries from "@/app/hooks/useCountries"; import { SafeReservation, SafeUser, safeListings } from "@/app/types"; // import { Reservation } from "@prisma/client"; import { useRouter } from "next/navigation"; import { useCallback, useMemo } from "react"; import { format } from "date-fns"; import...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class AgentProductPrice extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('agent_product_pr...
import { authorize } from '@lib/auth/auth'; import { isAllowed } from '@lib/auth/utilities'; import { Button, ButtonIcon } from '@lib/components/primitives/button'; import { Skeleton } from '@lib/components/primitives/skeleton'; import { db } from '@lib/database/db'; import { labelingSurveys, labelingSurveysTranslation...
// ignore_for_file: avoid_print import 'package:cloud_firestore/cloud_firestore.dart'; import 'package:firebase_auth/firebase_auth.dart'; import 'package:get/get.dart'; class LoginControler extends GetxController { var isShowPassword = true.obs; var isLoginLoading = false.obs; } class UserDataController extends ...
# Drivers for NVIDIA Jetson ## Supported projects | Project | Documentation | |--------- | -------------- | | gmsl | [Here][doc-0] | [doc-0]: https://github.com/analogdevicesinc/nvidia/tree/gmsl/main ## Getting started For the initial flashing process, there are multiple options: - Use the [NVIDIA SDK Mana...
# -*- coding: utf-8 -*- from optparse import OptionParser import naoqi import numpy as np import time import sys import wave from danceroom import DanceRoom import python3_runner sys.path.insert(0, './audio_recognition_system_py27/libs') NAO_IP = "10.0.7.101" class SoundReceiverModule(naoqi.ALModule): """ ...
from rest_framework import serializers from django.contrib.auth.models import User from .models import Film, ExtraInfo, Ocena, Aktor class ExtraInfoSerializer(serializers.ModelSerializer): class Meta: model = ExtraInfo fields = ['czas_trwania', 'gatunek', 'rezyser', 'film'] class OcenaSerializer...
using System.Linq.Expressions; using System.Management; using System.Reflection; using System.Web; using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components.Rendering; using MudBlazor.Extensions.Attribute; using MudBlazor.Extensions.Components.ObjectEdit.Options; using MudBlazor.Utilities; using New...
// // Copyright 2021 The Dapr Authors // 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 applicable law or agreed to in w...
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Mail; using System.Web; using System.Web.Mvc; namespace uStoreMvcConversion.Controllers { public class HomeController : Controller { public ActionResult Index() { return View(); ...
import { join } from 'path'; import React, { FC, useEffect, useRef, useState } from 'react'; import { useDispatch, useSelector, useLocation } from 'dva'; import Table from 'antd/lib/table'; import Modal from 'antd/lib/modal'; import message from 'antd/lib/message'; import { StateTree } from '@/type/model'; import { Dev...
import React, {useContext, useEffect, useState} from 'react' import { Button, Modal } from 'react-bootstrap'; import { ToastContainer, toast } from 'react-toastify'; import 'react-toastify/dist/ReactToastify.css'; import { addProjectAPI } from '../services/allApi'; import { addProjectResponseContext } from '../Context/...
module 0x1::auction { use Std::Signer; const ERR_CAN_NOT_BID: u64 = 101; const ERR_AUCTION_NOT_LIVE: u64 = 102; const ERR_BID_TOO_LOW: u64 = 103; const ERR_SAME_HIGHEST_BIDDER: u64 = 104; const ERR_CAN_STILL_BID: u64 = 105; const ERR_ONLY_BENE_CAN_END: u64 = 106; s...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <script src="../../../webcomponentsjs/webcomponents-lite.js"></script> <script src="../node_modules/web-component-tester/browser.js"></script> <link rel="import" href="../../../polymer/polymer.html" /> <link rel="import" href="../....
package Modulo1.Aula4; public class EX0407 { public static void main(String[] args) { int[][] entradas = { {2, 2, 5}, {3, 3, 5}, {2, 2, 2}, {2, 5, 2}, {2, 4, 3}, {150, 120, 220}, {122, 252, 130},...
import { loadImage } from './loadImage'; import { EXTENSION_NAME } from '../base/extension-name'; import { type SceneAppendParameters, Texture } from '@wonderlandengine/api'; import { Object3D } from '@wonderlandengine/api'; import type { Material, MeshComponent, WonderlandEngine } from '@wonderlandengine/api'; import...
<template> <div class="textfield"> <label :for="id">{{ label }}</label> <input :type="type" :id="id" :placeholder="placeholder" :disabled="disabled" :required="required" :autocomplete="type" :value="modelValue" @input="$emit('update:modelValue', $event.target.va...
using Microsoft.EntityFrameworkCore; using System; using Volo.Abp.Identity; using Volo.Abp.ObjectExtending; using Volo.Abp.TenantManagement; using Volo.Abp.Threading; using VumbaSoft.AdventureWorksAbp.MultiTenancy; namespace VumbaSoft.AdventureWorksAbp.EntityFrameworkCore; public static class AdventureWorksAbpEfCore...
/* --COPYRIGHT--,BSD * Copyright (c) 2017, Texas Instruments Incorporated * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Redistributions of source code must retain the above copy...
import { ref, computed } from "vue"; const state = ref({ //did a student or teacher log in isStudent: ref(false), userID: ref(''), //Menu options state that is equal to a list of options based on student or teacher state menuOptions: JSON.parse(localStorage.getItem("key")) || [], }); function setup(isStude...
<!DOCTYPE html> <html> <head> <title>TODO supply a title</title> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <script src="jquery-3.2.1.min.js" type="text/javascript"></script> <style> /* Initial Page Appearance */ ...
import React from 'react'; import { useNavigate } from 'react-router-dom'; import useAuth from '../../Hooks/useAuth'; import Rating from 'react-rating'; const Course = props => { const { description, title, rating, img } = props.course; const { user } = useAuth(); const navigate = useNavigate()...
import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.Scanner; public class _17281{ static int N; static List<List<Integer>> v = new ArrayList<>(); static boolean print = false; public static void main(String[] args) { Scanner scanner = new Scanner(S...
import { Router } from 'express'; import { getCustomRepository } from 'typeorm'; import multer from 'multer'; import uploadConfig from '../config/upload'; import Transaction from '../models/Transaction'; import TransactionsRepository from '../repositories/TransactionsRepository'; import CreateTransactionService from...
head 1.2; access; symbols HOL97:1.2.2.2.0.2 bpHOL97:1.2.2.2 hol90_9_alpha:1.2.2.2 hol90_pre8_for_multiple_compilers:1.2.0.2 hol90_manual_after_dons_changes:1.1; locks; strict; comment @% @; 1.2 date 96.09.04.19.01.25; author drs1004; state dead; branches 1.2.2.1; next 1.1; 1.1 date 96.02.27.15.11.07; author dr...
package main /** 峰值元素是指其值严格大于左右相邻值的元素。 给你一个整数数组 nums,找到峰值元素并返回其索引。数组可能包含多个峰值,在这种情况下,返回 任何一个峰值 所在位置即可。 你可以假设 nums[-1] = nums[n] = -∞ 。 你必须实现时间复杂度为 O(log n) 的算法来解决此问题。 示例 1: 输入:nums = [1,2,3,1] 输出:2 解释:3 是峰值元素,你的函数应该返回其索引 2。 示例 2: 输入:nums = [1,2,1,3,5,6,4] 输出:1 或 5 解释:你的函数可以返回索引 1,其峰值元素为 2; 或者返回索引 5, 其...
import React from 'react' import { getCountDown } from '../../utils/getCountDown' import styles from './raceItem.module.scss' export interface IRaceItem { advertised_start: number meeting_name: string race_number: number timeRemaining?: number } function RaceItem({ meeting_name, race_number, timeRemaining }: ...
import { ChangeEvent, MouseEvent, useState, KeyboardEvent, useRef, } from 'react'; import Actions from './ui/Actions'; import useRoomStore from '../../6_shared/hooks/store/useActiveRoomStore'; import { useChatSocketCtx } from '../../6_shared/socket/socketContext'; import { CHAT_EVENTS } from '../../6_shared/s...
import { Pool, PoolClient, QueryResult } from "pg"; import { Model } from "./Model"; import { object, string } from "@shared"; import { DatabaseInfo } from "./DatabaseInfo"; export class Database { private static readonly defaultOptions: Database.Options = { dropUnusedModels: false, reset: false, migrations: { ...
#ifndef CONTAINER_H_ #define CONTAINER_H_ using namespace std; /* Container templated class * first datatype is used for the keys * second datatype is used for the actual data * data can be accessed by giving the key for it * * */ template <class keyType, class dataType> class Container { private: // pointer...
import { BrowserRouter, Route, Routes } from "react-router-dom"; import Navbar from "./pages/Shared/navbar/Navbar"; import Home from "./pages/Home/Home"; import Footer from "./pages/Shared/footer/Footer"; import { useState } from "react"; import About from "./pages/About/About"; import Projects from "./pages/projects/P...
--- title: 구슬을 나누는 경우의 수 date: 2022-11-27 +/-TTTT categories: [Coding Test, Programmers] tags: [codingtest, programmers] # TAG names should always be lowercase --- # 🔖 구슬을 나누는 경우의 수 ## `📌 문제` ###### 문제 설명 머쓱이는 구슬을 친구들에게 나누어주려고 합니다. 구슬은 모두 다르게 생겼습니다. 머쓱이가 갖고 있는 구슬의 개수 `balls`와 친구들에게 나누어 줄 구슬 개수 `share`이 매개변수로 주어질 ...
import { render, screen } from "@testing-library/react"; import user from "@testing-library/user-event"; import { FreeTestIsOverModal } from "./FreeTestIsOverModal.component"; jest.mock("react-dom", () => { return { ...jest.requireActual("react-dom"), createPortal: (el: any) => el, }; }); const...
import { Box, Collapse, IconButton, TableCell, TableRow, Typography } from '@mui/material' import KeyboardArrowDownIcon from '@mui/icons-material/KeyboardArrowDown' import KeyboardArrowUpIcon from '@mui/icons-material/KeyboardArrowUp' import React from 'react' import { useState } from 'react' import { useTranslation } ...
import '/backend/backend.dart'; import '/flutter_flow/flutter_flow_icon_button.dart'; import '/flutter_flow/flutter_flow_theme.dart'; import '/flutter_flow/flutter_flow_util.dart'; import '/flutter_flow/flutter_flow_widgets.dart'; import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'p...
<!DOCTYPE HTML> <html> <head> <meta charset="utf-8 /"> <meta name="viewport" content="width=device-width, initial-scale=1"/> <link rel="icon" href="../img/icon.ico"> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha3...
// Main example mostly from https://github.com/grpc-ecosystem/grpc-gateway/blob/master/examples/main.go package main import ( "net" "net/http" "os" "strings" "github.com/serinth/cab-data-researcher/app" "github.com/serinth/cab-data-researcher/cabService" "github.com/serinth/cab-data-researcher/cacheService" "...
#pragma once /******************************************************************************************************************* InventoryItem.h, InventoryItem.cpp Created by Kim Kane Last updated: 29/04/2018 Derives from Interface. A basic class which creates an inventory item, as well as an item icon (to displa...
import { NextFunction, Request, Response } from "express"; import { BaseError } from "../utils"; /** * The `ErrorRequestHandler` type defines the function signature for an Express error handling middleware. * * @typedef {Function} ErrorRequestHandler * * @param {BaseError | Error} error - The error object. It can...
class Sensor{ constructor(car){ this.car = car; this.rayCount = 5; this.rayLength = 150; this.raySpread = Math.PI/2; this.rays = []; this.readings = []; } update(roadBorders, traffic){ this.#castRays(); this.readings = []; for(let i =...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateUsersTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('users', function ...
/* eslint-disable @typescript-eslint/no-explicit-any */ import React from 'react'; import {NavigationContainer, LinkingOptions} from '@react-navigation/native'; import {createMaterialBottomTabNavigator} from '@react-navigation/material-bottom-tabs'; import {createStackNavigator} from '@react-navigation/stack'; import {...
<template> <div class="container"> <div class="overflow-hidden overflow-x-auto min-w-full align-middle sm:rounded-md"> <div class="flex place-content-end mb-4"> <div class="px-4 py-3 text-white bg-auto hover:bg-indigo-100 cursor-pointer"> <router-link :to="{ n...
import { JwtAdapter } from '../../../config'; import { RegisterUserDto } from '../../dtos/auth/register-user.dto'; import { CustomError } from '../../errors/custom.error'; import { AuthRepository } from '../../repositories/auth.repository'; interface UserToken { token: string; user: { id: string; ...
package io.github.zxyle.validator.str; import javax.validation.Constraint; import javax.validation.Payload; import java.lang.annotation.*; /** * 字符串相等注解 * * @author Xiang Zheng */ @Documented @Retention(RetentionPolicy.RUNTIME) @Constraint(validatedBy = EqualsValidator.class) @Target({ElementType.FIELD, ElementTy...
// TeamInfoPopup.js import React, { useState, useEffect } from 'react'; import './TeamInfoPopup.css'; const TeamInfoPopup = ({ teamInfo, onClose }) => { const { team_id, team_logo, team_mascot, team_record } = teamInfo; const [additionalInfo, setAdditionalInfo] = useState(null); const [seasonData, setSeas...
# Service Binary Hijacking Each Windows service has an associated binary file. These binary files are executed when the service is started or transitioned into a running state. For this section, let's consider a scenario in which a software developer creates a program and installs an application as a Windows service....
package com.darthcoder.JMSTestServlet; import java.io.IOException; import java.util.Enumeration; import java.util.LinkedList; import java.util.List; import java.util.Properties; import javax.jms.*; import javax.naming.*; import javax.servlet.ServletContext; import javax.servlet.http.*; //import com.sun.xml.rpc.proc...
package atividadesFixacao.anexoII; /* 2) Construa um algoritmo utilizando a representação de fluxograma que calcule e informe a quantidade de gasolina que será preciso colocar no carro e quanto irá custar para o seu dono ir até a sua fazenda. O usuário deverá informar a distância que será percorrida e o preço do litro...
import React from 'react'; import css from "./Footer.module.scss"; import { LIST_AUTHOR_INFO, LIST_TYPES } from "../config"; import { getColor, getIcon } from "../utils"; const Footer = (props) => { // Функция для подсчета задач по типу function getCountTasks(tasks, type) { // Проверяем, что tasks - это массив...
import { useState, useEffect } from "react"; import PropTypes from "prop-types"; import ListBulletIcon from "@heroicons/react/24/solid/ListBulletIcon"; import { Avatar, Box, Card, CardContent, LinearProgress, Stack, SvgIcon, Typography, } from "@mui/material"; export const OverviewTasksProgress = (prop...
import { PrismaService } from 'src/database/prisma/prisma.service'; import { Injectable } from '@nestjs/common'; import { SUCCESS_RESPONSE } from 'src/common/constants'; import { EventCreateDto, EventUpdateDto } from './dto'; @Injectable() export class EventService { constructor(private prisma: PrismaService) {} ...
import { PayloadAction, createSlice } from '@reduxjs/toolkit'; import { AnimeGenre, AnimeType } from '../services/anime'; type Filters = { type?: AnimeType[]; genre?: AnimeGenre[]; q?: string; }; type RecommendationsState = { filters: Filters; selected: string[]; }; const initialState = { filters: {}, selecte...
import { RemovalPolicy } from 'aws-cdk-lib' import { AttributeType, BillingMode, ITable, Table, } from 'aws-cdk-lib/aws-dynamodb' import { Construct } from 'constructs' import { TABLE } from '../configs/dynamodb' export class KOTSDatabase extends Construct { public readonly KOTSUserTable: ITable ...
/* This program challenges the user to guess a randomly generated number * within a range chosen by the user. Basic user input is validated to * ensure numbers are entered and there are no guessing range violations * (such as choosing a number outside the high or low boundary of the range). */ var intMax, intMin...
<?php class Validator { protected $db; protected $router; protected $smarty; protected $model; /** * Initalisiere die Datenbank-Verbindung. * @param object $db * @param object $router * @param object $smarty */ ...
<!DOCTYPE html> <html> <head> <title>Gráfico de Pie Chart y Tabla</title> <script src="https://cdn.plot.ly/plotly-latest.min.js"></script> </head> <body> <div id="chart"></div> <div id="table"></div> <script> // Leer el archivo JSON // fetch('data.json') // .then(response => response.json()) ...
# coding: utf-8 # In[2]: #python注释方法"#"'''python多行注释三引号''' # In[ ]: #python中标识符命名规则为:第一个字符为字母或下划线,除第一个字符以为的其他字符可以是字母、下划线或数字 #python中,常见的数据类型有:数、字符串、列表(list)、元组(tuple)、集合(set)、字典(dictionary) # In[3]: #列表(list) abc=['my','you'] abc[1]='he' print(abc[0],abc[1][1]) # In[4]: #元组(tuple) 一旦初始化就不能修改 cde=('my','you')...
# Web App ## Set Up To install all dependencies, run : ``` $ cd front $ npm install ``` ## Start local environment To run locally the React App and the Java server locally : Runs the app in the development mode.\ ``` $ npm run start:local-api ``` To run locally the React App only and to use staging API (running on ...
package kjd.romannumerals.fx.control; import static org.junit.Assert.assertEquals; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; import org.testfx.framework.junit.ApplicationTest; import javafx.scene.Scene; import javafx.scene.input.KeyCode; import javafx.scene.layout.VBox;...
<?php namespace App\Mail; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Mail\Mailable; use Illuminate\Queue\SerializesModels; class FacturaEmail extends Mailable { use Queueable, SerializesModels; private $data; /** * Create a new message instance. * ...
using System.Text; using Microsoft.AspNetCore.Http; namespace EShop_Testing; public class HomeControllerTests { //Index: [Fact] public async Task Index_ViewBagSearchTextIsNotNull_WhenSearchTextIsNotNull() { //Arrange var testSearchText = "Products"; var testPr...
<!DOCTYPE html> <html> <head> <title><%= @page_title %></title> <%= csrf_meta_tags %> <%= stylesheet_link_tag 'works', media: 'all', 'data-turbolinks-track': 'reload' %> <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %> </head> <body> <%= render "shared/nav" , ...
import { FormControl, FormErrorMessage, FormLabel, Textarea as ChakraTextArea, TextareaProps as ChakraTextAreaProps, InputLeftElement, InputGroup, } from "@chakra-ui/react"; import { FieldError } from "react-hook-form"; import { useState, useEffect, useCallback, ForwardRefRenderFunction, forward...
import 'package:contact_bloc/features/contacts/update/bloc/contact_update_bloc.dart'; import 'package:contact_bloc/widgets/loader.dart'; import 'package:flutter/material.dart'; import 'package:contact_bloc/models/contact_model.dart'; import 'package:flutter_bloc/flutter_bloc.dart'; class ContactUpdatePage extends ...
--- title: fibonacci slug: fibonacci layout: post --- Every OGF tutorial or text I've seen uses the Fibonacci series as an early example. Why should I be different? ## An OGF for the Fibonacci series. How about another example? I'm going to create an OGF for the Fibonacci series. Everyone else seems to work through ...
# Implementing OPC/UA Event Support in ScoutX {#opcua_events} ScoutX OPC/UA is implemented in a separate OpcUaServer process. Its design is a thin layer with the OPC/UA serverside stubs calling a corresponding gRPC client to the ScoutX process. The ScoutX process hosts a gRPC server, and its server side stubs make cal...
import 'package:cloud_firestore/cloud_firestore.dart'; import 'package:flutter_amazon/consts/consts.dart'; import 'package:flutter_amazon/controllers/chatController.dart'; import 'package:flutter_amazon/services/firestore.dart'; import 'package:flutter_amazon/widgets_common/responsive_height.dart'; import 'package:get/...
// Lesson 11 - Recap Object Programming type IFizzBuzz = abstract Calculate: int -> string type FizzBuzz() = let calculate n = [(3, "Fizz"); (5, "Buzz")] |> List.map (fun (v, s) -> if n % v = 0 then s else "") |> List.reduce (+) |> fun s -> if s = "" then strin...
package com.jbk; import java.util.NoSuchElementException; import java.util.concurrent.TimeUnit; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.support.ui.ExpectedCondition; import or...
@extends('backend.layouts.master') @section('content') <div id="main-content"> <div class="container-fluid"> <div class="block-header"> <div class="row"> <div class="col-lg-6 col-md-8 col-sm-12"> <h2><a href="javascript:void(0);" class="btn btn-xs btn-link ...
import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { AppRoutingModule } from './app-routing.module'; import { AppComponent } from './app.component'; import { HomeComponent } from './home/home.component'; import { BeerComponent } from './beer/beer.component'; impo...
package example.Advanced.Music.app.entities; import com.fasterxml.jackson.annotation.JsonBackReference; import com.fasterxml.jackson.annotation.JsonIdentityReference; import example.Advanced.Music.app.constans.Constants; import jakarta.persistence.*; import lombok.AllArgsConstructor; import lombok.Getter; import lombo...
#include <iostream> #include <sched.h> #include <sys/wait.h> #include <cstring> #include <sys/unistd.h> #include <sys/mount.h> #include <sys/stat.h> #include <fstream> #define STACK 8192 #define FILE_MODE 0755 char error_msg1[] = "system error: unable to allocate enough memory."; char error_msg2[] = "system error: Un...
require 'rails_helper' describe HoursWorkedMigration::Person::AccrualAmountForm, type: :model do let(:company) { create(:company) } let(:current_person) { create(:person, company: company) } let(:person) { create(:person, company: company) } let(:pto_transaction_batch) { create(:pto_transaction_batch, person: ...
/******************************************************************************* * Copyright (C) 2022-2023 WaveMaker, Inc. * * 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.a...
import Vue from 'vue' import Router from 'vue-router' Vue.use(Router) export default new Router({ mode: 'history', routes: [ { path: '/', redirect: '/home' }, { path: '/home', name: 'Home', // route level code-splitting // this generates a separate chunk (about.[has...
from django.urls import path, re_path from blog import views app_name = 'blog' urlpatterns = [ #Example: /blog/ path('', views.PostLV.as_view(), name='index'), #Example: /blog/post/ (same as /blog/) path('post/', views.PostLV.as_view(), name='post_list'), #Example: /blog/post/django-example/ ...