text
stringlengths
184
4.48M
<script lang="ts"> export let title: string; export let description: string = ''; export let photoURL: string; export let technologies: string[] = []; export let extra: string; import IntersectionObserver from 'svelte-intersection-observer'; let element: HTMLElement; let display = false; </script> <Intersectio...
require('dotenv').config() import { BigNumber, utils } from 'ethers' import prompt from 'prompt' import { getAddBonderMessage, getRemoveBonderMessage, getSetL1GovernanceMessage, getSetAmmWrapperMessage, getSetL1BridgeAddressMessage, getSetL1BridgeCallerMessage, getAddActiveChainIdsMessage, getRemoveAct...
/** * @file tpl_can_demo_driver.c * * @section desc File description * * See tpl_can_demo_driver.h for description. * * @section copyright Copyright * * Trampoline OS * * Trampoline is copyright (c) IRCCyN 2005+ * Trampoline is protected by the French intellectual property law. * * (C) BayLibre 2023 * *...
import PropTypes from "prop-types"; import { useState } from "react"; import { Navigate, useLocation } from "react-router-dom"; import useAuth from "../hooks/useAuth"; import Login from "../pages/auth/Login"; import LoadingScreen from "../components/LoadingScreen"; AuthGuard.propTypes = { children: PropTypes.node, }...
package exprs_test import ( "fmt" "reflect" "testing" exprs "github.com/evilsocket/opensnitch/daemon/firewall/nftables/exprs" "github.com/evilsocket/opensnitch/daemon/firewall/nftables/nftest" "github.com/google/nftables/expr" "golang.org/x/sys/unix" ) func TestExprProtocol(t *testing.T) { nftest.SkipIfNotPr...
import 'package:flutter/material.dart'; import 'package:google_fonts/google_fonts.dart'; import 'package:level_map_example/LevelMapSDK/src/model/bg_image.dart'; import 'package:level_map_example/LevelMapSDK/src/model/image_details.dart'; import 'package:level_map_example/LevelMapSDK/src/model/images_to_paint.dart'; imp...
import 'package:cafe_hollywood/screens/MainTab/main_tab.dart'; import 'package:firebase_auth/firebase_auth.dart'; import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:intl_phone_field/phone_number.dart'; class AuthService { final FirebaseAuth _auth = FirebaseAuth.instance;...
import { res, dbDataResponse } from "../../assets/types/types" import { Server } from '../../server/server'; const { randomUUID } = require("crypto"); import { dbTables, dbTable } from '../../assets/types/types' import { Model, Op } from 'sequelize'; export class ClientSelects { private UUID = randomUUID; private...
#!/usr/bin/env python3 import torch import pandas as pd from dataset import * import pdb from medcam import medcam import matplotlib.pyplot as plt from itertools import chain from tqdm import tqdm from vae_3d import VAE_regressor from bids.layout import BIDSLayout from sklearn.linear_model import LinearRegression impo...
package com.masterproject.musigame.images; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Tag; import org.junit.jupiter.api.Test; import static com.masterproject.musigame.images.ImageMother.Images.ids; import static com.masterproject.musigame.images.Ima...
/** * Orthanc - A Lightweight, RESTful DICOM Store * Copyright (C) 2012-2015 Sebastien Jodogne, Medical Physics * Department, University Hospital of Liege, Belgium * * 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...
#This code examines the difference between DE K27 targets which are DM or not. #It uses the DE gene lists generated in 10_RNAseqAnalysis and 06_featureCountsGeneLists #Author: Lea Faivre #Date: 231031 # Libraries ----------------------------------------------------------------------------------- library(readxl) libra...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- Desarrollo Web en Entorno Servidor - Tarea 1 Programar una aplicación para mantener una lista de teléfonos en una única página web, programada en PHP. La lista almacenará únicamente dos datos: número de te...
import { createSlice } from "@reduxjs/toolkit"; import { User } from './../../../types/user/index'; export interface AuthState { user: User | undefined, isLoggedIn: boolean; } const initialState = { user: {} as User, isLoggedIn: false } as AuthState const authSlice = createSlice({ name: "app/au...
import { AwsCallerIdentity, AwsClient, DescribeRepositoriesResponse } from "../../dist/core/aws"; import { TestAwsConfig } from "./test-lab"; export interface AwsState { ecr: Record<string, Array<object>>; } export function initialAwsState() { return { ecr: {} }; } class ErrorWithCode extends Error { construc...
import { useState } from "react"; import { CardElement } from "@stripe/react-stripe-js"; import { useSelector } from "react-redux"; // internal import useCartInfo from "@/hooks/use-cart-info"; import ErrorMsg from "../common/error-msg"; const CheckoutOrderArea = ({ checkoutData }) => { const { handleShippingCost...
# Contributing ## Running the Extension With Visual Studio Code: - Clone this repository locally. - Run `npm install` in the cloned `codewind-node-profiler` folder. This installs all necessary npm modules in both the client and server folder - Open the clone of this repository in Visual Studio Code. - Press Ctrl+Shi...
/* * Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you 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/...
from tensorflow.keras.models import Sequential from tensorflow.keras.layers import Input, Dense, Flatten import pandas as pd from sklearn.model_selection import train_test_split from sklearn.preprocessing import StandardScaler from sklearn.metrics import mean_squared_error, accuracy_score import matplotlib.pyplot as pl...
import React, { useState, ChangeEvent, FormEvent, useEffect } from 'react'; import login from './api/login'; import signup from './api/signup'; interface AuthenticationProps { setLogIn: React.Dispatch<React.SetStateAction<boolean>>; } const Authentication: React.FC<AuthenticationProps> = ({ setLogIn }) => { const...
import React from 'react' import { Box, Card, CardMedia, Typography, Grid } from '@mui/material' import { useNavigate } from 'react-router-dom' const tools = [ { title: '人工翻译', description: '准确、快速地翻译商务文件,跨越语言障碍。支持多种语言,保证翻译的专业性和准确性。', imageUrl: require('../../pic/translation.png'), route: '/team/trans...
-- NOTE: Cloned from krastorio local event = require("__flib__.event") local constants = require("scripts.constants") local tesla_coil = {} function tesla_coil.init() global.tesla_coil = { --- @type table<number, BeamData> beams = {}, --- @type table<number, TowerData> turrets = {}, --- @type ...
import { EditOutlined, EllipsisOutlined, PlusOutlined, SettingOutlined } from '@ant-design/icons'; import { Button, Tag, Image, Input, Switch, Card, Avatar } from 'antd'; import { ModalForm } from '@ant-design/pro-form'; import React from 'react'; import { PageContainer } from '@ant-design/pro-layout'; import ResoTable...
/* eslint-disable @typescript-eslint/no-explicit-any */ import { useEffect, useState } from "react"; import { action } from "../../src/services/ShareServiceAPI"; import { ShareRequest } from "../../src/interfaces/ShareRequest"; import "./ShareComponent.css"; const ShareComponent: React.FC<ShareRequest> = ({ symbol }) ...
import * as express from 'express'; import * as bookServ from '../services/book.service'; import * as reviewServ from '../services/reviews.service'; import OktaJwtVerifier = require('@okta/jwt-verifier'); export const routes = express.Router(); import * as log4js from 'log4js'; const log = log4js.getLogger("review"); ...
class_name LogicGrid extends GridContainer # Tile object that will be instantiated across the grid const _tile_template = preload("res://objects/tile.tscn") ## Number of rows in the grid @export_range(0, 20) var num_rows : int = 4: set(value): if value < 1: return num_rows = value _resize() ## Number of col...
from django.db.models import Q from django.http import JsonResponse from django.shortcuts import redirect from django.views.generic import ListView, DetailView from django.views.generic.base import View from movies.models import Movie, Category, Actor, Genre from .forms import ReviewForm class GengeYear: """ Жан...
import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-test', template: ` <h1>{{title}}</h1> <p>Heroes:</p> <ul> <li *ngFor="let hero of heroes"> {{ hero }} </li> </ul> <button [disabled]="isDisabled"> with interpolation </button> <button disabled={{isDisabled}}...
<?php /** * The header for our theme * * @package Gomeeki * @subpackage Test Gomeeki * @since 1.0 * @version 1.0 */ ?><!DOCTYPE html> <html <?php language_attributes(); ?>> <head> <meta charset="<?php bloginfo( 'charset' ); ?>"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="vie...
import useScript from "react-script-hook"; import { globalCss } from "@webstudio-is/design-system"; import { useCallback, useEffect, useRef, useState } from "react"; import { trpcClient } from "../trpc/trpc-client"; const scriptAttributes = { async: true, defer: true, importance: "low", src: "https://cdn.goent...
import { db } from "@/lib/db"; import { auth } from "@clerk/nextjs"; import { NextResponse } from "next/server"; export async function GET() { try { const pet = await db.pet.findMany(); return NextResponse.json(pet); } catch (error) { console.log("Pet GET Error: ", error); return new NextResponse(...
import { ComponentFixture, TestBed } from '@angular/core/testing'; import { of } from 'rxjs'; import { HttpHeaders, HttpResponse } from '@angular/common/http'; import { HomeAutomationTestModule } from '../../../test.module'; import { PieceComponent } from 'app/entities/piece/piece.component'; import { PieceService } f...
import React, { useState, useEffect } from 'react' const Meme = () => { const [formData, setFormData] = React.useState({ topText: '', bottomText: '', randomImage: 'https://imgflip.com/s/meme/Drake-Hotline-Bling.jpg' }); const [allMemeImages, setAllMemeImages] = useState([]); useEffect(() => { ...
import { PickType } from '@nestjs/swagger'; import { IsEmail, IsNotEmpty, IsString, IsStrongPassword, } from 'class-validator'; import { Dto } from 'src/lib/dto/Dto'; export class SignUpDto extends Dto<SignUpDto> { @IsNotEmpty() name: string; @IsEmail() @IsNotEmpty({ message: '이메일을 입력해주세요.', }) ...
package Leetcode.LCP; import java.util.*; public class LCP_0035_ElectricCarPlan { //用一个三元组{cur,time,rest}代表从start到cur花费time的时间,还剩下rest的电量 //用优先级队列来保证每次选出一个目前距离最近的结点来尝试移动,前提是rest电量足够 public int electricCarPlan(int[][] paths, int cnt, int start, int end, int[] charge) { final int n=charge.length; List<int[]>[] ma...
package com.example; import static org.junit.Assert.*; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import org.junit.After; import org.junit.Before; import org.junit.Test; public class UserCrudIntegrationTest { private UserCrud userCrud;...
import React, { useState, useContext, useEffect, useRef } from 'react'; import useWebSocket, { ReadyState } from 'react-use-websocket'; import InfiniteScroll from 'react-infinite-scroll-component'; import { AuthContext } from '../contexts/AuthContext'; import { useParams } from 'react-router-dom'; import { useHotkeys }...
import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { HomeComponent } from './routes/home/home.component'; import { MyProjectsComponent } from './routes/my-projects/my-projects.component'; import { BlogComponent } from './routes/blog/blog.component'; import { BlogDis...
<?php /** * Zend Framework (http://framework.zend.com/) * * @link http://github.com/zendframework/zf2 for the canonical source repository * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License */ namespace ...
<?php /** * MyAdmin * * Copyright (C) 2014-2018 Persian Icon Software * * 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 3 of the License, or * (at your option) any later v...
package kr.co.fastcampus.Eatgo.interfaces; import kr.co.fastcampus.Eatgo.domain.Restaurant; import kr.co.fastcampus.Eatgo.application.RestaurantService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.*; impo...
from enum import Enum from sqlalchemy import Boolean, Column, Integer, String from sqlalchemy.sql import expression from sqlalchemy_utils.types.choice import ChoiceType from app.db import Base class UserRoleEnum(str, Enum): admin = "admin" editor = "editor" regular = "regular" class User(Base): __...
import React, { useState, useEffect } from "react"; import "./root.css"; import "@fontsource/lilita-one"; import "./AccInfo.css"; import DialogBox from "./DialogBox"; // Update the path based on your folder structure function AccInfo() { const [loggedInUser, setLoggedInUser] = useState(null); const [updatedUser, s...
nome = "Rafael" idade = 35 lingua = "Python" pessoa = {"nome":"rafael", "idade":35, "lingua":"Python"} # Old Style com % (não é mais utilizado em Python 3, lembra um pouco como é em C) print("Meu nome é %s, tenho %d anos e estudo %s"%(nome, idade, lingua)) #format - evolução do old style print("Meu nome é {}, tenho...
"use client"; import Image, { StaticImageData } from "next/image"; import { Swiper, SwiperSlide } from "swiper/react"; import { useSwiper } from "swiper/react"; import { Navigation, Pagination, Autoplay } from "swiper/modules"; import "swiper/css/autoplay"; import "swiper/css"; import "swiper/css/navigation"; import "s...
import { CallHandler, ExecutionContext, HttpException, HttpStatus, Injectable, Logger, NestInterceptor, } from '@nestjs/common'; import { Observable, of, TimeoutError } from 'rxjs'; import { catchError, map, tap, timeout } from 'rxjs/operators'; import { RedisLockService } from '@exchanges/redis'; import ...
package _2_bag_problem; import org.junit.Test; /** * ClassName: bag_problem.CoinChangeII518 * Package: PACKAGE_NAME * Description: * * @Author CBX * @Create 2024/3/31 16:59 * @Version 1.0 */ /* * You are given an integer array coins representing coins of different denominations and an integer amount represen...
import pandas as pd #read a csv file ufo = pd.read_csv('http://bit.ly/uforeports') print("Overview of UFO data reports: ") print(ufo.head()) print() #series print("Cityseries(sorted):") print(ufo.City.sort_values()) print() ufo['Location'] = ufo.City + ', ' + ufo.State print("After creating a new 'Location' Series ...
import { FungibleTokenDetailed, isNativeTokenAddress, useBlockNumber, useTokenConstants, } from '@masknet/web3-shared-evm' import { useAsyncRetry } from 'react-use' import { BALANCER_SWAP_TYPE } from '../../constants' import { PluginTraderRPC } from '../../messages' import { SwapResponse, TradeStrategy ...
import Topbar from "./components/topbar/Topbar"; import Home from "./pages/home/Home"; import SinglePostPage from "./pages/singlePostPage/SinglePostPage"; import { BrowserRouter as Router, Switch, Route } from "react-router-dom"; import Write from "./pages/write/Write"; import Settings from "./pages/settings/Settings";...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Vote | System</title> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css...
<template> <div class="form_body"> <el-form :model="preForm1" size="mini" label-width="90px" :disabled="preFormDisabled"> <el-form-item label="患者姓名:"> <span>{{this.$store.state.inquiry.patientName}}</span> </el-form-item> <el-form-item label-position="top" label="初步诊断:">{{$store.state.i...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous"> <link rel="stylesheet" href="st...
--- title: 'Setup user specific mail quotas with LDAP' date: 2016-08-13 description: Setting mail quotes with OpenLDAP. tags: - Mail - LDAP - Quota --- # Intro The official [Dovecot wiki](http://wiki2.dovecot.org/Quota) should be your go to for setting up mail quotas, but here I am describing how I setup mail-user spe...
package api import ( "database/sql" "errors" "github.com/gin-gonic/gin" "github.com/lib/pq" db "github.com/okoroemeka/simple_bank/db/sqlc" "github.com/okoroemeka/simple_bank/token" "net/http" ) type createAccountRequest struct { Currency string `json:"currency" binding:"required,currency"` } func (server *Se...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>关键帧</title> <style> /*animation: test1 500ms 400ms steps(6,end) infinite reverse;*/ /*!* 动画名 持续时间 延时 时间函数 执行次数 动画运行的方向*!*/ /*!*animation-timing-function*!*/ *{ margin: 0; padding: ...
/**************************************************************************/ /* */ /* Copyright (c) Microsoft Corporation. All rights reserved. */ /* */ /* Thi...
/* eslint-disable react-hooks/exhaustive-deps */ import { GlobalContext } from 'contexts/global'; import { useContext, useEffect } from 'react'; import { BackgroundGrass } from 'utils/background-grass'; import { Cloud } from 'utils/cloud'; import { Coin } from 'utils/coin'; import { FloorGrass } from 'utils/floor-grass...
import React, {ReactElement} from "react"; import styled from "styled-components"; interface ILabelProps { label: string; } interface IIconProps { icon: string; } export interface IFirstRowProps extends ILabelProps, IIconProps {} const StyledLabel = styled.label` font-size: 0.8em; `; const StyledIcon = style...
import { TestBed } from '@angular/core/testing'; import { Token } from '../models/token.model'; import { HttpClient } from '@angular/common/http'; import { LogService } from './log.service'; import { AccDataService } from '../shared/services/acc-data.service'; import { of } from 'rxjs'; class TestHttp { post(url, b...
from sklearn.metrics import accuracy_score, classification_report, confusion_matrix, ConfusionMatrixDisplay, f1_score import matplotlib.pyplot as plt def print_metrics(modelStr, Y_test=None, Y_pred=None, display_conf_matrix=False): print(f"\n------- Metrics for {modelStr} -------\n") # Define metrics cla...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta name="description" content=""> <meta name="author" content=""> <title>James Lin | Web Developer</title> <!-- Bootstrap Core CSS --> <link href="ve...
import { AlertDialog, AlertDialogBody, AlertDialogContent, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, Button, Flex, Heading, useDisclosure, useToast, } from "@chakra-ui/react"; import { useEffect, useRef, useState } from "react"; import { useNavigate, useParams } from "react-router-...
import React from 'react'; import { Form, Input, Row, Col, DatePicker, Select, message } from 'antd'; import $http from 'api'; import { useDispatch, useSelector } from 'react-redux'; import { attendanceRule } from 'utils/rules'; import moment from 'moment'; import { mapData } from 'utils/mapData'; const AttendanceDeta...
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>v-model</title> <script src="js/vue.min.js"></script> </head> <body> <!--文本框--> <div id="app"> 用户名:<input v-model="test"> {{test}}<br> <!--下拉列表框--> 前端语言: <select v-model="selected"> <option value=...
import { HttpClient } from '@angular/common/http'; import { Component, OnInit } from '@angular/core'; import { FormBuilder, FormGroup } from '@angular/forms'; import { LoadingController, ModalController, ToastController } from '@ionic/angular'; import { ApiServiceService } from '../../../services/api-service.service'; ...
<template> <v-layout wrap> <new-edit-sheet /> <delete-dialog /> <div class="headline">Items</div> <v-spacer /> <v-btn color="primary" dark class="mb-2" @click="createEditShow()">New</v-btn> <v-flex xs12> <v-layout column> <v-flex> <v-card> <v-card-title> ...
import { zodResolver } from '@hookform/resolvers/zod'; import { useForm } from 'react-hook-form'; import { z } from 'zod'; import DialogButton from './DialogButton'; import axios from 'axios'; import { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage } from '@/components/ui/form'; import ...
import { useState, createContext } from "react"; export const UserContext = createContext(null); const ContextProvider = ({ children }) => { const [user, setUser] = useState({ name: '', token: '' }); const updateName = newName => setUser({ ...user, name: newName }); const updateToken = newToken => setUse...
import 'package:flutter/material.dart'; import 'dart:convert'; import 'package:http/http.dart' as http; import 'product.dart'; import '../models/http_exeption..dart'; class Products with ChangeNotifier { List<Product> _items = []; String? authToken; String? userId; List<Product> get items { return [..._it...
// Test -------------------------- Importing the Packages --------------------------------- import { CardContent, Typography, Collapse } from "@mui/material"; // Test -------------------------- Importing the styles / other components ---------------- // Test -------------------------- Structure of Props -------------...
# Mantendo estados dentro da classe class Camera: def __init__(self, name, filmando=False): self.name = name self.filmando = filmando def filmar(self): if self.filmando: print(f'{self.name} já está filmando...') # return print(f'{self.name} es...
function Logger(target: Function) { ///o target de DECORATORS DE CLASSES __ sempre_ será uma FUNCTION (pq é a/uma CONSTRUCTOR FUNCTION, o alvo, que é uma CLASS).... ---> você também poderia chamar esse parâmetro de 'constructor', pq ele sempre será um constructor, também.... ///este é um DECORATOR.... --> decorat...
@node Your First Board @chapter Your First Board In this chapter, we're going to walk you through creating a few very simple boards, just to give you an idea of the way the programs work and how to do the things that are common to all project. Each board will build upon techniques learned from the previous board. Wh...
// @ts-check import { DiscountApplicationStrategy } from "../generated/api"; // Use JSDoc annotations for type safety /** * @typedef {import("../generated/api").RunInput} RunInput * @typedef {import("../generated/api").FunctionRunResult} FunctionRunResult * @typedef {import("../generated/api").Target} Target * @ty...
/* * Copyright 2021 Infosys Ltd. * Use of this source code is governed by GNU General Public License version 2 * that can be found in the LICENSE file or at * https://opensource.org/licenses/GPL-2.0 */ package com.infy.service; import com.infy.service.dto.GivenDailyLikesDTO; import org.springframework.data.doma...
import org.openqa.selenium.*; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.chrome.ChromeOptions; import org.openqa.selenium.support.ui.ExpectedConditions; import org.openqa.selenium.support.ui.WebDriverWait; import java.io.IOException; import java.time.Duration; import java.util.ArrayList...
import React, { useState } from 'react' import { Link, useNavigate } from 'react-router-dom'; import { postAdminLogin } from '../../../api/Requests/adminRequests/AdminRequests'; function AdminSigninPage() { const [email, setEmail] = useState('') const [password, setPassword] = useState('') const [errorM...
import { INestApplication } from '@nestjs/common'; import { SwaggerModule, DocumentBuilder } from '@nestjs/swagger'; /** * Swagger 세팅 * @param {INestApplication} app */ export function setupSwagger(app: INestApplication): void { const options = new DocumentBuilder() .setTitle('NestJS Study API Docs') .set...
syntax = "proto3"; option go_package = ".;pb"; package pb; message ArticleRequest { int64 article_id = 1; } message ArticleResponse { int64 article_id = 1; string title = 2; string content = 3; string author = 4; string created_at = 5; } message ListArticlesRequest { int32 page = 1; int32 page_size = 2...
<template> <div class="experience-wrapper"> <AddExperience :isExperienceDialog="addExperienceDialog" @close="dialogClose" @success="dialogSuccess" /> <div class="experience-management-container"> <div class="experience-management-header"> <div>Experiences</div> <v-b...
import { describe, test } from '@jest/globals' import { CannotDereferenceTypeError, InvalidMemoryAccess } from '../errors/errors' import { testProgram } from '../interpreter/cInterpreter' import { ProgramType } from '../interpreter/typings' import { FLOAT_BASE_TYPE, incrementPointerDepth, INT_BASE_TYPE, } from '...
package tpjad.tpjad.beans; import jakarta.ejb.EJB; import jakarta.enterprise.context.RequestScoped; import jakarta.faces.application.FacesMessage; import jakarta.faces.context.FacesContext; import jakarta.inject.Named; import jakarta.persistence.EntityManager; import jakarta.persistence.PersistenceContext; import tpja...
package com.xiafei.rpc.server.center; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.lang.reflect.Method; import java.net.InetSocketAddress; import java.net.ServerSocket; import java.net.Socket; import java.util.HashMap; import java.util.concurrent.Executor...
import { ApplicationConfig } from '@angular/core' import { provideRouter } from '@angular/router' import { routes } from './app.routes' import { provideClientHydration } from '@angular/platform-browser' import { provideHttpClient, withInterceptors } from '@angular/common/http' import { authHttpInterceptorFn, provideAu...
import React from 'react' import ReactDOM from 'react-dom/client' import './index.css' import { RouterProvider, createBrowserRouter } from 'react-router-dom' import Menu from './pages/Menu/Menu.tsx' import Cart from './pages/Cart/Cart.tsx' import Home from './layout/Home/Home.tsx' import Product from './pages/Product/P...
#include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <sys/wait.h> int main(int argc, char **argv) { if (argc != 2) { fprintf(stderr, "Usage: forkloop <iterations>\n"); exit(1); } int iterations = strtol(argv[1], NULL, 10); int status; for (int i = 0; i < iterations;...
import React, { useState } from 'react'; import axios from 'axios'; function Deposit() { const [asset, setAsset] = useState('SOL'); const [amount, setAmount] = useState(); const [depositAddress, setDepositAddress] = useState(null); const handleAssetChange = (event) => { setAsset(event.target.value); }; ...
%% rgb2yuv % 1. matrix: [a,b,c] = [a b c] % matrix: [a;b;c] = [a b c]' % % 2. zeros: create an array of 0 % zeros(3) = [ 0 0 0 % 0 0 0 % 0 0 0 ] % zeros(2,5) = [ 0 0 0 0 0 % 0 0 0 0 0 ] % data type of zeros() is preset "double". % To use other data type such as 'uint8' => ...
import { useDispatch, useSelector } from "react-redux"; import Sidebar from "./Sidebar" import { Fragment, useEffect, useState } from "react" import { useParams } from "react-router-dom"; import { getProduct, updateProduct } from "../../actions/productAction"; import { clearProductUpdated } from "../../slices/productS...
<template> <v-app id="inspire"> <v-navigation-drawer v-model="drawer" app clipped class="main_navigation" style="background-color: #d2d2ff" width="17%" > <v-list nav dense> <div v-for="m in modulosVisibles" :key="m.name"> <v-list-group v-if="m.childs...
import React, { useState } from "react"; import { BrowserRouter as Router, Route, Routes } from "react-router-dom"; // Use Routes instead of Switch for react-router-dom v6 import OpeningScreen from "./components/OpeningScreen/OpeningScreen"; import HomeScreen from "./components/HomeScreen/HomeScreen"; import ListDetail...
import winston, { format } from "winston"; import config from "../config/config.js"; const customLevelsOptions = { levels: { fatal: 0, error: 1, warning: 2, info: 3, http: 4, debug: 5, }, customColors: { fatal: 'bold red', error: 'red', warning...
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.docbook.org/xml/4.5/docbookx.dtd" [ <!ENTITY % xinclude SYSTEM "../../docbook/xinclude.mod"> %xinclude; <!ENTITY % local.common.attrib "xml:base CDATA #IMPLIED"> ]> <section id="Terminology_datacat"> <titl...
<template> <v-toolbar app dark scroll-off-screen scroll-target="#scrolling"> <v-toolbar-side-icon> <v-icon>graphic_eq</v-icon> </v-toolbar-side-icon> <v-toolbar-title> <span class="font-weight-thin">GRAPHICMS</span> </v-toolbar-title> <v-spacer></v-spacer> <v-toolbar-items> <...
package com.example.simpledblp; import java.util.ArrayList; import android.content.Context; import android.content.Intent; import android.graphics.Typeface; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; import android.widget.ImageView;...
using System; class GezginSaticiIteratif { static int[,] distanceMatrix = { {0, 10, 15, 20}, {10, 0, 35, 25}, {15, 35, 0, 30}, {20, 25, 30, 0} }; static int cities = 4; static int[] visited; // Fonksiyon, verilen yolu ziyaret etmiş mi kontrol eder static bool ...
/* * Copyright (c) 2006-2016, Guillaume Gimenez <guillaume@blackmilk.fr> * 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 copyrigh...
{% load static %} <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>User Registration</title> <link rel="stylesheet" type="text/css" href="{% static 'css/registerstyle.css' %}"> </head> <body> <div class="row"...
package ru.netology.diploma.api import okhttp3.MultipartBody import retrofit2.Response import retrofit2.http.Body import retrofit2.http.DELETE import retrofit2.http.GET import retrofit2.http.Header import retrofit2.http.Multipart import retrofit2.http.POST import retrofit2.http.Part import retrofit2.http.Path import r...