text
stringlengths
184
4.48M
import 'package:flutter/material.dart'; import 'package:flutter_bloc/flutter_bloc.dart'; import 'package:hlaw/bloc/app_cubit.dart'; import 'package:hlaw/bloc/app_state.dart'; import 'package:hlaw/screen/auth/select_login_screen.dart'; class ProfileScreen extends StatelessWidget { const ProfileScreen({Key? key}) : su...
<template> <div> <div class="point"> <h1>v-for with an array</h1> <ul> <li v-for="(item, index) in items" :key="item.id"> {{ index + 1 }}. {{ item.name }}, {{ item.price }}$ </li> </ul> </div> <div class=...
package com.raffa064.engine.core.api; import com.badlogic.gdx.files.FileHandle; import com.badlogic.gdx.graphics.Color; import com.badlogic.gdx.graphics.Texture; import com.badlogic.gdx.graphics.g2d.BitmapFont; import com.badlogic.gdx.graphics.g2d.freetype.FreeTypeFontGenerator; import com.badlogic.gdx.graphics.g2d.fr...
import requests from bs4 import BeautifulSoup import pandas as pd url = "https://www.fundamentus.com.br/fii_resultado.php" headers = { 'User-Agent' : 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36', 'Accept' : 'text/html,appli...
package chapterThree.one; import chapterOne.three.Queue; /** * Created by sunjiaxin on 2017/6/27. */ public class BinarySearchST<Key extends Comparable<Key>, Value> { private Key[] keys; private Value[] vals; private int N; public BinarySearchST(int capacity) { keys = (Key[]) new Comparabl...
import 'dart:io' as io; import 'package:android_intent_plus/android_intent.dart'; import 'package:extended_image/extended_image.dart'; import 'package:flutter/material.dart'; import 'package:get/get.dart'; import 'package:jhentai/src/extension/widget_extension.dart'; import 'package:jhentai/src/network/eh_cache_interc...
<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Refs In String Form</title> </head> <body> <div id="test"></div> <script src="../js/react.development.js"></script> <script src="../js/react-dom.devel...
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>书城首页</title> <%@include file="/include/base.jsp" %> </head> <script type="text/javascript"> $(function(){ $(".addBtn").click(function(){ var bookid = $(this).attr(...
package kodlama.io.rentACar.business.concretes; import kodlama.io.rentACar.business.abstracts.CityService; import kodlama.io.rentACar.business.requests.city.CreateCityRequest; import kodlama.io.rentACar.business.requests.city.UpdateCityRequest; import kodlama.io.rentACar.business.dto.city.GetAllCityResponse; import ko...
/* GUICode.java * * This class draw the code memory representation in a window with three columns. * (c) 2006 Alessandro Nicolosi, Massimo Trubia (FPU modifications) * * This file is part of the EduMIPS64 project, and is released under the GNU * General Public License. * * This program is free software; you can...
import { JSX } from 'react'; type Theme = 'primary' | 'secondary' | 'accent' | 'info' | 'success' | 'warning' | 'error' | 'ghost'; type Variant = 'bordered'; type Size = 'lg' | 'md' | 'sm' | 'xs'; export type InputProps = { theme?: Theme; size?: Size; variant?: Variant; placeholder?: string; label...
#### 1. 注意事项 - 为防止命名冲突,可以采取立即执行函数的写法将每个图表分隔开,注意每个函数后面都要加个分号 - tooltip 并非是 canvas 绘制,而是一个 div ,所以写样式时尽量避免直接使用 div ,否则可能导致大小异常 - yAxis 的 axisLine 好像默认是隐藏的,所以需要加上 `show: true` 以显示y轴轴线 - formatter: "{c}%", // {c} 会自动解析为 data 中的数据;{a}是系列名,{b}是数据名,{d}是所占比例 - yAxisIndex: 1, //使用的y轴的index;默认为0(即左边的第一个y轴),存在多个y轴时必须设置,否...
/* Sample code for vulnerable type: SQL Injection CWE : CWE-89 Description : Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') */ package main import ( "database/sql" "fmt" "net/http" ) func handler(db *sql.DB, w http.ResponseWriter, req *http.Request) { category := ...
package cn.test.basis.creat02; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; public class HowToCreateThread { private static class MyThread extends Thread { @Override public void run() { System.out.println("Hello MyThread"); } } pr...
package me.varoa.ugh.core.data.remote.json import kotlinx.serialization.SerialName import kotlinx.serialization.Serializable @Serializable data class UserJson( val id: Long, @SerialName("login") val username: String, val name: String? = "", @SerialName("avatar_url") val avatar: String, @SerialName...
import 'dart:developer'; import 'dart:io'; import 'package:alma/core/api_provider.dart'; import 'package:alma/core/constants.dart'; import 'package:firebase_storage/firebase_storage.dart'; import 'package:flutter/cupertino.dart'; import 'package:flutter/foundation.dart'; import 'package:flutter/services.dart'; import...
import React from 'react'; import Document, { Html, Head, Main, NextScript } from 'next/document'; class MyDocument extends Document { static async getInitialProps(ctx: any) { const initialProps = await Document.getInitialProps(ctx); return { ...initialProps, styles: React.Children.toArray([initi...
"use client"; import { lessons } from "@prisma/client"; import dynamic from "next/dynamic"; import Link from "next/link"; import { useState } from "react"; import ActionsLessons from "./ActionsLessons"; const Time = dynamic(() => import("./GeTTime"), { ssr: false, }); type Props = { lesson: lessons[] }; function Less...
import React, { createContext, FC, useState } from 'react'; import { IApartment } from '../interfaces/apartment'; // Define Context Type interface IApartmentContext { apartment: undefined | IApartment, setApartment: (apartment: undefined | IApartment) => void } // Provider const ApartmentContext = createContext<...
package com.tpv.yongdayang.wifiap.util; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.net.wifi.WifiConfiguration; import a...
#include <stdio.h> #include<conio.h> /* * @Author: giangnlhph26511 * @Description: Hien thi menu chuong trinh */ void print_menu() { printf("o---------------------------MENU---------------------------o\n"); printf("| 1. Bang cuu chuong 1 |\n"); printf("| 2. Tich cac so chia he...
package com.example.moviejournal.ui import android.os.Bundle import androidx.fragment.app.Fragment import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.lifecycle.ViewModelProvider import androidx.navigation.fragment.findNavController import androidx.navigation.fragm...
/* * Copyright (c) 2012,2013, Martin Roth (mhroth@section6.ch) * 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 copyright * ...
/********************************************************************** ** smepowercad ** Copyright (C) 2015 Smart Micro Engineering GmbH ** 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, eithe...
import { Component, Input } from '@angular/core'; import { EditModalComponent } from './edit-modal/edit-modal.component'; import { NgbModal } from '@ng-bootstrap/ng-bootstrap'; import { HttpClient } from '@angular/common/http'; import { switchMap } from 'rxjs/operators'; import { Observable, Subject } from 'rxjs'; impo...
import { Component, OnInit, OnDestroy } from '@angular/core'; import { WeatherService } from '../services/weatherService.service'; import { SortTypes } from '../common/enums'; import { convertToCelsuis, sortBy } from '../common/utils'; import { Store } from '@ngrx/store'; import { getResultsAction, setSelectedResul...
<template> <table class="centered striped"> <table-header :headers="headers" /> <tbody> <tr v-for="row in data" :key="row.id" > <table-row :row="row" :headers="headers" ...
// // MapPin.swift // Map // // Created by Paul Kraft on 22.04.22. // import MapKit import SwiftUI #if canImport(WatchKit) && os(watchOS) import WatchKit public struct MapPin { // MARK: Stored Properties private let coordinate: CLLocationCoordinate2D private let color: WKInterfaceMapPinColor /...
import { component$, useClientEffect$, useStylesScoped$, } from "@builder.io/qwik"; import type { DocumentHead } from "@builder.io/qwik-city"; import { Engine, FreeCamera, HemisphericLight, MeshBuilder, Scene, Vector3, } from "@babylonjs/core"; import styles from "./index.css?inline"; // import { Link...
importance: 2 --- # min から max のランダムな整数 取りうる値として `min` と `max` を含む、`min` から `max` のランダムな *整数* 値を生成する関数 `randomInteger(min, max)` を作りなさい。 範囲 `min..max` からの任意の値は、同じ確率で現れなければいけません。 動作例: ```js alert( random(1, 5) ); // 1 alert( random(1, 5) ); // 3 alert( random(1, 5) ); // 5 ```
<?php namespace app\models; use Yii; /** * This is the model class for table "user". * * @property int $id * @property string|null $login * @property string|null $password * @property string|null $email * @property string|null $phone * @property string|null $fio * @property int|null $role_id * * @property...
import { Component, OnInit } from '@angular/core'; import { ActivatedRoute } from '@angular/router'; @Component({ selector: 'app-viewmore', templateUrl: './viewmore.component.html', styleUrls: ['./viewmore.component.css'], }) export class ViewmoreComponent implements OnInit { constructor(private route: Activat...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <utility> #include <vector> #include <folly/MacAddress.h> #include <glog/logging.h> extern "C" { #includ...
<?php namespace Database\Factories; use Illuminate\Database\Eloquent\Factories\Factory; /** * @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Task> */ class TaskFactory extends Factory { /** * Define the model's default state. * * @return array<string, mixed> */ pub...
<div class="backdrop is-hidden" data-modal> <div class="modal"> <button class="modal-close-btn" type="button" data-modal-close> <svg class="modal-close-icon" width="24" height="24"> <use href="../img/icons.svg#close-btn"></use> </svg> </button> <h1 class="modal-title">Your Order</h1> ...
# Introduction This app is a tool to poll API data from an end point and storing it in a sql server, functionally this means it is collecting stock quote information and stored into a server. It then stores the data into an sql server and you can simulate buying and selling stocks based on the collected data. It is wri...
import React from 'react'; import ReactiveForm, { createPluginArray, FormPlugins } from '@reactive-forms/core'; import { render } from '@testing-library/react'; import { createPxth } from 'pxth'; import { domPlugin, ErrorMessage } from '../src'; describe('ErrorMessage', () => { it('should not render empty error', ()...
const express = require('express') const func = require('./functionsutil.js') const db = require('./conection/consultas') const router = express.Router(); /** * Verifica se o cliente já está cadastrado na base * e caso não esjeta já salva * json=>{nome, whatsapp, dispositivo} */ router.post('/verify-client', async...
import { Module } from '@nestjs/common'; import { GraphQLModule } from '@nestjs/graphql'; import { ApolloDriver, ApolloDriverConfig } from '@nestjs/apollo'; import { join } from 'path'; import { TypeOrmModule } from '@nestjs/typeorm'; import { ConfigModule } from '@nestjs/config'; import { AppController } from './app....
import React, {useContext} from 'react'; import {TransactionContext} from '../context/TransactionContext'; import dummyData from '../utils/dummyData'; import {shortenAddress} from '../utils/shortenAddress'; import useFetch from '../hooks/useFetch'; const TransactionCard = ({addressTo, addressFrom, timestamp, message...
{ "cells": [ { "cell_type": "markdown", "id": "5b51606c-8fea-4c66-bf39-92b588243721", "metadata": {}, "source": [ "# Run TPC-DS power test with vanilla spark" ] }, { "cell_type": "code", "execution_count": null, "id": "f2ec202c-ea8f-47bf-9b54-a062cc492bae", "metadata": {}, "outp...
<?php /** * Created by PhpStorm. * User: ASUS * Date: 4/19/2019 * Time: 8:12 AM */ if ( ! defined( 'ABSPATH' ) ) { exit; } if ( ! class_exists( 'MaActivator' ) ) { /** * Class MaActivator */ class MaActivator { /** * Private instance variable * * @var null */ private static $instance = n...
import {Component, OnInit, TemplateRef} from '@angular/core'; import {ActivatedRoute} from "@angular/router"; import {OwnerModel} from "../../models/owner.model"; import {OwnerService} from "../../../services/owner.service"; import {User} from "../../models/user"; import {SubscriptionService} from "../../../services/su...
// Contact Form function validateForm() { var name = document.forms["myForm"]["name"].value; var email = document.forms["myForm"]["email"].value; var subject = document.forms["myForm"]["subject"].value; var comments = document.forms["myForm"]["comments"].value; document.getElementById("error-msg").style.opaci...
import { useState } from "react" import { Link } from "react-router-dom" import useLogin from "../../hooks/useLogin" const Login = () => { const [username, setUsername] = useState("") const [password, setPassword] = useState("") const { loading, login } = useLogin() const handleSubmit = async (e) => { e...
# Chisel and cocotb Examples Example designs of [Chisel](https://www.chisel-lang.org/) and [cocotb](https://www.cocotb.org/) for Agile Hardware Design and Verification. ## Requirements This repository requires sbt, g++, and verilator (see below). User can use gtkwave to view vcd files. ## Installation of verilator ...
import { Row, Tag, Checkbox } from 'antd'; import { useState } from 'react'; import { useDispatch } from 'react-redux'; import TodosSlice from '../TodoList/TodosSlice'; import { DeleteOutlined } from '@ant-design/icons'; import PropTypes from 'prop-types' const priorityColorMapping = { High: 'red', Medium: 'blue', ...
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying file Copyright.txt or https://cmake.org/licensing for details. */ #include <csignal> #include <cstdio> #include <cstdlib> #include <cstring> #include <iostream> #include <string> #include <vector> #include "cmsys/Encoding.hxx" #include...
import { useEffect, useState } from 'react' import foods from './foods' // import App from './app' import Home from './home' import Cart from './carts' function App() { let [foodData, setFoodData] = useState(foods) let [Foods, setFoods] = useState(() => { let saveFood = localStorage.getItem('AllFood') i...
pragma solidity ^0.4.17; contract Lottery { address public manager; address[] public players; address[] public players2; address[] public players3; address[] public winners; event PlayerEntered(address player); event WinnerPicked(address winner); event WinnerPicked2(address winner)...
/// @desc File containing the functions that can be used as card effects and targets. //Targeting functions. #region target_self(); /// @func target_self /// @desc Targets the player! function target_self() { CONTROL.targets = [PLAYER]; return true; } #endregion #region target_selection(); /// @func target_selection...
import { createAsyncThunk, createSlice, PayloadAction } from "@reduxjs/toolkit"; import { RootState, AppDispatch, AppThunk } from "../store"; import axios from "axios"; interface MenuItemInter { id: number; label: string; path: string; icon: string; type?: string; children?: any; } export interface MenuSt...
# Paolo Montemurro, 2019-04-15 #' Aroon Oscillator #' #' Compute the Aroon Oscillator Indicator #' #' @param price vector or xts, historical series of prices #' @param n integer, length of each period of analysis #' #' @return vector or xts, historical series of Aroon Oscillator value #' #' @export #' @author Paol...
# CI/CD_Practice `CI/CD 연습용 레퍼지토리입니다.` ## CI/CD 정의 어플리케이션의 개발부터 배포 때까지 모든 단계를 자동화를 통해 조금 더 효츌적이고 빠르게 사용자에게 빈번히 배포할 수 있도록 만드는 것이다. - CI(Continuous Integration) : 지속적인 통합 - CD(Continuous Delivery) : 지속적인 제공 - CD(Continuous Deployment) : 지속적인 배포 ### CI(Continuous Integration) `빌드/테스트 자동화 과정`으로 버그 수정, 새로운 기능 추가 등 새로운 코...
<!-- Include stylesheet --> <link href="https://cdn.jsdelivr.net/npm/quill@2.0.2/dist/quill.snow.css" rel="stylesheet" /> <!-- Create the editor container --> <div id="editor"> <p>Hello World!</p> <p>Some initial <strong>bold</strong> text</p> <p><br /></p> </div> <!-- Include your favorite highlight.js stylesh...
package dom4j; import org.dom4j.Document; import org.dom4j.DocumentHelper; import org.dom4j.Element; import org.dom4j.io.OutputFormat; import org.dom4j.io.XMLWriter; import java.io.File; import java.io.FileOutputStream; /** * Created by zhaoyi on 17-6-9. */ public class Demo { public static void main(String[] ...
library(tidyverse) library(data.table) library(msm) # rtnorm library(scales) library(conflicted) conflict_prefer("filter", "dplyr") conflict_prefer("rename", "dplyr") conflict_prefer("select", "dplyr") conflict_prefer("map", "purrr") conflict_prefer("extract", "magrittr") conflict_prefer("Position", "ggplot2") # load...
import { Component, OnInit } from '@angular/core'; import { Sale } from '../models/sale.model'; import { BackendService } from '../services/backend.service'; import { DatePipe } from '@angular/common'; import {FormsModule} from '@angular/forms' import { Customer } from '../models/customer.model'; import { Car } from '....
import pandas as pd from sklearn.naive_bayes import GaussianNB from sklearn.preprocessing import LabelEncoder from sklearn.model_selection import train_test_split from sklearn.metrics import classification_report # Load the Mushroom dataset df = pd.read_csv('Mushroom.csv') # Preprocessing data le = LabelEncoder() col...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Administrasi</title> <!-- Icons --> <script src="https://unpkg.com/feather-icons"></script> <!-- CSS --> <link rel="stylesheet" href="style.css...
package pl.ejdev.infrastructure.user.adapter import arrow.core.raise.either import io.kotest.matchers.shouldBe import io.mockk.coEvery import io.mockk.mockk import pl.ejdev.error.MustBeNonNullError import pl.ejdev.infrastructure.expectFailure import pl.ejdev.infrastructure.expectSuccess import pl.ejdev.postgres.domain...
/******************************************************************************* * QMetry Automation Framework provides a powerful and versatile platform to author * Automated Test Cases in Behavior Driven, Keyword Driven or Code Driven approach * * Copyright 2016 Infostretch Corporation * * This...
<template> <v-dialog v-model="display" persistent max-width="600px"> <v-card> <v-card-title> <span class="text-h5">Editar Task</span> </v-card-title> <v-card-text> <v-container v-if ="data"> <v-row> <v-col cols="12"> <v-alert dense type="warnin...
/* * Copyright (c) 2001 Sun Microsystems, Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list...
import { styled } from "@stitches/react"; import { forwardRef, CSSProperties } from "react"; const Icon = styled("img", { position: "relative", borderRadius: "50%", border: "1.5px solid $primary500", }); export interface IUserIconProps { URL: string; size?: number; pointer?: boolean; style?: CSSProperti...
/* libFLAC++ - Free Lossless Audio Codec library * Copyright (C) 2002-2009 Josh Coalson * Copyright (C) 2011-2013 Xiph.Org Foundation * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * - Redistributions of ...
--- title: 'The Most Ethical Issue Using AI in Business: A Critical Review' description: 'An exploration of the ethical concerns for small businesses using AI, challenging prevailing industry narratives and misconceptions, and emphasizing the need for a personalized and thoughtful approach.' author: Cloudcraft image: /...
const ticketsChartContainer = document.getElementById('ticket-stats') let ticketsChart; // Function to update the tickets chart with new data const updateTicketsChart = (ticketsData) => { if (ticketsChart) { ticketsChart.data.labels = Object.keys(ticketsData); ticketsChart.data.datasets[0].data = Object.v...
; ; Lights out ; for the AltairDuino ; ; Inspired by Steve Gibson's Lights Out puzzle ; for the SBC6120/PDP-8 front panel. ; ; In this version there are only 8 switches and ...
<!DOCTYPE html> <html> <head> <title>评论插件与SNS探索 // DRAPORLAND</title> <meta charset="utf-8"> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1"> <meta property="og:title" cont...
.TH MatchEditor 3I "7 Dec 1989" "InterViews" "InterViews Reference Manual" .SH NAME MatchEditor \- StringEditor with pattern matching .SH SYNOPSIS .B #include <InterViews/matcheditor.h> .SH DESCRIPTION MatchEditor is a StringEditor subclass that checks the validity of its contents against a specified pattern. It is su...
// // ProductDetail.swift // JLDishwasher // // Created by Iain McLean on 21/12/2016. // Copyright © 2016 Iain McLean. All rights reserved. // import Foundation public class ProductDetail { public var crumbs : Array<Crumbs>? public var media : Media? public var productId : String? public var defau...
import socket import struct import threading from time import sleep import signal # Define UDP server address and port UDP_SERVER_ADDRESS = '192.168.1.10' UDP_SERVER_PORT = 7 print(f""" ██╗ ██████╗ ██████╗ ██████╗ ███████╗██████╗ ██║ ██╔═══██╗██╔════╝ ██╔════╝ ██╔════╝██╔══██╗ ██║ ██║ ██║██║ ███╗██...
#include "enumerate.hpp" #include <array> #include <catch2/catch_test_macros.hpp> #include <vector> TEST_CASE("enumerate") { SECTION("const auto&, non-const vector") { const int arrSize = 10; std::vector<int> vec(arrSize); size_t expectedIndex = 0; for (const auto& [index, value...
function [solution] = SolveMIQP(casadi_formulation) import casadi.*; %% Create the LCQP problem = ObtainLCQPFromCasadi(casadi_formulation, 0); %% Change to MIQP setting MIQP_formulation = ObtainMIQP(problem); %% Build solver varnames = {}; nV = MIQP_formulation.nV; nC = MIQP_formulation.nC; nComp = MIQP_formulation...
<template> <v-text-field v-model.trim="value" :error-messages="[].concat(errors, externalErrors)" :name="name" label="Artist" @blur="validate" @focus="$emit('focus')" /> </template> <script> import { required } from "vuelidate/lib/validators"; import InputMixin from "@/mixins/InputMixin"; im...
This file explains the "defung" macro and has some exercises on using macros. Guard verification (see the documenation topic "Guards") is used to show that if the inputs to a function satisfy the guard conjecture, any function call resulting from a call of the verified function is Common Lisp compliant. This allows ...
# qq-plots-subclusters.R # ----------------------------------------------------------------------------- # Author: Albert Kuo # Date last modified: Mar 5, 2023 # # Make QQ plots for subclusters of inhibitory neurons cortex 1 # Packages suppressPackageStartupMessages({ library(here) library(tidyverse) ...
import { useState } from 'react'; import { Navbar } from './components/Navbar/Navbar'; import { BrowserRouter as Router, Routes, Route } from 'react-router-dom'; import data from './json/data.json'; import Home from './pages/Home/Home'; import Dest from './pages/Dest/Dest'; import Crew from './pages/Crew/Crew'; import ...
<!-- Latest compiled and minified CSS --> <link rel="stylesheet" href="https://unpkg.com/bootstrap-table@1.22.1/dist/bootstrap-table.min.css"> <!-- Latest compiled and minified JavaScript --> <script src="https://unpkg.com/bootstrap-table@1.22.1/dist/bootstrap-table.min.js"></script> <!-- Latest compiled and minified ...
<?php // src/Entity/Category.php namespace App\Entity; use App\Repository\CategoryRepository; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Doctrine\ORM\Mapping as ORM; #[ORM\Entity(repositoryClass: CategoryRepository::class)] class Category { #[ORM\Id] #[OR...
import { Image, StyleSheet, Text, View } from "react-native"; import React from "react"; import PrimaryText from "./PrimaryText"; import SecondaryText from "./SecondaryText"; import LevelIcon from "./LevelIcon"; export default function DriverListItem({ driver }) { return ( <View style={{ flexDirect...
import streamlit as st from st_aggrid import AgGrid from datetime import datetime import pandas as pd from actors.services import ActorsService from genres.services import GenreService from movies.services import MovieService def show_movies(): movie_service = MovieService() movies = movie_service.get_movies()...
const express = require("express"); const auth_router = express.Router(); const jwt = require('jsonwebtoken'); const bcrypt = require('bcrypt'); const { adminDataValidateForLogin, adminDataValidateForCreate , adminValidateForPasswordUpdate} = require('../middlewares/admin.middleware'); const { validationResult } = requ...
using System.Collections; using System.Collections.Generic; using UnityEngine; public class HoardSlime : MonoBehaviour, IDamageable { Rigidbody2D rb; public float damage = 1f; public DetectionZone detectionZone; public Collider2D hitCollider; public float knockbackForce = 200f; public Animator ...
--- title: 在 .NET 中将 LaTeX Math 渲染为 SVG linktitle: 在 .NET 中将 LaTeX Math 渲染为 SVG second_title: Aspose.TeX .NET API description: 了解如何使用 Aspose.TeX 在 .NET 中将 LaTeX 数学方程渲染为 SVG。带有可自定义选项的分步指南,用于精确的数学表示。 type: docs weight: 10 url: /zh/net/svg-math-rendering/render-latex-math-svg/ --- ## 介绍 在不断发展的 .NET 开发世界中,渲染 LaTeX 数学方程是一个...
######################################### # 用R语言10分钟上手神经网络模型 # http://blog.fens.me/r-nn-neuralnet/ # author:Dan Zhang ######################################### library(neuralnet) setwd("C:/work/R/neural/neural_networks") # 数据集 head(iris) # 神经元模型,没有隐藏层 nn <- neuralnet(Species=="setosa"~ Sepal.Length + Sepal.Width +...
/* -- File : trv32p5_c_float.h -- -- Contents : Single-precision floating point application layer for -- the trv32p5 processor. -- -- Copyright (c) 2019-2021 Synopsys, Inc. This Synopsys processor model -- captures an ASIP Designer Design Technique. The model and all associated -- documentation are proprieta...
import React, { Component } from "react"; import { getMovies } from "../services/fakeMovieService"; import Like from "./common/Like"; import Pagination from "./Pagination"; import { paginate } from "../utils/paginate"; import ListGroup from "./ListGroup"; import { getGenres } from "../services/fakeGenreService"; class...
import math import heapq import time import logging import arcade import hack POSSIBLE_KEYS = [ (arcade.key.D,), (arcade.key.A,), (arcade.key.A, arcade.key.W), (arcade.key.D, arcade.key.W), (arcade.key.W,), (), ] POSSIBLE_KEYS_NO_JUMP = [ (arcade.key.D,), (arcade.key.A,), (), ] # s...
import 'package:flutter/material.dart'; import 'package:my_portfolio/styles/colors.dart'; class ErrorPage extends StatelessWidget { final String errorMessage; const ErrorPage({super.key, required this.errorMessage}); @override Widget build(BuildContext context) { return Scaffold( body: Container( ...
import * as React from 'react'; import styles from './Module11Demo1.module.scss'; import { IModule11Demo1Props } from './IModule11Demo1Props'; import { escape } from '@microsoft/sp-lodash-subset'; export default class Module11Demo1 extends React.Component<IModule11Demo1Props, {}> { public render(): React.ReactElemen...
import { Component } from "@angular/core"; import { FormArray, FormControl, FormGroup, Validators } from "@angular/forms"; import { Store } from "@ngrx/store"; import {addBookToList} from"../store/action/book.action" import { Router } from "@angular/router"; import { getBookDetails } from "../store/selector/boot.select...
/* * IRremoteLearn * * This library expects a special non-demodulated Learner IR receiver * such as the Vishay TSMP58000 http://www.vishay.com/docs/82485/tsmp58000.pdf * and uses an interrupt handler to strip the carrier from the IR signal. * Although it should also work with normal demodulated receivers. * * T...
/* * The information in this file is * Copyright(c) 2007 Ball Aerospace & Technologies Corporation * and is subject to the terms and conditions of the * GNU Lesser General Public License Version 2.1 * The license text is available from * http://www.gnu.org/licenses/lgpl.html */ #ifndef AOILAYER_H #define AOI...
--- title: Value.Is --- # Value.Is Determines whether a value is compatible with the specified type. ## Syntax ```powerquery Value.Is( value as any, type as type ) as logical ``` ## Remarks Determines whether a value is compatible with the specified type. This is equivalent to the "is" operator in M, w...
import usecase.*; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; import org.mockito.junit.jupiter.MockitoExtension; import static org.assertj.core.api.Assertions.*; @ExtendWith(MockitoExtension.class) class FitsTest { @Test @Disp...
/*********************************************************************** * This file is part of iDempiere ERP Open Source * * http://www.idempiere.org * * * * Copyright (C) Contributor...
import {render, screen} from '@testing-library/react'; import Navbar from './nav'; import '@testing-library/jest-dom/'; describe('Rendering Tests', () => { it('should render the nav component and its nested components: close-menu and hamburger-menu', () => { render( <Navbar logo="https://cms....
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Styles</title> <style type="text/css"> </style> </head> <body> <style type="text/css"> .colors { color: limegreen; color: rgb( 255, 0, 0 ); color: rgb(0, 255, 0 ); color: rgb(0,0, 255 ); color: rgb( ...