text stringlengths 184 4.48M |
|---|
import React from "react";
import { Image } from "react-bootstrap";
import Button from "react-bootstrap/Button";
import Form from "react-bootstrap/Form";
import { useRouter } from "next/router";
import axios from "axios";
const Login = () => {
const router = useRouter();
const login = async () => {
t... |
@page "/login"
@using System.ComponentModel.DataAnnotations
@using MudBlazor
@using OrderFlowManagementFrontend.Data;
@inject Blazored.LocalStorage.ILocalStorageService LocalStorage
@inject ElectronicResponse electronicsListResponse;
@inject NavigationManager Navigation
<div class="form-wrapper d-flex align-items-ce... |
from dataclasses import dataclass, field
from typing import List
import pandas as pd
@dataclass
class ClientConfig:
file_path_map_supergenres: str = field(default_factory=str)
years_to_search: List[str] = field(default_factory=list)
tracks_to_search: List[str] = field(default_factory=list)
number_tra... |
# webrtc拉流协议介绍
七牛云视频监控产品(qvs)在现有的3种播放协议(hls, http-flv, rtmp)基础上,拓展了第4种播放协议webrtc。该协议实时延迟可达到500毫秒左右,可以满足客户对低延迟场景的需求
# webrtc拉流播放实现架构

# 核心优势
* 95%情况下, 实时监控延迟在300-500毫秒区间内
# 快速体验
* `http`环境: <a href="http://pili-player-demo.qiniu.com">http环境webrtc播... |
import React, { useCallback, useState } from 'react';
import EncryptedStorage from 'react-native-encrypted-storage';
import { useSignUp } from '@/apis/member';
import { useGetUniversities, useGetUniversity } from '@/apis/university';
import { SignUpEntity } from '@/types/member';
import { useNavigation } from '@react-n... |
pragma solidity^0.8.7;
library Role {
struct PersonRole {
mapping(address=>bool) isExists;
mapping(address=>string) summarys;
}
function isRole(PersonRole storage _role, address _person) internal view returns (bool) {
if(_person == address(0)) {
return false;
... |
@using BestMovies.Shared.Dtos.Movies
@using BestMovies.WebApp.Helpers
@using BestMovies.WebApp.Repositories
@using System.Globalization
@using BestMovies.Shared.CustomExceptions
@using BestMovies.Shared.Dtos.Review
@using BestMovies.WebApp.Authorization
@using BestMovies.WebApp.Services
<MudDialog DisableSidePadding="... |
<script setup>
import { ref } from "vue";
import FrontLayout from "@/Layouts/FrontLayout.vue";
import MovieCard from "@/Matrials/MovieCard.vue";
import { Link, Head } from "@inertiajs/vue3";
import {
TransitionRoot,
TransitionChild,
Dialog,
DialogOverlay,
DialogTitle,
} from "@headlessui/vue";
defineProps({
... |
import React, { useRef, useState } from 'react';
import '../assets/css/Modal.css';
function CustomModal({handlePayment}) {
const modalRef = useRef(null);
const [name, setName] = useState('');
const [email, setEmail] = useState('');
const [travelers, setTravelers] = useState(1);
const [travelDate, setTravelDa... |
package com.woven.challenge;
import static org.mockito.BDDMockito.given;
import static org.mockito.BDDMockito.then;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.multipart;
import static org.sprin... |
package com.librasys.utils;
import java.awt.Color;
import java.awt.event.FocusEvent;
import java.awt.event.FocusListener;
import javax.swing.JTextField;
public class JTextFieldWithPlaceholder extends JTextField {
private String placeholder;
public JTextFieldWithPlaceholder(String placeholder) {
this... |
# Topic 21 - for Loops
# Example Scenario: Checking for a Clean City
city_to_check = "Tucson"
# list of cleanest cities
cleanest_cities = ["Cheyenne", "Santa Fe", "Tucson", "Great Falls", "Honolulu"]
# Without for loop
if city_to_check == cleanest_cities[0]:
print("It's one of the cleanest cities")
elif city_t... |
package org.edrdg.jmdict.simplified.conversion
import kotlinx.serialization.KSerializer
import kotlinx.serialization.descriptors.SerialDescriptor
import kotlinx.serialization.descriptors.buildClassSerialDescriptor
import kotlinx.serialization.encoding.Decoder
import kotlinx.serialization.encoding.Encoder
import kotlin... |
import React from "react";
import { Ionicons } from '@expo/vector-icons';
import { useNavigation } from '@react-navigation/native';
import { View, Text, StyleSheet, TouchableOpacity, Linking } from "react-native";
export default function AboutScreen() {
// Define a function to open Gmail when the email address is pre... |
// https://www.geeksforgeeks.org/problems/page-faults-in-lru5603/1
// page fault occurs when the page isn't in memory
// when it occurs, we should add page to the memory. If the memory is full we should remove the least recently used page from memory and add it
#include <bits/stdc++.h>
using namespace std;
int ctrPa... |
import { create } from "zustand";
export interface Conversation {
id?: number;
name?: string;
createdAt?: string; // YYYY-MM-DD HH:mm:ss
updatedAt?: string; // YYYY-MM-DD HH:mm:ss
}
interface UseConversationStoreProps {
conversations: Conversation[];
selectedConversationId: number;
lastInsertId: number;... |
/*ManabatAljon_BSIT-1C_FinalProject
Quiz Game with 3 Subjects to choose for, inside of that Subject there is also topic to choose.
Rules Option to let the user know what is the rules and Exit Option to Exit the Program.
All of the sytax i used is only Ma'am Memay taught us in Introduction to coding in C++ (IT-111)*/
#i... |
import { Component, OnInit } from '@angular/core';
import { PhotosService } from "../services/photos.service";
import { Photo } from '../services/photo';
import { Breakpoints, BreakpointObserver, BreakpointState } from '@angular/cdk/layout';
import { SpinnerService } from '../services/spinner.service';
import { FormCon... |
# Reference : https://www.youtube.com/watch?v=ZBKpAp_6TGI
# Orginal Code : https://github.com/hkproj/pytorch-stable-diffusion/blob/main/sd/pipeline.py
import torch
import numpy as np
from tqdm import tqdm
from ddpm import DDPMSampler
WIDTH = 512
HEIGHT = 512
LATENTS_WIDTH = WIDTH // 8
LATENTS_HEIGHT = HEIGHT // 8
de... |
<script lang="ts">
import { onMount } from 'svelte';
let time = new Date();
const parse_day = [
"Sunday",
"Monday",
"Tuesday",
"Wednesday",
"Thursday",
"Friday",
"Saturday"
];
const parse_month = [
"January",
"February",
... |
interface Window {
XLSX: any;
}
interface XploreParam {
text?: any,
icon?: string,
classes?: string[],
onclick?: Function;
}
interface XploreParamMenu extends XploreParam {
shortcut?: string;
onclick?: Function;
separator?: boolean;
}
interface XploreParamList extends XploreParam {
... |
# Copyright 2023 Avaiga Private Limited
#
# 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 ... |
// SPDX-License-Identifier: SEE LICENSE IN LICENSE
pragma solidity ^0.8.25;
import { Test, console2 } from "forge-std/src/Test.sol";
// import { NFTMarket, BaseERC20, TokenAccessError, ListNFT, InvalidAddressError } from "../src/Week2/NFTMarket.sol";
// import { MyERC2612 } from "../src/Week3/MyERC2612.sol";
// import... |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.2/css/all.min.css" integrity="sha512-1sCRPdkRXhBV2PBLUdRb4tMg1w2YPf37qatUFeS7zlBy7jJI8Lf4VHwWfZZfpXtY... |
package com.occulue.aggregate;
import com.occulue.api.*;
import com.occulue.entity.*;
import com.occulue.exception.*;
import java.util.*;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.axonframework.commandhandling.CommandHandler;
import org.axonframework.modelling.command.AggregateMembe... |
package com.example.matthewglausfamilymapclient.userinterface.fragments;
import android.content.Intent;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.... |
0,1,···,n-1这n个数字排成一个圆圈,从数字0开始,每次从这个圆圈里删除第m个数字(删除后从下一个数字开始计数)。求出这个圆圈里剩下的最后一个数字。
例如,0、1、2、3、4这5个数字组成一个圆圈,从数字0开始每次删除第3个数字,则删除的前4个数字依次是2、0、4、1,因此最后剩下的数字是3。
示例 1:
输入: n = 5, m = 3
输出:3
示例 2:
输入: n = 10, m = 17
输出:2
限制:
1 <= n<= 10^5
1 <= m <= 10^6
通过次数80,719提交次数124,335
来源:力扣(LeetCode)
链接:https://leetcode-cn.com/pr... |
package com.binqr.client;
import android.Manifest;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v4.app.ActivityCompat;
import android.supp... |
import logo from './logo.svg';
import './App.css';
import { useEffect, useState } from 'react';
import { Loading } from './loading';
import { Tours } from './tours';
function App() {
const [loading, setLoading] = useState(false);
const [tours, setTours] = useState([]);
const url = 'https://course-api.com/react-t... |
package main
import (
. "github.com/atdiar/particleui"
"github.com/atdiar/particleui/drivers/js"
)
type TodosListElement struct {
*Element
}
func (t TodosListElement) GetList() List {
var tdl List
res, ok := t.AsElement().Get("ui", "todoslist")
if !ok {
tdl = NewList().Commit()
}
tdl, ok = res.(List)
if !... |
(* Abstract specification of a concurrent shared memory counter, assuming atomic updates
*)
module Counter
use export int.Int
use export map.Map
use export map.Const
type state = Start | Done
(* threads identified by numbers
*)
type thread = int
val constant n_threads : int
axiom n_threads_po... |
<?php
/**
* @file
* This file holds style plugin for OpenLayers Views
*
* @ingroup openlayers
*/
/**
* @class
* Extension of the Views Plugin Style for OpenLayers
*
* This class extended the default views plugin class to provide
* a style plugin for the Open Layers module.
*/
class openlayers_views_style_d... |
import React, { isValidElement } from 'react';
interface Args {
children: React.ReactNode;
className?: string;
style?: React.CSSProperties;
}
const useRefinedChildren = ({ children, className, style }: Args) => {
return React.Children.map(children, (child, idx) => {
if (isValidElement(child)) {
cons... |
<!DOCTYPE html>
<html>
<head>
<title>CSS Assignment</title>
<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
<style>
body {
background-image: url("https://wa... |
package net.sf.jabref.model.database;
import net.sf.jabref.model.entry.BibLatexEntryTypes;
import net.sf.jabref.model.entry.BibEntry;
import net.sf.jabref.model.entry.BibtexEntryTypes;
import net.sf.jabref.model.entry.EntryType;
import java.util.*;
import java.util.function.Predicate;
import java.util.stream.Collecto... |
<?php
namespace App\Controller;
use App\Entity\Nationalite;
use App\Form\NationaliteType;
use App\Repository\NationaliteRepository;
use Doctrine\ORM\EntityManagerInterface;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundat... |
/*
Recreating the border-box as a mixin function
*/
@mixin border-box {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
/*
placeholder selector (%)
The placeholder selector allows us to define whole chunks of style which only
get output when we extend them elsewh... |
import { useState, useEffect } from 'react'
import Map from './components/map'
import Loader from './components/loader.js'
import Header from './components/header.js'
// This is the main component for out application
// This component will render other components
function App() {
const [eventData,setEventData]... |
(ns takeflight.pivotal
(:require clojure.xml
[takeflight.pivotal.xml :as xml]
[clj-time.core :as t]
[clj-time.coerce :refer [to-date from-date]]
[clj-http.client :as client])
(:import java.io.ByteArrayInputStream))
(def ^:private per-page 100)
(def ^:private api-url... |
# -*- coding: utf-8 -*-
"""
Created on Thu Mar 28 20:07:41 2024
@author: sai
"""
######### inheritance in python
'''
Inheritance allows us to define a class that inherits all the methods and properties from another class.
Parent class is the class being inherited from, also called base class.
Child class is the c... |
import sys
import time
import datetime
import pytz
from collections import OrderedDict
from openpyxl import load_workbook
from openpyxl.styles import Font, Color
from openpyxl.styles import colors
from joblib import Parallel, delayed
import nflstatswrapper
from nflstatswrapper import nflstatswrapperfactory
from Playe... |
/*
* Copyright 2020 The Android Open Source Project
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
import classNames from "classnames";
import React, { useEffect, useState } from "react";
import Container from "../../layout/Container";
import classes from "./Form.module.scss";
import {
validateName,
validatePhoneContent,
valiDatePhoneNumber,
validateText,
} from "./helper";
const initialData = {
name: ""... |
---
description: 阶段映射的最佳实践 — [!DNL Marketo Measure]
title: 阶段映射的最佳实践
exl-id: 1ed380a1-4a3a-4761-b70f-cdf2e290329d
feature: Tracking, Custom Models
source-git-commit: 1a274c83814f4d729053bb36548ee544b973dff5
workflow-type: tm+mt
source-wordcount: '479'
ht-degree: 0%
---
# 阶段映射的最佳实践 {#best-practices-for-stage-mapping}... |
import { useState } from 'react';
import { ExpensiveComponent } from '../../toolbox/components/ExpensiveComponent.jsx';
import { useOnRenderStyle } from '../../toolbox/hooks/useOnRenderStyle.jsx';
const ScrollComponent = ({ topChildren, children }) => {
const [scroll, setScroll] = useState(0);
return (
<div
... |
/**
* test-utils.ts
*
* Copyright (c) 2017 by General Electric Company. All rights reserved.
*
* The copyright to the computer software herein is the property of
* General Electric Company. The software may be used and/or copied only
* with the written permission of General Electric Company or in accordance... |
---
title: Storing and restoring temp body in 3rd party storage using SOLIDWORKS API
caption: Store And Restore Body
description: Storing the temp body in the SOLIDWORKS document stream via 3rd party storage and restoring it on opening using SOLIDWORKS API
image: restored-body.png
labels: [3rd party storage,store body,... |
## [21. Merge Two Sorted Lists](https://leetcode.com/problems/merge-two-sorted-lists/#/description)
Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists.
```c
/**
* Definition for singly-linked list.
* struct ListNode {
* i... |
#######################################################
# Parliament diagrams. #
#-----------------------------------------------------#
# Author: < Mingjie Wang > from < Ke Yan Mao > #
# Affiliation: Shanghai Hiplot Team #
# Email: customer_service1501@tengyunbio... |
import 'package:faker/faker.dart';
import 'package:nakama/nakama.dart';
import 'package:test/test.dart';
import '../config.dart';
void main() {
group('[REST] Test Account', () {
late final NakamaBaseClient client;
late final Session session;
setUpAll(() async {
client = NakamaRestApiClient.init(
... |
import java.math.BigInteger;
public class MersennePrimes {
public static void main(String[] args) {
BigInteger two = BigInteger.valueOf(2);
for (int p = 2; p <= 100; p++) {
BigInteger mersenne = two.pow(p).subtract(BigInteger.ONE);
if (isPrime(mersenne)) {
Sy... |
import React, { useState, useEffect } from "react";
import { View, TouchableOpacity, TextInput, Text, Image } from "react-native";
import "react-native-gesture-handler";
import styles from "./Style";
import { connect } from "react-redux";
import { useNavigation } from "@react-navigation/native";
import {
getloginActi... |
syntax = "proto3";
package generate.v1;
service TextGenerationService {
/// Model Info
rpc Info (InfoRequest) returns (InfoResponse) {}
/// Service discovery
rpc ServiceDiscovery (ServiceDiscoveryRequest) returns (ServiceDiscoveryResponse) {}
/// Empties batch cache
rpc ClearCache (ClearCacheR... |
/*
* Copyright (c) 2007, 2008, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... |
<template>
<div class="page-body">
<div class="section">
<div
class="heading animate__animated animate__slideInLeft animate__slow"
>
{{ showDate }}
</div>
<div class="conferenceInfo">
<div class="label">참여한 방 :</div>
<div class="content">{{ state.conferenc... |
from crewai import Agent, Crew, Process, Task, LLM
from crewai.project import CrewBase, agent, crew, task
from crewai_tools import SerperDevTool
from pydantic import BaseModel, Field
from typing import List
import os
from src.agentic_content_creator.config import input_vars, llms
class ResearchParagraph(BaseModel):
"... |
package com.huizhi.aianswering.controller;
import com.wf.captcha.ArithmeticCaptcha;
import com.wf.captcha.SpecCaptcha;
import com.wf.captcha.base.Captcha;
import com.wf.captcha.utils.CaptchaUtil;
import io.swagger.annotations.ApiOperation;
import org.springframework.data.redis.core.RedisTemplate;
import org.springfram... |
import { BrowserRouter as Router, Route, Routes } from 'react-router-dom';
import { ApolloClient, ApolloProvider, InMemoryCache } from '@apollo/client';
import Header from './components/Header';
import Home from './pages/Home';
import Project from './pages/Project';
import NotFound from './pages/NotFound';
const cache... |
package com.example.mvvmproducts.AllProducts.View
import android.os.Bundle
import android.widget.Toast
import androidx.activity.enableEdgeToEdge
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.ViewCompat
import androidx.core.view.WindowInsetsCompat
import androidx.lifecycle.ViewModelProvider
... |
package com.example.recipesapp.adapter
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.Glide
import com.example.recipesapp.R
import com.example.recipesapp.data.Food
import com.exampl... |
package com.qkl.musicplayer.music;
import android.app.Service;
import android.content.Intent;
import android.os.Binder;
import android.os.IBinder;
import android.support.annotation.Nullable;
import android.util.Log;
/**
* 作者:kelingqiu on 16/9/8 11:07
* 邮箱:42747487@qq.com
*/
public class PlayerService extends Serv... |
import React, { useState, useEffect } from 'react';
import { Link } from 'react-router-dom';
import { Menu, X } from 'lucide-react';
const Navbar: React.FC = () => {
const [isOpen, setIsOpen] = useState(false);
const [isScrolled, setIsScrolled] = useState(false);
const handleLogoClick = () => {
window.scrol... |
import 'package:flutter/material.dart';
class Users {
final String uid;
final String email;
final String username;
final String bio;
final String photoUrl;
final List<dynamic> followers;
final List<dynamic> following;
final List<dynamic> posts;
final List<dynamic> saved;
final String searchKey;
... |
import { SignUpController } from '../../sign-up.controller'
import {
MissingParamError,
InvalidParamError,
ServerError
} from '../../../../errors'
import {
type AccountModel,
type AddAccount,
type AddAccountModel,
type EmailValidator
} from '../../sign-up.protocol'
const makeEmailValidadtor = (): EmailVa... |
setClass("ClosedRange", slots = list(start = "integer", end = "integer"))
is_valid_closed_range <- function(object) {
if (object@start <= object@end) {
TRUE
} else {
"Start must be less than or equal to end."
}
}
setValidity("ClosedRange", is_valid_closed_range)
setMethod("as.character", "ClosedRange", ... |
---
import { getCollection } from "astro:content";
import SocialIcon from "../components/SocialIcon.astro";
const bio = await getCollection("bio");
const socials = await getCollection("socials");
const posts = await getCollection("posts");
const profile = bio[0];
---
<html lang="en">
<head>
<meta charset="utf-... |
import React, { useState, useEffect } from 'react';
import { FaBell, FaCalendarAlt, FaDollarSign, FaExclamationCircle } from 'react-icons/fa';
const Notifications = () => {
// Dummy data for demonstration. In production, this data would come from an API.
const [notifications, setNotifications] = useState([
{
... |
import torch
from torch import nn
import torch.optim as optim
import torch.nn.functional as F
def training(batch_size, n_epoch, lr, model_dir, train, valid, model, device):
total = sum(p.numel() for p in model.parameters())
trainable = sum(p.numel() for p in model.parameters() if p.requires_grad)
print('\n... |
<!DOCTYPE html>
<html>
<head>
<!-- meta block -->
<title>Localization - DHTMLX Form</title>
<meta name="description" content="Check interactive samples of DHTMLX Form to explore its initialization and other details.">
<!-- end meta block -->
<meta name="viewport" content="width=device-width, initial-scale=1.... |
#include <iostream>
#include <unordered_map>
using namespace std;
class HashTable {
private:
unordered_map<int, int> table;
public:
void insert(int key, int value) {
table[key] = value;
}
int search(int key) {
if (table.find(key) != table.end()) {
return table[key];
... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>A4 Lab</title>
<link href="../../../Vendors/Bootstrap/css/bootstrap.min.css" rel="stylesheet"/>
<link href="../../a3/css/index.css" rel="stylesheet"/>
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oB... |
#
# (C) Tenable Network Security, Inc.
#
include("compat.inc");
if (description)
{
script_id(81743);
script_version("1.10");
script_cvs_date("Date: 2018/11/15 20:50:31");
script_cve_id("CVE-2015-0076");
script_bugtraq_id(72918);
script_xref(name:"MSFT", value:"MS15-029");
script_xref(name:"MSKB", value... |
import React, { useEffect } from "react";
import { useParams } from "react-router-dom";
import { fetchRecipeInformation } from "../../features/detailsSlice";
import { useDispatch, useSelector } from "react-redux";
import "./RecipeDetails.css";
function RecipeDetails() {
const dispatch = useDispatch();
const selec... |
# Prerequisites
- [MongoDB](https://www.mongodb.com/try/download/community), [MongoDB Tutorial](https://github.com/Grasscutters/Grasscutter/wiki/Resources#mongodb-tutorial)
- [Java SE Development Kits - 17](https://www.oracle.com/java/technologies/javase/jdk17-archive-downloads.html)
# Starting the Server
**If you hav... |
<template>
<view>
<mescroll-body ref="mescrollRef" :sticky="true" @init="mescrollInit" :down="{ use: true }" :up="upOption"
@up="upCallback">
<u-sticky bgColor="#fff">
<u-tabs :list="tabs" :is-scroll="false" :current="curTab" active-color="#571fb2" :duration="0.2"
@change="onChangeTab" />
</u-sticky>
... |
;;; This code snippet is an example of a function in LISP that recursively calculates the factorial of a given number
(defun factorial (n) ;;; define the function with parameter n
(if (<= n 1) 1 ;;; if n is less than or equal to 1, return 1 as base case
(* n (factorial (- n 1))) ;;; otherwise, multiply n by the f... |
#%NASL_MIN_LEVEL 70300
#
# (C) Tenable Network Security, Inc.
#
include('deprecated_nasl_level.inc');
include('compat.inc');
if (description)
{
script_id(62468);
script_version("1.16");
script_set_attribute(attribute:"plugin_modification_date", value:"2022/04/11");
script_cve_id("CVE-2012-2552");
script_bu... |
---
title: Premiere on Linux? No Problem! 10 Alternative Video Editors
date: 2024-05-19T11:46:49.598Z
updated: 2024-05-20T11:46:49.598Z
tags:
- video editing software
- video editing
categories:
- ai
- video
description: This Article Describes Premiere on Linux? No Problem! 10 Alternative Video Editors
excerp... |
import { Link } from "react-router-dom";
import { useContext } from "react";
import { AuthContext } from "../Provider/AuthProvider";
import {
FaFilm,
FaTheaterMasks,
FaLaugh,
FaBolt,
FaHeart,
FaGlobe,
} from "react-icons/fa";
const categories = [
{
id: 1,
name: "Action",
icon: FaBolt,
des... |

<div align="center">
<font size="6"> A Collaborative Deep Learning Framework for Conservation </font>
<br>
<hr>
<a href="https://pypi.org/project/PytorchWildlife"><img src="https://img.shields.io/pypi/v/PytorchWildlife?color=lim... |
package com.SWP391_G5_EventFlowerExchange.LoginAPI.service;
import com.SWP391_G5_EventFlowerExchange.LoginAPI.dto.request.AuthenticationRequest;
import com.SWP391_G5_EventFlowerExchange.LoginAPI.dto.request.GoogleLoginRequest;
import com.SWP391_G5_EventFlowerExchange.LoginAPI.dto.response.AuthenticationResponse;
impor... |
import {
Column,
CreateDateColumn,
Entity,
OneToMany,
OneToOne,
PrimaryGeneratedColumn,
UpdateDateColumn
} from 'typeorm';
import { ObjectType } from '@nestjs/graphql';
import { PopulateRelation, ResourceEntity } from 'ivy-nestjs/resource';
import { Project } from '@resources/projects/entity';
import { Fe... |
<h1 align="center">
<!-- <a href="https://github.com/mddunlap924/VHSpy">
<img src="https://raw.githubusercontent.com/mddunlap924/PyVHS/main/doc/imgs/pyvhs.png" width="512" height="256" alt="pyvhs">
</a> -->
Information Retrieval and RAG
</h1>
<p align="center">Richer details and references for NLP-based Info... |
<script lang="ts">
import { onMount } from "svelte";
export let variant:
| "primary"
| "secondary"
| "warning"
| "danger"
| "transparent" = "primary";
export let fontSize: "regular" | "large" = "regular";
export let handleClick: svelte.JSX.MouseEventHandler<
HTMLButtonElement
> = () =... |
import mongoose from "mongoose";
const placeschema = new mongoose.Schema(
{
placeName: {
type: String,
required: true,
},
placeLocation: {
type: String,
required: true,
},
host: {
type: mongoose.Schema.Types.ObjectId,
ref: "user",
},
image: [
{
... |
import React, { useEffect } from 'react'
import { z } from "zod";
import { zodResolver } from "@hookform/resolvers/zod";
import { useForm } from 'react-hook-form';
import useFetch from '@/hooks/use-fetch';
import { addNewCompany } from '@/api/apiCompanies';
import { Drawer, DrawerClose, DrawerContent, DrawerFooter, Dra... |
#
# (C) Tenable Network Security, Inc.
#
# The descriptive text and package checks in this plugin were
# extracted from SUSE update advisory SUSE-SU-2018:1936-1.
# The text itself is copyright (C) SUSE.
#
include("compat.inc");
if (description)
{
script_id(120041);
script_version("1.3");
script_set_attribute(at... |
"""Utilities for downloading and initializing model weights."""
import fnmatch
import glob
import hashlib
import json
import os
import tempfile
from collections import defaultdict
from typing import (Any, Callable, Dict, Generator, Iterable, List, Optional,
Tuple, Union)
import filelock
import gguf... |
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Belajar Dasar Ajax</title>
</head>
<body>
<h1>Tutorial Ajax <button id="btn-clear" onclick="clearResult()">Clear</button></h1>
<div id="hasil"></div>
<button id="button" onclick="loadCo... |
const express = require('express')
const sqlite3 = require('sqlite3')
const {open} = require('sqlite')
const path = require('path')
const jwt=require('jsonwebtoken');
const bcrypt=require('bcrypt');
const app = express()
const dbFilePath = path.join(__dirname, 'covid19IndiaPortal.db')
const PORT_NU = 3000
let db = nu... |
package Kaviru.MAD.LAB.MyToDoApp.dao
import androidx.room.*
import kotlinx.coroutines.flow.Flow
import Kaviru.MAD.LAB.MyToDoApp.models.Task
@Dao
interface TaskDao {
@Query("""SELECT * FROM Task ORDER BY
CASE WHEN :isAsc = 1 THEN taskTitle END ASC,
CASE WHEN :isAsc = 0 THEN taskTitle END DESC"""... |
package com.lagousocket.socketdemo;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import static java.util.concurrent.Executors.newCachedThrea... |
"""
Given graphical information, color maps, and a custom imaginary equation
this program generates fractals.
Source: https://www.geeksforgeeks.org/mandelbrot-fractal-set-visualization-in-python/
12/15/24
"""
import numpy as np
import matplotlib.pyplot as plt
# fractal function
def mandelbrot_set(width, height, bou... |
# Copyright 2023 Iguazio
#
# 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 writing, softwa... |
const { test, expect } = require('@playwright/test');
const { LoginPage } = require('../pageObjects/loginPage');
const { ProductsPage } = require('../pageObjects/productsPage');
const { CartPage } = require('../pageObjects/cartPage');
const username = JSON.parse(JSON.stringify(require('../testData/userNames.json')));
... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CDP Support Chatbot</title>
<link rel="stylesheet" href="/static/style.css">
</head>
<body>
<div class="container">
<h1>CDP Support Chatbot</h1>
... |
import 'dotenv/config';
import app from './app';
import healthCheck from './infrastructure/routes/health';
import { createServer, Server } from 'http';
import sequelize from './infrastructure/database/index';
class Application {
private readonly server: Server;
private readonly port: string | number;
cons... |
/*
* Copyright (C) 2017 ss
*
* 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 program is distributed in ... |
import asyncio
from PyQt6.QtCore import QObject, QRunnable, pyqtSignal
from bleak import BleakScanner
class BLEScannerSignals(QObject):
finished = pyqtSignal(list)
error = pyqtSignal(str)
services = pyqtSignal(list)
running = pyqtSignal(bool)
class BLEScanner(QRunnable):
def __init__(self, device... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.