text
stringlengths
184
4.48M
@page "/fetchdata" @inject HttpClient Http <h1>Weather forecast</h1> <p>This component demonstrates fetching data from the server.</p> @if (forecasts == null) { <p><em>Loading...</em></p> } else { <table class='table'> <thead> <tr> <th>Date</th> <th>Temp. ...
# AMD Threadripper CPU Usage Monitor # Copyright (C) 2018 Denis Steckelmacher <steckdenis@yahoo.fr> # # 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 yo...
import { HttpClientTestingModule } from '@angular/common/http/testing'; import { NO_ERRORS_SCHEMA } from '@angular/core'; import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { RouterTestingModule } from '@angular/router/testing'; import faker from '@faker-js/faker'; import { createMo...
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { RouterTestingModule } from '@angular/router/testing'; import { APP_BASE_HREF } from '@angular/common'; import { AppModule } from '../../../../../app.module'; import { SettingsModule } from '../../../settings.module'; import { FuelFilterC...
import { useState, useEffect, useRef } from "react"; import { TextField } from "@mui/material"; import axios from "axios"; import { Container, Paper, Grid } from "@mui/material"; import CircularProgress from "@mui/material/CircularProgress"; import { profileCardDesign } from "@/constants/commonStyle"; import talentPool...
use anyhow::Result; use super::StorageIterator; /// Merges two iterators of different types into one. If the two iterators have the same key, only /// produce the key once and prefer the entry from A. pub struct TwoMergeIterator<A: StorageIterator, B: StorageIterator> { a: A, b: B, choose_a: bool, } impl...
import { TODO_FILTERS } from '../constants' import { type FilterValue as FiltersType } from '../types' import { createButtons } from '../utils/createButtons' import { useTodos } from '../store/useTodos' const FILTER_BUTTONS = createButtons(TODO_FILTERS) export const Filters: React.FC = () => { const filterSelected ...
/** * This module handles GET and DELETE requests in a Next.js serverless function. * * @module route */ // Importing necessary modules import { NextResponse, NextRequest } from 'next/server'; // Next.js server response object import data from '@/data.json' // Importing data from a JSON file /** * Handles GET r...
/* Copyright 2017 The TensorFlow Authors. All Rights Reserved. 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 a...
import { Route, Routes } from 'react-router-dom'; import SharedLayout from './SharedLayout/SharedLayout'; import Home from 'pages/Home'; import Register from 'pages/Register'; import Login from 'pages/Login'; import Contacts from 'pages/Contacts'; import { PrivateRoute } from './PrivateRoute/PrivateRoute'; import { Res...
import { on, observes } from "ember-addons/ember-computed-decorators"; import LoadMore from "discourse/mixins/load-more"; import UrlRefresh from "discourse/mixins/url-refresh"; const DiscoveryTopicsListComponent = Ember.Component.extend( UrlRefresh, LoadMore, { classNames: ["contents"], eyelineSelector: ...
#' Text summary for the top of the results page above the plot #' #' @param v all data #' @export get_text_summary <- function(v){ # get theta and sem for the final item administered. final = v$results %>% tidyr::drop_na(response) %>% dplyr::filter(order == max(order, na.rm = TRUE)) %>% dplyr::mutate...
// // ContentView.swift // PursTKH // // Created by Jared Hubbard on 5/26/24. // import SwiftUI struct ContentView: View { @StateObject private var viewModel = BusinessHoursViewModel() @State private var showFullHours = false @State private var showMenu = false var body: some View { ZS...
export default class Color { r: number; g: number; b: number; a: number; constructor(r = 1.0, g = 1.0, b = 1.0, a = 1.0) { this.r = r; this.g = g; this.b = b; this.a = a; } clone() { return new Color(this.r, this.g, this.b, this.a); } ...
import { Injectable } from '@angular/core'; import { Http, Response } from '@angular/http'; import { Observable } from 'rxjs/Rx'; import { SERVER_API_URL } from '../../app.constants'; import { TipEstudiante } from './tip-estudiante.model'; import { ResponseWrapper, createRequestOption } from '../../shared'; @Injectab...
import React, { Component } from 'react'; import { View } from 'react-native'; import { connect } from 'react-redux'; import { RkStyleSheet } from 'react-native-ui-kitten'; import {GradientButton} from '../../../../components/gradientButton'; import validator from 'validator'; import { errorSet, } from '../../ac...
import { Injectable } from '@angular/core'; import { MatDialog } from '@angular/material/dialog'; import { WarningDialogComponent } from '../shared/warning-dialog/warning-dialog.component'; import { EditCategoryDialogComponent } from '../shared/edit-category-dialog/edit-category-dialog.component'; import { InfoDialogCo...
// Sample data for the initial blogs const initialBlogs = [ { id: 1, title: "Abhinay's Microblogging App", content: "This is a simple microblogging application created using JavaScript, SCSS, and JSON.", author: "Chakradhar ", created: "2023-10-22T12:00:00Z", complete...
import { axiosBasicAuthMiddleware as _axiosBasicAuthMiddleware, axiosBearerAuthMiddleware as _axiosBearerAuthMiddleware, } from "@lindorm-io/axios"; import { OpenIdBackchannelAuthMode } from "@lindorm-io/common-enums"; import { createMockLogger } from "@lindorm-io/winston"; import { BackchannelSession, Client, Clie...
#ifndef SALVIAR_RENDERER_H #define SALVIAR_RENDERER_H #include <salviar/include/decl.h> #include <salviar/include/enums.h> #include <salviar/include/colors.h> #include <salviar/include/format.h> #include <salviar/include/shader.h> #include <salviar/include/viewport.h> #include <eflib/include/math/collision_detection....
// RUN: %target-run-simple-swift %s // REQUIRES: executable_test protocol P { func f0() -> Int; func f(x:Int, y:Int) -> Int; } protocol Q { func f(x:Int, y:Int) -> Int; } struct S : P, Q, Equatable { // Test that it's possible to denote a zero-arg requirement // (This involved extended the parser for unqu...
import React from "react"; import { useState } from "react" import { connect } from "react-redux"; import { TodoAdd, ToggleTodo, setVisibilityFilter } from "../action/index"; import { Todo, Counter } from "../types/todoTypes" import "../styles/App.css"; interface AppPropType { todos: Todo[]; counter: Counter; cur...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner reader = new Scanner(System.in); Coche coche1 = new Coche( "Kia", "Niro", "Gris", 1234 ); /** * Ejercicio 1 ...
import { Injectable, NotFoundException } from '@nestjs/common'; import { InjectRepository } from '@nestjs/typeorm'; import { User } from 'src/auth/user.entity'; import { v4 as uuid } from 'uuid'; import { CreateTestDto } from './dto/createTest.dto'; import { GetTestFilterDto } from './dto/get-tests-filter.dto'; import ...
Module mod_foam_emiss ! ----------------------------------------------------------------------------------------------- ! Model of Anguelova & Gaiser (2013, RSE) with Yin et al. (2016) modifications for fast calculations ! Fast calculations obtained by using semi-closed form of the incoherent approach (with only one ...
"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { t...
package com.osmi.segundamano.converter.data.repository import com.google.gson.GsonBuilder import com.osmi.segundamano.converter.data.datasource.RatesDataSource import com.osmi.segundamano.converter.data.service.ConvertService import com.osmi.segundamano.converter.domain.Rates import okhttp3.OkHttpClient import retrofi...
import * as React from 'react'; import { useEffect, useState } from "react"; import DataTable from "../../../examples/Tables/DataTable"; import MDButton from "../../../components/MDButton" import MDBox from "../../../components/MDBox" import MDTypography from "../../../components/MDTypography" import Card from "@mui/ma...
package com.pmv.saveImage.model import com.fasterxml.jackson.annotation.JsonIgnore import org.hibernate.annotations.ColumnDefault import org.hibernate.annotations.Type import java.io.Serializable import java.sql.Blob import java.util.* import javax.persistence.* @Entity @Table(name = "places") data class Place( @...
function [outliers, h] = xbarplot(data,conf,specs,sigmaest) %XBARPLOT X-bar chart for monitoring the mean. % XBARPLOT(DATA,CONF,SPECS,SIGMAEST) produces an xbar chart of % the grouped responses in DATA. The rows of DATA contain % replicate observations taken at a given time. The rows % should be in time order. ...
const mongoose = require('mongoose'); const Schema = mongoose.Schema; const uniqueValidator = require('mongoose-unique-validator'); const bcrypt = require('bcryptjs'); // Import bcrypt library const userSchema = new Schema({ name: { type: String, required: true }, email: { type: String, required: true, unique: tru...
import { User, UserDocument } from '@hepsikredili/api/main/shared'; import { Injectable } from '@nestjs/common'; import { InjectModel } from '@nestjs/mongoose'; import { hash } from 'bcrypt'; import * as $ from 'mongo-dot-notation'; import { FilterQuery, Model } from 'mongoose'; import { CreateUserDto } from '../dtos/c...
@model UserModel @{ ViewData["Title"] = "Create User"; } <div class="container"> <div class="row"> <div class="col-md-4"> <form asp-action="Create" enctype="multipart/form-data"> <div asp-validation-summary="ModelOnly" class="text-danger"></div> <div class=...
import React from "react"; export default function Destination({ props, destinationState }) { const { name, images, description, distance, travel } = props; const [baseImg, setBaseImg] = React.useState("./"); const links = document.getElementsByClassName("destination-btns"); function changetab(num) { for (...
<!DOCTYPE html> <html lang="en"> <head> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta charset="UTF-8"> <title>lemon</title> <link rel="stylesheet" href="css/styles.css"> <link rel="stylesheet" media="(max-width: 640px)" href="css/mobile.css"> <link rel="stylesheet" media="(min-widt...
import Phaser from "phaser" //Common System Scripts import Score from "../CommonSystem/Score" import ShowMessage from "../CommonSystem/ShowMessage" import DropTimeCounter from "../CommonSystem/DropTimeCounter" import GameTimer from "../CommonSystem/GameTimer" import GameoverMessage from "../CommonSystem/GameOverMessag...
// Copyright (C) 2024 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 #include "pixmapeditor.h" #include <iconloader_p.h> #include <iconselector_p.h> #include <qdesigner_utils_p.h> #include <QtDesigner/abstractformeditor.h> #include <QtWidgets/qappli...
"use client"; import React, { FormEvent, useEffect, useState } from "react"; import { searchQuery } from "../../services/api"; import { IPost } from "../../types/types"; import Link from "next/link"; import { dataFormater } from "../../services/util"; import Search from "./Search"; function page() { const [height, s...
/* * Copyright 2023 Dev Bwaim team * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed...
/* * Host Side support for RNDIS Networking Links * Copyright (C) 2005 by David Brownell * * 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 o...
/* * This file is part of OpenTTD. * OpenTTD 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, version 2. * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the im...
import React from "react"; import PropTypes from "prop-types"; import Button from "react-bootstrap/Button"; import Card from "react-bootstrap/Card"; import { AiFillStar } from "react-icons/ai"; import "./movie-card.scss"; import { Link } from "react-router-dom"; // create MovieCard component export class MovieCard e...
package com.itutry.counting; import java.io.IOException; import java.math.BigInteger; import java.util.concurrent.atomic.AtomicLong; import javax.servlet.GenericServlet; import javax.servlet.Servlet; import javax.servlet.ServletException; import javax.servlet.ServletRequest; import javax.servlet.ServletResponse; impor...
package main import "fmt" func main() { // Начальный неотсортированный срез s1 := []int{64, 34, 25, 12, 22, 11, 90} // Выводим исходный неотсортированный срез fmt.Printf("Unsorted list:\t%v\n", s1) fmt.Println("") length := len(s1) // Внешний цикл для проходов по списку for i := 0; i < (length - 1); i++ { ...
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may n...
import React, { useEffect } from 'react'; import T from 'prop-types'; import CompanySettingsInput from './CompanySettingsInput'; import { CompanySettingsContainer, CompanySettingsHeader, } from '../styledComponents'; const CompanySettings = ({ dispatchChangeInput, form, formErrors, handleEditUser, handl...
from django.test import tag from task_manager.tests.conftests import BaseTestCase from task_manager.users.views import ( UserCreateView, UserUpdateView, UserDeleteView) @tag("users") class UsersTestCase(BaseTestCase): data_json = 'users-data.json' def setUp(self): super().setUp() self.upd...
package main import ( "math" ) // Methods and Functions are similar in nature // However, methods with value or pointer receivers can // take either a value or a pointer as the receiver when they are called // functions that take a value argument must take a value of that specific type // functions with a pointer ar...
//{ Driver Code Starts // C++ program to evaluate value of a postfix expression #include <bits/stdc++.h> using namespace std; // } Driver Code Ends class Solution { public: //Function to evaluate a postfix expression. int evaluatePostfix(string S) { stack<int>T; for(int i=0;i...
ndbm(3bsd) ndbm(3bsd) SSyynnooppssiiss /usr/ucb/cc [flag . . . ] file . . . #include <ndbm.h> typedef struct { char *dptr; int dsize; } datum; int dbm_clearerr(DBM *db); void dbm_close(DBM *db); int dbm_delete(DBM *db...
import 'package:camera/camera.dart'; import 'package:flutter/material.dart'; import 'package:objectdetectionapp/screens/view_image.dart'; class CameraAPP extends StatefulWidget { const CameraAPP(this.cameras, {super.key}); final List<CameraDescription> cameras; @override State<CameraAPP> createState() => _Cam...
/** * Copyright (c) HashiCorp, Inc. * SPDX-License-Identifier: BUSL-1.1 */ import { run } from '@ember/runloop'; import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; import sinon from 'sinon'; module('Unit | Model | job', function (hooks) { setupTest(hooks); test('should expose aggre...
import React, {useState} from "react"; import style from "./Users.module.css"; import {UserType} from "../../redux/users-reducer"; import {NavLink} from "react-router-dom"; import userAva from "../../assets/defaultUserAva.png" export type UsersFCPropsType = { currentPage: number onPageChanged: (pageNumber: num...
//! A lightweight library for working with JSON Pointers (RFC 6901). //! //! This crate provides a simple and efficient way to represent and build JSON Pointers. //! //! Note: This crate focuses on the representation and manipulation of JSON Pointers and does not //! provide functionality for resolving JSON Pointers ag...
""" fast api tutorial """ from fastapi import FastAPI, Path from typing import Optional from pydantic import BaseModel app = FastAPI() students = {1: {"name": "john", "age": 17, "year": "year 12"}} class Student(BaseModel): name: str age: int year: str class UpdateStudent(BaseModel): name: Optio...
--- title: "Lab 13 Homework" author: "Ricardo Pineda" date: "2022-03-01" output: html_document: theme: spacelab keep_md: yes --- ## Instructions Answer the following questions and complete the exercises in RMarkdown. Please embed all of your code and push your final work to your repository. Your final lab...
from customtkinter import CTkButton, CTkFrame, CTkTabview from button_icons import open_panel, close_panel from Panel_elements import TextFrame, Sliders, FlipButtons, ExportButtons from settings import * class PropertyMasterPanel(CTkFrame): def __init__(self, parent, size, opacity, wt_rotation, text, img_rotation...
#include "config.h" #include <paganini/util/lexer/StringUtils.h> #include <paganini/util/lexer/Lexer.h> #include <stdexcept> using namespace std; namespace paganini { namespace util { namespace lexer { struct ParseSingleToken { typedef string::const_iterator iterator; iterator pos; string& content; ...
--- title: "Molecular Homology Assignment" output: html_document --- ## Progressive MSA Pairwise Multiple Sequence Alignment does exactly what we discussed last week, for all your sequences. Typically, this is performed by first performing a pairwise MSA, as we did above, between the two sequences with the least diff...
package teamtalk.server.handler import teamtalk.server.handler.network.ServerClient import teamtalk.server.serverLogger.log import teamtalk.server.stats.StatisticHandler import teamtalk.server.ui.ServerGUI class ChatServer(port: Int) { private val users = mutableListOf<ServerUser>() private val handler = Se...
# taste-buds Web and DataBase Project for Recipe and Nutrition System ## Steps to Run Make sure your directory is based on the taste-buds folder. Assuming you have Docker installed, make sure your Docker daemon is currently running: In Mac and Windows: - If you have Docker Desktop, initialize it. This will run Docker...
import { useMutation as useApolloMutation, MutationHookOptions } from "@apollo/react-hooks"; import { DocumentNode } from 'graphql'; const useMutation = (mutation: DocumentNode, options: MutationHookOptions) => { const { onCompleted = () => {}, onError = () => {}, ...otherOptions } = options; const mutate = useAp...
/* * (c) 2010 Adam Lackorzynski <adam@os.inf.tu-dresden.de>, * Alexander Warg <warg@os.inf.tu-dresden.de> * economic rights: Technische Universität Dresden (Germany) * * This file is part of TUD:OS and distributed under the terms of the * GNU General Public License 2. * Please see the COPYING-GPL-2 ...
# Insertar datos en SQL > Hay 3 maneras de insertar datos en SQl ## Sintáxis usando **SET** INSERT INTO nombreTabla SET nombreColumna = valor, nombreColumna = valor, nombreColumna = valor; > Ejemplo práctico: INSERT INTO productos_apple SET ...
package com.joanjpx.inventory_service.controller; import java.util.List; import org.springframework.http.HttpStatus; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.PostMapping; import org.springfram...
import React, { useContext, useEffect, useState } from "react"; import { Logo } from "../Logo/Logo"; import { ReactComponent as Vector } from "./Vector.svg"; import { Search } from "../Search/Search"; import "./style.css"; import IconBasket from "./IconBasket"; import { UserContext } from "../../context/userContext"; i...
// https://leetcode.com/problems/distribute-coins-in-binary-tree /** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode() : val(0), left(nullptr), right(nullptr) {} * TreeNode(int x) : val(x), left(nullptr), right(nullptr) {} ...
package hellojpa; import javax.persistence.*; import java.util.ArrayList; import java.util.HashSet; import java.util.List; import java.util.Set; @Entity public class Member {//extends BaseEntity{ @Id @GeneratedValue @Column(name = "MEMBER_ID") private Long id; @Column(name = "USERNAME") private ...
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const cookie_parser_1 = __importDefault(require("cookie-parser")); const cors_1 = __importDefault(requir...
package com.byrnx.dictionaryapp.feature_dictionary.data.remote.dto import com.byrnx.dictionaryapp.feature_dictionary.data.local.entities.WordInfoEntity import com.google.gson.annotations.SerializedName data class WordInfoDto( @SerializedName("license") val license: LicenseDto?, @SerializedName("meanings"...
class ModelNotification { Payload? payload; String? message; String? errormessage; String? type; int? code; ModelNotification({ this.payload, this.message, this.errormessage, this.type, this.code}); ModelNotification.fromJson(dynamic json) { payload = json['payload'...
import datetime from Pyro5.api import behavior, Daemon, expose, serve @expose @behavior(instance_mode='single') class rental(object): def __init__(self): self.users = [] self.manufacturers = [] self.rental_cars = [] self.rented_cars = [] # task 1 def add_user(self, us...
package com.bupt.indoorpostion; import android.animation.AnimatorInflater; import android.animation.AnimatorSet; import android.animation.ObjectAnimator; import android.app.Activity; import android.content.Context; import android.graphics.Point; import android.os.Bundle; import android.view.Display; import android.vie...
import 'package:flutter/material.dart'; import 'detail_image.dart'; class ImageGridView extends StatelessWidget { const ImageGridView({super.key}); @override Widget build(BuildContext context) { return Padding( padding: const EdgeInsets.all(15.0), child: GridView.count( crossAxisCount: ...
/* * Copyright (C) 2015, Google Inc. and others * * This program and the accompanying materials are made available under the * terms of the Eclipse Distribution License v. 1.0 which is available at * https://www.eclipse.org/org/documents/edl-v10.php. * * SPDX-License-Identifier: BSD-3-Clause */ package org.ecl...
# https://www.interviewbit.com/problems/repeat-and-missing-number-array/ # https://www.codingninjas.com/codestudio/problems/873366 # https://youtu.be/5nMGY4VUoRY ''' [1, 2, 3, 4, 5, 6] arr = [1, 2, 3, 4, 6, 6] lets 5 = x; 6 = y 1 + 2 + 3 + 4 + x + y = s --eq(1) 1 + 2 + 3 + 4 + x + x = s1 --eq(2) s = n(n+...
//References let timeLeft = document.querySelector(".time-left"); let quizContainer = document.getElementById("container"); let nextBtn = document.getElementById("next-button"); let countOfQuestion = document.querySelector(".number-of-question"); let displayContainer = document.getElementById("display-container"); let ...
import React from 'react'; import PropTypes from 'prop-types'; import { Box, Divider, Typography } from '@material-ui/core'; import { Heading } from './styledComponents'; const headingVariant = (level) => { if (level === 3) { return 'sm'; } if (level === 2) { return 'md'; } return 'lg'; }; const co...
# Optimized bubble sort #!/c/Users/ADMIN/AppData/Local/Microsoft/WindowsApps/python3 # the first line is the location of python3 executable # use "which python3" to find location of binaries. # for linux its: usr/bin/python3 # for windows its: /c/Users/ADMIN/AppData/Local/Microsoft/WindowsApps/python3 # then use chmo...
<?php namespace Controller; use Model\usuarioModel; require_once("helpers/helpers.php"); class UsuarioController { public function login() { if (!empty($_POST['nombre']) && !empty($_POST['pass'])) { //si los campos no estan vacios $nombre = strClean($_POST['nombre']); //limpiamos los ...
// IMPORTING REACT & NEXT STUFF import * as React from 'react'; import { Link } from 'react-scroll'; import NavList from './NavList'; // IMPORTING MATERIAL STUFF import Box from '@mui/material/Box'; import Drawer from '@mui/material/Drawer'; import Button from '@mui/material/Button'; import List from '@mui/material/Li...
<?php namespace app\models; use yii\base\Model; use yii\data\ActiveDataProvider; use app\models\BlockText31; /** * BlockText31Search represents the model behind the search form of `app\models\BlockText31`. */ class BlockText31Search extends BlockText31 { /** * {@inheritdoc} */ public function rul...
library(tidyverse) library(lubridate) setwd("C:/Users/nicolas_vanermen/Desktop/DATA INVOER/2023/UW DATA/Belgica 2023 21 25") Belgica_2023 <- read.csv("vanermen_2023-21_2023-25.csv") str(Belgica_2023) Belgica_2023[,c(2:30)] <- sapply(Belgica_2023[,c(2:30)], as.numeric) str(Belgica_2023) #Select UW columns as.data.fr...
Event when something hapend or hapending [creating,created, retrived,updating,updated,deleting,deleted] from or with database, then create a event.... ________________________________________ php artisan make:event EventName for event , should use it in the related Model.. like User Model... User.php ...
from django.shortcuts import render, redirect from .forms import UserRegistrationForm, UserLoginForm from django.contrib.auth.models import User from django.contrib import messages from django.contrib.auth import login, authenticate, logout def user_register(request): if request.method == 'POST': form = Us...
we discuss [[Plasma, Magnetohydrodynamics (MHD)]]. ## Self-consistent plasma description 1. we can find the position and velocities of every particle in a plasma from Newton's 2nd law, i.e. given $F_i \implies r_i, v_i\quad \forall i$ due to $$m_i \partial_t^2 r_i = F_i = q_i \left [ E(r_i, t) + v_i\times B(r_i) \rig...
// Replacing the Oil heater outside temperature wired thermomenter // Using PmodPOT from DIGILENT to fake the thermometer readings. // Temperature is reported from Home Assisntant and translated to // the variable resistance that the heater control unit reads. // // Board used: Seeed Studio XIAO ESP32C3 // // https:/...
#include <stdio.h> #include <stdlib.h> struct node { int info; struct node* link; }; struct node* start = NULL; void createList() { if (start == NULL) { int n; printf("\nEnter the number of nodes:"); scanf("%d", &n); if (n != 0) { int data; struct node...
import React from "react"; import { useDispatch, useSelector } from "react-redux"; import { useNavigate } from "react-router-dom"; function TodoList() { const todos = useSelector((state) => { return state.todos; }); const dispatch = useDispatch(); const navigate = useNavigate(); return ( <div> ...
import {getUser} from './services/user.js' import {getRepositories} from './services/repositories.js' import{user} from './objects/user.js' import{screen} from './objects/screen.js' import {events} from './services/events.js' document.getElementById('btn-search').addEventListener('click', () => { const userName ...
import useForm from "../../customsHooks/useForm" import image from '../../assets/image.svg' import {useFormRegister} from '../../todo/helpers/useFormRegister' export const RegisterPage = () => { const {isValid, isValidFormRegister, setIsValid} = useFormRegister() const { values, handleInputChange, reset} = useF...
<template> <div class="login-container"> <el-form class="login-form" ref="loginFormRef" label-width="100px" :rules="rules" :model="form"> <div class="title-container"> <img src="/vite.svg" class="logo" alt="Vite logo" /> </div> <el-form-item prop="email" label="邮箱"> <el-input v-m...
// // Copyright (c) 2018 KxCoding <kky0317@gmail.com> // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, ...
import 'dart:ui'; import '../utils/ui_utils.dart'; import 'constants.dart'; extension IntExt on int{ ///px转dp double get px => Configurations.fitWidth ? this * (window.physicalSize.width / Configurations.design_width_px) //先缩放(1080下就是x1.44) / window.devicePixelRatio// 除以本机像素密度获取dp : this * (w...
%description: Copying and assignment for messages: dynamic arrays of struct and class members %file: test.msg namespace @TESTNAME@; struct MyStruct { int bb; } class MyClass { int bb; } message Base { MyStruct ms[]; MyClass mc[]; omnetpp::cQueue q[]; } message MyMessage extends Base { MySt...
<?php namespace App\Http\Controllers; use App\Http\Requests\JenisProdukRequest; use App\Models\JenisProduk; use Exception; use Illuminate\Support\Facades\DB; use Yajra\DataTables\Facades\DataTables; class JenisProdukController extends Controller { /** * Display a listing of the resource. * * @retu...
import React, { ChangeEvent, ChangeEventHandler } from 'react' interface InputPorps { label : string placeholder : string, value? : string type? : string, onChange : (e : ChangeEvent<HTMLInputElement>) => void; } const Input = ({ label, value, placeholder, type, onChange, } : I...
<?php /** * Copyright (c) Enalean, 2016 - Present. All Rights Reserved. * * This file is a part of Tuleap. * * Tuleap 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 ...
import "./../../../firebase"; import React from "react"; import { useFormikContext } from "formik"; import ErrorMessage from "./ErrorMessage"; import ImageInputList from "../ImageInputList"; import { getStorage, ref, uploadBytes, getDownloadURL } from "firebase/storage"; const storage = getStorage(); const FormImag...
<?php namespace App\DataFixtures; use Doctrine\Bundle\FixturesBundle\Fixture; use Doctrine\Persistence\ObjectManager; use App\Entity\Product; use Faker\Factory; use Faker\Provider\en_US\Text; use App\DataFixtures\SongProvider; class ProductFixture extends Fixture { // private function getRandomBookName() ...