text
stringlengths
184
4.48M
package com.app.foodiehub.presentation.view.adapter import android.view.LayoutInflater import android.view.ViewGroup import androidx.recyclerview.widget.RecyclerView import com.app.foodiehub.databinding.LayoutBannerItemHomeBinding import com.app.foodiehub.presentation.model.BannerDataModel import com.app.foodiehub.uti...
import { workerData, parentPort } from "node:worker_threads"; import * as tf from "@tensorflow/tfjs"; import { ModelInputData, ModelTrainSettings } from "../models/ai"; const trainModelWorker = async ( data: ModelInputData, settings: ModelTrainSettings, processId: string ): Promise<any> => { console.info(`Wor...
/* * Copyright (c) 2016 Cornelius Preidel * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publi...
import { BadRequestException } from "../../infrastructure/exception/BadRequestException" import { ExceptionCodeEnum } from "../../infrastructure/exception/ExceptionCodeEnum" import { MySQLConnection } from "./MySQLConnection"; import { IMoviePersistence } from '../../core/movie/IMoviePersistence' import { Movie } from ...
import UserRequest from "api/request/user/UserRequest"; import Action from "client/common/atom/action/Action"; import Input from "client/common/components/form/input/Input"; import ComponentHovereableColor from "client/common/tailwind/constants/ComponentHovereableColor"; import useFirebaseUser from "client/hooks/useFir...
import React, { useEffect, useState } from 'react'; import Recipe from './Recipe'; import './App.css'; const App = () => { const APP_ID = '1a1a4ae1'; const APP_KEY = '97cb80a4cb02c5ae312b9485b3663642'; const [recipes, setRecipes] = useState([]); const [search, setSearch] = useState(''); const [query, setQuery] = us...
def gcdOfStrings(str1: str, str2: str) -> str: """Given two strings str1 and str2, return the largest string x such that x divides both str1 and str2. Args: str1 (str): String 1 str2 (str): String 2 Returns: str: The largest string x such that x divides both str1 and str2. """ if str1 ...
<?php namespace App\Service; use Symfony\Bundle\FrameworkBundle\Console\Application; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\ArrayInput; use Symfony\Component\HttpKernel\KernelInterface; class DatabaseService { private const COMMAND_CREATE_DATABASE = 'doctrine:database...
<!DOCTYPE html> <html lang="en" xmlns:th="http://www.w3.org/1999/xhtml"> <head> <meta charset="UTF-8"> <title>Nieuwe klant</title> <link rel="stylesheet" type="text/css" href="https://www.w3schools.com/w3css/4/w3.css"> <link rel="stylesheet" type="text/css" th:href="@{/css/default.css}"> <link rel=...
import axios, {AxiosResponse} from "axios"; import {Tag} from "@/utilities"; // Interface que define la estructura de una nota // Puedes reutilizarla para definir la estructura de un tag // URL base de la API para el endpoint de tags const API_BASE_URL = "https://gray-tiny-newt.cyclic.app/tags"; // Función que mane...
import React from 'react' import { Tilt } from 'react-tilt'; import { motion } from 'framer-motion'; import { styles } from '../styles'; import { github } from '../assets'; import { SectionWrapper } from '../hoc'; import { projects } from '../constants'; import { fadeIn, textVariant } from '../utils/motion'; const ...
/* * Copyright (C) 2022 Arm Limited or its affiliates. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * 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 * * www.apache.org/l...
#!/usr/bin/perl #Copyright (c) 2013, Zane C. Bowers-Hadley #All rights reserved. # #Redistribution and use in source and binary forms, with or without modification, #are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, # this lis...
@using BulkyBook.Utility; @using Microsoft.AspNetCore.Http; @inject IHttpContextAccessor HttpContextAccessor; <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>@ViewData["Title"] - BulkyBookWeb</title> <link ...
# Services Deployment Guides Looking to serve your application in production? Deploy the Toolkit to your preferred cloud provider by following our guides below: ## Services Deployment Options - [Single Container Setup](deployment_guides/single_container.md): Useful as a quickstart to run the Toolkit, or deploy to AWS...
package service import ( "errors" "fmt" "log" "time" "github.com/Ahmad940/health360/app/model" "github.com/Ahmad940/health360/pkg/constant" "github.com/Ahmad940/health360/pkg/util" "github.com/Ahmad940/health360/platform/cache" "github.com/Ahmad940/health360/platform/db" "github.com/Ahmad940/health360/platf...
import React from "react"; import Slider from "react-slick"; import "slick-carousel/slick/slick.css"; import "slick-carousel/slick/slick-theme.css"; import { popular } from "../dummyData"; const NewsSliderSection = (props) => { const settings = { className: "center", centerMode: false, infinite: true, ...
import React from "react"; import Posts from "../../components/Posts/Posts"; import { Container, Grid, Grow, Typography, AppBar } from "@material-ui/core"; import memories from "../../images/memories.png"; import useStyles from "./style"; import Form from "../../components/Form/Form"; import { useDispatch } from "react...
package rules import ( "fmt" "net/url" "golang.org/x/net/html" "github.com/octetic/gophetch/media" ) // FaviconRule is the rule for extracting the favicon URL of a page. type FaviconRule struct { BaseRule } func NewFaviconRule() *FaviconRule { return &FaviconRule{ BaseRule: BaseRule{ Strategies: favicon...
import { createSlice, PayloadAction } from "@reduxjs/toolkit"; export interface UserState { id: string; name: string; email: string; password: string; } export interface UsersState { users: UserState[]; } const initialState: UsersState = { users: [], }; const usersSlice = createSlice({ name: "users", ...
// SPDX-License-Identifier: Apache-2.0 /* * Modifications Copyright 2022, Specular contributors * * This file was changed in accordance to Apache License, Version 2.0. * * Copyright 2021, Offchain Labs, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except ...
<?php declare(strict_types=1); //controller qui créer un endpoint api platform qui ne soit pas lié à une entité (je voudrais faire un endpoint /resolve-pos qui lorsqu'on lui envoie une adresse, renvoie la geoposition (j'utilise l'api d'openstreetmap), namespace App\Controller; use Symfony\Component\HttpFoundation\J...
#include <unistd.h> #include <stdint.h> #include <stdlib.h> #include <stdio.h> #include <assert.h> #include <string.h> #include <ctype.h> #include <time.h> #include "BIOS/OS.h" #include "Hardware/Roscoe.h" #include "Shared/Version.h" #include "Shared/rtc.h" #include "Shared/Interrupt.h" // This module supports the Dal...
# 信息可视化 信息可视化是一门将数据用视觉的方式来呈现的学科。它可以让我们通过可视化方法更好地理解数据和信息。假设你有一个庞大的数据集或是一个复杂的统计学模型,为了让它更加生动和易懂,我们可以使用一些可视化技术,如饼图、柱状图、折线图、雷达图、热力图、地图等,把数据变成图形,让读者可以一目了然地看出其中的规律和规律。 首先我们来了解一些基本的可视化技术。饼图可以根据不同数据的占比大小展示出数据的分布情况,例如一个销售排行榜;柱状图则可用于比较数量大小,例如比较同时段不同地区的销售情况;折线图则可用于展示数据随时间变化的趋势,例如展示一段时间内网站流量的变化情况;雷达图则可用于比较多维度的数据之间的关系,例如比较运动员在不同项目中...
import 'package:flutter/material.dart'; import 'package:flutter_bloc/flutter_bloc.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:skin/core/utils/colors_app.dart'; import '../../../../../core/utils/func.dart'; import '../../../../../core/widget/custom_buttom.dart'; import '../../../...
from django.shortcuts import render, redirect from django.contrib.auth.decorators import login_required from django.http import Http404 from .models import Game, Gamer from .forms import GameForm, BorrowForm # Create your views here. def index(request): """The home page for Board Gamer""" return render(reques...
<?php /** * Fuel is a fast, lightweight, community driven PHP 5.4+ framework. * * @package Fuel * @version 1.8.1 * @author Fuel Development Team * @license MIT License * @copyright 2010 - 2018 Fuel Development Team * @link http://fuelphp.com */ namespace Fuel\Core; class Cache_Storage_Xca...
import os import re import requests import json import traceback import datetime from datetime import date from github import Github RELEVANCE_API_KEY = os.environ["RELEVANCE_API_KEY"] RELEVANCE_REGION = os.environ["RELEVANCE_REGION"] os.makedirs("templates", exist_ok=True) os.makedirs("archive", exist_ok=True) # Cr...
import * as THREE from "three"; import { useRef, useEffect } from "react"; import { useControls } from "leva"; export default function ThreeElementCH5() { const boxRef = useRef<THREE.Mesh>(null); const boxCopyRef = useRef<THREE.Mesh>(null); const boxControl = useControls({ radius: { value: 1, min: 0.1, max: ...
package com.dominos.game; import java.util.ArrayList; import java.util.List; class CPlayer { private List<CDomino> hand; public CPlayer() { hand = new ArrayList<>(); } public void addToHand(CDomino domino) { hand.add(domino); } public boolean hasMatchingDomino(int value) { ...
<?php namespace App\Mail; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Mail\Mailable; use Illuminate\Queue\SerializesModels; class QuoteUserMail extends Mailable { use Queueable, SerializesModels; /** * Create a new message instance. * * @return voi...
<script setup> //IMPORT import { onMounted, ref } from 'vue'; import { useUserStore } from '../store/index' import axios from 'axios' import { useRouter } from 'vue-router'; //STORE const userStore = useUserStore(); const socket = userStore.getUserSocket; const username = userStore.getUsername; //REF const isLoading =...
package com.lory.soufang.config; import com.lory.soufang.security.AuthProvider; import com.lory.soufang.security.LoginAuthFailHandler; import com.lory.soufang.security.LoginUrlEntryPoint; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springf...
import { NavLink } from "react-router-dom"; import classNames from "../../utilities/ClassNames"; import Tooltip from "../elements/Tooltip"; export default function Link(props: any) { if (props.small) { return ( <Tooltip styles="top-2 left-11" placement="x" text={props.text}> <NavLink to={props.to} ...
package main import ( "os" "time" "github.com/rs/zerolog" "github.com/rs/zerolog/log" ) func main() { // 打开日志文件,如果不存在则创建 file, err := os.OpenFile("app.log", os.O_CREATE|os.O_WRONLY|os.O_APPEND, 0666) if err != nil { log.Fatal().Err(err).Msg("无法打开日志文件") } defer file.Close() // 创建 ConsoleWriter 以确保在 Windo...
package mco.persistency import cats.syntax.applicative._ import mco._ import mco.io.IOInterpreters.FSDsl._ import mco.io.Stubs import mco.io.files.{IO, Path} import rapture.json._ import rapture.json.jsonBackends.jawn._ class JsonStorageSpec extends UnitSpec { "JsonStorage#apply" should "read file and give result i...
import * as firebase from 'firebase'; import { DocumentNotFoundError, RequiredParameterError, } from '@mdn-seed/core/src/helpers/errors'; import { IDatabase } from '../types/database.interface'; import { FirebaseConfig } from '../types/firebase-config.interface'; import QueryBuilder, { InstructionType } from '../he...
import java.io.DataInput; import java.io.DataOutput; import java.io.IOException; import java.util.*; import java.util.logging.*; import java.util.regex.Matcher; import java.util.regex.Pattern; import org.apache.hadoop.fs.Path; import org.apache.hadoop.conf.*; import org.apache.hadoop.io.*; import org.apache.hadoop.map...
import { Component, OnInit } from '@angular/core'; import Swal from 'sweetalert2'; import { Course } from '../model/course'; import { Student } from '../model/student'; import { CourseService } from '../service/course.service'; import { StudentService } from '../service/student.service'; @Component({ selector: 'app-...
package class_; public class SungJukMain { public static void main(String[] args) { //데이터 SungJuk sj1 = new SungJuk(); sj1.setData("홍길동", 91, 95, 100); //출력 for(int i=0; i<60; i++) System.out.print("-"); System.out.println("\n이름 국어 영어 수학 총점 평균 학점"); for(int i=0; i<60...
package ra.security.controller; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.*; import ra.security.exception.*; import ra.security.model.domain.EDelivered; impor...
<div class="container"> <div class="card mat-elevation-z4 my-2"> <div class="card-header py-2 bg-light text-dark font-weight-bold"> <span> Coach Position Enquiry </span> </div> <form [formGroup]="accomodationAvailabilityForm" class="card-body pt-2 pb-0 text-sm" (submit)="fetchAccomoda...
/** @page HASH_SHA1MD5 HASH digest calculation using SHA1 and MD5 example @verbatim ****************************************************************************** * @file HASH/HASH_SHA1MD5/readme.txt * @author MCD Application Team * @brief Description of the digest calculation using SHA1 and MD5 e...
import React from "react"; import ReactDOM from "react-dom/client"; import "@fontsource-variable/hanken-grotesk"; import "./index.css"; import { Provider } from "react-redux"; import { store } from "./redux/store"; import Home from "./pages/home"; import { createBrowserRouter, RouterProvider } from "react-router-dom"; ...
import { useEffect } from "react" import { useNavigate } from "react-router-dom" // je créé une fonction réutilisable, // qui au chargement du composant, // récupère le token en local storage // s'il n'existe, ça redirige vers la page de login // vu que ma fonction utilise des "hook" de react //(des fonctions que rea...
import{Component} from 'react' import {GiAirBalloon, GiPartyPopper} from 'react-icons/gi' import {FaSearch} from 'react-icons/fa' import {Link} from 'react-router-dom' class ErrorBoundary extends Component { state = { hasError: false }; static getDerivedStateFromError(error) { return { hasErr...
import 'package:flutter/material.dart'; import '../components/styles.dart'; import '/pages/forgot_password.dart'; import '/pages/register.dart'; import '/pages/verification.dart'; import '/widget/elevated_button.dart'; import '/widget/text_btn.dart'; class Login extends StatefulWidget { static const String id = 'Lo...
/* Copyright 2020 Set Labs 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 to in...
import { fireEvent, render, screen } from '@testing-library/react'; import ProductCard from './product-card'; import {BrowserRouter as Router } from 'react-router-dom'; import { Product, Products } from '../../types/products'; import configureMockStore from 'redux-mock-store'; import { Provider } from 'react-redux'; im...
import InputComponent from "../components/InputComponent"; import ButtonComponent from "../components/ButtonComponent"; import CheckboxComponent from "../components/CheckboxComponent"; import { Link } from "react-router-dom"; import ROUTES from "../routes/ROUTES"; import { useState } from "react"; const LoginPage = ()...
import { useState, useEffect } from "react"; import initializeFirebase from "../components/Login/Firebase/Firebase.init"; import { getAuth, createUserWithEmailAndPassword, signOut, onAuthStateChanged, signInWithEmailAndPassword, GoogleAuthProvider, signInWithPopup, updateProfile, getIdToken } from ...
<div class="page-header"> <div class="container"> <h1>Students</h1> </div> </div> <div class="container"> <div class="mt-1 mat-elevation-z8"> <table mat-table matSort [dataSource]="dataSource"> <ng-container matColumnDef="firstName"> <th mat-header-cell *matHeaderCellDef mat-sort-header>Fir...
/** * Resources used: * src1: https://joshcollinsworth.com/blog/build-static-sveltekit-markdown-blog * src2: https://bobbyhadz.com/blog/typescript-left-hand-side-of-arithmetic-operation-must-be-type */ /** * The frontmatter of the `.md` posts */ type Frontmatter = { title: string date: string summary: string ...
// This file is part of www.nand2tetris.org // and the book "The Elements of Computing Systems" // by Nisan and Schocken, MIT Press. // File name: projects/01/Or8Way.hdl /** * 8-way Or: * out = (in[0] or in[1] or ... or in[7]) */ CHIP Or8Way { IN in[8]; OUT out; PARTS: // Put your code here: ...
from django.conf import settings from django.db import models from django.utils import timezone class Post(models.Model): author = models.ForeignKey(settings.AUTH_USER_MODEL, related_name='posts', on_delete=models.CASCADE) title = models.CharField(max_length=200) text = models.TextField() created_date...
package cpsc310.client; import java.util.ArrayList; import java.util.List; import com.google.gwt.user.client.rpc.AsyncCallback; /** * Asynchronous call to server to fetch house data. For information about what * each method does, please refer to HouseDataService.java or * HouseDataServiceImpl.java. */ public int...
import 'package:flutter/material.dart'; import 'package:provider/provider.dart'; import '../widgets/cart_item.dart'; import '../providers/cart.dart' show Cart; import '../providers/orders.dart'; class CartScreen extends StatelessWidget { static const routeName = '/cart'; @override Widget build(BuildContext ...
from telegram import Update from config.openai_client import client from config.jira_connect import login, api_key, adress from jira import JIRA import config.promts as promt import handlers.support_functions as spf async def chatgpt_reply(update: Update, context): # текст входящего сообщения text = update.mes...
from dash import DashCoreRPC, CTransaction, CTxIn, CTxOut, CScript, OP_HASH160, hex_str_to_bytes, OP_EQUAL import hashlib import sys import dashrpc from dashrpc.exceptions import DashRPCException import dashcore # Global variable to store masternode status masternode_status = { 'total_collateral': 0, 'protx_ha...
/*--------------------------------------------------------------------------------------- Description: Try drawing a second container with another call to glDrawElements but place it at a different position using transformations only. Make sure this second container is placed at the top-left o...
library(data.table) library(gausscov) library(httr) library(mlr3verse) library(paradox) # library(AzureStor) library(mlr3batchmark) library(batchtools) library(finautoml) library(glue) library(lubridate) # COMMAND LINE ARGUMENTS -------------------------------------------------- if (interactive()) { LIVE = TRUE # s...
Digamma <- function(link = "log") { # Digamma generalized linear model family # Gordon Smyth 3 July 1998 # name.link <- substitute(link) if(is.name(name.link)) if(is.character(link)) # link is character variable name.link <- link else # link is name without quotes link <- name.link <- a...
/* ply-label.c - label control * * Copyright (C) 2008 Red Hat, Inc. * Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. * * 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 vers...
import pyttsx3 import speech_recognition as sr import language_tool_python as ltp import datetime import wikipedia import webbrowser as wb import os engine = pyttsx3.init('sapi5') voices = engine.getProperty('voices') engine.setProperty('voice', voices[0].id) engine.setProperty('rate', 175) def speak(audio): eng...
""" File containing functions to handle the parsing of a TOKDOC formatted message. """ import datetime import hashlib import os import platform from dotenv import load_dotenv from Utilities import constants def parse_message(message) -> dict: """ Function that takes a string message and returns a diction...
/* Copyright (C) 2019 SUSE LLC This library 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 the License, or (at your option) version 3.0 of the License. This library is dis...
# Data-Centric Vision-Language Pre-training [Arxiv](https://arxiv.org/pdf/2305.20087.pdf) ![](images/motivation.png) - **At least half of the samples in the well-cleaned dataset (CC3M, refined from 5 billion images with 0.0006 preserved) negatively affect the learned rpresentation!** - The purpose of this project i...
<!--In questo file html è contenuta la struttura della pagina Manage Surveys--> <h2 class="md-display-1" layout-padding>Manage Surveys</h2> <div layout="column" ng-hide="Surveys.showResult || Surveys.showQuestion" layout-padding> <div layout="row" layout-align="start center"> <md-button class="md-raised" go...
import 'package:animate_do/animate_do.dart'; import 'package:card_swiper/card_swiper.dart'; import 'package:cinemapedia/config/router/app_router.dart'; import 'package:cinemapedia/domain/entities/movie.dart'; import 'package:flutter/material.dart'; class MoviesSlideShow extends StatelessWidget { final List<Movie> mo...
## Overview This application is a comprehensive, interactive candlestick chart renderer for financial data visualization. It is designed for users who require detailed insights into market trends and price movements. The application features real-time data fetching and dynamic interactions such as zooming, panning, and...
import React, { useEffect, useState } from "react"; import { Route, Routes, useNavigate } from "react-router-dom"; import Home from "./components/Home"; import CreatePolysign from "./components/CreatePolysign"; import { Layout, Menu, Breadcrumb, Button } from "antd"; import { APP_NAME } from "./util/constants"; impor...
import React from 'react'; import ReactDOM from 'react-dom/client'; import App from './App'; import { createStore } from 'redux'; import { Provider } from 'react-redux'; import { composeWithDevTools } from 'redux-devtools-extension'; import rootReducer from './modules'; const store = createStore(rootReducer, composeW...
import { computed } from 'vue' import { useMessage } from 'naive-ui' import { t } from '@/locales' import { useChatStore } from '@/store' export function useUsingContext() { const ms = useMessage() const chatStore = useChatStore() const usingContext = computed<boolean>(() => chatStore.usingContext) function t...
import java.io.*; import java.text.NumberFormat; import java.util.*; import freemarker.template.*; public class StatementPrinter { private final Configuration cfg; private Map<String, Object> statementData; public StatementPrinter() { cfg = configureFreeMarker(); } public void printHTML() throws IOExc...
import { Component, Input, OnChanges, OnDestroy, OnInit, QueryList, SimpleChanges, ViewChildren } from '@angular/core'; import { MatDialog } from '@angular/material/dialog'; import { MatPaginator } from '@angular/material/paginator'; import { MatSort } from '@angular/material/sort'; import { MatTableDataSource } from '...
<?php /** * Sample implementation of the Custom Header feature * http://codex.wordpress.org/Custom_Headers * * You can add an optional custom header image to header.php like so ... * * <?php if ( get_header_image() ) : ?> * <a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"> * <img src="<?p...
/* * Copyright 2024 Goldman Sachs * * 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 ...
// Copyright (c) - Damien Fontaine <damien.fontaine@lineolia.net> // // 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....
336. Palindrome Pairs 要用到哈希表来建立每个单词和其位置的映射,然后需要一个set来保存出现过的单词的长度,算法的思想是,遍历单词集,对于遍历到的单词,我们对其翻转一下,然后在哈希表查找翻转后的字符串是否存在,注意不能和原字符串的坐标位置相同,因为有可能一个单词翻转后和原单词相等,现在我们只是处理了bat和tab的情况,还存在abcd和cba,dcb和abcd这些情况需要考虑,这就是我们为啥需要用set,由于set是自动排序的,我们可以找到当前单词长度在set中的iterator,然后从开头开始遍历set,遍历比当前单词小的长度,比如abcdd翻转后为ddcba,我们发现set中有长度为3的单词,然后我们dd是...
/* * ******************************************************************************* * Copyright (c) 2023 BMW AG * Copyright (c) 2023 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. * * This prog...
# frozen_string_literal: true class Plan < ApplicationRecord belongs_to :site def name plan_defaults[:name] end def free? plan_id == Plans.free_plan[:id] end def exceeded? current_month_recordings_count >= max_monthly_recordings end def enterprise? plan_defaults[:enterprise] end ...
using ComplexCRUDApplication.Models; using ComplexCRUDApplication.Repos; using ComplexCRUDApplication.Services; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Options; using Microsoft.IdentityModel.Tokens; using System.IdentityModel.Tokens.Jwt; using System.Security.Cla...
<?php /** * WooCommerce Order Item Functions * * Functions for order specific things. * * @package WooCommerce\Functions * @version 3.4.0 */ defined( 'ABSPATH' ) || exit; /** * Add a item to an order (for example a line item). * * @param int $order_id Order ID. * @param array $item_array Items list. *...
import pandas as pd import matplotlib as plt import os import NewareNDA as nda from galvani import BioLogic from datetime import timedelta import datetime def process_neware_data(ndax_file_path, theoretical_capacity): data = nda.read(ndax_file_path) cycle_numbers = data['Cycle'].unique() time_utc = pd.to_...
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_strdup.c :+: :+: :+: ...
import classnames from 'classnames'; import * as React from 'react'; import { injectIntl } from 'react-intl'; import { connect, MapDispatchToProps } from 'react-redux'; import { CustomInput } from '../../components'; import { checkValidBitcoinAddress, checkValidErc20Address } from '../../../helpers'; import { IntlProps...
<template> <a-modal :title="`Edit User`" v-model="visible" @cancel="closeModal" @ok="updateUser"> <a-form :model="editedUser"> <a-form-item label="Name"> <a-input v-model="editedUser.name" /> </a-form-item> <a-form-item label="Username"> <a-input v-model="editedUser...
package co.edu.unbosque.Controller; import co.edu.unbosque.Model.Cliente; import co.edu.unbosque.Service.EmailService; import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.media.Content; import io.swagger.v3.oas.annotations.media.Schema; import io.swagger.v3.oas.annotations.responses.Ap...
CREATE-WORKGROUP() CREATE-WORKGROUP() NAME create-workgroup - DESCRIPTION Creates an workgroup in Amazon Redshift Serverless. See also: AWS API Documentation SYNOPSIS create-workgroup [--base-capacity <value>] [--config-...
import { Link, useLoaderData, useNavigation } from "react-router-dom"; import Header from '../components/Header' import Footer from '../components/Footer' import { singleSelectorPath, reloadSelectorPath, gridSelectorPath } from '../util' // TODO: import as much as possible from S.js export default function ArtistSing...
/* * ************************************************************************ * * Copyright: Robert Bosch Power Tools GmbH, 2018 - 2023 * * ************************************************************************ */ package com.bosch.pt.iot.smartsite.project.taskattachment.boundary import com.bosch.pt.cs...
Heap Displasia Detection (HDC) The objective of this ML project is to predict whether or not an RX image of a heap represents a positive HDC case. Project Organization ------------ ├── LICENSE ├── Makefile <- Makefile with commands like `make data` or `make train` ├── README.md <- Th...
// Angular import {Injectable} from '@angular/core'; // RxJS import {map, mergeMap, tap} from 'rxjs/operators'; // NGRX import {Actions, Effect, ofType} from '@ngrx/effects'; import {Store} from '@ngrx/store'; // Services import {WalletService} from "../_services/wallet.service"; // State import {AppState} from '../../...
--- post_id: 5679 title: 'Lire les corrections de lunettes' date: '2022-02-27T22:10:40+01:00' last_modified_at: '2022-02-27T23:03:52+01:00' author: 'Rémi Peyronnet' layout: post guid: '/?p=5679' slug: lire-les-corrections-de-lunettes permalink: /2022/02/lire-les-corrections-de-lunettes/ image: /files/ophtalmologue-lune...
/* Copyright (C) 2022-2023 ApeCloud Co., Ltd This file is part of KubeBlocks project This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any l...
<script> import {defineComponent, reactive} from 'vue' import {CodeJudgeStatus, JudgeStatus} from "../../constants"; import CodeEditor from "@/components/codeEditor.vue"; export default defineComponent({ name: "problemSubmission", components: {CodeEditor}, computed: { JudgeStatus() { re...
// src/services/TrackService.js const API_URL = "http://localhost:8001/tracks"; const getAllTracks = async () => { try { const response = await fetch(API_URL); if (!response.ok) { throw new Error(`Error fetching tracks: ${response.statusText}`); } return response.json(); } catch (error) { ...
# IMDB Top 50 Actors Web-App with Streamlit This is a Streamlit web application that displays an IMDb dataset in a Master-Detail-View format, with actor names in the master column and all of the movies of the actors in the details view. ## Requirements - Python 3.x - Streamlit (1.10 or higher) - pandas - plotly ##...
/* * Copyright (C) 2015 Square, 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 agre...
--- title: 傳回店面體驗 description: 瞭解您的客戶如何從店面的帳戶管理產品退貨。 exl-id: c276ca2c-3d8b-4019-a9aa-e7631080f331 feature: Returns, Storefront source-git-commit: 8b5af316ab1d2e632ed5fc2066974326830ab3f7 workflow-type: tm+mt source-wordcount: '208' ht-degree: 1% --- # 傳回店面體驗 {{ee-feature}} 客戶可使用下列其中一種方式,向店面請求RMA: - [訂單與退貨Widget](....