text
stringlengths
184
4.48M
import { useEffect, useState } from 'react'; import { loadMapApi } from '../../../utils/GoogleMapsUtils'; import './Main.scss'; import Map from '../../small-parts/Main/Map'; import Products from '../../small-parts/Main/Products'; import Events from '../../small-parts/Main/Events'; const Main = () => { const [scriptL...
var pokémon = [ { "id": 1, "name": "Bulbasaur", "types": ["poison", "grass"] }, { "id": 5, "name": "Charmeleon", "types": ["fire"] }, { "id": 9, "name": "Blastoise", "types": ["water"] }, { "id": 12, "name": "Butterfree", "types": ["bug", "flying"] }, { "id": 16, "name": "Pidgey", "types": ["normal"...
#include "main.h" #include <stdlib.h> /** * str_concat - concatenates two strings * With return pointer to the newly allocated * memory with the new string * @s1: the first string * @s2: the second string * Return: new combined string or null on failure */ char *str_concat(char *s1, char *s2) { int length1 = ...
#include <stdio.h> #include <string.h> #include <stdbool.h> #include <stdlib.h> /* Example grammar used: E -> E + E E -> E * E E -> (E) E -> id */ // Enter the left hand side of the grammar as an array of characters starting with the starting symbol. char grammar_lhs[] = {'E', 'E', 'E', 'E'}; // Enter the right...
package ui import ( "Golang-Calculator/calculator" "bufio" "errors" "fmt" "os" "strconv" "strings" ) // Array operasi kalkulator beserta namanya // Di buat demikian agar switch case bisa dipersingkat var calcFunc = []calculator.CalculatorFunction{ {Title: "Addition", Function: calculator.Addition}, {Title: "...
from typing import List, Tuple from aiohttp import ClientSession from forestadmin.datasource_toolkit.context.collection_context import CollectionCustomizationContext from forestadmin.datasource_toolkit.decorators.computed.types import ComputedDefinition from forestadmin.datasource_toolkit.interfaces.fields import Oper...
import { createSlice, PayloadAction } from "@reduxjs/toolkit"; import { RootState } from "../../store"; interface TitleBarState { user: string; } const initialState: TitleBarState = { user: "", }; const slice = createSlice({ name: "titleBar", initialState, reducers: { setUser: (state, action: PayloadAc...
<?php namespace App\Http\Controllers\Webpage; use App\Http\Controllers\Controller; use Illuminate\Http\Response; use Illuminate\Http\RedirectResponse; use Illuminate\Support\Facades\Storage; use App\Models\QAAC; use App\Http\Requests\QAAC\StoreRequest; use App\Http\Requests\QAAC\UpdateRequest; use Illuminate\Http\R...
using System.Security.Claims; using Microsoft.AspNetCore.Identity; using Microsoft.EntityFrameworkCore; using SSSKLv2.Components.Account; using SSSKLv2.Data.DAL.Exceptions; using SSSKLv2.Data.DAL.Interfaces; namespace SSSKLv2.Data.DAL; public class TopUpRepository( IDbContextFactory<ApplicationDbContext> _dbConte...
defmodule ToiaWeb.ConversationLogController do use ToiaWeb, :controller alias Toia.ConversationsLogs alias Toia.ConversationsLogs.ConversationLog action_fallback ToiaWeb.FallbackController def index(conn, _params) do conversations_log = ConversationsLogs.list_conversations_log() render(conn, :index...
<?php namespace App\Mail; use App\Models\User; use Illuminate\Bus\Queueable; use Illuminate\Mail\Mailable; use Illuminate\Mail\Mailables\Content; use Illuminate\Queue\SerializesModels; use Illuminate\Mail\Mailables\Envelope; use Illuminate\Contracts\Queue\ShouldQueue; class WelcomeEmail extends Mailable { use Qu...
import sql from "mssql"; import conf from "../db-conf"; type Comparison = "=" | "<" | ">" | "<=" | ">=" | "<>" | "!=" | "LIKE" | "NOT LIKE" | "IN" | "NOT IN" | "BETWEEN" | "NOT BETWEEN" | "IS" | "IS NOT"; export default class DB<T> { _query = ""; _model = DB; constructor(model: any) { this._query = ""; ...
import React, { useState, useEffect, useContext } from 'react'; import { MainContext } from '../context.js'; import CharacterModal from './CharacterModal.js'; import { checkRowDecrease } from './HandleTeamsContainerHeightAndGrids.js'; const UniqueCharacters = ({ character }) => { const { name, inFriendlyParty, inEne...
import { setupSequelize } from "../../../../@seedwork/infra/db/testing/helpers/db"; import { DataType, Sequelize } from "sequelize-typescript"; import { CategorySequelize } from "./category-sequelize"; describe("Category unit test", () => { setupSequelize({ models: [CategorySequelize.CategoryModel] }); test("mapp...
/******************************************************************************* * SPDX-License-Identifier: EUPL-1.2 * Copyright Regione Piemonte - 2020 ******************************************************************************/ package it.csi.conam.conambl.integration.mapper.entity.impl; import it.csi.conam.co...
package com.boyumi.yumitianqi; import java.io.BufferedReader; import java.io.InputStream; import java.io.InputStreamReader; import java.net.HttpURLConnection; import java.net.URL; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import org.apache.http.HttpResponse; im...
import React from 'react'; import style from './Team.module.scss'; import Title from '@/app/components/Title/Title'; import Image from 'next/image'; import useMockData from '@/app/hooks/useMockData'; function Member({ member }: { member: MemberT }) { return ( <div className={style.member}> <Image c...
import 'package:codelingo/Screens/Select_Course_Screen/components/Course_Select_Appbar.dart'; import 'package:codelingo/Screens/home.dart'; import 'package:codelingo/Screens/home_screen/home_screen.dart'; import 'package:flutter/material.dart'; class CourseSelectTypePage extends StatefulWidget { @override _Course...
package admin import ( "context" "fmt" "github.com/MamushevArup/typeracer/internal/models" "github.com/google/uuid" "time" ) func (s *service) ApproveContent(ctx context.Context, modId string) error { if modId == "" { return fmt.Errorf("moderation id is empty") } modUUID, err := uuid.Parse(modId) if err !=...
// ignore_for_file: library_private_types_in_public_api, avoid_print import 'package:camera/camera.dart'; import 'package:flutter/material.dart'; import 'package:get/get.dart'; import 'scan_controller.dart'; import 'sensor_info.dart'; import 'speech_menu.dart'; late List<CameraDescription> cameras; Future<Null> mai...
from typing import overload import pandas as pd # from src.ix.bt.asset import Asset from src.ix.core import StandardScaler, to_log_return, to_pri_return class Signal: normalize_window: int = 200 def __init__(self) -> None: self.signal = self.compute() def compute(self) -> pd.Series: ra...
import 'package:flutter/material.dart'; import 'package:flutter/src/widgets/container.dart'; import 'package:flutter/src/widgets/framework.dart'; import 'package:provider/provider.dart'; import 'package:shop_application/provider/product.dart'; import 'package:shop_application/provider/products.dart'; class EditProduct...
<template> <div class="list-group" style="width: 70%;"> <!-- <p>this is online_test component</p>--> <test_problem class="list-group-item" style="border-left:none;border-right:none" v-for = "(prob,index) in probList" :title = "prob.title" :options = "pr...
package problem1; import java.util.Scanner; public class SolutionHM { static StringBuilder sb = new StringBuilder(); // 이동 순서가 담길 배열 static int count = 0; // 이동 횟수 public static void main(String[] args) { Scanner sc = new Scanner(System.in); int num = sc.nextInt(); hanoi(num, 1, 2,...
import * as vscode from "vscode"; import { TextDecoder, TextEncoder } from "util"; import { CANNOT_READ_FILE_ERROR, CANNOT_WRITE_FILE_ERROR, FILE_IS_NOT_UTF8_ERROR, } from "./constants"; const os = globalThis?.process?.platform, seemsLikeAbsoluteFilePath = os === "win32" ? (value: string) => /^([/\\]|[A-Z...
/*Multi-threading programming using c*/ #include<stdio.h> #include<pthread.h> #define NUM_THREADS 5 void *threadFunction(void *arg) { int threadNumber=*(int *)arg; printf("Thread %d is running \n",threadNumber); return NULL; } int main() { pthread_t threads[NUM_THREADS]; int t...
## Scroll #### Scroll无法滚动 Scroll内部需添加一个Column 容器组件,否则Item会全屏显示 Scroll内部的Column不能设置高度,否则无法滚动 ``` Scroll(this.scroller){ Column(){ ForEach(this.arr,(item:number,index)=>{ Text("数据:"+item) .height('30%') .width('30%') .borderWidt...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Illuminate\Http\RedirectResponse; use App\Models\Siswa; use App\Models\Kelas; use Illuminate\Support\Str; class SiswaController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> </head> <body ng-app="myApp"> <!-- <div ng-app="myApp" ng-controller="myCtrl"> ...
/* * This file is part of the ONT API. * The contents of this file are subject to the LGPL License, Version 3.0. * Copyright (c) 2023, owl.cs group. * * 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 Founda...
<p>اینم یه تجربه پراکنده دیگه!</p> <p>خب الان که من فرصت نوشتن بیشتر دارم تصمیم گرفتم یکم در مورد <a href="https://www.gerritcodereview.com/">gerrit</a> بنویسم. توی هر شرکتی معمولا یه چیزی به اسم «چرخه حیات توسعه نرم افزار» وجود داره که آدم‌ها ازش بصورت آگاهانه یا به وسیله اونچیزی که فرهنگ اون تیم یا گروه دیکته میکنه ...
import { Button, Modal, ModalHeader, ModalBody, Form, FormGroup, Label, Input, } from "reactstrap"; import { v4 as uuidv4 } from "uuid"; import { useContext, useState } from "react"; import { observer } from "mobx-react-lite"; import ItemStore from "../store"; function ItemModel() { const itemStore...
const loginForm = document.querySelector("#login-form"); const loginInput = document.querySelector("#login-form input"); const greeting = document.querySelector("#greeting"); const link = document.querySelector("a"); // 반복되는 string은 대문자로 명시해놓는다. 실수를 줄일 수 있음! const HIDDEN_CLASSNAME = "hidden"; const USERNAME_KEY = "user...
import Block from './block'; import Collider from './collider'; import Game from './game'; import Input from './input'; import Item, { ItemType, ItemTypeEnum } from './item'; import UI from './ui'; import { distance, lerp } from './utils'; export type Inventory = { [key in ItemTypeEnum]?: number }; export default cla...
import React, {useEffect} from 'react'; import { styled } from '@mui/material/styles'; import Button from '@mui/material/Button'; import DialogActions from '@mui/material/DialogActions'; import DialogContent from '@mui/material/DialogContent'; import DialogTitle from '@mui/material/DialogTitle'; import List from '@mui/...
using BDMS.Models; using CsvHelper; using CsvHelper.Configuration.Attributes; using NetTopologySuite.Utilities; namespace BDMS.BoreholeGeometry; /// <summary> /// Accepts a CSV file where every data point has a Pitch, Roll and Yaw angle. /// </summary> internal sealed class PitchRollFormat : IBoreholeGeometryFormat ...
import express, { NextFunction } from 'express'; import bodyParser from 'body-parser'; import {Application, Request, Response} from 'express'; import { userRouter } from './routers/userRouter'; import { reimbursementRouter } from './routers/reimbursementRouter'; import { loggingMiddleware } from './middleware/loggingMi...
Building Aseba Requierements & Dependencies ---------------------------- Aseba requires a C++17 compatible compiler. We recommend ``GCC 8``, ``Clang 8`` or ``MSVC 19`` (Visual Studio 2019). Aseba depends on Qt5.12 or greater. You will also need ``cmake`` 3.14 or greater, we recommend you use the latest version ava...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Flot Examples</title> <link href="layout.css" rel="stylesheet" type="text/css"> <!--[if lte IE 8]><script langu...
<?php namespace App\Http\Controllers\Api; use App\Http\Controllers\Controller; use App\Models\AdminNotification; use App\Models\Deposit; use App\Models\GeneralSetting; use App\Models\Transaction; use App\Models\WithdrawMethod; use App\Models\Withdrawal; use App\Rules\FileTypeValidate; use Exception; use Illuminate\Ht...
--- title: How to fix iCloud lock from your Apple iPhone SE and iPad date: 2024-05-19T06:51:55.475Z updated: 2024-05-20T06:51:55.475Z tags: - unlock - bypass activation lock categories: - ios - iphone description: This article describes How to fix iCloud lock from your Apple iPhone SE and iPad excerpt: This ar...
/* -*- c++ -*- */ /* * Copyright 2021 Free Software Foundation, Inc. * * This file is part of VOLK * * SPDX-License-Identifier: LGPL-3.0-or-later */ /*! * \page volk_32fc_index_min_32u * * \b Overview * * Returns Argmin_i mag(x[i]). Finds and returns the index which contains the * minimum magnitude for com...
# REGRESIONES LINEALES de una variable data(cars) data plot(cars$speed,cars$dist) modelo <- lm(dist ~ speed, data = cars) summary(modelo) abline(modelo$coefficients[1], modelo$coefficients[2], col="red") # Predicción predict(modelo, data.frame(speed=100)) # Error cometido RMSE RMSE <- function(error){ sqrt(mean(e...
.. _quickstart/Animation: Animations with Dojo :Status: Draft :Version: 1.0 .. contents:: :depth: 2 Dojo provides several layers of Animation helpers, starting with Base Dojo (dojo.js), and adding in levels of incremental additions through the module system. All Animations in Dojo revolve around a single class...
#define USECHRONO #include <cassert> #include <climits> #include <cstdlib> #include <stack> #include <map> #include <numeric> #include "eval.hpp" using namespace aed; using namespace std; /* COMIENZO DE DESCRIPCION __USE_WIKI__ #sum_sublist:# Implemente la funcion que dada una lista de enteros #L# y un ent...
package days.year2023 import days.Day import kotlin.math.* fun main() { println(Day7().solve()) } class Day7 : Day(7, 2023) { fun solve(): Any { return inputList.map { getBestVersion(it) } .sortedWith(::customSortingFunction) .mapIndexed { i, it -> ...
const express = require('express'); const cookie = require('cookie-parser') const userOTP = require('../database/models/userOTP') const generateOTP= require('../utils/generateOTP') const router = express.Router(); const ErrorHandler = require("../utils/ErrorHandler"); const sendMail = require("../utils/mail"); const se...
# Use Case: Shopify Integration with Freshdesk - [Use Case: Shopify Integration with Freshdesk](#use-case-shopify-integration-with-freshdesk) - [Problem Statement](#problem-statement) - [Solution Overview](#solution-overview) - [Implementation Steps](#implementation-steps) - [Wireframe](#wireframe) - [Benefi...
import cv2 import numpy as np import tensorflow as tf from keras.preprocessing.image import ImageDataGenerator # Cargar el modelo entrenado model = tf.keras.models.load_model('Entrenamientos/CNN_Modelo8.h5') # Abrir el archivo .mp4 video_path = 'Videos/Arma.mp4' cap = cv2.VideoCapture(video_path) # Crear el generado...
<!DOCTYPE html> <html lang="ru"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> <link href="https://fonts.googleapis.com/css2?family=Raleway:wght@700&family=Roboto:wght@500;700;900&display=swap" rel="stylesheet"/> <link r...
<!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>filters</title> <script type="text/javascript" src='js/vue.js'></script> <script> window.onload =...
using System.ComponentModel.DataAnnotations; namespace LeaveManagementWeb.Models { public class EmployeeListVM { public string Id { get; set; } [Display(Name = "First Name")] public string Firstname { get; set; } [Display(Name = "Last Name")] public string Lastname { ge...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="author" content="Stark"> <meta name="keywords" content="cars, automobiles, history, technology"> <meta name="description" content="Exploring the evolution of automobiles"> <meta name="viewport" content="width=device-width, in...
# Atividade 6 - Implemente o perceptron para identificar portas lógicas AND, NAND, OR e XOR. # Importings import numpy as np import os from time import sleep from tqdm import tqdm # Logic Gates truth tables # AND Gate - 0 0 = 0, 0 1 = 0, 1 0 = 0, 1 1 = 1 # NAND Gate - 0 0 = 1, 0 1 = 1, 1 0 = 1, 1 1 = 0 # OR Gate - 0 ...
import * as child_process from "child_process"; import { Component } from "projen"; import { NodeProject } from "projen/lib/javascript"; import * as shell from "shelljs"; import "shelljs-plugin-authors"; import { DeepRequired } from "../util/deep-required"; import { Dynamic, resolve } from "../util/dynamic"; import { E...
code 1) public class Multithread1 extends Thread { public void run() { try { System.out.println("thread is executing now........"); } catch (Exception e) { } } public static void main(String[] args) { Multithread1 m1 = new Multithread1(); m1.start(); m1.start(); } } Output: thread is executing now......
/* Copyright 2008, 2009 (C) Nicira, Inc. * * This file is part of NOX. * * NOX 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 version. ...
import React, {useState} from 'react'; import {Box, CircularProgress, useMediaQuery, Typography} from '@mui/material'; import { useSelector } from 'react-redux'; import { useGetMoviesQuery } from '../../services/TMDB'; import { MovieList, Pagination, FeaturedMovie } from '..'; const Movies = () => { const [page, se...
{% extends 'base.html' %} {% load static %} {% block content %} <section class="section-content padding-y bg"> <div class="container"> <div class="card"> <div class="row no-gutters"> <aside class="col-md-6"> <article class="gallery-wrap"> <div class="img-big-wrap mainImage">...
import React, { memo, useMemo } from "react"; import { TouchableOpacity, View } from "react-native"; import { useNavigation } from "@react-navigation/native"; import moment from "moment"; import Config from "react-native-config"; import FastImage from "react-native-fast-image"; import { useTheme } from "react-native-p...
<?php declare(strict_types=1); namespace App\Entity; use App\Repository\CurrencyRepository; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Doctrine\ORM\Mapping as ORM; #[ORM\Entity(repositoryClass: CurrencyRepository::class)] class Currency { #[ORM\Id] #[ORM...
#!/usr/bin/python3 ''' module to check if the object is an instance of a class that inherited (directly or indirectly) from the specified class ''' def inherits_from(obj, a_class): """ Args: obj: The object to be checked. a_class: The class to compare the object with. Returns: bool: T...
const userModel = require("../models/userModel"); const bcrypt = require('bcrypt'); //get all users exports.getAllUsers = async (req, res) => { try { const users = await userModel.find({}); return res.status(200).send({ userCount: users.length, success: true, message: ...
import React, { useState, useEffect } from 'react'; import { Link } from 'react-router-dom'; import './Quiz.css'; function Quiz({ quizData }) { const [selectedAnswer, setSelectedAnswer] = useState(null); const [message, setMessage] = useState(''); const [currentQuestionIndex, setCurrentQuestionIndex] = useState(...
import { useEffect } from 'react'; import WorkoutForm from './workoutForm'; import WorkoutWidget from './workoutWidget'; // create a new workouts and set it in the given workouts state function createNewWorkout( workoutCounter, setWorkoutCounter, workouts, setWorkouts, setHighlightWorkout ) { // create new ...
/* Using WaitGroup for goroutine synchronization */ /* Modify the below to execute the f2 concurrently */ package main import ( "fmt" "sync" "time" ) func main() { wg := &sync.WaitGroup{} wg.Add(1) // increment the wg counter by 1 go f1(wg) wg.Add(1) // increment the wg counter by 1 go f2(wg) wg.Wait() /...
const Joi = require("joi"); const { User } = require("../Models"); const APIError = require("../util/APIError"); const bcrypt = require('bcrypt'); const BCRYPT_SALT = Number(process.env.BCRYPT_SALT); const controllers = {}; controllers.getUserData = async (userId) => { const data = await User.findById(userId, {pa...
<?xml version="1.0" encoding="UTF-8"?> <!-- /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ --> <tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd"> <test name="AdminMoveCa...
module; #include <vector> #include <span> #include "DxDef.h" export module Brawler.D3D12.GPUBarrierGroup; import Brawler.D3D12.GPUSplitBarrierToken; import Brawler.D3D12.GPUResourceHandle; export namespace Brawler { namespace D3D12 { class GPUBarrierGroup { public: GPUBarrierGroup() = default; GPUBarri...
package edu.shily.demo /** * 1.Groovy使用def定义属性、方法,def支持动态类型声明 * 2.单行注释// 多行注释/** * 3.groovy语句最后面的分号可以省略 * 4.groovy可以自动为属性生成getter、setter方法 * 5.方法声明时:参数类型、返回值类型、return关键字可以省略,在不引起歧义的地方()括号可以省略 * 6.变量引用时:在不引起歧义的前提下{}大括号也可以省略 * 7.对象属性赋值: * 方式1:对象.属性名= * 方式2:对象["属性名"]= * 方式3:对象.属性setter方法() * ...
package miniboxing.test.scalatests.unrelevant import org.scalatest.FunSuite /** * Checks the behavior of the actual Scala {@link HashMap}. * */ class HashMapScalaTest extends FunSuite { test("Immutable HashMap: map function") { def rec0(hashmap: scala.collection.immutable.HashMap[Int,String], i: Int): scal...
import styled from "styled-components"; import { Search } from "../features/Search/Search"; import { CustomSelect } from "./CustomSelect"; import { setSelect } from "../features/Select/select-slice"; import { useSelector } from "react-redux"; import { selectSelect } from "features/Select/select-selectors"; import { us...
= 查找资产信息 :imagesdir:./_images Exchange可帮助您找到资产。您可以搜索资产,单击所有类型以筛选特定资产,或合并搜索 带有所有类型过滤器的文本。 == 关于所有类型的过滤器 * 连接器 - 与使用第三方API和标准集成协议在Anypoint Platform上开发和部署的端点的打包连接。 * 模板 - 打包的集成模式,用于解决常见用例,并建立在最佳实践基础之上。您可以添加您的信息以完成模板的用例或解决方案。 * 示例 - 准备在Anypoint Studio中运行的应用程序,并演示一个用例或解决方案。 * REST API - RAML或OAS API规范。 * SOAP API - ...
// // This file is part of the Marble Virtual Globe. // // This program is free software licensed under the GNU LGPL. You can // find a copy of this license in LICENSE.txt in the top directory of // the source code. // // Copyright 2015 Marius-Valeriu Stanciu <stanciumarius94@gmail.com> // #ifndef MARBLE_OSMPLACEMA...
/* Copyright © 2013 Adobe Systems Incorporated. Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing...
function solve() { class Furniture { constructor(name, img, price, decFactor) { this.name = name, this.img = img, this.price = price, this.decFactor = decFactor } } const buttons = Array.from(document.getElementsByTagName("button")); const textAreas = Array.from(document.queryS...
import { ConflictException, ForbiddenException, Injectable, NotFoundException, } from "@nestjs/common"; import { UpdateUserDto } from "./dto/update-user.dto"; import { UsersRepository } from "./repository/users.repository"; import { MediaService } from "src/global/media/providers/media.service"; import { MediaF...
# Teacher Application Letters Generator ## Introduction and Inspiration The Teacher Application Letters Generator is a web application developed by Wisdom Edem Sena to address the recurring need among teachers in Ghana for efficient letter-writing assistance. Inspired by the frequent requests from teachers seeking su...
from client_lib import quiz_rapid from client_lib.config import HOSTED_KAFKA import base64 import requests import json # LEESAH QUIZ GAME CLIENT # 1. Change TEAM_NAME variable to your team name # 2. make sure you have downloaded and unpacked the credential files in the certs/ dir # Config ###########################...
// // SoundViewController.swift // SoundBoard // // Created by Jose Falconi on 5/20/22. // Copyright © 2022 empresa. All rights reserved. // import UIKit import AVFoundation class SoundViewController: UIViewController { @IBOutlet weak var grabarButton: UIButton! @IBOutlet weak var reproducirButton: UIBut...
<?php namespace App\Livewire; use Livewire\Component; use App\Models\Profile; use App\Models\User; use Livewire\Attributes\Rule; class AddUser extends Component { public $profiles; #[Rule('required|integer', as: "Perfil")] public $profile_id; #[Rule('required|string|min:3', as: "Nome")] pub...
/** ****************************************************************************** * @file stm32f7xx_hal_uart_ex.h * @author MCD Application Team * @brief Header file of UART HAL Extended module. ****************************************************************************** * @attention * * Copyri...
// UIGuildInfo.h #pragma once #include "UIWindows.h" class CUIManager; class CUIGuildInfo; class CUIGuildMaster; extern int s_nTargetFireMemberIndex; enum GUILD_STATUS { G_NONE = (BYTE)-1, G_PERSON = 0, G_MASTER = 128, G_SUB_MASTER = 64, G_BATTLE_MASTER = 32 }; enum GUILD_TYPE { GT_NORMAL = 0x00, G...
import Cart from "../../entities/Cart"; import ToBuyBook from "../../entities/ToBuyBook"; import IPago from "../../ports/IPago"; import IPersistenciaCarrito from "../../ports/persistencia/IPersistenciaCarrito"; import IPersistenciaLibro from "../../ports/persistencia/IPersistenciaLibro"; import GestionDeLibros from ".....
{% extends 'layout/base.html' %} {% load humanize %} {% block content%} {% load static %} <style> .lead { text-decoration: none; } .lead:hover { text-decoration: underline; } </style> <div class="container"> <div class="row d-flex justify-content-center"> <div class="col-8...
package hello.servlet.domain.member; import lombok.AccessLevel; import lombok.NoArgsConstructor; import java.util.*; @NoArgsConstructor(access = AccessLevel.PRIVATE) public class MemberRepository { private static Map<Long, Member> store = new HashMap<>(); private static long sequence = 0L; private stat...
# Chapter 20 : Callback - There are 2 Parts of Callback: 1. Good Part of callback - Callbacks are super important while writing asynchronous code in JS 2. Bad Part of Callback - callbacks inside callback leads to issues like - - Callback Hell - Inversion of control - Understanding Bad part of callback...
/* * @Author: Carlos * @Date: 2023-01-16 14:11:09 * @LastEditTime: 2023-05-22 22:36:01 * @FilePath: /vite-react-swc/src/pages/blog/blog-hero/index.tsx * @Description: */ import clsx from 'clsx' import { useEffect, useLayoutEffect, useRef } from 'react' import { useSpring, animated } from '@react-spring/web' impor...
@extends('app') @section('title', 'Lista de estudantes') @section('content') <h1>Lista Estudantes</h1> <table class="table"> <thead> <tr> <th scope="col">ID</th> <th scope="col">Nome</th> <th scope="col">Cpf</th> <th scope="col"...
html { font-size: 100%; box-sizing: border-box; } *, *::before, *::after { box-sizing: inherit; } body { margin: 0; padding: 0; font-family: "Public Sans", sans-serif; font-size: $font-med; font-weight: 300; color: $grayishBlue; line-height: 1.3; &.noscroll { overflow: hidden; } @incl...
#include <condition_variable> #include <cstdlib> #include <ctime> #include <future> #include <iostream> #include <mutex> #include <string> #include <thread> std::mutex mut; std::condition_variable reporter; bool finished_1st = false; bool finished_2nd = false; bool finished_3rd = false; double arr_fill(double *nums, i...
# Copyright (c) 2023. LanceDB Developers # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed...
<template> <div class="container text-start"> <h1 class="text-primary fw-bold">Agregar Nuevo Producto</h1> <div class="card"> <div class="card-header fw-bold">Producto</div> <div class="card-body"> <form @submit.prevent="createProduct"> <div class="row mb-3"> ...
package com.benewake.system.controller; import com.alibaba.excel.EasyExcel; import com.benewake.system.entity.Result; import com.benewake.system.entity.dto.ApsDailyDataUploadDto; import com.benewake.system.entity.enums.ExcelOperationEnum; import com.benewake.system.entity.vo.*; import com.benewake.system.entity.vo.bas...
package com.example.completablefuture.completionstage; import lombok.extern.slf4j.Slf4j; import java.util.concurrent.CompletionStage; import java.util.concurrent.Executor; import java.util.concurrent.Executors; @Slf4j public class CompletionStageThenAcceptAsyncExecutorExample { public static void main(String[] a...
package cli import ( "context" "fmt" "os" "slices" "strconv" "strings" "text/tabwriter" "time" "github.com/enrichman/kubectl-epinio/pkg/epinio" "k8s.io/client-go/kubernetes" _ "embed" ) const format = "%-15s %s\n" // EpinioCLI handles the CLI commands, calling the Kubernetes API and handling the display...
"""Month table model.""" from PyQt5 import QtCore, QtGui, QtWidgets from scheduler.api.common.date_time import Date, TimeDelta from ._base_table_model import BaseTableModel class BaseMonthModel(BaseTableModel): """Base model for month table.""" def __init__( self, calendar, ...
import type { DeleteProjectMutationVariables, FindProjects, } from 'types/graphql' import { Link, routes } from '@redwoodjs/router' import { useMutation } from '@redwoodjs/web' import { toast } from '@redwoodjs/web/toast' import { QUERY } from 'src/components/Project/ProjectsCell' import { truncate } from 'src/li...
# StableDiffusionBackground Generator Welcome to the StableDiffusionBackground Generator! This tool allows you to generate detailed images based on textual prompts using the power of machine learning and the Stable Diffusion model. ## Getting Started ### Prerequisites - Git (for cloning the repository) - Anaconda (f...
local images = require("ext.images") local cache = {} local module = { keyword = "nf", useFzf = true, cache = cache, placeholder = "search for nerd fonts glyphs", tip = { text = "nf⇥ to search nerd fonts glyphs" }, } local log local nerdFontsCacher local function cacheNerdFonts() if nerdFontsCacher and c...