text
stringlengths
184
4.48M
#pragma once #include "define.h" #include <stdlib.h> #include <atomic> #include <cstdio> #include <new> #ifdef TASK_COROUTINE_DEBUG #include <thread> #endif #include "task_context.h" namespace task_coroutine { #ifdef TASK_COROUTINE_DEBUG extern std::atomic<size_t> g_task_meta_created_count; extern std::atomic<siz...
import { createContext, useContext, useEffect, useState } from "react" import { defaultUser } from '@/model/eUser'; import eProduct, { defaultProduct } from '@/model/eProduct'; import { defaultCart } from '@/model/eCart'; import eCate from '@/model/eCate'; import menuContext from '@/model/menuContext'; ...
package com.nullnumber1.lab1.service; import com.nullnumber1.lab1.model.Payment; import com.nullnumber1.lab1.model.User; import com.nullnumber1.lab1.repository.UserRepository; import com.nullnumber1.lab1.service.kafka.ProducerService; import com.nullnumber1.lab1.util.enums.RoleEnum; import lombok.AllArgsConstructor; i...
# Solana Data Program V0 Solana Data Program is a program that allows users to initialize a _data account_, read and modify its data, and optionally finalize it. ## ✨ Key Features - Allows System owned accounts to create (if not done already) and initialize a _data account_ and _metadata account_ that is linked to t...
5 Day Challenge [ REACT JS ] Today Learning ( 18-09-2022 ) //! UseRef Hook import React,{useEffect , useRef} from 'react'; function FocusInput() { const userRef = useRef(null) useEffect(()=>{ /...
import React, { Component } from "react"; /** * State: là trạng thái của một component * Khi mà chúng ta tương tác trên giao diện mà có sự thay đổi. * state: là thuộc tính kế thừa từ lớp Component */ export default class State extends Component { // 1. Cách khai báo state: isLogin // Chú ý: Khai báo tất cả st...
package common import ( "cmp" "github.com/go-gl/mathgl/mgl32" "math" ) type IT interface { ~int | ~int8 | ~int16 | ~int32 | ~int64 | ~uint | ~uint8 | ~uint16 | ~uint32 | ~uint64 | ~float32 | ~float64 } // / Returns the square of the value. // / @param[in] a The value. // / @return The square of the value. f...
<template> <Welcome intro="Update Project" signature="" /> <form enctype="application/x-www-form-urlencoded" action="http://localhost:3000/update/project" method="post" > <div class="flex flex-row h-14 my-3 border-b border-purple-200"> <label for="oldtitle">Project:</label> <select id=...
// ** React Imports import { useState } from 'react' // ** MUI Imports import Drawer from '@mui/material/Drawer' import Select from '@mui/material/Select' import Button from '@mui/material/Button' import MenuItem from '@mui/material/MenuItem' import { styled } from '@mui/material/styles' import TextField from '@mui/ma...
import { useEffect, useState } from "react"; import { useNavigate } from "react-router-dom"; import { Header } from "../../../../components/Header"; import { TextsNavigation } from "../../../../components/TextsNavigation"; import { MdWest } from "react-icons/md"; import styles from "../../textos.module.scss"; import...
import { Db } from 'mongodb' import { createMachine, createActor } from 'xstate' const resourceMachine = createMachine({ id: 'Resource', initial: 'undefined', states: { undefined: { on: { Creating: { target: 'Created', guard: 'Cancelled' }, } }, Created: { on: { Updating: { target: 'Upd...
<?php /** * This is the model class for table "{{tribe_migration}}". * * The followings are the available columns in table '{{tribe_migration}}': * @property string $id * @property string $entity_id * @property string $to_id * @property string $added * @property string $executed_at * * The followings are the...
import Head from "next/head"; import {useAppSelector} from "store"; import Navbar1 from "components/navbar-1"; import LeftSidebar1 from "components/left-sidebar-1"; import RightSidebar1 from "components/right-sidebar-1"; export type Layout1Props = { children: React.ReactNode; }; const Layout1: React.FC<Layout1Props...
<?php namespace App\Exceptions; use App\Traits\ApiResponseTrait; //引用特徵 use Illuminate\Auth\AuthenticationException; use Illuminate\Database\Eloquent\ModelNotFoundException; use Illuminate\Database\QueryException; use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler; use Illuminate\Validation\ValidationEx...
export default class mainScene extends Phaser.Scene { constructor() { super("mainScene"); this.grond; this.platforms; this.player; this.cursor; } preload() { this.load.image("sky", "../assets/sky.png"); this.load.image("ground", "../assets/ground.png"); this.load.image("platform"...
import java.awt.*; /** * The Bishop class represents a chess bishop piece with a specified color and name. */ public class Bishop extends ChessPiece { /** * Creates a new Bishop instance with the given color and name. * * @param color The color of the bishop. */ public Bishop(Color color...
""" 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 not use this ...
import { Injectable } from '@nestjs/common'; import { ConfigService } from '@nestjs/config'; import { PassportStrategy } from '@nestjs/passport'; import { Profile, Strategy } from 'passport-facebook'; import { IEnvironment } from '@noinghe/shared/utils/lib/interfaces'; import { IOauthUser } from '@noinghe/api/core/lib/...
@extends('layouts.app') @section('content') <div class="col-12"> <table class="table table-striped table-hover"> <thead> <tr> <th scope="col">#</th> <th scope="col">User Info</th> <th scope="col">Category Count</th> ...
/*! * Copyright (c) Microsoft. All rights reserved. * Licensed under the MIT license. See LICENSE file in the project. */ import { useMemo } from 'react' import { useCausalFactors } from '../../state/causalFactors.js' import { useDefinitions } from '../../state/definitions.js' import { useSubjectIdentifier } from ...
package com.ifeanyi.read.core.services import android.content.Context import com.ifeanyi.read.core.enums.AppTheme import com.ifeanyi.read.core.enums.DisplayStyle import com.ifeanyi.read.core.util.Constants import android.speech.tts.Voice import androidx.datastore.core.DataStore import androidx.datastore.preferences.co...
package exer; /** * 一道面试题 考察的是String的不可变性。 局部变量指向了一个新串的位置,原来的位置的东西没变。 * @author shkstart * @create 2019 上午 11:32 */ public class StringTest { String str = new String("good"); char[] ch = { 't', 'e', 's', 't' }; public void change(String str, char ch[]) { str = "test ok"; ch[0] = 'b';...
// // File.swift // // // Created by Dan Tran on 20/12/2023. // import ComposableArchitecture import SwiftUI import Common @Reducer public struct CartListDomain { public init() {} public struct State: Equatable { public var carts: IdentifiedArrayOf<CartDomain.State> = [] public var to...
import BaseController from "./BaseController"; import formatter from "../model/formatter"; import { IRolesOutRoot } from "common"; import Event from "sap/ui/base/Event"; import Input from "sap/m/Input"; import MessageBox from "sap/m/MessageBox"; import { ModelNames } from "../model/models"; import JSONModel from "sap/u...
import { PHONE_NUMBER_REGEX } from "@/constants" import * as yup from "yup" export const emailSchema = yup.object().shape({ email: yup.string().email("Email không hợp lệ!").required("Không được bỏ trống"), }) export const phoneNumberSchema = yup.object().shape({ phone: yup .string() .matches(PHONE_NUMBER_...
var currentModule = ""; var currentQuestionIndex = 0; var currentQuestionIndexList = []; var currentQuestion = []; var moduleQuestions = []; var questions = []; function loadQuestions(module) { currentModule = module; if(currentModule == 'all'){ moduleQuestions = questions; }else{ moduleQu...
package utils import org.apache.commons.math3.analysis.UnivariateFunction import org.apache.commons.math3.analysis.integration.TrapezoidIntegrator import java.math.BigDecimal import java.math.RoundingMode import kotlin.math.* fun cot(x: Double): Double { return 1.0 / tan(x) } fun coth(x: Double): Double { re...
import React, { ReactNode, useCallback, useState } from "react" import { fetchNui } from "../utils/fetchNui" export type ContextType = { templates: DocumentTemplate[] | null templatesLoading: boolean setTemplatesLoading: (isLoading: boolean) => void handleGetTemplates: () => void documents: K5Document[] | n...
import Select from "react-select"; import { useNavigate, useParams } from "react-router-dom"; import { useEffect, useState } from "react"; import axios from "axios"; import { constants } from "../constant"; import FeatureCard from "../components/FeatureCard"; export const SearchPage = () => { const navigateTo = useN...
package org.anoitos.parser.statement.statements import org.anoitos.lexer.token.Token import org.anoitos.lexer.token.TokenType import org.anoitos.parser.extensions.search import org.anoitos.parser.statement.Statement import org.anoitos.parser.statement.StatementParser data class FunStatement( val name: Token, ...
import Head from "next/head"; import { useAuth } from "@/contexts/auth"; import useResource from "@/hooks/useResource"; export default function Home() { // const user = null; // this will be authentication code // const user = { username: 'somebody' }; // this will be authentication code const { user, logi...
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* Form.cpp :+: :+: :+: ...
/* Copyright (c) 2014, Google Inc. * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS...
using System; using System.Collections.Generic; using System.Data; using System.Diagnostics; using System.Runtime.ExceptionServices; using Oracle.ManagedDataAccess.Client; namespace EclipseLibrary.Oracle.Helpers { /// <summary> /// Provides a way to convert results returned by a query into strongly typed obje...
<template> <div class="min-h-screen flex items-center justify-center bg-gray-50 py-12 px-4 sm:px-6 lg:px-8"> <div class="max-w-md w-full space-y-8"> <div> <h2 class="mt-6 text-center text-3xl font-extrabold text-gray-900"> Sign in to your account </h2> </div> <form clas...
// Created by a-bphillips, 2021 // Copyright Bungie, Inc. import BlockPlusButton from "@Areas/Seasons/ProductPages/Season14/Components/BlockPlusButton"; import { SectionHeader } from "@Areas/Seasons/ProductPages/Season14/Components/SectionHeader"; import { Responsive } from "@Boot/Responsive"; import { useDataStore } ...
/* eslint-disable react-native/no-inline-styles */ import {Dimensions, Image, View} from 'react-native'; import React from 'react'; import CustomText from '../../components/CustomText'; import {paletteColor} from '../../themes/Utility'; import RowJustifyContent from '../../components/RowJustifyContent'; import CustomCi...
import 'package:equatable/equatable.dart'; class TestLeaderboardModel extends Equatable { final String userId; final int listeningScore; final int readingScore; final int structureScore; final int totalScore; final String name; final DateTime date; const TestLeaderboardModel({ required this.userId...
import { useState } from "react"; import { createDjService } from "../../services/djs.services"; import { uploadImageService } from "../../services/upload.services"; import { useNavigate } from "react-router-dom"; import Form from "react-bootstrap/Form"; import ScaleLoader from "react-spinners/ScaleLoader"; function A...
using System.Net; using AutoMapper; using FluentAssertions; using Microsoft.EntityFrameworkCore; using Moq; using NUnit.Framework; using WeatherApi.BusinessLogic.Abstraction.Models; using WeatherApi.BusinessLogic.Clients.WeatherApi; using WeatherApi.BusinessLogic.Mappings; using WeatherApi.BusinessLogic.Services; using...
import { Route, RouteComponentProps, Switch, useHistory, useLocation, useRouteMatch, } from "react-router-dom"; import * as React from "react"; import { ToastContainer } from "react-toastify"; import AppHooks from "../coreUI/contexts/AppHooks"; import PopUps from "../coreUI/contexts/Modals"; import { Box } ...
import css from './Form.module.css'; import { nanoid } from 'nanoid'; import React from 'react'; import { Formik, Form, Field, ErrorMessage } from 'formik'; import * as Yup from 'yup'; const validationSchema = Yup.object().shape({ name: Yup.string().required('Name is required'), number: Yup.number().required('Phon...
// * NOTE: We have created a custom render to render the component with the OrderDetailsProvider wrapper // @see https://testing-library.com/docs/react-testing-library/setup // The only change we did here is that instead of importing from @testing-library/react we are importing from our @/test-utils.tsx file import { r...
import { Textarea, Toast } from "@skbkontur/react-ui"; import Head from "next/head"; import { useEffect, useRef, useState } from "react"; import useSpreadsheetData from "../../hooks/useSpreadsheetData"; import Container from "../Container"; import Layer from "../Layer"; import Map, { MapRef } from "../Map"; import Mark...
require("dotenv").config(); // ALLOWS ENVIRONMENT VARIABLES TO BE SET ON PROCESS.ENV SHOULD BE AT TOP const express = require("express"); const app = express(); // Middleware app.use(express.json({limit: '50mb'})); // parse json bodies in the request object // Redirect requests to endpoint starting with /posts to po...
package com.example.notesprojectapp.viewmodel import android.app.DownloadManager.Query import android.util.Log import androidx.lifecycle.ViewModel import androidx.lifecycle.viewModelScope import com.example.domain.model.HomeNotesModel import com.example.domain.model.TemplateNotesModel import com.example.domain.usecase...
# Index of contents 1. [Code deployment instructions for web application](#code-deployment-for-web-application) 2. [Instruction to use web application](#instruction-to-use-web-application) 3. [File structure explanation for web application](#file-structure-for-web-application) 4. [Code deployment instructions for desk...
// // CameraModel.swift // fruitDetector // // Created by Luca Lacerda on 22/02/24. // import SwiftUI import AVFoundation import CoreImage import CoreML import Foundation class CameraModel:NSObject, ObservableObject { @Published var frama:UIImage? private var lastFrames:[UIImage] = [] private var c...
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Windows.Forms; namespace AttributeStudy { public partial class Form1 : Form { private List<Type> heroTypes = new List<Type>(); private object selectedHero; public Form1() {...
import { Flex, Icon } from '@chakra-ui/react'; import Link from 'next/link'; import type { ReactNode, VFC } from 'react'; import { memo } from 'react'; import type { IconType } from 'react-icons'; type Props = { href: string; icon: IconType; children: ReactNode; }; export const NavItem: VFC<Props> = memo((props)...
<!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" /> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="styles...
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class StoreProductRequest extends FormRequest { /** * Determine if the user is authorized to make this request. */ public function authorize(): bool { return auth()->check(); } /** * Get the val...
<?php /** * Class to work with user capability * * @package User-Role-Editor * @subpackage Admin * @author Vladimir Garagulya <support@role-editor.com> * @copyright Copyright (c) 2010 - 2016, Vladimir Garagulya **/ class URE_Capability { const SPACE_REPLACER = '_URE-SR_'; const SLASH_REPLACER =...
import com.pluralsight.application.BlackJackConsole; import com.pluralsight.application.UnoConsole; import com.pluralsight.models.cards.Card; import com.pluralsight.models.cards.Deck; import com.pluralsight.models.cards.facecards.FaceCard; import com.pluralsight.models.cards.facecards.FaceCardDeck; import com.pluralsig...
package com.raf.si.patientservice.mapper; import com.raf.si.patientservice.dto.request.CreateAppointmentRequest; import com.raf.si.patientservice.dto.response.AppointmentListResponse; import com.raf.si.patientservice.dto.response.AppointmentResponse; import com.raf.si.patientservice.dto.response.http.DepartmentRespons...
import numpy as np import pandas as pd class BirthDeath: def __init__(self, b: float, d: float, N0: int, mu: float = None) -> None: """ initialize the population :param b: float, birth rate per individual :param d: float, death rate per individual :param mu: float, mutati...
🔙 [Back to Main](README.md) ### What is an `API`? ---- - `APIs` are mechanisms that enable two software components to communicate with each other using a set of definitions and protocols. For example, the weather bureau’s software system contains daily weather data. The weather app on your phone “talks” to this syste...
<?php if ( !defined( 'ABSPATH' ) ) exit(); get_header( ); $id = get_the_ID(); $thumbnail = wp_get_attachment_image_url(get_post_thumbnail_id() , 'thumbnail' ); if ( $thumbnail == '') { $thumbnail = \Elementor\Utils::get_placeholder_image_src(); } $category = get_the_terms($id, 'cat_career'); $career_banner...
import React from "react"; import { BrowserRouter } from "react-router-dom"; import render from "Utils/render"; import BlogPageDisplay from "./Display"; import { BlogBannerInfo } from "Api/BlogBannerInfo"; import { BlogPost } from "Api/BlogPost"; import { mockImage } from "Utils/Image"; const mockPost = (content: str...
"""shop URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/4.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based vi...
// SPDX-License-Identifier: MIT pragma solidity >=0.7.0 <0.9.0; import "./OpenEscrow.sol"; import "lib/openzeppelin-contracts/contracts/token/ERC20/ERC20.sol"; contract OpenEscrowFactoryV0 { OpenEscrow[] public contracts; event EscrowCreated( address indexed buyer, address indexed seller, ...
<!DOCTYPE html> <meta charset="utf-8"> <style> body { background: #000; color: #fff; font: 10px sans-serif; } .frame { fill: none; stroke: #999; } .axis text { font: 10px sans-serif; fill: #999; } .axis line, .axis circle { fill: none; stroke: #777; stroke-dasharray: 1,4; } .axis :last-of-type ci...
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>后台管理系统 | 欢迎使用</title> <!-- Tell the browser to ...
### ADVENT OF CODE - DAY 1 ######################## #-- Libraries ------------------------- library(tidyverse) #-- Load data ------------------------ #input <- read_table(here::here("2022", "day_01", "test_input_day01.txt"), col_names = "calories", skip_empty_rows = FALSE) input <- read_csv(here::here("2022", "day_...
import { useState } from "react"; import Link from "next/link"; import DropdownCaret from "./DropdownCaret"; interface DropdownProps { content: { text: string; children: Array<{ text: string; link: string; sub?: any[] }>; }; } export default function Dropdown({ content }: DropdownProps | any) { const [a...
package org.example.book; public class Book implements Comparable{ private String title; private String authorFirstName; private String authorLastName; private int pages; public Book() { this.title = "No title specified!"; this.authorFirstName = "No author first name specified!"; ...
import React, { useContext, useState } from "react"; import { FireBaseContext } from "../../Context/FireBase"; import { updatePassword, reauthenticateWithCredential, EmailAuthProvider, } from "firebase/auth"; import swal from "sweetalert"; const PasswordForm = () => { const [newPassword, setNewPassword] = useS...
;; ;; ANSI Common Lisp 日本語訳 ;; 4. 型とクラス ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; System Class FUNCTION ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; @begin: 4.4.function!system-class @name: function!system-class @type: system-class System...
import 'package:flutter/material.dart'; typedef IntValueSetter = void Function(int value); class RangeSelectorForm extends StatelessWidget { final GlobalKey<FormState> formKey; final IntValueSetter minValueSetter; final IntValueSetter maxValueSetter; const RangeSelectorForm({ Key? key, required this....
<?php namespace App; use App\Traits\CoveringTrait; use Illuminate\Database\Eloquent\Model; /** */ class Torso extends Model { use CoveringTrait; protected $fillable = [ 'color', 'covering', 'pattern', ]; /** * The available covering values * * @var array */ protect...
#include <Wire.h> #include <LiquidCrystal_I2C.h> #include <RTClib.h> DateTime now; RTC_DS3231 rtc; LiquidCrystal_I2C lcd(0x27,16,2); void displayDate(void); void displayTime(void); void setup () { Serial.begin(9600); lcd.begin(); lcd.backlight(); if (! rtc.begin()) { Serial...
import ky from 'https://cdn.skypack.dev/ky?dts' import {backgroundColor, createCard, createModal, fillSearchBar} from './js/modules.js' const BASE_API_URL = 'https://pokeapi.co/api/v2' const mainContainer = document.querySelector('.container.main') const searchBarItemsContainer = document.querySelector('.autocomplete-...
import torch import torch.nn as nn import numpy as np import math from torch.utils.checkpoint import checkpoint from attention import Attention import copy from torch_butterfly import Butterfly Sparse_Linear = Butterfly class Embeddings(nn.Module): def __init__(self, config): super().__init__() ...
package com.sorune.photogram.Security.Service; import com.sorune.photogram.Security.Entity.User; import lombok.AllArgsConstructor; import org.springframework.security.core.GrantedAuthority; import org.springframework.security.core.authority.SimpleGrantedAuthority; import org.springframework.security.core.userdetails.U...
import { Fragment } from "react"; import classNames from "classnames"; import { Disclosure, Menu, Transition } from "@headlessui/react"; import { BellIcon, MenuIcon, XIcon } from "@heroicons/react/outline"; const navigation = [ { name: "Dashboard", href: "#", current: true }, { name: "Settings", href: "#", current...
#ifndef CSTRING_H #define CSTRING_H #include <stdio.h> #include <stdlib.h> #include <string.h> #include <assert.h> // functions returning an int return 0 on failure and 1 on success #define STRING_RETURN_IF_NULL(ptr) if(ptr == NULL) return STRING_ERROR #define STRING_ERROR 0 #define STRING_SUCCESS 1 static const si...
<%= form_with(model: company) do |form| %> <% if company.errors.any? %> <div id="error_explanation"> <h2><%= pluralize(company.errors.count, "error") %> prohibited this company from being saved:</h2> <ul> <% company.errors.each do |error| %> <li><%= error.full_message %></li> ...
<?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <!-- namespace="对应Dao的全限定名" --> <mapper namespace="com.itheima.mapper.UserMapper"> <!-- SQL片段:提高代码的重用性 --> <sql id="SQL_SELECT"> ...
// React import React,{useState,FormEvent,useEffect} from 'react'; import { useNavigate, Link } from "react-router-dom"; import { isObject } from 'lodash'; // Style import "./Subs.css"; // images import imagem from "../assets/img/image 2.jpg"; import logo from "../assets/img/Type=Colored negative.svg"; import Login fro...
<!doctype html> <html lang="en" class="h-100"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content="Mark Otto, Jacob Thornton, and Bootstrap contributors"> <meta name="generator" content...
*if_lua.txt* For Vim version 7.3. 最近更新: 2010年7月 VIM 参 考 手 册 by Luis Carvalho 译者: Willis http://vimcdoc.sf.net Vim 的 Lua 接口 *lua* *Lua* 1. 命令 |lua-commands| 2. vim 模块 |lua-vim| 3. 缓冲区用户数据 |lua-buffer| 4. 窗口用户数据 |lua-window| {Vi 没有任何以上的命令} 仅当 Vim 编译时加入 ...
<?php namespace App\Http\Controllers; use App\Models\Sijil; use Illuminate\Http\Request; use App\Models\Paper; use \Bkwld\Cloner\Cloneable; use DB; use App\Models\Peserta; use Illuminate\Support\Facades\File; use Auth; use App\Models\Role; use App\Models\User; use Laratrust\Models\LaratrustRole; use PDF; use RealRas...
/************************/ /* Burak Demirci */ /* 141044091 */ /************************/ //CPU Class tanimlanmasi #include <iostream> #include <string> #include "Memory.h" using namespace std; #ifndef CPU_H #define CPU_H class CPU { public: //Constructor fonksiyon baslangicta register degerlerini s...
// Blake W Hausafus 2023 bwhausafus@dmacc.edu #include <iomanip> #include <iostream> #include <string> #include <random> #include "node.cpp" using namespace std; class doubly_linked_list{ public: node* first; node* last; int size;// total items in a list doubly_linked_list(){// constructor t...
import { useForm } from 'react-hook-form'; import { useDispatch, useSelector } from 'react-redux'; import { useNavigate } from 'react-router-dom'; import { loginUser, loginSelector } from './loginSlice'; import { useEffect } from 'react'; import '../../App.css'; export function Login() { const { register, handleSubm...
<form (ngSubmit)="onSubmitProject()" [formGroup]="proyectoForm"> <div class="modal-content"> <div class="text-center text-bg-rosa"> <h5 class="fs-3">Proyectos</h5> </div> <div class="container text-start"> <div class="row my-1"> <div class="col-6 col-sm-6 col-md-3 mb-2"> <la...
/* Auth Builder Widget */ import 'package:firebase_auth/firebase_auth.dart'; import 'package:flutter/material.dart'; import 'package:flutter_starter/models/models.dart'; import 'package:flutter_starter/services/auth_service.dart'; import 'package:flutter_starter/services/services.dart'; import 'package:provider/provid...
// To parse this JSON data, do // // final roomsHotelsModels = roomsHotelsModelsFromJson(jsonString); import 'dart:convert'; RoomsHotelsModels roomsHotelsModelsFromJson(String str) => RoomsHotelsModels.fromJson(json.decode(str)); String roomsHotelsModelsToJson(RoomsHotelsModels data) => json.encode(data.toJson()...
import Vue from "vue"; import VueRouter, { RouteConfig } from "vue-router"; import Home from "../views/Home.vue"; import ItemView from "../components/ItemView.vue"; import Form from "../components/Form.vue"; Vue.use(VueRouter); const routes: Array<RouteConfig> = [ { path: "/", name: "Home", component: H...
using Nop.Web.Framework.Mvc.ModelBinding; using Nop.Web.Framework.Models; using Nop.Web.Areas.Admin.Models.Orders; namespace Nop.Web.Areas.Admin.Models.Settings { /// <summary> /// Represents an order settings model /// </summary> public partial record OrderSettingsModel : BaseNopModel, ISettingsModel...
import React from "react"; import { ThemeContext } from "../contexts/ThemeContext"; import { AuthContext } from "../contexts/AuthContext"; class Navbar extends React.Component { render() { return ( <AuthContext.Consumer>{(authContext) => ( <ThemeContext.Consumer>{(themeContext) ...
--- title: "\"In 2024, Superior Animation Suites Top 3D Modelers\"" date: 2024-06-04T04:06:05.763Z updated: 2024-06-05T04:06:05.763Z tags: - screen-recording - ai video - ai audio - ai auto categories: - ai - screen description: "\"This Article Describes In 2024, Superior Animation Suites: Top 3D Modeler...
import React, { createContext , useState } from 'react'; import { PRODUCTS } from '../products'; export const ShopContext = createContext(null); const getDefaultCart = () => { let cart = {}; for (let i =1; i<PRODUCTS.length +1; i++){ cart[i] = 0; } return cart; } export const ShopContextPro...
import { Injectable, Inject, forwardRef, ForbiddenException, HttpException } from '@nestjs/common'; import { PerformerService } from 'src/modules/performer/services'; import { Model } from 'mongoose'; import { ObjectId } from 'mongodb'; import { EntityNotFoundException } from 'src/kernel'; import { v4 as uuid...
#ifndef VM_MNGR_H #define VM_MNGR_H #include "../include/type.h" #include "pm_mngr.h" #include "../Lib/util.h" #include "./../cpu/idt.h" * One way to create the mapping table between the virtual pages * and physcial memory blocks is to generate an array of integers * where the array index is represents the vi...
package com.example.and103_assignmentht.adapter; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import androidx.annotation.NonNull; import androidx.recyclerview.widget.RecyclerView; import com.bumptech.glide.Glide; import com.example.and103...
package com.rescu.wave import android.content.Intent import android.os.Bundle import android.text.TextUtils import android.widget.AdapterView import android.widget.ArrayAdapter import android.widget.AutoCompleteTextView import android.widget.Toast import com.google.android.gms.tasks.OnCompleteListener import com.googl...
import { IUserSchema } from 'entities/User'; import { ILoginSchema } from 'features/AuthByUsername'; import { AnyAction, CombinedState, EnhancedStore, Reducer, ReducersMapObject, } from '@reduxjs/toolkit'; import { IProfileSchema } from 'entities/Profile'; import { AxiosInstance } from 'axios'; import { To } from '...
// set up vuetify with theme and icons // Vuetify import "vuetify/styles"; import { ThemeDefinition, createVuetify } from "vuetify"; import * as components from "vuetify/components"; import * as directives from "vuetify/directives"; import { fa } from "vuetify/iconsets/fa"; import { aliases, mdi } from "vuetify/lib/ico...
import "./App.css"; import { useState, useEffect, useRef } from "react"; import axios from "axios"; import { uniq } from "lodash"; const url = `http://127.0.0.1:8000/game`; function App() { const [selectedAgent, setSelectedAgent] = useState("0"); const [goldCoins, setGoldCoins] = useState([]); const [agentImage,...