text stringlengths 184 4.48M |
|---|
<ion-view view-title="New Group">
<ion-content>
<form name="signinForm" novalidate="" ng-submit="signIn(signinForm)">
<ion-list class="padding">
<div class="list">
<label class="item item-avatar" ng-click="selectPicture()">
<img ng-src="{{imageSrc}}">
... |
import { useTranslation } from 'react-i18next';
import React, { useState } from 'react';
import { BaseButtonsForm } from '@app/components/common/forms/BaseButtonsForm/BaseButtonsForm';
import { Option, Select } from '@app/components/common/selects/Select/Select';
import { Button } from '@app/components/common/buttons/B... |
import { isBefore, subDays } from 'date-fns';
import React from 'react';
import { useTranslation } from 'next-i18next';
import { CardGrid } from 'src/components/layout/Card';
import DynamicList, {
DynamicListColumn,
} from 'src/components/layout/List/List';
import { Ws } from 'src/components/Typo/Typo';
import { useL... |
# This is used when in two sets, one is a subset of the other i.e. one set contains all the elements of the other.
# The set which its elements is contained in the other set is called the subset.It is represented using the symbol <=
# The set that contains all the elements of the other set is called the subset. It is r... |
#!/usr/bin/python3
"""class student
"""
class Student:
"""student class """
def __init__(self, first_name, last_name, age):
"""method __int__
"""
self.first_name = first_name
self.last_name = last_name
self.age = age
def to_json(self, attrs=None):
"""get t... |
#ifndef USER_HPP
#define USER_HPP "USER_HPP"
#include <iostream>
#include <string>
#include <random>
#include <math.h>
#include <vector>
#include "Hotel.hpp"
#include "Reserve.hpp"
#include "InitialData.hpp"
class User
{
public:
User(const std::string& _email, const std::string& _userName, const std::string& _pa... |
from typing import Any, Dict, List
import numpy as np
import onnx
from numpy.typing import NDArray
from onnx import TensorProto
from onnx.helper import make_graph, make_model, make_node, make_tensor_value_info
from onnx.numpy_helper import from_array
from util import Base
info = make_tensor_value_info
def test_hard... |
---
title: Passing the parameters to SOLIDWORKS Macro using the SWBasic macro
caption: Via SWBasic Macro
description: Workaround of passing the parameters to the SOLIDWORKS macro via replacing the text in the SWBasic macro
labels: [argument, swb]
---
[SWBasic (*.swb)宏](/solidworks-api/getting-started/macros/types#swbas... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('products', function (Blueprint $table) {
... |
<?php
use App\Http\Controllers\Api\Auth\AuthController;
use App\Http\Controllers\Api\BilletsController;
use App\Http\Controllers\Api\CarsController;
use App\Http\Controllers\Api\CategoriesController;
use App\Http\Controllers\Api\ConvoisController;
use App\Http\Controllers\Api\HorairesController;
use App\Http\Controlle... |
import {
ConflictException,
Injectable,
NotFoundException,
} from '@nestjs/common';
import * as bcrypt from 'bcrypt';
import {
UserCreateDto,
UserFindAllQueryParamsDto,
UserUpdateDto,
UserUpdateRoleDto,
} from './dto';
import { PrismaService } from 'src/modules/prisma/prisma.service';
import { UserEntity ... |
import { useEffect, useState } from 'react'
import useSWR from 'swr'
import { useCoinsShortData } from '@/hooks'
import { CoinsATHsType, CoinsWithATHType, CoinFullDataType, ResponseType } from '@/types'
import { fetcher } from '@/utils'
export const useCoinsFullData = (offset: number, limit: number) => {
const [co... |
/*
* Copyright (C) 2008 Thomas Klapiscak (t.g.klapiscak@durham.ac.uk)
*
* This file is part of JASDL.
*
* JASDL is free software: you can redistribute it and/or modify
* it under the terms of the Lesser GNU General Public License as published by
* the Free Software Foundation, either version 3 of the Lic... |
Higher-Order Functions
Functions as Data
JavaScript functions behave like any other data type in the language; we can assign functions to variables, and we can reassign them to new variables.
Below, we have an annoyingly long function name that hurts the readability of any code in which it’s used. Note: If the below fu... |
/*
* Author: PabstMirror
* Adds a key to a unit that will open a vehicle
* Note: has global effects for Unit (will add items to remote unit)
*
* Arguments:
* 0: Unit <OBJECT>
* 1: Vehicle <OBJECT>
* 2: custom key (true: custom key (magazine) - false: side key (item)) <BOOL>
*
* Return Value:
* None
*
* E... |
import { useEffect, useState } from "react";
import OfferCard from "./OfferCard";
import Aos from "aos";
import "aos/dist/aos.css";
const SpecialOffer = () => {
const [offers, setOffer] = useState([]);
useEffect(() => {
Aos.init({ duration: 3000 });
}, []);
useEffect(() => {
fetch("https://toy-car-wor... |
import styled from "styled-components";
import { ApiComponent } from "../Components/ApiComponent";
import { ReadMoreButton, RecipeButton } from "../Components/Button";
import { Carousel } from "../Components/Carousel";
import { HowCard } from "../Components/HowCard";
import { OrderButton } from "../Components/OrderButt... |
import { Object3D, Scene3D, Engine3D, CameraUtil, HoverCameraController, View3D, AtmosphericComponent, DirectLight, KelvinUtil, MeshRenderer, LitMaterial, SphereGeometry, Color, SkyRenderer } from '@orillusion/core'
import dat from 'dat.gui'
class Sample_ClearCoat {
lightObj3D: Object3D
scene: Scene3D
asy... |
using Amazon.Lambda.TestUtilities;
using Amazon.Runtime.SharedInterfaces;
using Amazon.SimpleNotificationService;
using Amazon.SimpleNotificationService.Model;
using LatestFilingsEventPublisher.UnitTests;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using Moq;
using Moq.Protected;... |
# سرطان الشرج: العوامل، الأعراض، طرق العلاج
__شارك __غرد
الحكة والنزيف في فتحة الشرج يشتبه عادة بانه بسبب البواسير. ولكن في بعض الحالات
قد تشير هذه الأعراض إلى سرطان الشرج. السبب الرئيسي لسرطان الشرج هو فيروس الورم
الحليمي البشري الذي يسبب أيضا سرطان عنق الرحم!
**سرطان الشرج** هو ورم خبيث نادر الحدوث يظهر عند فتحة ... |
from django.contrib.auth.forms import UserCreationForm, UserChangeForm
from django import forms
from django.utils.translation import gettext_lazy as _
from .models import CustomUser
class CustomUserCreationForm(UserCreationForm):
phone_number = forms.CharField(label=_("phone number"), max_length=20, required=Fals... |
package leetcode.editor.cn;
//给你一个数组 points ,其中 points[i] = [xi, yi] 表示 X-Y 平面上的一个点。求最多有多少个点在同一条直线上。
//
//
//
// 示例 1:
//
//
//输入:points = [[1,1],[2,2],[3,3]]
//输出:3
//
//
// 示例 2:
//
//
//输入:points = [[1,1],[3,2],[5,3],[4,1],[2,3],[1,4]]
//输出:4
//
//
//
//
// 提示:
//
//
// 1 <= points.length <= 300
// point... |
<!--DataBinding sencillo para contenido de datos:
Para crear un databinding dencillo, basta con usar dentro del contenido html la variable entre los carácteres especiales, de esta
manera se mostrarán los datos que estén implementados en la lógica dentro de esa variable y cambiará dinámicamente en la vista
-->
<... |
/*
* Copyright (c) 2018.
*
* Anthony Ngure
*
* Email : anthonyngure25@gmail.com
*/
package ke.co.toshngure.basecode.database;
import android.content.Context;
import android.support.v4.content.AsyncTaskLoader;
import java.util.List;
/**
* Created by Anthony Ngure on 8/26/2016.
* Email : anthonyngure25@gmail.... |
package com.dwtedx.income.filter;
import java.io.IOException;
import java.io.OutputStream;
import javax.servlet.FilterChain;
import javax.servlet.ServletRequest;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.log4j.Logger;
import org.springframework.web... |
/// This is where I plan to keep all the math, including vector operations I guess
pub mod math {
use std::f32::consts::PI;
use rlbot_lib::rlbot::{Rotator, Vector3};
pub fn vec_new(x: f32, y: f32, z: f32) -> Vector3 {
Vector3 { x, y, z }
}
pub fn vec2_new(x: f32, y: f32) -> Vector3 {
... |
const express = require('express')
const app = express()
const port = process.env.PORT || 3000;
const cors = require("cors")
const { MongoClient, ServerApiVersion, ObjectId } = require('mongodb');
app.use(express.json());
app.use(cors());
// msmasumbillah0000
// DHYBDqxrFYqLhYZc
const uri = "mongodb+srv://msmasum... |
import UIKit
import CoreData
// MARK: - CoreDataManager
struct CoreDataManager {
enum Categories: String, CaseIterable {
case characters = "Characters"
case episodes = "Episodes"
case stores = "Next Door Stores"
case trucks = "Pest Control Trucks"
case credits = "End Credit... |
import type { RouteRecordRaw, RouteLocation } from 'vue-router'
import { constRoutes, asyncRoutes } from '@/router/routes'
import { router } from '@/router'
// 检查路由所需权限
function hasPermission(
userPermissions: string[],
route: RouteRecordRaw
): boolean {
if (route.meta && route.meta.permissions)
return userP... |
import React, { useState, useEffect } from 'react';
import { db, auth } from '../firebase-config';
import SendMessage from './SendMessage';
import {
collection,
query,
limit,
orderBy,
onSnapshot,
} from 'firebase/firestore';
import { Link } from 'react-router-dom';
function Chat() {
const [messages, setMes... |
<?php
namespace App\Entity;
use App\Repository\MethodeCaptureRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: MethodeCaptureRepository::class)]
class MethodeCapture
{
#[ORM\Id]
#[ORM\Generat... |
import 'package:flutter/material.dart';
import 'package:flutter_cubit_appp/pages/nav_pages/bar_item_page.dart';
import 'package:flutter_cubit_appp/pages/nav_pages/home_page.dart';
import 'package:flutter_cubit_appp/pages/nav_pages/my_page.dart';
import 'package:flutter_cubit_appp/pages/nav_pages/search_page.dart';
cla... |
package main
import (
"fmt"
"log"
"strings"
"github.com/mariogarzac/Advent/utils"
)
type Point struct {
x int
y int
}
var valid = map[Point]map[string]map[string]bool {
{0, 1} : {
// - J 7
"S" : {"-": true, "J": true, "7": true},
"-" : {"-": true, "J": true, "7... |
import express from 'express';
const router = express.Router();
router.post('/create-checkout-session', async (req, res) => {
const { products } = req.body;
try {
let lineItems;
if (Array.isArray(products) && products.length > 0) {
lineItems = products.map(item => ({
... |
<?php
/*
* This file is part of the MODX Revolution package.
*
* Copyright (c) MODX, LLC
*
* For complete copyright and license information, see the COPYRIGHT and LICENSE
* files found in the top-level directory of this distribution.
*
*/
namespace MODX\Revolution\Tests\Controllers\Context;
use MODX\Revolutio... |
import torch
import time
from .meters import AverageMeter, ProgressMeter
from .accuracy import Accuracy
def Validate(val_loader, model, criterion, args, epoch, prefix=''):
batch_time = AverageMeter('Time', ':6.3f')
losses = AverageMeter('Loss', ':6.3f')
top1 = AverageMeter('Acc@1', ':6.2f')
top5 = Aver... |
import clsx from 'clsx';
import style from './styles.scss';
const Card = ({
imgSrc,
imgAlt,
children,
disabled = false,
sideContent,
skeleton = false,
dataTestId,
size = 's',
...otherProps
}) =>
skeleton ? (
<div size={size} />
) : (
<div
className={clsx(
style.card,
... |
import {ChangeDetectionStrategy, Component, Inject, OnInit} from '@angular/core';
import {FormBuilder, FormControl, FormGroup, Validators} from '@angular/forms';
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
@Component({
selector: 'bundle-spec-modal',
templateUrl: './bundle-modal.co... |
"use client";
import { Skeleton } from "@/app/components";
import Link from "next/link";
import { usePathname } from "next/navigation";
import React, { FC } from "react";
import classnames from "classnames";
import { useSession } from "next-auth/react";
import {
Avatar,
Badge,
Box,
Button,
Container,
Dropd... |
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:immerse/src/features/authentication/screens/login/login.dart';
import 'package:immerse/src/features/authentication/screens/success_screen/success_screen.dart';
import '../../../../utils/const... |
<template>
<div class="main-content" v-loading="loading_choose_guide">
<!-- 选择orderItem -->
<div class="choose-order-item">
<div class="title">选择订单子场次</div>
<div class="order-item-grid">
<div
v-for="(item, idx) in order_items_for_choose"
class="order-item"
:cl... |
import { Column, Entity, OneToMany, PrimaryGeneratedColumn } from "typeorm"
import { ApiProperty } from '@nestjs/swagger'
import { Product } from "src/products/entities/product.entity"
@Entity('users')
export class User {
@ApiProperty({
example: '439c9809-1e8b-471d-bb98-943d1d93e5f8',
descrip... |
//
// LoginScreenObject.swift
// MdEditorUITests
//
// Created by Alexey Turulin on 1/18/24.
// Copyright © 2024 repakuku. All rights reserved.
//
import XCTest
final class LoginScreenObject: BaseScreenObject {
// MARK: - Private properties
private lazy var textFieldLogin = app.textFields[AccessibilityIdentif... |
import React, { useState, useEffect } from 'react';
import { connect } from 'react-redux';
import { Link, RouteComponentProps } from 'react-router-dom';
import { Button, Col, Row, Table } from 'reactstrap';
import { Translate, TextFormat } from 'react-jhipster';
import { FontAwesomeIcon } from '@fortawesome/react-fonta... |
/*! \file IHost.h
\author Michael Olsen
\date 24/Jan/2005
\date 24/Jan/2005
*/
/*! \brief Host callback interface
*/
class IHost
{
public:
static IHost* IHost::Create(kspiCCallbackDispatcherFunc pCallback, void* hHost);
//! The plug-in calls this to notify autumation update (changes caused by user interaction)
... |
/*
* 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 ... |
import classNames from 'classnames/bind';
import PropTypes from 'prop-types';
import React, { useContext } from 'react';
import FeaturedPost from 'components/shared/featured-post';
import Heading from 'components/shared/heading';
import Pagination from 'components/shared/pagination';
import MainContext from 'context/m... |
import type { Metadata } from 'next';
import { dark } from '@clerk/themes';
import { Inter } from 'next/font/google';
import './globals.css';
import { ClerkProvider } from '@clerk/nextjs';
import { ThemeProvider } from '@/components/theme-provider';
import { Toaster } from 'sonner';
const inter = Inter({ subsets: ['la... |
import { useDispatch, useSelector } from "react-redux";
import { useNavigate, useParams } from "react-router";
import { useEffect, useState } from "react";
import { setCurrentUser } from "../reducer";
import { Link } from "react-router-dom";
import * as fClient from "../Follows/followClient";
import * as client from ".... |
from django.db import models
from django.utils.text import slugify
class OchaDashboard(models.Model):
name = models.CharField(max_length=200)
slug = models.CharField(max_length=200)
description = models.TextField(null=True, blank=True)
content = models.TextField(null=True, blank=True)
thumbnail = ... |
import React from 'react';
import { BrowserRouter as Router, Routes, Route } from 'react-router-dom';
import { ToastContainer } from 'react-toastify';
import 'react-toastify/dist/ReactToastify.css';
import './App.css';
import Home from './pages/home/home';
import Sobre from './pages/sobre/sobre';
import Produtos from ... |
import faiss
import numpy as np
import pandas as pd
from app.scrape import get_wikipedia_text, get_embeddings
class RAGSearcher:
def __init__(self, urls: list[str]) -> None:
self.text_corpus, self.faiss_db = self.create_vector_from_text(urls)
def create_vector_from_text(self, urls: list[str] | str... |
import { Atom, PrimitiveAtom, useAtom, useAtomValue } from "jotai"
import PrefItem, { PrefItemProps } from "./Item"
import { Input } from "../ui/input"
import { Button } from "../ui/button"
import { ReactNode, Suspense } from "react"
import clsx from "clsx"
import { dialog } from "@tauri-apps/api"
import { Skeleton } f... |
package com.wmy.community.service.impl;
import com.wmy.community.service.LikeService;
import com.wmy.community.util.RedisKeyUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.dao.DataAccessException;
import org.springframework.data.redis.core.RedisOperations;
import org.spr... |
/* Cabeçalho */
.menu {
/* Definir o flexbox */
display: flex;
/* Espaçamento no eixo principal */
justify-content: space-evenly;
/* Espaçamento no eixo secundário */
align-items: center;
/* Quebrar para a próxima linha quando não houver mais espaço */
flex-wrap: wrap;
/* Aplicar es... |
.TH include_server 1 "9 June 2008"
.SH "NAME"
include_server.py \- conservative approximation of include dependencies for C/C++
.SH "SYNOPSIS"
.B include_server
--port
.I INCLUDE_SERVER_PORT [OPTIONS]
.SH "DESCRIPTION"
.P
include_server.py starts an include server process. This process answers
queries from
\fBdistcc... |
package com.print.controller;
import com.print.models.request.TempUpdateRequest;
import com.print.models.response.TemplateAllResponse;
import com.print.persistence.entity.TemplateTable;
import com.print.service.TemplateService;
import org.apache.coyote.Response;
import org.springframework.http.ResponseEntity;
import o... |
# TP1 Cryptographie appliquée : TLS/SSL PKI
#### Antoine DEPOISIER & Jules FINCK
## Question 1
- Il faut choisir 2 grands nombres, p et q
- Calculer n = p * x
- Calculer z = (p - 1) * (q - 1)
- Trouver un nombre e tel que e et z soient premiers entre eux
- Trouver d tel que (e * d) mod z = 1
- e et n sont la clé publi... |
// Copyright A.T. Chamillard. All Rights Reserved.
#pragma once
#include "MutualFund.h"
/**
* An employer-sponsored account
*/
class EmployerSponsoredAccount :
public MutualFund
{
public:
/**
* Constructor
* @param Deposit initial deposit
*/
EmployerSponsoredAccount(float Deposit);
/*... |
package com.example.jpabook.dto;
import com.example.jpabook.api.OrderApiController;
import com.example.jpabook.domain.Address;
import com.example.jpabook.domain.Order;
import com.example.jpabook.domain.OrderStatus;
import lombok.Data;
import java.time.LocalDateTime;
import java.util.List;
import static java.util.str... |
# Fingerprint-Ridge-Counting
Project Name: Finding the number of ridges from a fingerprint.
<br>
Project Type: A graduation project in an image processing course.
<br>
Code for fingerprint ridge counting using image processing: identifies optimal regions, enhances images, counts ridges via diagonal analysis for accur... |
import os
from datetime import datetime
from functools import partial
import click
import torch
from ray import tune
from ray.tune import CLIReporter
from ray.tune.schedulers import ASHAScheduler
from data import load_estimator_data
from models.ankle_estimator import LSTMEstimator
def try_train(config, target):
... |
import { Project } from "@/Data/data";
import Chips from "@/components/Chips";
import HText from "@/components/HText";
import ProjectCard from "@/components/ProjectCard";
import { useState } from "react";
import { projectData } from "@/Data/data";
import { motion } from "framer-motion";
type ProfileProps = {
project... |
import { Link } from "react-router-dom";
import React, { useState, useEffect } from "react";
import SearchBar from "./SearchBar";
import Header from "./Header";
import axios from "axios";
import autoprefixer from "autoprefixer";
const styleLink = document.createElement("link");
export default function ArtzSuchen() {
... |
/*
* Copyright [2020-2030] [https://www.stylefeng.cn]
*
* 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... |
import Head from 'next/head';
import { useEffect, useState } from 'react'
import { AiFillEdit, AiFillCloseCircle, AiOutlineArrowLeft, AiOutlineArrowRight, AiOutlineSearch, AiOutlineLoading3Quarters } from 'react-icons/ai'
import { IoIosPersonAdd } from 'react-icons/io'
import { toast } from 'react-toastify';
import { c... |
// String Replace
@function str-replace($string, $search, $replace: "") {
$index: str-index($string, $search);
@if $index {
@return str-slice($string, 1, $index - 1) + $replace + str-replace(str-slice($string, $index + str-length($search)), $search, $replace);
}
@return $string;
}
// Font Face
@mixin f... |
import { MongoClient } from 'mongodb';
import * as constants from '../config/constants';
import { createUserFixture } from './collections/users';
import { Users } from './userStates';
export default async function injectInitialData() {
const connection = await MongoClient.connect(constants.URL_MONGODB);
const user... |
# -*- coding: utf-8 -*-
"""
Created on Tue Oct 24 14:06:14 2023
@author: lb945465
"""
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
def process_iaq_file(file_path, environment):
# Create an empty DataFrame to store the merged data
merged_df = pd.DataFrame()
# Read each worksh... |
/**
* jQuery EasyUI 1.4
*
* Copyright (c) 2009-2014 www.jeasyui.com. All rights reserved.
*
* Licensed under the GPL license: http://www.gnu.org/licenses/gpl.txt
* To use it on other terms please contact us at info@jeasyui.com
*
*/
/**
* calendar - jQuery EasyUI
*
*/
(function($){
function setSize(targe... |
import { UsersComponent } from './components/users/users.component';
import { PostByUserComponent } from './pages/postsByUser/postByUser.component';
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { HomeComponent } from './pages/home/home.component';
import { Use... |
function New-AzDevOpsBuildFolder {
<#
.SYNOPSIS
Creates new Azure DevOps Folder.
.DESCRIPTION
Creates new Folder in Azure Devops Pipeline.
.EXAMPLE
New-AzDevOpsBuildFolder -Name 'ProjectName' -Path 'FolderPath'
.EXAMPLE
New-AzDevOpsBuildFolder -Name 'ProjectName' -Pat... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
</head>
<body>
<canvas id="cav" width="600" height="200">
当前浏览器不支持canvas,请下载最新浏览器
<a href="https://www.google.cn/chrome/">下载... |
<script setup>
import { onMounted } from 'vue';
import useSkills from '../../composables/skill';
const { skill, getSkill, updateSkill, errors } = useSkills();
const props = defineProps({
id: {
required: true,
type: String
}
})
onMounted(() => getSkill(props.id));
</script>
<template>
<d... |
import { IConfigService } from "./config.service.interface";
import { config, parse, DotenvConfigOutput, DotenvParseOutput } from 'dotenv';
import { injectable, inject } from "inversify";
import { TYPES } from "../types";
import { ILogger } from "../logger/logger.interface";
@injectable()
export class ConfigService im... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=x, initial-scale=1.0" />
<title>Omnifood Hero Section</title>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="... |
/**
******************************************************************************
* @file USART/USART_TwoBoards/DataExchangeInterrupt/stm32f0xx_it.c
* @author MCD Application Team
* @version V1.6.0
* @date 13-October-2021
* @brief Main Interrupt Service Routines.
* This file provides t... |
-- The Airline Database is loaded in Postgres SQL. The Schema Of this Database is Bookings.
Questions:
/*1. Represent the “book_date” column in “yyyy-mmm-dd” format using Bookings table
Expected output: book_ref, book_date (in “yyyy-mmm-dd” format) , total amount */
Select book_ref,
to_char(book_date :: date, 'yyyy-... |
#' add_columns
#'
#' Function adds new columns to the existing magpie object.
#'
#' @param x MAgPIE object which should be extended.
#' @param dim The (sub)dimension to be filled either identified via
#' name or dimension code (see \code{\link{dimCode}} for more information)
#' @param addnm The new elements that should... |
import { DOCUMENT } from '@angular/common';
import { Component, Inject, Renderer2 } from '@angular/core';
import { Router } from '@angular/router';
import { ToastrService } from 'ngx-toastr';
import { CategoryData, CategoryReq } from 'src/app/commons/dto/category';
import { CategoryService } from 'src/app/services/cate... |
//1. Обробка відправлення форми form.login-form повинна відбуватися відповідно до події submit.
//2. Під час відправлення форми сторінка не повинна перезавантажуватися.
//3. Якщо у формі є незаповнені поля, виводь alert з попередженням про те, що всі поля повинні бути заповнені.
//4. Якщо користувач заповнив усі поля і... |
package com.example.eindopdrachtyarnicornback.Service;
import com.example.eindopdrachtyarnicornback.DTO.ProductDto;
import com.example.eindopdrachtyarnicornback.Exceptions.IdNotFoundException;
import com.example.eindopdrachtyarnicornback.Models.FileDocument;
import com.example.eindopdrachtyarnicornback.Models.Product;... |
/*
* Copyright (C) 2013 Invenzzia Group <http://www.invenzzia.org/>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later versi... |
import { Component, ErrorInfo } from "react";
import { ErrorBoundaryProps, ErrorBoundaryState } from "./types";
class ErrorBoundary extends Component<ErrorBoundaryProps> {
state: ErrorBoundaryState;
constructor(props: ErrorBoundaryProps) {
super(props);
this.state = { hasError: false, error: null };
}
... |
package com.kp.PatientHub.controller;
import com.kp.PatientHub.service.PatientService;
import com.kp.PatientHub.view.PatientRequest;
import com.kp.PatientHub.view.PatientResponse;
import com.kp.PatientHub.view.SuccessResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.ht... |
import React, { useState, useEffect } from "react";
import Button from "react-bootstrap/Button";
import StudentModal from "../Common/StudentModal";
import Table from "react-bootstrap/Table";
import { useSelector, useDispatch } from "react-redux";
import {
fetchStudents,
getAllNationality,
fetchStudentNationality,... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Meteora</title>
<link rel="shortcut icon" href="./assets/favicon.png" type="image/x-icon">
<link rel="stylesheet" href="./style.css">
<link rel="styleshee... |
import React from 'react';
import { useMyVariable } from '../context/MyVariableContext';
import styles from '../styles/typea.module.css';
type TagsProps = {
tags: { topicsCovered: string, references: string, emotions: string, other: string },
setTags: React.Dispatch<React.SetStateAction<{ topicsCovered: string, re... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Database\Factories\PostFactory;
use Illuminate\Database\Eloquent\Relations\MorphMany;
class Post extends Model
{
use HasFactory;
protected $fillable = [
'title',
'bo... |
<script>
"use strict"
let SOCKET = null;
function argv() {
let result = {};
for (var arg of window.location.hash.substring(1).split("&")) {
let pos = arg.indexOf("=");
if (pos >= 0) {
result[arg.substring(0, pos)] = decodeURIComponent(arg.substring(pos + 1));
}
}
return result;
}
var MAX_CONSOLE_LINES =... |
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.8.2 <0.9.0;
contract MultiSig {
address[] public owners;
uint256 public numConfirmationsRequired;
struct Transaction {
address to;
uint256 value;
bool executed;
}
mapping(uint256 => mapping(address => bool)) isConfirm... |
/*
* Author - Ben Wegher
* Date - 6/10/2014
* Class - AlertListItem.java
* Description - This class specifies the attributes that define an Alert.
*/
package myApp.list;
import myApp.androidappa.Constants;
import myApp.androidappa.R;
public class AlertListItem {
private String title; // name of the alert... |
from copy import deepcopy
from random import random
import numpy as np
import networkx as nx
import igraph as ig
def convertGraph(networkx_graph):
edgeList = nx.to_pandas_edgelist(networkx_graph).values
return ig.Graph(edgeList)
def unWeightIC(g, S, p=0.3):
"""
无权重的IC模型
Input: graph object, set ... |
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8" isErrorPage="true"%>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-BmbxuPwQa2lc/FVzBcNJ7UAyJxM6wuqIj61tLrc4wSX0szH/Ev+nYRRuWlolflfl" crossorigin="anony... |
package com.newdon.controller;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.newdon.base.Insert;
import com.newdon.base.NewDonResult;
import com.newdon.base.Update;
import com.newdon.entity.CustomerNature;
import com.newdon.entity.CustomerNature;
import ... |
rm(list=ls())
print(Sys.time())
#set the working director
set.seed(123)
input.path="/proj/nobackup/sens2019512/wharf/ssayols/ssayols-sens2019512/github/casc_microbiome/Demo/0_Data/"
output.path="/proj/nobackup/sens2019512/wharf/ssayols/ssayols-sens2019512/github/casc_microbiome/Demo/1_simulations/"
dir.create(output.... |
import { useNavigation } from "@react-navigation/native";
import React from "react";
import { Text, View, StyleSheet, Image, Pressable, Platform } from 'react-native';
const MealsOverViewItem = ({ title, imagePath, durations, Complexcity, Affordability, onPressed }) => {
return (
<View style={styles.o... |
import React, { useContext, useState } from 'react'
import { Link, Navigate } from 'react-router-dom'
import { Context, server } from '../main';
import { toast } from 'react-hot-toast';
import axios from 'axios';
const Login = () => {
const { isAuthenticated, setisAuthenticated, loading, setLoading } = useContext(C... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" href="{{ url_for('static', filename='icone_page.png') }}" type="image/x-icon">
<title>Register</title>
<!-- External CSS -->
<link rel="styleshee... |
from odoo import models, fields, api
from odoo.exceptions import ValidationError
class HrJob(models.Model):
_inherit = "hr.job"
active = fields.Boolean(default=True)
actual_number_of_employees = fields.Integer(string='实际员工数量', compute='test_compute_employees', store=True)
@api.depends('employee_ids... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.