text
stringlengths
184
4.48M
# --- # jupyter: # jupytext: # formats: ipynb,py:light # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.0 # kernelspec: # display_name: Python 3 (ipyflow) # language: python # name: ipyflow # --- # # CytoTable ...
<!DOCTYPE html> <html lang="en" xmlns:th="http://www.thymeleaf.org"> <head> <meta charset="UTF-8"> <title>Employee Info</title> </head> <body> <table> <tr> <th colspan="6">Employee Info</th> </tr> <tr> <th>emp_d</th> <th>emp_name</th> <th>age</th> <th>sex</th>...
import React, { useState } from "react"; import { Box, Card, CardActions, CardContent, Collapse, Button, Typography, Rating, useTheme, useMediaQuery, } from "@mui/material"; import Header from "components/Header"; // import { useGetCse_dsQuery } from "state/api"; import { useGetItQuery } from "state...
"use client"; import supabase from "@/database/supabaseClient"; import React, { useEffect, useState } from "react"; import { Database } from "../../../types/supabase"; import Image from "next/image"; import Line from "../(components)/Line"; type Fixture = Database["public"]["Tables"]["fix"]["Row"]; interface Images ...
# File name: app.R # Path: './app.R' # Author: N. Chan # Purpose: Runs a Shiny R app to interactively view a histogram from input data source(paste0(getwd(), "/scripts/01_loaddata.R")) # Define UI ui <- fluidPage( titlePanel("Histogram-Density Plot Viewer"), sidebarLayout( sidebarPanel( h5("Prep...
import { useState, useEffect } from "react"; import { useNavigate, useParams } from "react-router-dom"; import { FiSearch, FiUpload } from "react-icons/fi"; import { Container, Form } from "./styles"; import { Header } from "../../components/Header"; import { BackButton } from "../../components/BackButton"; import {...
<template> <div class="main-cont grey lighten-5"> <div class="title-img-cont" data-aos="zoom-in"> <img :src="GeneralHelpers.requireImage('title.png')" /> </div> <v-card class="card" data-aos="zoom-in" data-aos-delay="300"> <v-card-text class="card-body"> ...
import pandas as pd import os from orangePlatform import logger import joblib from numpy import array from keras.models import Sequential from keras.layers import LSTM, Dense, Flatten, TimeDistributed from keras.layers import ConvLSTM2D import numpy as np from tensorflow.keras.optimizers import Adam from tensorflow.ker...
<script setup> import { ref, onMounted } from 'vue'; import { useRoute } from 'vue-router'; import { useStore } from 'vuex'; import UserCard from '@/components/UserCard'; const store = useStore(); const route = useRoute(); const username = ref(''); const userFollowers = ref([]); const isDataReady = ref(false); const g...
public class RecordTest { interface I { } record Middle(String field) { } record A(Middle afield) implements I { } record B(Middle bfield) implements I { } public static String sink(String s) { return s; } public static void test(boolean inp) { I i = inp ? new A(new Middle("A")) : new B(new Middle("...
<?php /* * Copyright 2012 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 agreed t...
index.html <!DOCTYPE html> <html lang="es"> <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" /> <!-- Google fonts --> <link href="https://fonts.googleapis.com/css2?family=Montserrat&d...
import { IProduct } from './IProduct'; export class Product implements IProduct { //#region Fields id: number; name: string; description: string; imageURL: string; price: number; quantity: number; //#endregion //#region Constructor /** * Product Constructor */ constructor( _id: number,...
import { Fragment, useState } from 'react'; import { FormattedMessage } from 'react-intl'; import { Autocomplete, Button, FormControl, FormControlLabel, FormHelperText, Grid, InputLabel, Menu, MenuItem, Radio, RadioGroup, Select, Stack, TextField } from '@mui/material'; import { useCustomerF...
package com.myproject.query; import com.alibaba.fastjson.JSON; import com.myproject.core.consts.ConstMsg; import com.myproject.core.consts.ConstUtils; import com.myproject.core.consts.ICodes; import com.myproject.core.utils.LocaleMessageSourceService; import java.io.Serializable; /** * 通用AJAX请求后的结果数据 */ public cla...
import axios from "axios"; import Comment from "../../../DB/models/comment.model.js"; import Reply from "../../../DB/models/reply.model.js"; /** * * destructure data from body and authUser and query * * check if the reply for (comment or reply) * * check if comment is already exists * * check if reply is already...
package resources import ( "context" "fmt" "log" redis "github.com/go-redis/redis/v8" "github.com/tmzt/config-api/models" "github.com/tmzt/config-api/util" "gorm.io/gorm" ) type PlatformPermissionsResource struct { logger *log.Logger rdb *redis.Client db *gorm.DB } func NewPlatformPermissionsResou...
---- ## 1. 节点类型 不同角色的节点 - `Master eligible / Data / Ingest / Coordinating / Machine Learning` 在开发环境中,一个节点可承担多种角色 在生产环境中 - 根据数据量,写入和查询的吞吐量,选择适合的部署方式 - 建议设置单一角色的节点(dedicated node) ## 2. 节点参数配置 一个节点在默认情况下会同时扮演: `master eligible` ,`data node` 和 `ingest node` | 节点类型 | 配置参数 | 默认值 ...
package com.softserve.itacademy.rest; import com.softserve.itacademy.dto.TaskDto; import com.softserve.itacademy.dto.TaskTransformer; import com.softserve.itacademy.model.Task; import com.softserve.itacademy.service.StateService; import com.softserve.itacademy.service.TaskService; import com.softserve.itacademy.servic...
import { describe, expect, it } from 'vitest'; import { AgentRuntimeErrorType } from '@/libs/agent-runtime'; import { ChatErrorType } from '@/types/fetch'; import { createErrorResponse } from './errorResponse'; describe('createErrorResponse', () => { // 测试各种错误类型的状态码 it('returns a 401 status for NoOpenAIAPIKey er...
<<<<<<< HEAD #618 ''' Python | Check if a given string is binary or not ''' # Using set def check(string): p = set(string) s = {'0','1'} if s == p or p == {'0'} or p == {'1'}: print("Yes") else: print("No") if __name__ == "__main__": string = "101010000111" check(string) ...
# 南墙简介 [![GitHub stars](https://img.shields.io/github/stars/Safe3/uuWAF.svg?label=关注&nbsp;南墙&style=for-the-badge)](https://github.com/Safe3/uuWAF) [![Chat](https://img.shields.io/badge/Discuss-加入讨论组-7289da.svg?style=for-the-badge)](https://github.com/Safe3/uuWAF/discussions) > **南墙**WEB应用防火墙(简称:`uuWAF`)一款社区驱动的免费、高性能、...
/* function example() { const x = 3.14; if(true) { const y = 12; } console.log(x) console.log(y) } example() console.log(x) console.log(y) */ // Hoisting // console.log(a) // const a = 10 // console.log(a) /* function calculator(a,b,callback) { return callback(a, b); } function add(a,...
import torch import torchvision.models as models from sklearn.metrics import precision_recall_fscore_support as score def train(params, DataClass, model, criterion, device = "cpu"): optimizer = torch.optim.SGD(model.parameters(), lr = 0.01) scheduler = torch.optim.lr_scheduler.CosineAnnealingLR(optimizer, T_m...
<template> <!-- Auth Modal --> <div class="fixed z-10 inset-0 overflow-y-auto" id="modal" :class="hiddenClass"> <div class="flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0" > <div class="fixed inset-0 transition-opacity"> <div class="absolute inset-...
from typing import NamedTuple class Employee(NamedTuple): """Represents an employee.""" name: str id: int = 3 def __repr__(self) -> str: return f'<Employee: {self.name!r}, id={self.id}>' x = Employee('Bob', 5) print(x) print(x.name)
import React from "react"; import { AiOutlineClose } from "react-icons/ai"; import ModalContainer from "./ModalContainer"; //Component which handles the the writers modal export default function WritersModal({ profiles = [],//array having all the writers details visible,//visibility of modal onClose, onRemoveC...
/* Given a linked list, the task is to find the sum of all subsets of a linked list. Examples: Input: 2 -> 3 -> NULL Output: 10 Explanation: All non-empty subsets are {2}, {3} and {2, 3} Total sum = 2 + 3 + (2 + 3) = 10 */ #include<iostream> #include<cmath> using namespace std; struct Node { int data; struct Node* ...
package com.mercadolivro.controller.request import com.mercadolivro.validation.EmailAvailable import javax.validation.constraints.Email import javax.validation.constraints.NotEmpty data class PostCustomerRequest ( @field:NotEmpty(message = "Field name must be informed") var name: String, @EmailAvailable...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>typeof & instanceof</title> </head> <body> <h3 style="text-align: center"> typeof 对于对象来说,除了函数都会显示 object,所以说 typeof 并不能准确判断变量到底是什么类型,<br> 如果我们想判断一个对象的正确类型,这时候可以考虑使用 instanceof,因为内部机制是通过 原型链 来判断的 </h3> </body> <script> // 判断 foo 是否是 F...
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package Controller; import DAO.PostTypeDAO; import Model.PostType; import java.io.IOException; import java.io.PrintWriter; import jaka...
import React, { useState } from "react"; import { updateUserAvatarAPI } from "../api/userApi"; import { useNavigate } from "react-router-dom"; import CountDown from "../utils/CountDown"; function UpdateAvatar() { const navigate = useNavigate() const [modelOpen,setModelOpen] = useState(false) const [avatar,setAv...
import arc from "@architect/functions" import bcrypt from "bcryptjs" import invariant from "tiny-invariant" import { getUserAssetCount } from "./asset.server" import { getMenteeCount } from "./mentee.server" export enum Role { BUDDY = "0", HR = "1", PRESIDENT = "2", ADMIN = "3", } interface Contractor { agr...
// Khai báo một mảng trống ; // Khai báo một mảng có số phần tử lớn hơn 5 // Tìm độ dài của mảng của bạn // Lấy mục đầu tiên, mục giữa và mục cuối cùng của mảng // Khai báo một mảng có tên làmixDataTypes , đặt các kiểu dữ liệu khác nhau vào mảng và tìm độ dài của mảng. Kích thước mảng phải lớn hơn 5 // Khai báo một biế...
#include <stdlib.h> #include "lists.h" /** * list_len - Prints the number of elements in a linked list * * @h: Head node pointer * * Return: Number of nodes */ size_t list_len(const list_t *h) { size_t num = 0; while (h) { h = h->next; num++; } return (num); }
/* * SPDX-FileCopyrightText: (C) Copyright 2023 Regione Piemonte * * SPDX-License-Identifier: EUPL-1.2 */ package it.csi.epay.epaypacatalogsrv.business.dispatcher; import java.util.HashMap; import java.util.Map; import org.apache.logging.log4j.Logger; import org.apache.logging.log4j.LogManager; import org.springfram...
# Prelude Macros These are the main macros defined by the prelude. ## Definition Forms ### define ``` scheme (define (id . args) body ...) => (define-values (id) (lambda% args body ...)) (define id expr) => (define-values (id) expr) ``` ### def ``` scheme (def (id . args) body ...) => (define-values (id) ...
import React from 'react' import ReactDOM from 'react-dom/client' import App from './Component/App.jsx' import { createBrowserRouter, RouterProvider } from "react-router-dom"; import HomePage from './Component/HomePage.jsx' import Shop from './Component/Shop.jsx' import Cart from './Component/Cart.jsx'; const Router =...
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ import java.util.ArrayList; import java.util.Random; /** * * @author Thomas */ public class JokeManager { private ArrayList<Stri...
<template> <v-container fluid pb-0> <!-- <pre>{{ itemModel }}</pre> --> <!-- <pre>{{ localItem }}</pre> --> <v-row v-for="(model, index) in itemModel" :key="`rowModel-${index}`" dense class="align-center mb-2" > <v-col cols="3" class="text-right pr-3"> <span...
from scipy.spatial import Delaunay import numpy as np from pprint import pprint def alpha_shape(points, alpha, only_outer=True): """ Compute the alpha shape (concave hull) of a set of points. :param points: np.array of shape (n,2) points. :param alpha: alpha value. :param only_outer: boolean value...
import React from 'react' function Cart(props) { return ( <> {props.counter <= 0 ? ( <div className='fixed top-28 z-[30] ml-5 w-[90%] rounded-md bg-neutral-white text-sm shadow-2xl mobile:top-32 md:top-[6.3rem] md:right-8 md:w-[54%] lg:w-[35%] desktop:w-[25%]'> <h3 className='p-5 font-bol...
<template> <form @submit.prevent="handleSubmit"> <error-message :errors="errors"/> <div class="form-floating mb-3"> <input-with-validation :id="'email-validation'" :name="'Электронная почта'" :errors="errors" :value="'email'" v-model="formData.email" /> ...
class Solution { /* Kadane's algorithm Basically a DP to find the max subarray sum including i when adding nums[i], and if the sum becomes negative, because subarray is contiguous, number before and including i just can't be part of the max subarry so we can basically the sum seen so far and see if can find ...
import { Form, FormControl, FormField, FormItem, FormLabel, } from "@/components/ui/form"; import { useDebouncedCallback } from "use-debounce"; import { Input } from "@/components/ui/input"; import { zodResolver } from "@hookform/resolvers/zod"; import { useForm } from "react-hook-form"; import { z } from "zo...
// Copyright © Blockchain Luxembourg S.A. All rights reserved. import RxCocoa import RxSwift import UIKit final class DigitPadButtonView: UIView { // MARK: - UI Properties @IBOutlet private var backgroundView: UIView! @IBOutlet private var button: UIButton! // MARK: - Rx private let disposeBag...
import React from 'react' import { Formik, Form, useField } from 'formik' import * as Yup from 'yup' const MyTextInput = ({ label, ...props }) => { // useField() returns [formik.getFieldProps(), formik.getFieldMeta()] // which we can spread on <input>. We can use field meta to show an error message // if the field ...
package com.ezteam.applocker.viewmodel import android.app.Application import android.content.Context import android.graphics.BitmapFactory import android.os.Environment import androidx.lifecycle.MutableLiveData import androidx.lifecycle.viewModelScope import com.ezteam.applocker.item.ItemAlbumRestoreImages import com....
#!/usr/bin/env node /** * Module dependencies. */ var XDate = require('xdate'); var app = require('../app'); var debug = require('debug')('aws-socket.io-elb-proto:server'); var http = require('http'); /** * Get port from environment and store in Express. */ var port = normalizePort(process.env.PORT || '80'); app...
/* * Copyright (c) 2021-2022 Huawei Device Co., Ltd. * 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 { Articles } from "@/components/dashboard/articles"; import { ArticlesEmpty } from "@/components/dashboard/articles-empty"; import { auth } from "auth"; import { redirect } from "next/navigation"; const getArticlesByPage = async (accessToken: string, id: string) => { const res = await fetch( process...
#define _CRT_SECURE_NO_WARNINGS #include <locale.h> #include <iostream> #include <string.h> using namespace std; const int MAX_CLIENTS = 100; // Максимальное количество клиентов struct Deposit { int accountNumber; char* lastName; char* firstName; double balance; }; void addNewAccount(Deposit accoun...
using System; using System.Collections.Generic; using System.Linq; using System.Text.Json.Serialization; namespace FlexionV2.Logic { public class Layer { private double _widthAtCenter; [JsonInclude] public double WidthAtCenter { get =>_widthAtCenter; set ...
'use client'; import { ArrowLeftIcon, ArrowRightIcon } from '@heroicons/react/24/outline'; import clsx from 'clsx'; import Link from 'next/link'; import { generatePagination } from '@/app/lib/utils'; import { usePathname, useSearchParams } from 'next/navigation'; export default function Pagination({ totalPages }: { t...
package com.taller.votos.entities; import lombok.Data; import javax.persistence.Entity; import javax.persistence.Table; import javax.validation.constraints.Email; import javax.validation.constraints.Size; import javax.validation.constraints.NotNull; import javax.persistence.Id; import javax.persistence.GeneratedValue;...
import { EntityType, SeatType, Side } from "sketchbook/core/enums" import * as Utils from "sketchbook/core/FunctionLibrary" import { IControllable } from "sketchbook/core/interfaces" import { SpringSimulator } from "sketchbook/physics" import * as THREE from "three" import { Object3D } from "three" import { Character }...
/* * @Author: YauCheun 1272125039@qq.com * @Date: 2024-03-02 16:33:42 * @LastEditors: YauCheun 1272125039@qq.com * @LastEditTime: 2024-03-02 16:35:59 * @FilePath: \nestjs-study\src\upload\upload.module.ts * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader...
package com.example.gjucampus import android.os.Bundle import androidx.fragment.app.Fragment import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.Button import android.widget.EditText import android.widget.Toast import com.google.firebase.auth.FirebaseAuth imp...
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2021 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
# Clear workspace rm(list = ls()) # Setup ################################################################################ # Packages library(tidyverse) # Directories indir <- "/Users/cfree/Dropbox/ca_set_gillnet_bycatch/confidential/obs_state/raw" outdir <- "/Users/cfree/Dropbox/ca_set_gillnet_bycatch/confidential/...
function [source] = sourceanalysis(cfg, data, baseline); % SOURCEANALYSIS performs beamformer dipole analysis on EEG or MEG data % after preprocessing and a timelocked or frequency analysis % % Use as either % [source] = sourceanalysis(cfg, freq) % [source] = sourceanalysis(cfg, timelock) % % where the data in fre...
/* * Copyright (C) 2020 European Spallation Source ERIC. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * ...
/* Q2. Prime Sum Problem Description Given an even number A ( greater than 2 ), return two prime numbers whose sum will be equal to the given number. If there is more than one solution possible, return the lexicographically smaller solution. If [a, b] is one solution with a <= b, and [c,d] is another solution with c...
import React, { useState } from 'react'; import { useForm } from 'react-hook-form'; import Swal from 'sweetalert2'; const Validation = () => { const { register, handleSubmit, formState: { errors }, reset, } = useForm(); const [submittedData, setSubmittedData] = useState([]); const handleDelet...
import { Injector, NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { AppComponent } from './app.component'; import { ProductListComponent } from './components/product-list/product-list.component'; import { HttpClientModule, HTTP_INTERCEPTORS } from '@angular/common/ht...
/* * Copyright Lealone Database Group. * Licensed under the Server Side Public License, v 1. * Initial Developer: zhh */ package org.lealone.docdb.server.command; import java.util.ArrayList; import java.util.Map; import java.util.Map.Entry; import org.bson.BsonBoolean; import org.bson.BsonDocument; import org.bso...
// Copyright (C) 2004 Aldratech Ltd. See the LICENSE file for licensing information. /* This file is part of sslpp. sslpp is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of ...
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License * 2.0 and the Server Side Public License, v 1; you may not use this file except * in compliance with, at your election, the Elastic License 2.0 or the Server...
<!DOCTYPE html> <html lang="pt-br"> <head> <meta charset="utf-8"> </head> <body> <script> /** * * REPLACE JAVASCRIPT REGEX - SUBSTITUIR * * Resumo : neste tutorial, você aprenderá como usar o método string replace() para retornar uma nova string com algumas ou todas as corr...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Providers\RouteServiceProvider; use Illuminate\Foundation\Auth\RegistersUsers; use Illuminate\Support\Facades\Hash; use Illuminate\Support\Facades\Validator; use Illuminate\Support\Facades\DB; use App\Models\User; use Spatie\Permission\Models...
package studentmanager; import DBconnection.dbconnection; import DBmanager.StudentDbManager; import model.Department; import model.Student; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.util.List; import java.util.Scanner; import ja...
# payload-plugin-scheduler Payload plugin that enables scheduled publishing for draft-enabled collections, inspired by wordpress post scheduler. ![ci status](https://github.com/wkentdag/payload-plugin-scheduler/actions/workflows/test.yml/badge.svg) ## Installation ```sh npm i payload-plugin-scheduler ``` ## Usage ...
package com.taobao.arthas.core.util; import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONObject; import com.taobao.arthas.common.IOUtils; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.PrintWriter; import java.net.H...
/******************************************************************************** * Copyright (c) 2006, 2009 IBM Corporation and others. All rights reserved. * This program and the accompanying materials are made available under the terms * of the Eclipse Public License v1.0 which accompanies this distribution, and ...
import React from 'react' import style from './StatCard.module.css' export interface StatCardProps { statName: string; statValue: number; StatIcon: any; } function StatCard({ statName, statValue, StatIcon }: StatCardProps) { return ( <React.Fragment> <div className={style.stat__car...
(function () { // Function to replace 'http://' with 'https://' in a URL function toHttps(url) { return url.replace(/http:/g, "https:"); } // Convert <a> tags document.querySelectorAll("a").forEach(function (link) { if (link.href.startsWith("http:")) { link.href = toHttps(link.href); } })...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Ingreso</title> <link rel="stylesheet" href="assets/css/normalize.css"> <link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" ...
import { useContext } from 'react'; import { ThemeContext } from '../context/ThemeContext'; const WorksCard = ({ data }) => { const { theme } = useContext(ThemeContext); const { name, img, live, code, tags } = data; return ( <article className={`'works-card'`}> <div className={`works-card__cont...
# Effective STL [6] | 警惕C++最令人恼怒的解析 ## 函数声明的几种方式 1. 声明一个函数f带有一个double而且返回一个int: ```c++ int f(double d); ``` 2. 名为d的参数左右的括号是多余的,被忽略: ```c++ int f(double (d)); // 同上;d左右的括号被忽略 ``` 3. 省略了参数名: ```c++ int f(double); // 同上;参数名被省略 ``` 4. 第一个声明了一个函数g,它带有一个参数,那个参数是指向一个没有参数、返回double的函数的指针: ```c++ int g(double (*pf)()); ...
var http = require('http') var fs = require('fs') //1.创建server var server = http.createServer() var wwwDir = 'F:/www' server.on('request', function (req, res) { var url = req.url fs.readFile('./template.html', function (err, data) { if (err) { return res.end('404') } // 1...
<?php namespace Modules\Doctors\Http\Controllers\Admin; use App\Services\ApiRequestQueryBuilders\ApiDataTableService; use App\Services\Response\ResponseService; use Illuminate\Contracts\Support\Renderable; use Illuminate\Http\Request; use Illuminate\Routing\Controller; use Modules\Content\Services\ContentService; use...
/*Query 1: -- For each age(in years), how many patients have gone for treatment? SELECT DATEDIFF(hour, dob , GETDATE())/8766 AS age, count(*) AS numTreatments FROM Person JOIN Patient ON Patient.patientID = Person.personID JOIN Treatment ON Treatment.patientID = Patient.patientID group by DATEDIFF(hour, dob , GETDATE(...
import discord from discord import NotFound, Interaction from utility.discord import voice_chat from utility.tools import music_tools from discord.ext import bridge import math import asyncio from utility.scraping import YouTube class list_view(discord.ui.View): """ View for the music bot playlist """...
# Public Repositorie Github Search Frontend This is a simple frontend application that allows you to search for repositories using the Github API. It's built with React and designed to be easy to set up and use. ## Prerequisites Before you can use this application, you need to obtain a GitHub API authorization token...
// Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. // This product includes software developed at Datadog (https://www.datadoghq.com/). // Copyright 2019-Present Datadog, Inc. use serde::de::{Error, MapAccess, Visitor}; use serde::{Deserialize, Deserializer, Se...
local util = require 'utility' local await = require 'await' local pub = require 'pub' local jsonrpc = require 'jsonrpc' local define = require 'proto.define' local json = require 'json' local inspect = require 'inspect' local platform = require 'bee.platform' local fs = requ...
package com.jiushi.auth.config; import com.jiushi.auth.service.JiushiUserDetailsService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.security.authentication.Aut...
#include <iostream> #include <string> #include <map> class SubscriberBook{ private: std::map<std::string, std::string> subscriber; public: void setAddSubscriber(const std::string& name, const std::string& phoneNumber){ subscriber[name] = phoneNumber; } const std::string& getNumberPhone(const ...
import React, {useContext} from 'react' import MovieCard from './MovieCard' import { GlobalContext } from '../../context/GlobalState'; function Watched() { const {watched} = useContext(GlobalContext); return ( <div className="movie-page"> <div className="container"> <div cl...
""" Tortoise comes with a pydantic model creating function which creates the pydantic models for you: 1 - User/SuperInSchema for creating new users 2 - User/SuperOutSchema, user objects for use outside the application 3 - User/SuperDatabaseSchema, user object for use within the application for most for validation 4 - U...
import { createContext, useState } from "react"; import { useMutation, useQuery } from "react-query"; import { toast } from "react-toastify"; import { IContextProvider } from "../interfaces/Context.interfaces"; import { IDeleteData, IRegisterUserProps, IUpdateUserProps, IUserDataWithSales, IUsersContextData, ...
# BongoPawClicker ![GitHub](https://img.shields.io/github/license/Siriusq/BongoPawClicker?style=flat-square) ![GitHub top language](https://img.shields.io/github/languages/top/Siriusq/BongoPawClicker?style=flat-square&logo=csharp&color=%232c8d0f) ![Static Badge](https://img.shields.io/badge/platform-windows-lightgrey.s...
import z from "zod" export const registerFormSchema = z.object({ first_name: z.string().min(3, { message: "O nome deve ter pelo menos 3 caracteres." }), last_name: z.string().min(3, { message: "O sobrenome deve ter pelo menos 3 caracteres." }), email: z.string().email({ message: "Por favor, insira um email válid...
package cos import ( "context" "cloud.google.com/go/storage" "github.com/lebauce/nikos/tarball" "github.com/lebauce/nikos/types" "github.com/pkg/errors" "google.golang.org/api/option" ) type Backend struct { buildID string client *storage.Client } func (b *Backend) GetKernelHeaders(directory string) error ...
# create Seurat object of melanoma patient TIL4 and PBMC7 library(dplyr) library(ggplot2) library(Seurat) seurat.data <- Read10X(data.dir = paste0("./data/TCR/Pool80_4-9/")) rownames(x = seurat.data[["Antibody Capture"]]) <- gsub(pattern = "*_CITEseq", replacement = "", rownames(seurat.data[["Antibody Capture"]])) TI...
#include "Log.h" #include "game/ClientGame.h" #include "game/ClientInventory.h" #include "entity/ClientPlayer.h" #include "item/Item.h" #include "packet/SetItemFiltersPacket.h" #include "tileentity/Pipe.h" #include "types/DirectedPlace.h" #include "ui/gtk/UITypes.h" #include "ui/module/ItemFilterModule.h" namespace Ga...
--- permalink: protect-scw/task_install_the_snapcenter_plug_in_for_windows_silently_from_the_command_line.html sidebar: sidebar keywords: summary: Sie können das SnapCenter-Plug-in für Microsoft Windows lokal auf einem Windows-Host installieren, wenn Sie das Plug-in nicht Remote über die SnapCenter-Benutzeroberfläc...
// component elements. import { ButtonCategoryContainer, OptionButton, } from './FormSelector.styles'; // component types. import { FormSelectorT } from './FormSelector.types'; // ** generateOptionButtons | helper function ** // // const generateOptionButtons = ({ options, handleClick }: FormSelectorT, category: s...
// loccheck.c -- checking to find out where variables are stored. #include <stdio.h> void mikado(int); //function declaration int main(void){ int pooh = 2, bah = 5; // local variablere for main printf("Inside main() pooh = %d and &pooh = %p\n", pooh, &pooh); printf("Inside main() bah = %d ...
import { Injectable } from '@angular/core'; import { HttpInterceptor, HttpRequest, HttpHandler, HttpEvent, HttpResponse, HttpErrorResponse } from '@angular/common/http'; import { Observable, throwError } from 'rxjs'; import { map, catchError } from 'rxjs/operators'; import { AuthenticationService } from '../services/au...