text
stringlengths
184
4.48M
source("scripts/00-setup.R") source("../post_GAN_functions.R") gaussian_df_z <- as.matrix(read.csv("gan-input/gaussian_df_z.csv")) # Define function that generates data from all four approaches # directly from the stored weights gen_synth_25_gaussians <- function(dp = T, nmp = 2.165, mb = 50,...
// SPDX-License-Identifier: MIT pragma solidity >=0.8.0; import './IRenovaAvatarBase.sol'; /// @title IRenovaAvatarSatellite /// @author Victor Ionescu /// @notice See {IRenovaAvatarBase} /// @dev Deployed on the satellite chain. interface IRenovaAvatarSatellite is IRenovaAvatarBase { /// @notice Emitted when an...
from django.shortcuts import render from rest_framework.views import APIView from rest_framework import generics from .serializers import * from .models import * from rest_framework.response import Response from rest_framework import permissions from django.http import JsonResponse from django.views.decorators.csrf imp...
package Deck; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.*; import ulb.infof307.g02.models.Deck; import ulb.infof307.g02.models.DeckTable; import java.io.File; import java.io.IOException; import java.util.ArrayList; import java.util.List; import static org.junit.jupiter.api.Assertions.*; publi...
#include "variadic_functions.h" #include <stdio.h> /** * print_strings - function that prints String * @separator: tring to be printed * @n: number of strings * * Return: ... */ void print_strings(const char *separator, const unsigned int n, ...) { va_list args; unsigned int i; char *string; va_s...
# Border Filter <!-- @name: Border Filter @description: @tags: @categories: \--> Define and add a border filter ## Syntax **Border Filter** *filterName$, value1, value2, value3, value4* ## Parameters **filterName$**: Name of the filter to use (see list) **value1**: First value to use, a percentage or a number o...
import { createAsyncThunk } from '@reduxjs/toolkit' import axiosInstance from '../../axiosInstance' import request from "axios"; import { setToast } from "../toast/toastSlice"; interface IPagination { page: number; limit: number; searchText?:string; } interface ICartProduct { _id: string; title: string; w...
package dev.jason.harmony.slashcommands.general; import com.jagrosh.jdautilities.command.CommandEvent; import com.jagrosh.jdautilities.command.SlashCommand; import com.jagrosh.jdautilities.command.SlashCommandEvent; import com.jagrosh.jdautilities.doc.standard.CommandInfo; import net.dv8tion.jda.api.EmbedBuilder; impo...
package com.example.perfumeshop.data.utils import android.content.Context import android.content.Intent import android.net.ConnectivityManager import android.net.NetworkCapabilities import android.net.Uri import android.os.Build import android.util.Log import android.widget.Toast import androidx.compose.runtime.Compos...
#ifndef IOTEXCRYPT_ENTROPY_H #define IOTEXCRYPT_ENTROPY_H #include "build_info.h" #include <stddef.h> #if defined(IOTEX_SHA512_C) && !defined(IOTEX_ENTROPY_FORCE_SHA256) #include "sha512.h" #define IOTEX_ENTROPY_SHA512_ACCUMULATOR #else #if defined(IOTEX_SHA256_C) #define IOTEX_ENTROPY_SHA256_ACCUMULATOR #include "s...
const options = { method: "GET", headers: { accept: "application/json", Authorization: "Bearer eyJhbGciOiJIUzI1NiJ9.eyJhdWQiOiIwNjUyNjg3YTExNzRhMGRhYWM3ODUxYWI0YTdkZDAzMCIsInN1YiI6IjY1NGQxNjk3Mjg2NmZhMTA4ZGMzZTNhMiIsInNjb3BlcyI6WyJhcGlfcmVhZCJdLCJ2ZXJzaW9uIjoxfQ.DfEYDnbxHmN78CHi94hN0-2ulU-Ufs3gkXzRmFJ...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Cont</title> </head> <body> <!--Blue is more specific--> <!-- <style> div.blue { colo...
// // DateCalculationModel.swift // IbarakiUiniversityApp // // Created by HiroakiSaito on 2023/01/01. // import Foundation enum DocumentStatus { case normal case befor1Week case befor3Day case befor1Day case deadline case overdue case none } class DateCalculationModel { private f...
<!DOCTYPE html> <html lang="es" xmlns:th="http://www.thymeleaf.org"> <head> <meta charset="utf-8"/> <meta http-equiv="X-UA-Compatible" content="IE=edge"/> <meta content="width=device-width, initial-scale=1.0" name="viewport"/> <title>La ciencia de manera divertida</title> <meta content="" name="des...
import 'package:carousel_slider/carousel_slider.dart'; import 'package:flutter/material.dart'; import 'package:loja_virtual/models/cart_manager.dart'; import 'package:loja_virtual/models/products.dart'; import 'package:loja_virtual/models/usermanager.dart'; import 'package:provider/provider.dart'; import '../products/...
import { createSlice } from "@reduxjs/toolkit"; import appApi from "../services/appApi"; export const userSlice = createSlice({ name: "user", initialState: null, reducers: { addNotifications: (state, { payload }) => { if (state.newMessages[payload]) { state.newMessages[p...
from unittest.mock import patch from django.conf import settings from django.shortcuts import reverse from django.test.utils import override_settings import pytest from rest_framework.status import ( HTTP_202_ACCEPTED, HTTP_400_BAD_REQUEST, HTTP_402_PAYMENT_REQUIRED, HTTP_404_NOT_FOUND, ) from basero...
import 'package:easy_localization/easy_localization.dart'; import 'package:flutter/material.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:la_mode/core/utils/app_components.dart'; import 'package:la_mode/core/utils/text_styles.dart'; import '../../../../core/utils/app_colors.dart';...
"use client"; import { signIn, signOut, useSession } from "next-auth/react"; import Link from "next/link"; import { FaXTwitter } from "react-icons/fa6"; import { HiHome, HiDotsHorizontal } from "react-icons/hi"; export default function Sidebar() { const { data: session } = useSession(); return ( <div classNam...
# frozen_string_literal: true module SolutionImports module Transient # A transient record to ensure an {Provider} exists. class ProviderRow < Support::FlexibleStruct attribute :identifier, Types::Identifier attribute :name, Types::PresentString attribute? :url, Types::URL.optional #...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Document</title> </head> <body> <div id="app"> <h1>差值表达式</h1> {{msg}} <h2>实...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>项目实战-PC端固定布局(5)</title> <link rel="stylesheet" type="text/css" href="css/style.css"> </head> <body> <header id="header"> <div class="center"> <h1 class="logo">飘城旅行社</h1> <nav class="link"> ...
import React, { useCallback, useState } from 'react' import type { FC } from 'react' import { View, Text, Image, Alert } from 'react-native' import { MD2Colors as Colors } from 'react-native-paper' // @ts-ignore import Icon from 'react-native-vector-icons/MaterialCommunityIcons' import moment from 'moment-with-locales-...
--- date: 2022-11-17 hide: - toc --- # 集群升级 Kubernetes 社区每个季度都会发布一次小版本,每个版本的维护周期大概只有 9 个月。 版本停止维护后就不会再更新一些重大漏洞或安全漏洞。手动升级集群操作较为繁琐,给管理人员带来了极大的工作负担。 本节将介绍如何在通过 Web UI 界面一键式在线升级工作集群 Kubernetes 版本, 如需离线升级工作集群的 kubernetes 版本,请参阅[工作集群离线升级指南](../../best-practice/update-offline-cluster.md)进行升级。 !!! danger 版本升级后将无法回退到...
<?php // Register Custom Post Type Service function create_service_cpt() { $labels = array( 'name' => _x( 'Services', 'Post Type General Name', 'wplearning' ), 'singular_name' => _x( 'Service', 'Post Type Singular Name', 'wplearning' ), 'menu_name' => _x( 'Services', 'Admin Menu text', 'wplearning' ), 'name_a...
<script setup lang="ts"> import { onBeforeUnmount, onMounted, reactive } from 'vue' import { NButton, NCard, NGrid, NGi, NSpace, NTooltip } from 'naive-ui'; import WsClient from '../ws/SensorWebSocketClient'; import authApi from '../api/auth'; import sensorApi from '../api/sensor'; defineProps<{ msg: string }>() let ...
import { AssetId } from '@explorer/types' import { expect } from 'earl' import { MIN_INT } from '../constants' import { ByteWriter } from '../encoding/ByteWriter' import { encodeAssetId } from '../encoding/encodeAssetId' import { readToDecode } from '../test/readToDecode' import { DecodingError } from './DecodingError...
/* ## Objetivo: Crie uma função que recebe como parâmetro a quantidade de vitórias e derrotas de um jogador, depois disso retorne o resultado para uma variável, o saldo de Rankeadas deve ser feito através do calculo (vitórias - derrotas) Se vitórias for menor do que 10 = Ferro Se vitórias for entre 11 e 20 = Bronze S...
package flaxbeard.steamcraft.api; import flaxbeard.steamcraft.api.book.BookPage; import flaxbeard.steamcraft.api.book.ICraftingPage; import flaxbeard.steamcraft.api.enhancement.IEnhancement; import flaxbeard.steamcraft.api.enhancement.IRocket; import flaxbeard.steamcraft.api.exosuit.ExosuitPlate; import net.minecraft...
import React, { useEffect, useState } from "react"; import PokemonList from "./PokemonList"; import axios from "axios"; import Paginations from "./Pagination"; const Pokemon = () => { const [pokemon,setPokemon] = useState([]) const [currentPageUrl,setCurrentPageUrl] = useState('https://pokeapi.co/api/v2/pokemo...
import { TrianglesDriver } from './Triangles.driver'; import Chance from 'chance'; const chance = new Chance(); describe('Triangles', () => { let driver: TrianglesDriver; beforeAll(() => { driver = new TrianglesDriver(); }); it('should render button', () => { const label = chance.wor...
/** * CheckoutSummary Component - Created by miguelcanobbio on 03/09/18. */ import * as React from 'react' import PaypalExpressBtn from 'react-paypal-express-checkout-authorize' import MediaQuery from 'react-responsive' import { graphql, compose } from 'react-apollo' import get from 'lodash/get' import Modal from 'an...
<template> <div class="fixed z-10 inset-0 overflow-y-auto" :class="{hidden: !authState}" id="modal"> <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-0 bg-gr...
import { RouteNftResponse, NftItem, VennNftItem} from "@/types"; const apiKey = process.env.SEPOLIA_ALCHEMY_API_KEY; function bigintReplacer(key: string, value: any) { if (typeof value === 'bigint') { return value.toString(); } return value; } function getNftsFromData (alchemyResponse: any, address: string...
import { Test, TestingModule } from '@nestjs/testing'; import { PostsService } from './posts.service'; import { getRepositoryToken } from '@nestjs/typeorm'; import { Board } from '../boards/model/boards.entity'; import { Reply } from '../replies/models/replies.entity'; import { RepliesService } from '../replies/replies...
import React from "react"; import { useDispatch, useSelector } from "react-redux"; import { useForm } from "react-hook-form"; import { z } from "zod"; import { zodResolver } from "@hookform/resolvers/zod"; import { useNavigate } from "react-router-dom"; import globalStyles from "./GlobalStyles.module.css"; import loca...
## 2564. Substring XOR Queries 📎 Link: [Substring XOR Queries](https://leetcode.com/problems/substring-xor-queries/description/)<br> 🟠 Difficulty: Medium<br> 👩🏻‍💻 Topics: Array, Hash Table, String, Bit Manipulation<br> You are given a binary string s, and a 2D integer array queries where queries[i] = [firsti, ...
--- title: New In 2024, Cloud Stop Motion 101 Getting Started with Software, Guidelines, and Alternatives date: 2024-05-19T13:04:14.374Z updated: 2024-05-20T13:04:14.374Z tags: - video editing software - video editing categories: - ai - video description: This Article Describes New In 2024, Cloud Stop Motion ...
<template> <div class="home"> <div class="sidebar left-sidebar"> <h1>Koraci</h1> <div v-for="(button, index) in buttons" :key="index" class="button-container"> <Button label="Primary" raised @click="openComponent(index)" class="button-item" siz...
--- title: Azure Database for MySQLモニタリング統合 tags: - Integrations - Microsoft Azure integrations - Azure integrations list metaDescription: 'New Relic''s Microsoft Azure Database for MySQL integration: what data it reports and how to enable it.' freshnessValidatedDate: never translationType: machine --- [New Reli...
/* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 4 -*- * 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 http://mozilla.org/MPL/2.0/. */ #include "nsUnicodeProperties.h" #in...
import {Checkbox, Grid, IconButton} from "@mui/material"; import {Delete} from "@mui/icons-material"; import {EditableSpan} from "../EditableSpan/EditableSpan"; import {ChangeEvent, FC} from "react"; import {changeTaskStatusAC, changeTaskAC} from "../../store/tasksReducer"; import {useDispatch} from "react-redux"; impo...
from abc import ABC, abstractmethod # Define an abstract base class (ABC) for Bird with two abstract methods class WalkAble(ABC): @abstractmethod def fly(self): pass class FlyAble(ABC): def fly(self): pass class EatAble: def eat(self): print(f"Їсти! {self.__class__.__name__}"...
1) Написати ф-ю яка приймає в себе 2 параметра (обєкт замовлення і обєкт з цінами товару) Ця ф-я має повернути ціну замовлення const productsPrice = { apple: 20, orange: 5, cheese: 12, pork: 45, bread: 23 } const orderA = { apple: 5, cheese: 1, bread: 3 } const orderB = { orange:...
package com.api.gateway.controllers; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.DeleteMapping; import org.springframework.web.bind.annotation.GetMapping; impor...
<!DOCTYPE html> <html lang="pt-br"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Blog Post</title> <script src="https://code.jquery.com/jquery-1.11.2.js"></script> <script type="...
const mongoose = require('mongoose'); const resizeImage = require("../helpers/resizeImage") const asyncHandler = require("express-async-handler") const { itemModel, categoryModel } = require("../models/categoryModel"); const fs = require('fs'); const path = require('path'); /* desc - get a category route ...
#! /usr/bin/env python # -*- coding: utf-8 -*- """ Open Maya Utilities. """ # System global imports # mca python imports import maya.api.OpenMaya as om2 import pymel.core as pm # mca python imports def pynode_to_om2_mobject_mdag_path(node): """ Convert a pynode into a MDagPath and MObject :param PyNode node: T...
import { Component, OnInit } from '@angular/core'; import { CartService } from 'src/app/services/cart.service'; import { Carrito, CarritoItem } from 'src/models/carrito.model'; @Component({ selector: 'app-cart', templateUrl: './cart.component.html', styleUrls: ['./cart.component.css'] }) export class CartCompone...
<mat-drawer-container class="sidenav-container" autosize> <mat-drawer #drawer class="admin-sidenav" [mode]="_mode" [opened]="_opened"> <div class="menu-items-wrapper" [ngClass]="{ 'collapsed' : collapsed }"> <div class="sidenav-logo"> <div class="sidenav-toggle"> <button type="button" (cli...
@extends('dashboard.layouts.main') @section('container') <div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom"> <h1 class="h2">Update Post</h1> </div> <div class="row"> <div class="col-lg-8"> <form action="/dashboard...
import Image from 'next/image' import React from 'react' import { MdEmail } from 'react-icons/md' import LinkItem from '../MobileMockup/components/LinkItem' import { platforms } from '../LinkList/LinkList' import defaultPP from "../../../public/default_pp.png" const PreviewList = ({userInformation}) => { return ( ...
# Workflow #1 This workflow example demonstrates how to use DVCLI to perform the following operations: * Create a new collection in a Dataverse instance * Create a new dataset in the collection * Upload a file to the dataset * Publish the collection and dataset ## Prerequisites For these commands to work, you need ...
// ```js // // For loop structure // for(initialization, condition, increment/decrement){ // // code goes here // } // ``` // ### while loop // ```js // let i = 0 // while (i <= 5) { // console.log(i) // i++ // } // ```js // let i = 0 // do { // console.log(i) // i++ // } while (i <= 5) // ### for of ...
package dev.imrob.carrental.service; import dev.imrob.carrental.dto.ClienteDTO; import dev.imrob.carrental.dto.mapper.ClienteMapper; import dev.imrob.carrental.entity.Cliente; import dev.imrob.carrental.exceptions.EntityNotFoundException; import dev.imrob.carrental.repository.ClienteRepository; import org.springframew...
package edu.kh.col.service; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Set; import edu.kh.col.model.vo.Member; public class MapService { // Map : Key와 Value 한 쌍이 데이터가 되어 이를 모아둔 객체 // - key를 모아두면 Set의 특징(중복X) // - Value를 모아두면 List의 특징(중복...
<script lang="ts"> import { defineComponent, ref, onMounted } from "vue"; import InputText from "primevue/inputtext"; import Divider from "primevue/divider"; import { useToast } from "primevue/usetoast"; import useCookies from "../../../cloudconLibrary/utilities/useCookies"; import { cookieKeys } from "../../../cloudco...
/****************************************************************************** * Copyright (c) 2019-2022, NVIDIA CORPORATION. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * Redistribu...
/* eslint-disable jsx-a11y/no-static-element-interactions */ /* eslint-disable jsx-a11y/click-events-have-key-events */ /* eslint-disable jsx-a11y/label-has-associated-control */ /** @jsx jsx */ // Note: adding photo functionality is commented out, does not work currently import { useState, useEffect } from 'react'; im...
'use client' // MainComponent.tsx import React, { useState } from 'react'; import CategoryList from './categoryList'; const Category: React.FC = () => { const [selectedCategory, setSelectedCategory] = useState<string | null>(null); const categories: string[] = ['Sport', 'Music', 'Education', 'Comedy', 'Hobbies']; ...
import { DataTypes } from "sequelize"; import { sequelize } from "../../config/database.js"; const Cierre = sequelize.define( "Cierre", { id: { type: DataTypes.INTEGER, primaryKey: true, autoIncrement: true, }, fecha: { type: DataTypes.DATEONLY, allowNull: false, }, ...
import React, { ChangeEvent, useCallback, useEffect, useState } from 'react'; import styles from '../../styles/ResetPassword.module.scss'; import { Button, Input } from '@/components/index'; import { useMutation } from 'react-query'; import { changePasswordApi } from '../../services/user'; import { Router, useRouter } ...
#' Moleculors input file loader. #' #' This function take a csv file containing 4 colums: #' atom symbol, X,Y,Z. Any difference will be detected as #' an error or warning depending on the situation. NOTE: the input #' coordinates are supposed to be the optimized coordinates of the #' target molecule! If this requiremen...
import {expect} from '@playwright/test'; import {test, BaseTest} from '../../BaseTest'; test.describe('Virtual Rooms tests', async () => { let dateTimePrefix; let virtualRoomTitle; test.beforeEach(async ({pageManager, apiManager}) => { BaseTest.setFeatureSuite.chats(); await CleanConversationsPanel({api...
"use client"; import Link from "next/link"; import React from "react"; import {useState} from "react"; import NavLink from "./NavLink"; import {Bars3Icon, XMarkIcon} from "@heroicons/react/24/solid"; import MenuOverlay from "./MenuOverlay"; const navLinks = [ { title: "About", path: "#about", }...
--- title: Getting started --- import LaracastsBanner from "@components/LaracastsBanner.astro" ## Overview <LaracastsBanner title="Layouts" description="Watch the Rapid Laravel Development with Filament series on Laracasts - it will teach you the basics of customizing the layout of a Filament form." url="...
# Example 1 Consider the following git diff: ``` apiVersion: rabbitmq.com/v1beta1 kind: RabbitmqCluster metadata: name: test-cluster namespace: rabbitmq-system spec: - affinity: - podAntiAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchEx...
import React from 'react'; import { Button } from './Button'; import Check from '../assets/images/check.svg'; import '../assets/css/CustomCard.css'; export const CustomCard = ({ className, offer, title, price, description, terms, features }) => { let titleClassName = ''; if (className === 'card1') { t...
pragma solidity ^0.4.3; /** * @title ECCMath * * Functions for working with integers, curve-points, etc. * * @author Andreas Olofsson (androlo1980@gmail.com) */ library ECCMath { /// @dev Modular inverse of a (mod p) using euclid. /// "a" and "p" must be co-prime. /// @param a The number. /// @pa...
$(document).ready(function() { var games = ["Final Fantasy", "Legend of Zelda", "Fallout", "Super Mario", "Metal Gear Solid", "Pacman", "Tetris", "Call of Duty", "Bowling", "Badminton"]; // This will display the buttons for each game category function displayGifButtons() { for (var i = 0; i < games.length; i++) ...
= distinctBy // * <<distinctby1>> // * <<distinctby2>> [[distinctby1]] ===== distinctBy(Array <T>,(item:T,index:Number) - > Any):Array <T> 仅返回数组中可能有重复项的唯一值。 使用两个参数调用lambda:`value`和`index`。 如果这些参数未定义,则默认将该索引定义为`&#36;&#36;`,并将该值定义为`&#36;`。 。转变 [source,DataWeave, linenums] ---- %dw 2.0 output application/json --- {...
package com.heshan.androidcoroutines import kotlinx.coroutines.delay import kotlinx.coroutines.launch import kotlinx.coroutines.runBlocking // These are ways of creating coroutines // These act as link between the suspending & non-suspending code // There are 3 main fun main() { // runBlocking is a coroutine b...
<!DOCTYPE html> <html data-require="math math-format"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>פיתרון משוואה ריבועית על ידי הוצעת שורש</title> <script src="../khan-exercise.js"></script> <style type="text/css"> #answer_area input[type=text] { width: 50px; } </style>...
abstract class SolicitacaoEmprestimo { static emprestimos: Array<SolicitacaoEmprestimo> = []; static add(emprestimo: SolicitacaoEmprestimo) { this.emprestimos.push(emprestimo); } abstract verificarAprovacao(): boolean; static processarSolicitacoes() { const aprovados: string[] =...
import React, { useState, useEffect } from "react"; import { useParams } from "react-router-dom"; import apiBack from "../../services/apiBack"; import { toast } from "react-toastify"; export default function AlterarProduto() { const { id } = useParams(); const [listaProduto, setListaProduto] = useState(""); cons...
--- title: some_Knowledge_point date: 2021-12-17 11:33:17 categories: - JAVA tags: - Serializable - Cloneable - Comparable - Comparator author: Fanrencli --- ### Lambda - 实现一个接口的方法函数,接口只能有一个函数; ```java interface IMessage{ public int add(int x, int y); } public class Demo{ public static void main(S...
package org.meveo.service.notification; import org.meveo.cache.NotificationCacheContainerProvider; import org.meveo.commons.utils.ReflectionUtils; import org.meveo.model.AuditableEntity; import org.meveo.model.BaseEntity; import org.meveo.model.BusinessCFEntity; import org.meveo.model.BusinessEntity; import org.meveo....
const db = require("../models"); const Historial = db.Historial; const Usuario = db.Usuario; const Carretera = db.Carretera; const Municipio = db.Municipio; const Incidente = db.Incidente; const { Op } = require("sequelize"); exports.obtenerHistorial = async (req, res) => { try { const { entidad, accion, f...
{ "cells": [ { "cell_type": "code", "execution_count": 2, "id": "c8891c90", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "+-------+-----------+-------------------+\n", "|user_id|device_type|view_time |\n", "+-------+-...
import 'package:flutter/material.dart'; import 'package:flutter_bloc/flutter_bloc.dart'; import 'package:weather_app/cubits/get_weather_cubit/get_weather_cubit.dart'; import 'package:weather_app/cubits/get_weather_cubit/get_weather_states.dart'; import 'package:weather_app/models/weather_model.dart'; import 'package:we...
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This program is distributed in the hope that it will be us...
// This software is free: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License Version 3, // as published by the Free Software Foundation. // // This software is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied war...
package com.exclr8.xen4.fragment import android.content.Context import android.os.Build import android.os.Bundle import android.os.Handler import android.os.Looper import android.provider.Settings import android.text.InputType import android.util.Log import android.view.LayoutInflater import android.view.View import a...
# %% import numpy as np import matplotlib.pyplot as plt from joblib import Parallel, delayed from tqdm import tqdm from scipy.integrate import quad import pandas as pd import random from pyvbmc import VBMC from V_A_step_jump_fit_utils import PDF_hit_V_A_change, CDF_hit_V_A_change, rho_A_t_fn, cum_A_t_fn from tqdm impor...
Sub Test() Debug.Print RenameSheet("Sheet1") Debug.Print RenameSheet("Sheet2") Debug.Print RenameSheet("ABC") Dim wrkSht As Worksheet Set wrkSht = Worksheets.Add wrkSht.Name = RenameSheet("DEF") End Sub Public Function RenameSheet(SheetName As String, Optional Book As Workbook) As String...
import os import torch import json from torch.utils.data import Dataset, DataLoader from torchvision import transforms from PIL import Image from transformers import AutoTokenizer import tensorflow as tf from tensorflow.keras.models import Model from transformers import TFGPT2Model, TFBertModel from tensorflow.keras.pr...
# 🌱🌦️ AgriAlert: Agricultural Disaster Prevention and Alert System <div align="center"> <img src="https://github.com/user-attachments/assets/dfe52d6c-cfc8-441d-a95e-7a225b30ea7d" width="300" alt="AgriAlert Logo"> </div> This platform enables real-time ...
import { Transition } from "@headlessui/react"; import { useContext, useState } from "react"; import Loading from "../../../components/ui/loading"; import { useSSE } from "../../../contexts/SSEContext"; import { alertContext } from "../../../contexts/alertContext"; import { typesContext } from "../../../contexts/typesC...
import { Bird } from "./Bird"; import { ICanFly } from "./iCanFly"; import { IcanSwin } from "./IcanSwin"; import { ICanWalk } from "./ICanWalk"; class Duck extends Bird implements ICanWalk, ICanFly, IcanSwin{ public color : string constructor (name : string , lifeTime : number , size : number , weight : ...
--- title: Updated Reverse Video in FCP A Step-by-Step Guide for Beginners date: 2024-05-19T10:32:32.017Z updated: 2024-05-20T10:32:32.018Z tags: - video editing software - video editing categories: - ai - video description: This Article Describes Updated Reverse Video in FCP A Step-by-Step Guide for Beginner...
import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:start_flutter/block_sample/blocs/cart_bloc.dart'; class CartScreen extends StatelessWidget{ @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( title: Text("Sepet"), ...
import { Operation, xdr } from "@stellar/stellar-sdk"; import { CommonTransactionBuilder } from "./CommonTransactionBuilder"; import { AccountKeypair } from "../Account"; /** * Used for building transactions that will include a sponsor. * Do not create this object directly, use the TransactionBuilder class to creat...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Illuminate\Http\Response; use App\Http\Requests\IndexRequest; use App\Http\Requests\CompanyRequest; use App\Http\Docs\CompanyDocs; /** * @OA\Tag(name="Companies", description="Operations related to Companies") */ class CompanyController extend...
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /** * CodeIgniter * * An open source application development framework for PHP 5.1.6 or newer * * @package CodeIgniter * @author ExpressionEngine Dev Team * @copyright Copyright (c) 2008 - 2011, EllisLab, Inc. * @license http://codei...
<!DOCTYPE html> <html> <head> <style> body {background-color: lightgrey;} #mainDiv { position:relative; width:1350px; height:629px; background-image: url("labyrint.png"); padding:0px; margin:50px auto; border: solid 2px black; } .ball { position:absolute; width:50px; height:50p...
import { CssBaseline, ThemeProvider } from "@mui/material"; import { BrowserRouter } from "react-router-dom"; import theme from "./theme"; import Routes from "./routes"; import { ScenarioContextProvider } from "./contexts/ScenarioContextProvider"; import { NotificationContextProvider } from "./contexts/NotificationCont...
/** @odoo-module **/ import {registry} from "@web/core/registry"; import {Component, useState, onWillStart, onWillUnmount} from "@odoo/owl"; import {useService} from "@web/core/utils/hooks"; import {session} from "@web/session"; export class GeneratorRequest extends Component { setup() { this.actionServic...
const { SlashCommandBuilder } = require('@discordjs/builders'); const { MessageSelectMenu, MessageActionRow } = require('discord.js'); const Player = require('../../utils/music/Player'); const { getData } = require('spotify-url-info'); const YouTube = require('youtube-sr').default; let { playLiveStreams, playVideos...
const express = require('express'); const aposToLexForm = require('apos-to-lex-form'); const natural = require('natural'); const SpellCorrector = require('spelling-corrector'); const SW = require('stopword'); require('dotenv').config(); const AWS = require('aws-sdk'); // Cloud Services Set-up // Create unique bucket na...
//给你一个整数数组 nums ,判断是否存在三元组 [nums[i], nums[j], nums[k]] 满足 i != j、i != k 且 j != //k ,同时还满足 nums[i] + nums[j] + nums[k] == 0 。请 // // 你返回所有和为 0 且不重复的三元组。 // // 注意:答案中不可以包含重复的三元组。 // // // // // // 示例 1: // // //输入:nums = [-1,0,1,2,-1,-4] //输出:[[-1,-1,2],[-1,0,1]] //解释: //nums[0] + nums[1] + nums[2] = (-1) + 0 + 1...