text
stringlengths
184
4.48M
import mongoose from "mongoose"; const practicalSchema = new mongoose.Schema({ title: { type: String, required: true, }, conductedOn: { type: Date, default: Date.now, required: true, }, details: { type: String, required: true, }, participants: [ { type: mongoose.Sche...
'use client' import { useEffect, useState } from 'react' import { recoverTypedDataAddress } from 'viem' import { type Address, useSignTypedData } from 'wagmi' import { Terminal, AlertCircle } from 'lucide-react' import { Button } from '@/components/ui/button' import { Alert, AlertTitle, AlertDescription } from '@/com...
import openai from dotenv import find_dotenv, load_dotenv import time import logging import os from datetime import datetime import requests as r import json load_dotenv() # using environment variables like below is a second layer of encryption, instead of hardcoding API key into code # set up env variable in cmd li...
import { useState, useEffect } from 'react'; import { collection, getDocs } from 'firebase/firestore'; import { db } from '../lib/firebase'; import { Package } from '../types'; export function usePackages() { const [packages, setPackages] = useState<Package[]>([]); const [loading, setLoading] = useState(true); ...
from src.sat_generator import URGenerator, SRGenerator from src.solvers import minisat_solver import numpy as np from tqdm import tqdm def toy_dataset(): """ Builds a toy dataset with Satisfiable Random SAT Formulas. This function generates 5 uniform random sat instances for each of the following com...
{% extends 'store/base.html' %} {% load form_tags %} {% block content %} <div class="container mt-4"> <h2 class="mb-4">Add Category</h2> <form method="post" class="needs-validation" novalidate> {% csrf_token %} <div class="form-group"> <label for="id_name">Category Name</la...
<template> <div class="absolute left-1/2 top-4 w-full max-w-[460px] -translate-x-1/2 px-4"> <div class="flex items-center gap-2 rounded-lg bg-white p-5 shadow-3xl sm:gap-5"> <div class="flex shrink-0 items-center gap-1.5 text-black"> <icon-check-round-green class="shrink-0" /> ...
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\BelongsTo; class Solicitud extends Model { protected $table = 'solicitud'; use HasFactory; protected $fillable = [ 'fecha',...
# Personal Financial Planner A console-based application for personal financial planning. This application allows users to keep track of their transactions, income, and expenses by category, view their current balance, view transactions by category, manage categories, and calculate potential investment returns. ## In...
import React, { useState } from 'react'; import { useNavigate } from 'react-router-dom'; import { FormField } from '../ui/FormField'; import { Button } from '../ui/Button'; import { useGrowStore } from '../../hooks/useGrowStore'; import { DynamicList } from '../ui/DynamicList'; export function RealityScreen() { cons...
import styled from 'styled-components'; import bg_coffe_short from './assets/backgroundCoffeShort.png'; import bg_coffe_beans from './assets/coffeBeansBackground.png'; import facebook from '../Footer/assets/facebook.svg'; import instagram from '../Footer/assets/instagram.svg'; import youtube from '../Footer/assets/yout...
"use strict"; import UserSchema from "../entity/user.entity.js"; import Encargo from "../entity/encargo.entity.js"; import { AppDataSource } from "../config/configDb.js"; export async function createEncargoService(dataEncargo) { try { console.log("Datos recibidos en el encargo:", dataEncargo); con...
import React, { useEffect } from 'react'; import { useDispatch, useSelector } from 'react-redux'; import { fetchBooks, deleteBook } from '../../redux/actions/bookActions'; import { Container, Row, Col, Card, Button } from 'react-bootstrap'; import { Link } from 'react-router-dom'; import './UserProfile.css'; const Use...
const std = @import("std"); const Allocator = std.mem.Allocator; const assert = std.debug.assert; const print = std.debug.print; const parseInt = std.fmt.parseInt; const isDigit = std.ascii.isDigit; /// Part 1 without allocator fn part1(input: []const u8) !usize { var checksum: usize = 0; var out_idx: usize =...
/*- * * Hedera C++ SDK * * Copyright (C) 2020 - 2022 Hedera Hashgraph, LLC * * 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 * * U...
import 'package:sqflite/sqflite.dart'; import '../domain/recurring_transaction.dart'; class RecurringTransactionRepository { final Database database; RecurringTransactionRepository(this.database); Future<void> createTable() async { await database.execute(''' CREATE TABLE IF NOT EXISTS recurring_trans...
using System; using System.Data.SqlClient; using System.Web.UI; using System.Web.UI.WebControls; namespace Garage_System2 { public partial class ApplicantForm : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } protected void ButtonSubmit_Click(obje...
grammar miniTom; options { output=AST; ASTLabelType=Tree; backtrack=true; tokenVocab=miniTomTokens; } @parser::header { package newparser; import org.antlr.runtime.tree.Tree; } @lexer::header { package newparser; import debug.*; import streamanalysis.*; import org.antlr.runtime.tree.Tree; } @lexer::member...
package kr.or.nexus.cloud.controller; import java.io.IOException; import java.io.UnsupportedEncodingException; import java.net.URLDecoder; import java.util.List; import java.util.Map; import org.springframework.beans.factory.annotation.Value; import org.springframework.core.io.UrlResource; import org.springframework....
export interface AnalyticsData { views: number; likes: number; comments: number; subscribers: number; watchTime: number; revenue: number; } export interface Video { id: string; title: string; thumbnail: string; views: number; likes: number; publishDate: string; duration: string; } export int...
import 'package:cloud_firestore/cloud_firestore.dart'; import 'package:firebase_auth/firebase_auth.dart'; import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:fluttertoast/fluttertoast.dart'; import 'package:get/get.dart'; import 'package:get_storage/get_storage.dart'; impor...
import { AuthProvider } from "@/src/shared/providers/AuthProvider"; import { InfoModalProvider } from "@/src/shared/providers/InfoModalProvider"; import { ActionModalProvider } from "@/src/shared/providers/ActionModalProvider"; import FontAwesome from "@expo/vector-icons/FontAwesome"; import { useFonts } from "expo-fon...
from django import forms from django.contrib.auth.models import User from django.contrib.auth.forms import ReadOnlyPasswordHashField # from .models import StudentInfo class UserAdminCreationForm(forms.ModelForm): password = forms.CharField(widget=forms.PasswordInput) password_2 = forms.CharField(label='Confir...
package codeowners import ( "context" "encoding/base64" "errors" "net/http" "github.com/gofri/go-github-pagination/githubpagination" "github.com/google/go-github/v64/github" ) type Options struct { User string `short:"u" xor:"user,org" required:"" help:"User name."` Org string `short:"o" xor:"org" require...
import unittest from fractions import Fraction from my_sum import sum # Unit tests for the sum function class TestSum(unittest.TestCase): # Test case: summing a list of integers def test_list_int(self): """ Test that it can sum a list of integers """ data = [1, 2, 3] res...
// Copyright 2024 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/ui/views/webauthn/ambient/ambient_signin_bubble_view.h" #include <memory> #include <string> #include <utility> #include <vector> #include "base/funct...
// DefaultLayout.tsx import React, { useState, ReactNode } from 'react'; import Header from '../components/Header/index'; import Sidebar from '../components/Sidebar/index'; import { useNavigate } from 'react-router-dom'; interface DefaultLayoutProps { children: ReactNode; currentUser: string | null; // Add current...
// src/pages/Supplies.tsx import { useState, useMemo } from 'react'; import { Plus, AlertTriangle } from 'lucide-react'; import { useMedicalSupplyStore } from '../stores/medical-supply'; import type { CategoryType } from '../types/medical-supply'; import AddSupplyForm from '../features/supplies/components/AddSupplyForm...
/* * (C) Copyright 2017 Nuxeo (http://nuxeo.com/) and others. * * 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 b...
import React, { useState } from 'react'; import { useNavigate } from 'react-router-dom'; import axios from 'axios'; import '../Style.css'; import topCover from '../../images/top cover.jpg'; import ValidationTextFields from '../ValidationTextFields'; const AdminAddLesson = () => { const formattedDate = sessionStorag...
"use client"; import { QueryClient, QueryClientProvider } from "@tanstack/react-query"; type PropTypes = { children: React.ReactNode; }; const ReactQueryProvider = ({ children }: PropTypes) => { const queryClient = new QueryClient({ defaultOptions: { queries: { refetchOnWindowFocus: false, ...
import { computePosition, arrow, offset, shift, autoPlacement, flip, autoUpdate, size, } from "@floating-ui/dom"; const positionPlacement = { left: "right", right: "left", bottom: "top", top: "bottom", }; export function getOppositePlacement(placement) { return placement.replace( /left|ri...
package com.queryquest.configurations; import com.queryquest.models.entities.RegistrationSource; import com.queryquest.models.entities.User; import com.queryquest.models.entities.UserRole; import com.queryquest.repositories.UserRepository; import jakarta.servlet.ServletException; import jakarta.servlet.http.HttpServl...
# # (C) Tenable Network Security, Inc. # include('compat.inc'); if (description) { script_id(129502); script_version("1.2"); script_set_attribute(attribute:"plugin_modification_date", value:"2021/01/28"); script_cve_id("CVE-2019-8912"); script_bugtraq_id(107063); script_name(english:"Palo Alto Networks ...
// This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at https://mozilla.org/MPL/2.0/. //! The different metric types supported by the Glean SDK to handle data. // Re-export of `glean` types we can re-u...
package org.url.shortener.service; import lombok.AllArgsConstructor; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Bean; import org.springframework.security.authentication.AuthenticationManager; import org.springframework.security.authentication.UsernamePa...
<?php namespace App\Controller\Admin; use App\Controller\AppController; /** * Reviews Controller * * @property \App\Model\Table\ReviewsTable $Reviews * * @method \App\Model\Entity\Review[]|\Cake\Datasource\ResultSetInterface paginate($object = null, array $settings = []) */ class ReviewsController extends AppCo...
## # (C) Tenable, Inc. # # The descriptive text and package checks in this plugin were # extracted from Red Hat Security Advisory RHSA-2022:1975. The text # itself is copyright (C) Red Hat, Inc. ## include('compat.inc'); if (description) { script_id(161034); script_version("1.7"); script_set_attribute(attribute...
import { useEffect, useState } from "react"; import NewsCard from "../components/NewsCard/NewsCard"; import { fetchNewsByKeyword } from "../utils/fetchNews"; const ProgrammingPage = () => { const [news, setNews] = useState([]); const [loading, setLoading] = useState(true); useEffect(() => { const fetchData ...
--- id: d78d1cbb-7a4e-4fa0-8f58-ceb0070a3f25 title: 'The Abundance Beacon: Attract Wealth and Protection Ritual' permalink: /Secret-knowledge/The-Abundance-Beacon-Attract-Wealth-and-Protection-Ritual/ categories: - Secret knowledge - Task tags: - prosperity spell - symbolize prosperity - draw sigil - place ...
from ninja import ModelSchema, Schema from products.models import Produit from typing import Optional class ProduitSchema(ModelSchema): class Meta: model = Produit fields = '__all__' class ProduitCreate(ModelSchema): class Meta: model = Produit exclude = ['id'] class Produi...
# Copyright Paraguay Educa 2009 # # 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 version. # # This prog...
from flask import Flask, render_template, redirect, url_for, request, session from flask_cors import CORS import requests app = Flask(__name__) app.secret_key = 'your_secret_key' # URLs of the microservices AUTHENTICATION_SERVICE_URL = "http://localhost:5000" CONTENT_MANAGEMENT_SERVICE_URL = "http://localhost:5001" ...
// // OwnChoiceView.swift // CashBackApp // // Created by Hei Man on 16/11/2023. // import SwiftUI struct OwnChoiceView: View { @Environment(\.managedObjectContext) private var viewContext @State var card: Usercard @State var duePayment = Date() @State var dueCashback = Date() @State var valuei...
/* eslint-disable class-methods-use-this */ /* eslint-disable no-underscore-dangle */ import { DecoratorNode, LexicalNode, NodeKey, SerializedLexicalNode } from 'lexical'; import { ReactElement } from 'react'; import { WorkflowLexicalNodeType } from '../workflowLexicalNodes.consts'; import WorkflowStepOutputN...
package com.example.minireto.repository; import com.example.minireto.ENUMS.ETAPA; import com.example.minireto.ENUMS.FAMILIA; import com.example.minireto.model.Ciclo; import com.example.minireto.model.Realizan; import com.example.minireto.repository.Interfaces.CicloRepository; import org.springframework.jdbc.core.JdbcT...
# The map & flatMap methods ## map & array ```java import java.util.Arrays; import java.util.stream.IntStream; void main() { var nums = IntStream.of(1, 2, 3, 4, 5, 6, 7, 8); var squares = nums.map(e -> e * e).toArray(); System.out.println(Arrays.toString(squares)); } ``` ## map & random ```java impo...
import { createPinia } from 'pinia' import App from './App.vue' import router from './router' /* import the fontawesome core */ import { library } from '@fortawesome/fontawesome-svg-core' /* import font awesome icon component */ import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome' /* import specific icons *...
import 'dart:async'; import 'dart:convert'; import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:origa/http/api_repository.dart'; import 'package:origa/http/httpurls.dart'; import 'package:origa/languages/app_languages.dart'; import 'package:origa/models/agentInfoPublic/agent_...
<script> // * Components import Navbar from "../../../components/Navbar/Navbar.svelte"; import Header from "../../../helpers/Header/Header.svelte"; import FileTree from "../../../components/FileTree/FileTree.svelte"; import SideBar from "../../../components/SideBar/SideBar.svelte"; import Modal from "../../...
import pandas as pd import streamlit as str import plotly_express as px car_data = pd.read_csv("./datasets/df_vehicles_mod.csv") str.title('Dashboard de vehículos usados de Estados Unidos') str.header('Tipos de vehículo por fabricante') pivot_manufacturer = car_data.pivot_table( index='manufacturer', columns='ty...
# # (C) Tenable Network Security, Inc. # # The descriptive text and package checks in this plugin were # extracted from Red Hat Security Advisory RHSA-2018:3032 and # Oracle Linux Security Advisory ELSA-2018-3032 respectively. # include("compat.inc"); if (description) { script_id(118762); script_version("1.4"); ...
import React, { useState } from "react"; import PropTypes from "prop-types"; import { withRouter, Redirect, Link } from "react-router-dom"; import { connect } from "react-redux"; import { Container, Row, Col, Button, FormGroup, FormText, Input, } from "reactstrap"; import Widget from "../../components/Wid...
import React from 'react'; import { Link } from 'react-router-dom'; import { formatCurrency } from '../../../utils/formatCurrency'; interface ProductCardProps { id: string; title: string; price: number; image: string; category: string; } const ProductCard: React.FC<ProductCardProps> = ({ id, title, price, i...
package io.papermc.deathworld.managers; import io.papermc.deathworld.DeathWorldPlugin; import io.papermc.deathworld.helpers.ServerHelper; import net.kyori.adventure.util.TriState; import org.bukkit.*; import org.bukkit.block.Biome; import org.bukkit.block.Block; import org.bukkit.entity.Player; import org.bukkit.gener...
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. import os import shutil from pathlib import Path import matplotlib.pyplot as plt import pytest import torch import torch.nn as nn from pytest import MonkeyPatch from torchgeo.datasets import CropHarvest, DatasetNotFoundErro...
import React from "react"; import { Dialog, DialogTitle, DialogContent, DialogActions, IconButton, Button, Typography, Box } from "@mui/material"; import { BlockMath } from "react-katex"; import CloseIcon from "@mui/icons-material/Close"; interface AnnualRateFormulaModalProps { open: boolean; onClose: () => void; ...
<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>管理系统</title> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet"> <script src="https://cdn.jsdelivr...
<script lang="ts"> import { onMount } from "svelte" import p5 from "p5" import * as THREE from "three" import { invertShader } from "./InvertShader" import { EffectComposer } from "three/examples/jsm/postprocessing/EffectComposer" import { RenderPass } from "three/examples/jsm/postprocessing/RenderPass" import {...
// /* eslint-disable @typescript-eslint/no-unused-vars */ // /* eslint-disable @typescript-eslint/no-explicit-any */ // // /* eslint-disable @typescript-eslint/no-explicit-any */ // // /* eslint-disable @typescript-eslint/no-unused-vars */ // "use client"; // import React, { useState, useEffect } from "react"; // impo...
import { Component, OnInit } from '@angular/core'; import { ActivatedRoute } from '@angular/router'; import { RouterModule } from '@angular/router'; import { Router } from '@angular/router'; import { CommonModule } from '@angular/common'; @Component({ selector: 'app-book-details', standalone: true, templateUrl: ...
import Config from './config/Config'; import ElasticUtils from './utils/ElasticUtils'; import MongoUtils from './utils/MongoUtils'; export class Configurator { private config: Config; private elastic: ElasticUtils; private mongo: MongoUtils; constructor() { this.config = Config.getInstance(); ...
# Description This application is designed to help manage the Humanode node. Main features: * Checks the Bioauth status of the Humanode node and sends an alert in Telegram if the Bioauth is expired and about to expire. * Checks the availability of the Humanode node RPC and sends an alert in Telegram if the RPC is not...
clear; clc; addpath ../../SDMBIGDAT19/CODES/ nSamples = 512; % number of samples sampFreq = 512; % sampling frequency % Quadratic chirp signal with the following parameters snr = 10; % signal to nosie ratio a1 = 10; a2 = 3; a3 = 3; % Search range of phase coefficients rmin = [1, 1, 1]; rmax = [180, 10, 10]; % numbe...
import useSWR from "swr"; import { deleteById, getAll, getById, /*create, update,*/ postPhoto } from "../api"; import { useOutletContext } from "react-router-dom"; import { useState, useEffect, useCallback } from "react"; import FotoCardList from "../components/FotoCardList"; import useSWRMutation from 'swr/mutation'; ...
# Humour Styles Recognition Dataset and Model Repository This repository contains the dataset and code implementations for the research paper titled "A Two-Model Approach for Humour Style Recognition". The research aims to automatically recognise different styles of humour, including self-enhancing, self-deprecating, ...
import 'package:cloud_firestore_mocks/cloud_firestore_mocks.dart'; import 'package:flutter_test/flutter_test.dart'; void main() { test('Electricity sudden power failure should be recorded.', () async { final instance = MockFirestoreInstance(); await instance .collection("electricity_sudden_powercut")...
import 'package:flutter/material.dart'; class Questionario extends StatelessWidget { const Questionario({super.key}); @override Widget build(BuildContext context) { return MaterialApp( debugShowCheckedModeBanner: false, home: questionarioPage(), ); } } class questionarioPage extends State...
/* * Copyright 2008-2013 the original author or authors. * * 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 ...
import React from "react"; import hero from "../../assets/hero.png"; import info from "../../assets/info.png"; import logo from "../../assets/logo.png"; import split from "../../assets/split.png"; import transaction from "../../assets/transaction.png"; import banner from "../../assets/splitit.png"; import friendly from...
import { create } from "zustand"; type OrderItem = { id: string; quantity: number; price: number; }; type OrderItemsStore = { orderItems: OrderItem[]; products: any[]; addOrderItem: (item: OrderItem) => void; removeOrderItem: (item: OrderItem) => void; updateOrderItem: (item: OrderItem) => void; set...
<%@page contentType="text/html" pageEncoding="UTF-8"%> <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> <!doctype html> <html class="no-js" lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="x-ua-compatible" content="ie=edg...
<!DOCTYPE html> <html> <head> <title>AlphaBlog</title> <%= csrf_meta_tags %> <%= csp_meta_tag %> <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %> <%= javascript_pack_tag 'application', 'data-turbolinks-track': 'reload' %> <link href="https://fonts.goog...
import * as React from "react"; import Box from "@mui/material/Box"; import Typography from "@mui/material/Typography"; import SchoolIcon from '@mui/icons-material/School'; import {Stack} from "@mui/material"; import EducationHistory from "./EducationHistory.tsx"; interface EducationPageProps { data: { ins...
import { Pipe, PipeTransform } from '@angular/core'; import { DateTime } from 'luxon'; import { CustomField } from 'src/app/shared/types/custom-field.model'; @Pipe({ name: 'customField', pure: true // meaning that transform method will invoked only the value was changes }) export class CustomFieldPipe implements P...
import { GlobalOmitOptions } from '../jsonProtocol/serializeJsonQuery' import { dmmfToJSModelName } from '../model/utils/dmmfToJSModelName' import { RuntimeDataModel } from '../runtimeDataModel' import { JsArgs } from '../types/exported/JsApi' import { applyResultExtensions } from './applyResultExtensions' import { Mer...
export type Options = { /** Time in milliseconds to wait until the `input` function is called. @default 0 */ readonly wait?: number; /** The maximum time the `input` function is allowed to be delayed before it's invoked. This can be used to control the rate of calls handled in a constant stream. For example,...
Based on the provided content, here's an analysis of CVE-2015-8434: **Root Cause of Vulnerability:** * The vulnerability is a use-after-free error in Adobe Flash Player. Specifically, it occurs when handling `Sound.setTransform` when a transform value is set to an object with a `valueOf` method defined. **Weakness...
/* * Copyright (C) 2019 Fatih, Tv Shows Android Kotlin. * * 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 ...
import 'package:flutter/material.dart'; import 'package:local_event_finder/global/model/local_event.dart'; import 'package:local_event_finder/global/tools/constants/constant_helper.dart'; import 'package:local_event_finder/global/tools/widgets/drawer.dart'; import 'package:local_event_finder/global/tools/widgets/event_...
module Payments class PayService < ServiceBase include Routing attr_reader :payment attr_reader :checkout_session_url def initialize(payment_id:) @payment = Payment.find(payment_id) @report_errors = true end def run(params = {}) context = { params: params } ...
import unittest from unittest.mock import Mock, patch from time import sleep import unicon from unicon import Connection from pyats.topology import loader from unicon.eal.dialogs import Statement from unicon.plugins.iosxe.service_implementation import Copy from unicon.plugins.tests.mock.mock_device_iosxe import MockD...
package network.frostless.mist.commands.discord; import net.dv8tion.jda.api.EmbedBuilder; import net.dv8tion.jda.api.entities.Guild; import net.dv8tion.jda.api.events.interaction.SlashCommandEvent; import network.frostless.fragment.utils.TimeUtils; import network.frostless.mist.core.command.CommandBase; import network...
--- title: 'Pinouts' description: 'Recommended pinouts for various protocols and Pmods' weight: 30 --- To ease bring-up and make it easier to reuse boards, TT advocates to use common pinouts wherever possible. If your design uses the same pinout as some of the other designs, it is much easier to connect external hardw...
const axios = require("axios"); const crypto = require("crypto"); const OAuth = require("oauth-1.0a"); const qs = require("querystring"); const readline = require("readline").createInterface({ input: process.stdin, output: process.stdout, }); // The code below sets the consumer key and consumer secret from your e...
<script setup> import { ref, onMounted, onBeforeUnmount } from 'vue'; const props = defineProps({ src: { type: String, required: true }, alt: { type: String, default: '' }, aspectRatio: { type: String, default: '2/3' } }); const isLoaded = ref(false); const hasError = ref(false); c...
package com.saad.reservation.grpc.services; import com.saad.reservation.core.entities.Chambre; import com.saad.reservation.core.entities.Client; import com.saad.reservation.core.entities.Reservation; import com.saad.reservation.core.entities.enums.StatusReservation; import com.saad.reservation.core.repositories.Chambr...
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; import "@openzeppelin/contracts/access/Ownable.sol"; contract AgreedPrice is Ownable { uint256 public price; constructor(uint256 _price) { price = _price; } /** * @notice The below version of the function is vulnerable to Access Control attacks. ...
= Create Search Index Aliases :page-topic-type: concept :description: A Search index alias lets you run a Search query against a Search index without using the original Search index name. [abstract] {description} You can also use a Search index alias to run a Search query across multiple buckets, scopes, or Search in...
--- title: "\"[New] 2024 Approved Dissecting Drama Introducing Chapters to Video Content\"" date: 2024-05-22T06:07:42.665Z updated: 2024-05-23T06:07:42.665Z tags: - ai video - ai vimeo - ai vimeo video categories: - ai - vimeo description: "\"This Article Describes [New] 2024 Approved: Dissecting Drama: Int...
/* * AMRIT – Accessible Medical Records via Integrated Technology * Integrated EHR (Electronic Health Records) Solution * * Copyright (C) "Piramal Swasthya Management and Research Institute" * * This file is part of AMRIT. * * This program is free software: you can redistribute it and/or modify * it under the terms...
library(datasets) ?lynx head(lynx) #Histogram hist(lynx) #add options hist(lynx, breaks = 14, #suggest 14bins freq = FALSE, #Axis shows density not frequency col = "thistle1", main = paste("Histogram of Annual canadian lynx", "Trappings, 1821-1934"), xlab = "Number of Lynx Trapped") #Add a n...
import unittest from copy import deepcopy from Hearts import State, Deck, Card, Suit, Rank class TestState(unittest.TestCase): def setUp(self): self.deck = Deck() self.card = self.deck.draw_card() self.trick = [Card(Suit.HEARTS, Rank.ACE), Card(Suit.CLUBS, Rank.SEVEN), Card(Suit.HEARTS, Ran...
import { Component, OnInit, ViewEncapsulation } from '@angular/core'; import { HttpClient } from '@angular/common/http'; // import { Component, OnInit, ViewEncapsulation } from '@angular/core'; import { FormArray, FormBuilder, FormGroup, Validators } from '@angular/forms'; import { DocumentValidator } from 'src/app/val...
/* * Copyright (C) 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 law ...
import { useState, createContext } from 'react' import './App.css' import Todos from './components/Todos' import TodoForm from './components/TodoForm' export const TodoContext = createContext() function App() { const [todos, setTodos] = useState([ { id: 1, title: 'Finish Progate React Course', ...
""" 数据库的配置文件 ###注意!使用tortoise-orm工具必须要安装aerich数据库迁移工具库 pip install aerich 支持的数据库 PostgreSQL >= 9.4 (使用asyncpg) SQLite (使用aiosqlite) MySQL / MariaDB (使用asyncmy ) Microsoft SQL Server / Oracle(使用asyncodbc) 使用asyncpg的时候需要先 pip install asyncpg 使用Mysql的时候需要先 pip install aiomysql """ import os import json from dotenv i...
/* Distributed under the Apache License, Version 2.0. See accompanying NOTICE file for details.*/ #pragma once #include "patient/actions/SESubstanceAdministration.h" class SESubstance; class CDM_DECL SESubstanceBolus : public SEPatientAction { friend class PBPatientAction;//friend the serialization class public:...
export interface Point { x: number; y: number; } export interface OptionProps { color?: string; width?: number; } export interface DrawLineOptionProps extends OptionProps { strokeStyle?: string; isLineDash?: boolean; lineDashOffset?: number; round?: boolean; } export interface CreateOpti...
# Assignment #C: 五味杂陈 Updated 1148 GMT+8 Dec 10, 2024 2024 fall, Complied by <mark>张俊龙,工学院</mark> **说明:** 1)请把每个题目解题思路(可选),源码Python, 或者C++(已经在Codeforces/Openjudge上AC),截图(包含Accepted),填写到下面作业模版中(推荐使用 typora https://typoraio.cn ,或者用word)。AC 或者没有AC,都请标上每个题目大致花费时间。 2)提交时候先提交pdf文件,再把md或者doc文件上传到右侧“作业评论”。Canvas需要有同学清晰...