text stringlengths 184 4.48M |
|---|
<?php
namespace Setting\Bundle\ToolBundle\Controller;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Setting\Bundle\ToolBundle\Entity\Course;
use Setting\Bundle\ToolBundle\Form\CourseType;
/**
* Course controller.
*
*/
class CourseController extends Co... |
package com.empresa.controller;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.util.CollectionUtils;
import org.springframework.web.bind.annotation.GetMap... |
https://hackr.io/blog/microservices-interview-questions
https://hackr.io/blog/web-services-interview-questions
Q11: What is a Resource in Restful web services?
Q12: What are different HTTP Methods supported in Restful Web Services?
Q13: Mention what are the HTTP methods supported by REST?
Q14: Explain th... |
import 'dart:async';
import 'package:flutter/cupertino.dart';
import 'package:sudoo/app/base/base_bloc.dart';
import 'package:sudoo/app/model/category_callback.dart';
import 'package:sudoo/app/model/product_info_action_callback.dart';
import 'package:sudoo/app/pages/product/product_list/product_list_data_source.dart';... |
import { BrowserModule } from '@angular/platform-browser';
import { ApplicationModule, NgModule } from '@angular/core';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { HttpClientModule, HTTP_INTERCEPTORS } from '@angular/common/http';
import { RouterModule } from '@angular/router';
import {... |
window.AudioContext = window.AudioContext || window.webkitAudioContext;
var context = undefined;
var main_gain = undefined;
const note_names = [
'Do',
'Do# / Réb',
'Ré',
'Ré# / Mib',
'Mi',
'Fa',
'Fa# / Solb',
'Sol',
'Sol# / Lab',
'La',
'La# / Sib',
'Si',
];
const modes = [
{name: 'majeur', ... |
<?php
namespace App\Core\Models;
use App\Core\Application;
use App\Core\Contracts\UserInterface;
use App\Core\Models\Enum\ValidationRule;
use App\Core\Models\Traits\Validation;
use DateTime;
use Exception;
use PDO;
class User extends Model implements UserInterface
{
use Validation;
public int $id;
publi... |
/* This file is part of the KDE project
Copyright (C) 2004 Adam Pigg <adam@piggz.co.uk>
Copyright (C) 2006 Jaroslaw Staniek <js@iidea.pl>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Fo... |
#ifdef USE_OPENCV
#include <opencv2/core/core.hpp>
#endif // USE_OPENCV
#include <string>
#include <vector>
#include "caffe/data_transformer.hpp"
#include "caffe/util/io.hpp"
#include "caffe/util/math_functions.hpp"
#include "caffe/util/rng.hpp"
namespace caffe {
template<typename Dtype>
DataTransformer<Dtype>::Da... |
library(tidyverse)
datasourceConfirmed <- "https://github.com/CSSEGISandData/COVID-19/raw/master/csse_covid_19_data/csse_covid_19_time_series/time_series_covid19_confirmed_global.csv"
datasourceDeaths <- "https://github.com/CSSEGISandData/COVID-19/raw/master/csse_covid_19_data/csse_covid_19_time_series/time_series_cov... |
#Region "Microsoft.VisualBasic::9bfdb4a3b03181d85a66e7dc10a57910, mzkit\src\mzkit\Task\Properties\SpectrumProperty.vb"
' Author:
'
' xieguigang (gg.xie@bionovogene.com, BioNovoGene Co., LTD.)
'
' Copyright (c) 2018 gg.xie@bionovogene.com, BioNovoGene Co., LTD.
'
'
' MIT Licen... |
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle 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.
//
// Moodle ... |
// --- Directions
// Write a function that accepts a positive number N.
// The function should console log a step shape
// with N levels using the # character. Make sure the
// step has spaces on the right hand side!
// --- Examples
// steps(2)
// '# '
// '##'
// steps(3)
// '# '
// '## '
... |
<?php
namespace Database\Seeders;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
use Spatie\Permission\Models\Role;
use Spatie\Permission\Models\Permission;
class RolesSedeer extends Seeder
{
/**
* Run the database seeds.
*/
public function run(): void
... |
/* Lattice Boltzmann sample, written in C++, using the OpenLB
* library
*
* Copyright (C) 2018 Robin Trunk
* E-mail contact: info@openlb.net
* The most recent release of OpenLB can be downloaded at
* <http://www.openlb.net/>
*
* This program is free software; you can redistribute it and/or
* modify it ... |
<template>
<b-card>
<!-- filter -->
<div v-if="loading" class="text-center mt-4">
<b-spinner label="Loading..."></b-spinner>
</div>
<div class="col-12 mt-16">
<div>
<b-row class="align-items-center">
<b-col lg="6" class="my-1">
<b-form-group label="" label-fo... |
import 'package:fl_chart/fl_chart.dart';
import 'package:flutter/material.dart';
import 'package:flutter_svg/flutter_svg.dart';
import 'package:nysse_asemanaytto/core/components/layout.dart';
import 'package:nysse_asemanaytto/embeds/embeds.dart';
import './electricity_production_embed_settings.dart';
import '_electrici... |
package no.elg.hex.screens
import com.badlogic.gdx.Gdx
import no.elg.hex.Hex
import no.elg.hex.event.HexagonChangedTeamEvent
import no.elg.hex.event.HexagonVisibilityChanged
import no.elg.hex.event.SimpleEventListener
import no.elg.hex.input.BasicIslandInputProcessor
import no.elg.hex.input.BasicIslandInputProcessor.C... |
from pydantic import BaseSettings
class Settings(BaseSettings):
PROJECT_NAME: str
SECRET_KEY: str
DEBUG: str
ALLOWED_HOSTS: list[str] = ["http://localhost", "http://127.0.0.1"]
DOCS_URL: str | None = None
OPENAPI_URL: str | None = None
REDOC_URL: str | None = None
class Config:
... |
using System;
using System.Collections.Generic;
using Unity.XR.CoreUtils;
using UnityEngine;
using UnityEngine.Events;
using UnityEngine.InputSystem;
using UnityEngine.XR.ARFoundation;
using UnityEngine.XR.Interaction.Toolkit;
namespace com.perceptlab.armultiplayer
{
public class AlignTheWorld : MonoBehaviour
... |
package tp1;
import java.util.Iterator;
public class MySimpleLinkedList implements Iterable<Integer>{
private Node first;
private int size;
public MySimpleLinkedList() {
this.first = null;
this.size = 0;
}
public void insertFront(int info) {
Node tmp = new Node(info,null);
tmp.setNext(this.first);
... |
const express = require('express');
const cors = require('cors');
const { default: mongoose } = require('mongoose');
const bcrypt = require('bcryptjs');
const jwt = require('jsonwebtoken');
const cookieParser = require('cookie-parser');
const User = require('./models/User.js');
require('dotenv').config();
const app =... |
document.addEventListener('DOMContentLoaded', function () {
const recipeContainer = document.getElementById('recipes');
const searchForm = document.getElementById('searchForm');
const closeButton = document.querySelector('.recipe-modal-close');
const recipeModal = document.getElementById('recipe-modal')... |
#include "glad.h"
#include <vector>
#include "Shader.h"
#include "Debug.h"
#include "File.h"
static Debugger *debug = new Debugger("Shader", DEBUG_ALL);
Shader::Shader(){
};
void Shader::CreateComputeShader(const char* comp_path){
debug->Info("Load and compile: %s ...\n",comp_path);
size_t comp_data_sz = 0;
uint... |
import React, { lazy, Suspense } from 'react';
import { Route, BrowserRouter as Router, Switch } from 'react-router-dom';
import './App.scss';
import { Nav } from './nav/nav';
import { Loading } from './loading/loading';
import { Footer } from './footer/footer';
function RouteWithSubRoutes(route) {
return (
<Rou... |
import action from "../../assets/action.png";
import drama from "../../assets/drama.png";
import fantasy from "../../assets/fantasy.png";
import fiction from "../../assets/fiction.png";
import horror from "../../assets/horror.png";
import music from "../../assets/music.png";
import romance from "../../assets/romance.pn... |
using System.Text.Json;
using FluentAssertions;
using NSubstitute;
using RichardSzalay.MockHttp;
using Taxjar;
using Taxjar.Tests.Infrastructure;
using Taxjar.Tests.Fixtures;
using Microsoft.Extensions.Options;
namespace TaxJar.Tests;
public class Transactions
{
protected IHttpClientFactory httpClientFactory;
... |
import {
AfterContentInit,
Component,
ContentChildren,
ElementRef,
EventEmitter,
Inject,
Input,
Output,
PLATFORM_ID,
Renderer2,
ViewChild,
ViewEncapsulation,
QueryList,
OnDestroy,
} from '@angular/core';
import { MdbOptionComponent, MDB_OPTION_PARENT } from './mdb-option.component';
import {... |
package kr.or.ddit.basic;
import java.io.IOException;
import java.io.Reader;
import java.nio.charset.Charset;
import java.util.List;
import org.apache.ibatis.io.Resources;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;
import org.apache.ibatis.session.SqlSessionFactor... |
package com.example.mkt.service;
import com.example.mkt.dto.product.ProductInputDTO;
import com.example.mkt.dto.product.ProductOutputDTO;
import com.example.mkt.dto.product.ProductUpdateDTO;
import com.example.mkt.entity.ProductEntity;
import com.example.mkt.exceptions.EntitiesNotFoundException;
import com.example.mkt... |
package com.xiaoma1.one.exer3;
import java.util.Scanner;
/**
* ClassName: ArrayExer3_1
* Description:
* 从键盘读入学生成绩,找出最高分,并输出学生成绩等级。
* 成绩>=最高分-10 等级为’A’
* 成绩>=最高分-20 等级为’B’
* 成绩>=最高分-30 等级为’C’
* 其余 等级为’D’
* 提示:先读入学生人数,根据人数创建
* @Author Mabuyao
* @Create 2023/7/28 14:36
* @Version 1.0
*/
public ... |
package com.example.parksproject.service;
import com.example.parksproject.domain.User;
import com.example.parksproject.payload.CreatedStudyResponse;
import com.example.parksproject.payload.InfoResponse;
import com.example.parksproject.payload.MyStudyResponse;
import com.example.parksproject.payload.UserResponse;
impor... |
<!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>Document</title>
<script src="node_modules/vue/dist/vue.js"></script>
<style>
* {
... |
import { useState } from 'react';
import Card from './shared/Card';
import Button from './shared/Button';
function FeedbackForm() {
const [text, setText] = useState('');
const [btnDisabled, setBtnDisabled] = useState(true);
const [message, setMessage] = useState('');
const handleTextChange = (e) => {
if (... |
import cx from 'classnames';
import React from 'react';
import { Caption } from '#components/typography/Caption';
import styles from './index.module.scss';
interface Props extends React.HTMLAttributes<HTMLButtonElement> {
disabled?: boolean;
infotext?: string;
selected?: boolean;
}
export function RoundedGlas... |
%% sys id
clear
% here we are going to estimate two system parameters (mass and offset)
% from data (we are going to create this data)
%% data creation
mass = 4;
offset = 0.1;
p_true = [mass;offset]; % these are the truth values
% simulate dynamics with true values
dt = 0.5;
N = 10;
X = zeros(4,N);
U = zeros(2... |
import React from 'react';
import clsx from 'clsx';
import Link from '@docusaurus/Link';
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
import Layout from '@theme/Layout';
import Translate, {translate} from '@docusaurus/Translate';
import styles from './index.module.css';
function HomepageHeader(... |
!
!------------------------------------------------------------------------------
! Author : Vikas sharma
! Position : Doctral Student
! Institute : Kyoto Univeristy, Japan
! Program name: Addition.part
! Last Up... |
import { checkFieldAndPost } from '../functions/checkFieldsAndPost.js';
import { selectDoctorListener } from '../functions/selectDoctorListener.js';
export class ModalCreate {
constructor() {
this.body = document.querySelector('body');
this.modalBackground = document.createElement('div');
this.container ... |
import dotenv from "dotenv";
import express, { json, urlencoded } from "express";
import cors from "cors";
import { createServer } from "http";
import { Server } from "socket.io";
import router from "./routes/index.js";
import { placeBid } from "./controllers/bidController.js";
dotenv.config();
const app = express();
... |
import {
Folder,
LogoMarkdown,
FileTraySharp,
LogoHtml5,
LogoCss3,
LogoWindows,
} from '@vicons/ionicons5';
import {
DocumentTextExtract20Regular,
DocumentChevronDouble20Regular,
DocumentJavascript20Regular,
DocumentPercent20Regular,
DocumentPdf32Filled,
DocumentBulletList20Regular,
MusicNote2... |
/*******************************************************************************
* May 2022
** PUBLIC-USE LINKED MORTALITY FOLLOW-UP THROUGH DECEMBER 31, 2019 **
* The following Stata code can be used to read the fixed-width format ASCII
* public-use Linked Mortality Files (LMFs) from a stored location into a
* St... |
<template>
<div>
<h1>Registration Form</h1>
<form @submit.prevent="register">
<div>
<label for="nama">Nama:</label>
<input type="text" id="nama" v-model="nama" required>
</div>
<div>
<label for="email">Email:</label>
<input type="email" id="email" v-model="ema... |
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { PageNotFoundComponent } from './modules/shared/page-not-found/page-not-found.component';
const routes: Routes = [
{
path: '',
pathMatch: 'full',
loadChildren: () =>
import('./modules/splash/sp... |
"use client";
import UploadFileButton from "@/app/components/File/UploadFileButton";
import UploadUrlItem from "@/app/components/Urls/UploadUrlItem";
import { useSession } from "next-auth/react";
import { redirect, useSearchParams } from "next/navigation";
import React, { useEffect, useLayoutEffect, useState } from "re... |
import React, { useState } from "react";
import { useHistory } from "react-router-dom";
import { styled, alpha } from "@mui/material/styles";
import AppBar from "@mui/material/AppBar";
import Box from "@mui/material/Box";
import Toolbar from "@mui/material/Toolbar";
import IconButton from "@mui/material/IconButton";
i... |
package com.example.exercise04
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.example.exercise04.databinding.ActivityProductAddBinding
class ProductAddActivity : AppCompatActivity() {
lateinit var binding: ActivityProductAddBinding
override fun onCreate(savedInstanceState:... |
package com.example.snwbackend.controller;
import com.example.snwbackend.request.ContactRequest;
import com.example.snwbackend.request.UpsertConversationRequest;
import com.example.snwbackend.service.ChatService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus... |
//const canvas = document.getElemenyById("myc");
let canvas = document.getElementById("mycanvas")
const app = new PIXI.Application({
backgroundColor: 0x1099bb,
view: canvas,
width: window.innerWidth,
height: window.innerHeight,
});
// Below App Function
let loader = PIXI.Loader.shared;
let player, enemy, ball;... |
/*
* Copyright (C) 2017 Google Inc.
*
* 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 agree... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Grafico Chart</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.3/Chart.js"></script>
</head>
<body>
<canvas id="myChart" widt... |
import java.io.File;
import java.io.FileNotFoundException;
import java.util.Scanner;
import java.util.ArrayList;
import java.util.InputMismatchException;
/*
* Purpose: Contains the maian method, reads .txt files to import data,
* interprets data, creates a Party object, and hosts menu.
*/
/**
* Tester.java
* Au... |
package get_requests;
import base_urls.JsonPlaceHolderBaseUrlK;
import io.restassured.response.Response;
import org.junit.Test;
import static io.restassured.RestAssured.given;
import static org.hamcrest.Matchers.equalTo;
public class Get08K extends JsonPlaceHolderBaseUrlK {
//De-Serialization: Json datayı Java ... |
import os
import random
from collections import defaultdict
import numpy as np
import pandas as pd
import torch
from torch.utils.data import DataLoader
from embeding_dataset import CustomDataset
from model import H14_NSFW_Detector
train_ratio = 0.7
label_ind_dict = {'drawings': 0, 'hentai': 1, 'neutral': 2, 'porn': 3,... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Promise</title>
</head>
<body>
<label for="zip">Zip Code:</label>
<input type="number" id="zip" /> <!-- 創建可以給使用者輸入的地方, type 是輸入類型-->
<button id="btnGetInf... |
/*
Two phrases are anagrams if they are permutations of each other, ignoring spaces and capitalization. For example, "Aaagmnrs" is an anagram of "anagrams", and "TopCoder" is an anagram of "Drop Cote". Given a String[] phrases, remove each phrase that is an anagram of an earlier phrase, and return the remaining phrases... |
import { PrismaService } from './../prisma/prisma.service';
import { Injectable, NotFoundException } from '@nestjs/common';
import { HomeResponseDto, UpdateHomeDto } from './dto/home.dto';
import { PropertyType } from '@prisma/client';
interface GetHomeParams {
city?: string;
price?: {
gte?: number;
lte?: ... |
---
title: जावा का उपयोग करके XMP में नामांकित मान जोड़ें
linktitle: जावा का उपयोग करके XMP में नामांकित मान जोड़ें
second_title: Aspose.Page जावा एपीआई
description: Aspose.Page का उपयोग करके जावा दस्तावेज़ हेरफेर में महारत हासिल करें! निर्बाध एकीकरण के लिए हमारी चरण-दर-चरण मार्गदर्शिका के साथ XMP मेटाडेटा में आसानी से... |
import React from 'react';
import PropTypes from 'prop-types';
import { useDefinedValueList } from 'hooks';
import { NotFound } from 'components';
import { Loader } from 'ui-kit';
function DefinedValueListProvider({ Component, options, ...props }) {
const { loading, error, values } = useDefinedValueList(options);
... |
<script setup>
import Footer from "@/components/Footer.vue";
import { useAccountStore } from "@/stores/account";
import { useRouter } from "vue-router";
import bootstrap from "bootstrap/dist/js/bootstrap";
const account = useAccountStore();
const router = useRouter();
function handleSubmit(event) {
event.preventDef... |
import argparse
import numpy as np
import matplotlib.pyplot as plt
np.random.seed(5927)
class KMeans():
def __init__(self, D, n_clusters):
self.n_clusters = n_clusters
self.cluster_centers = np.zeros((n_clusters, D))
def init_clusters(self, data):
### TODO
### Initialize cluster_centers using n_clusters po... |
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ObjectPoolPlayerProjectiles : MonoBehaviour
{
//Singleton
public static ObjectPoolPlayerProjectiles SharedInstance;
//Reference
[SerializeField] PlayerController _playerController;
//Event Ch... |
from django.contrib.auth.base_user import AbstractBaseUser
from django.contrib.auth.models import PermissionsMixin
from django.core import signing
from django.db import models
from utils.custom_manager import UserManager
class SystemUser(AbstractBaseUser, PermissionsMixin):
username = models.CharField(max_length... |
import {Component, OnInit} from '@angular/core';
import {ModalController, NavParams} from '@ionic/angular';
import {NzMessageService} from 'ng-zorro-antd/message';
import {VoucherPrinter} from '../../../../@core/utils/voucher-printer';
import {CheckAuth} from '../../../../@core/utils/check-auth';
@Component({
select... |
---
title: "Set up TeamViewer"
description: "Teamviewer allows to remote-control your computer to solve technical issues. Learn how to install it."
keywords: "teamviewer, software, installation, remote"
weight: 4
#date: 2020-11-11T22:02:51+05:30
draft: false
aliases:
- /get/teamviewer
- /install/teamviewer
---
## ... |
// @HEADER
// ***********************************************************************
//
// Moocho: Multi-functional Object-Oriented arCHitecture for Optimization
// Copyright (2003) Sandia Corporation
//
// Under terms of Contract DE-AC04-94AL85000, there is a non-exclusive
// license for use of thi... |
package com.joeroble.android.travelwishlist
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
interface OnListItemClickedListener{
fun onListItemClicked(place:P... |
<?php
declare(strict_types=1);
namespace App\Controller\Author;
use App\Model\Author\Entity\Author;
use App\Model\Author\UseCase\Delete\AuthorDeleteCommand;
use App\Model\Author\UseCase\Delete\AuthorDeleteHandler;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpFoundation\Request;
use Sy... |
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
import { HomeComponent } from './components/home/home.com... |
import React, { useState, useEffect } from "react";
import { db } from "../../firebase/firebase";
import SkeletonComp from "../skeleton";
import Heading from "../heading";
import Card from "../card";
const NewProducts = () => {
const [products, setProducts] = useState([]);
useEffect(() => {
const docRef = ... |
import { useEffect, useState } from 'react';
import { useMutation, useQuery } from 'react-query';
import { useNavigate } from 'react-router-dom';
import { IRoom } from '../containers/LobbyPage/components/GameList';
import { IInfo } from '../containers/LobbyPage/components/Info';
import { IUser } from '../containers/Lob... |
import { DepartmentEntity } from 'src/department/infrastructure/sql/entities/department.entity';
import {
Column,
CreateDateColumn,
Entity,
JoinColumn,
ManyToOne,
PrimaryGeneratedColumn,
UpdateDateColumn,
} from 'typeorm';
@Entity({ name: 'city' })
export class CityEntity {
@PrimaryGeneratedColumn()
... |
import { faCircleXmark, faMagnifyingGlass, faSpinner } from '@fortawesome/free-solid-svg-icons';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { useState, useEffect, useRef } from 'react';
import * as searchService from '~/Services/searchServices';
import HeadlessTippy from '@tippyjs/react/h... |
'use client';
import { useContext, useEffect } from 'react';
import {
Checkbox,
FormControl,
FormErrorMessage,
HStack,
IconButton,
Input,
useColorMode,
useToast,
} from '@chakra-ui/react';
import { yupResolver } from '@hookform/resolvers/yup';
import { useRouter } from 'next/navigation';
import { useFo... |
<?php
namespace App\Models;
// use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
use Illuminate\Support\Facades\DB;
use Laravel\Sanctum\HasApiTokens;
use Spatie\Permissi... |
@extends('layouts.app2')
@section('content')
<div class="container">
<div class="row justify-content-center">
<div class="col-md-12">
<div class="card">
<div class="card-header" style="">Cadastrar Usuário</div>
<div class="card-body">
@if(session... |
// backend/services/advertisement_service.go
package services
import (
"fmt"
"time"
"github.com/golang-jwt/jwt"
"github.com/shuttlersit/service-desk/backend/models"
"golang.org/x/crypto/bcrypt"
"gorm.io/gorm"
)
type LoginInfo struct {
Email string `json:"email"`
Password string `json:"password"`
}
// Au... |
<div>{{CSSRef}}</div>
<p>La propriété <strong><code>list-style</code></strong> est une <a href="/fr/docs/Web/CSS/Propriétés_raccourcies">propriété raccourcie</a> qui permet de définir {{cssxref("list-style-type")}}, {{cssxref("list-style-image")}} et {{cssxref("list-style-position")}}.</p>
<div>{{EmbedInteractiveExam... |
import express from "express";
import { uploadFileToMulter } from "../middleware/multer";
import { validateUser } from "../middleware/validateUser";
import { uploadFileToS3 } from "../utils/s3Buket";
import { prisma } from "../server";
const router = express.Router();
router.post(
"/upload",
validateUser,
upload... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Models\Lector;
use App\Traits\MessageTrait;
use Illuminate\Support\Facades\DB;
class LectorController extends Controller
{
use MessageTrait;
private $lector;
public function __construct(Lector $lector){
$this->lector = $... |
import React, { useState } from "react";
import Skils from "../utils/Skils";
import Container from "react-bootstrap/Container";
import Nav from "react-bootstrap/Nav";
import Navbar from "react-bootstrap/Navbar";
import NavDropdown from "react-bootstrap/NavDropdown";
import Carousel from "react-bootstrap/Carousel";
impo... |
%%
%% Copyright (C) 2010-2014 by krasnop@bellsouth.net (Alexei Krasnopolski)
%%
%% 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
%%
%% Unl... |
# Shell_Scripting
<img src='images/shell.webp' width='950' height='300'>
### **What is Shell Scripting?**
A shell script is a list of commands in a computer program that is run by the Unix shell which is a command line interpreter. A shell script usually has comments that describe the steps. The different operations... |
setClass("ulam", slots=c( call = "language",
model = "character",
#stanfit = "stanfit",
coef = "numeric",
vcov = "matrix",
data = "list",
... |
import * as fs from "fs"
import * as appdirs from "appdirs"
import * as mkdirp from "mkdirp"
import { FileSystem } from "./rx/FileSystem"
import { Observable } from "rxjs/Rx"
const APP_NAME = "Horo"
const APP_AUTHOR = "PeterCxy"
const APP_VERSION: string = require("../../package.json").version
const CONFIG_DIR = appd... |
import React from 'react'
import { useState } from 'react';
import { useNavigate } from "react-router-dom";
const SignUp = (props) => {
const [credentials, setCredentials] = useState({ name: "", email: "", password: "", cpassword: "" });
let history = useNavigate();
const { name, email, password} = credentials;
... |
<?php
namespace App\Http\Controllers;
use JavaScript;
// use Spatie\PdfToText\Pdf;
use App\Models\GeneralReport;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use App\Http\Requests\GeneralReportRequest;
use App\Http\Requests\GeneralReportUpdateRequest;
class GeneralReportController extends Contro... |
"use client";
import Heading from "@/components/Heading";
import { MessageSquare } from "lucide-react";
import { useForm } from "react-hook-form";
import * as z from "zod";
import { zodResolver } from "@hookform/resolvers/zod";
import React, { useState } from "react";
import { ConversationFormSchema } from "@/schemas"... |
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8" />
<title>入力画面</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">... |
"""Entry point for the Song Player Console Application.
The application provides a console-based user interface to manage and play songs, create and manage playlists,
adjust volume levels, and control song playback.
Author: Erik Ccanto
Date: 30 Jul 2023
"""
import os
os.environ['PYGAME_HIDE_SUPPORT_PROMPT'] = 'hid... |
# Open Latency Tester Theia (OLTT)
## Overview
OLTT (Open Latency Tester Theia) is an innovative, open-source tool inspired by Theia, the Greek goddess of sight, designed to measure input latency in various computing environments. Perfect for both End User Computing (EUC) professionals and gaming enthusiasts, OLTT co... |
package runlog
import (
"errors"
"fmt"
"io"
"log"
"os"
"strings"
)
// 日志输出级别:0:fatal 1:error 2:warn 3:info 4:debug 5:trace
type DebugLevelCtrl int32
const (
DbgFatal DebugLevelCtrl = 0
DbgError DebugLevelCtrl = 1
DbgWarn DebugLevelCtrl = 2
DbgInfo DebugLevelCtrl = 3
DbgDebug DebugLevelCtrl = 4
DbgTrace... |
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="style.css">
<style>
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');
</style>
</head>
<body>
<div class="container">
<!-- Title Section -->
<h1>Curious Gifter</h1>
<!-- Generate But... |
import { useEffect, useState } from "react";
import reactLogo from "./assets/react.svg";
import viteLogo from "/vite.svg";
import {Link} from 'react-router-dom'
import "./App.css";
import axios from "axios";
import Sekeleton from "./Components/Skeleton";
function App() {
window.document.title = "Qallam";
const [cou... |
import axios from "axios";
import { xml2json, json2xml } from "xml-js";
import * as en from "../constants/errors/en";
import * as ja from "../constants/errors/ja";
import * as Encoding from "encoding-japanese";
const sha1 = require("sha1");
/**
* @interface XMLFieldData
* @property {string} _text - XML value
*/
ex... |
import React from "react";
import Input from "../../../components/UI/Input";
import Modal from "../../../components/UI/Modal";
import { Row, Col } from "react-bootstrap";
const AddCateogryModal = (props) => {
const {
show,
handleClose,
onSubmit,
categoryList,
modelTitle,
... |
package file
import java.io.File
public class TestFile{
public static void main(String[] args) {
// 绝对路径
File f1 = new File("d:/LOLFolder");
System.out.println("f1的绝对路径:" + f1.getAbsolutePath());
// 相对路径,相对于工作目录,如果在eclipse中,就是项目目录
File f2 = new File("LOL.exe");
System... |
use binrw::{binwrite, io::Cursor, BinWriterExt};
#[test]
fn assert_fail() {
#[binwrite]
struct Test {
#[bw(assert(*x != 1, "x cannot be 1"))]
x: u32,
}
let mut x = Cursor::new(Vec::new());
if let Err(err) = x.write_be(&Test { x: 1 }) {
assert!(matches!(err, binrw::Error::As... |
// Protocol Buffers - Google's data interchange format
// Copyright 2023 Google LLC. All rights reserved.
// https://developers.google.com/protocol-buffers/
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// ... |
import * as React from 'react';
import './CustomDataGrid.css'
import { DataGrid } from '@mui/x-data-grid';
const defaultColumns = [
{ field: 'id', headerName: 'ID', width: 90 },
{
field: 'firstName',
headerName: 'First name',
width: 150,
editable: true,
},
{
field: 'lastName',
headerNam... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.