text stringlengths 184 4.48M |
|---|
<?php
namespace App\Http\Controllers\Admin;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use App\Models\Admin\Page;
use Yajra\DataTables\DataTables;
class PageController extends Controller
{
public function index(Request $request)
{
if ($request->ajax()) {
$pages = Pa... |
package org.sollecitom.chassis.correlation.core.serialization.json.access.actor
import org.json.JSONObject
import org.sollecitom.chassis.core.domain.identity.Id
import org.sollecitom.chassis.core.serialization.json.identity.jsonSerde
import org.sollecitom.chassis.correlation.core.domain.access.actor.Actor
import org.s... |
package member.controller;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.Properties;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletConfig;
import javax.... |
{% load static %}
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<meta name="description" content="" />
<meta nam... |
const {
Client,
GatewayIntentBits,
Events,
Collection
} = require('discord.js');
require('dotenv').config();
const {
registerCommands
} = require('./registerCommands');
const {
createEmbed,
createButtons,
getTotalPages
} = require('./paginationHelper');
const {
readData
} = require('./data');... |
# Emplear un modelo de prediccion con el algoritmo
# de knn y naive bayes
# Limpiear workspace
rm(list = ls())
# Limpiar area de graficos
dev.off()
# Limpiar la consola
cat("\014")
options(scipen=999)
options(digits = 4)
# Librerias ====
library(foreign)
library(dummies)
library(caret)
library(gmodels)
library(caT... |
import { useState } from "react";
const VotaCidade = () => {
const [votos, adicionarVoto] = useState({
quixada: 0,
mombaca: 0,
juazeiroDoNorte: 0
});
const cidadeMaiorVotacao = () => {
if (
votos.juazeiroDoNorte > votos.mombaca &&
votos.juazeiroDoNorte > votos.quixada
) {
r... |
# DCA ---------------------------------------------------------------------
# Definir los niveles de fertilización nitrogenada y el número de repeticiones
fertilizacion <- c(0, 50, 100) # Dosis de fertilización (kg/ha)
repeticiones <- 5 # Número de repeticiones
# Crear el diseño completamente al azar (DCA)
# P... |
.. _log-analyze:
8장. 로그분석
******************
이 장에서는 로그를 분석하는 방법에 대해 설명한다.
로그를 통해 어떠한 장애라도 설명이 가능하다.
흔히들 M2가 참조하는 리소스가 다양할수록 장애파악이 어렵다고 생각한다.
하지만 문제를 일으키는 순간의 리소스는 단 하나이고 M2를 이를 충분히 증명가능한 상태로 제공한다.
.. _log-analyze-relation:
로그 관계
M2는 3가지의 로그를 제공하며 각 로그를 연결하는 고리는 다음과 같다.
.. figure:: img/m2_33.png
:align: cen... |
<h2 mat-dialog-title>Edit Properties - <code>{{data?.name}}</code></h2>
<mat-dialog-content class="mat-typography">
<ng-container [ngTemplateOutlet]="tabGroup"
[ngTemplateOutletContext]="{tabs:data.item.tabProperties}"></ng-container>
</mat-dialog-content>
<mat-dialog-actions align="end">
<button mat-b... |
from PyQt5.QtWidgets import QApplication
from PyQt5.QtCore import QTimer
from PyQt5.QtCore import Qt
import psutil
import time
class WindowManager:
def __init__(self, time_tracker=None):
self.time_tracker = time_tracker
self.locked_window = None
self.app = QApplication.instance() or QApplic... |
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:vendor_app/common/app_style.dart';
import 'package:vendor_app/constants/constants.dart';
class EmailTextField extends StatelessWidget {
const EmailTextField(
{super.key,
this.onEditingComp... |
import type { NextApiRequest, NextApiResponse } from "next";
import { WEBAPP_URL } from "@calcom/lib/constants";
import prisma from "@calcom/prisma";
import getInstalledAppPath from "../../_utils/getInstalledAppPath";
import createOAuthAppCredential from "../../_utils/oauth/createOAuthAppCredential";
import config fr... |
---
stage: Govern
group: Threat Insights
info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://handbook.gitlab.com/handbook/product/ux/technical-writing/#assignments
---
# Vulnerability Page
DETAILS:
**Tier:** Ultimate
**Offering:** GitLab.com, Self-managed, GitLab... |
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\VarDumper\Caster;
use Symfony\Component\VarDumper\Clo... |
import React from "react";
export default function TaskView({ tasks, onDelete, onCreate }) {
return (
<div className="flex items-center justify-center min-h-screen bg-gray-100">
<div className="w-full max-w-3xl p-6 bg-white rounded-lg shadow-md">
<h1 className="text-2xl font-sem... |
"use client";
import Image from "next/image";
import Link from "next/link";
import { FaFacebookF } from "react-icons/fa";
import { FaInstagram } from "react-icons/fa";
import { FaXTwitter } from "react-icons/fa6";
export default function AboutCard({
className,
title,
src,
subtitle,
about,
about2,
facebo... |
import React, { useEffect, useState } from 'react';
import { useNavigate } from "react-router-dom";
import { Address } from '../../interfaces/User';
import UserAddress from './UserAddress'
import { ProductCart } from '../../interfaces/Products';
import { useAppDispatch, useAppSelector } from '../../redux/hooks';
import... |
import { Devices } from "../types";
import { responsiveValueReduce } from "./responsiveValueReduce";
const devices: Devices = [
{
id: "b1",
w: 100,
h: 100,
breakpoint: 150,
},
{
id: "b2",
w: 200,
h: 200,
breakpoint: 250,
},
{
id: "b3",
w: 300,
h: 300,
breakpoin... |
Based on the provided content, here's a breakdown of the vulnerability information related to CVE-2018-20748:
**Root Cause of Vulnerability:**
* The root cause is an incomplete fix for a previous vulnerability (CVE-2018-20019) related to heap out-of-bounds write in the `libvncclient/rfbproto.c` file within LibVNC.
... |
const fs = require('fs');
const path = require('path');
const inputFilePath = path.join(__dirname, 'input.txt');
const matrixSize = 70;
const bytes = null;
fs.readFile(inputFilePath, 'utf8', (err, data) => {
if (err) {
console.error('Error reading the file:', err);
return;
}
const lines = data.trim().... |
---
title: 部署代码
description: 了解如何使用 AEM as a Cloud Service 中的 Cloud Manager 管道部署代码。
exl-id: 2c698d38-6ddc-4203-b499-22027fe8e7c4
source-git-commit: 2d4ffd5518d671a55e45a1ab6f1fc41ac021fd80
workflow-type: tm+mt
source-wordcount: '1190'
ht-degree: 94%
---
# 部署代码 {#deploy-your-code}
了解如何使用 AEM as a Cloud Service 中的 Cl... |
#ifndef HEADER_H
#define HEADER_H
#include <bits/stdc++.h>
using namespace std;
template<typename T>
void doSwap(T& a, T& b) {
T tmp = a;
a = b;
b = tmp;
}
template<typename T>
void bubbleSort(vector<T>& a) {
int n = a.size();
bool isSwapped;
do {
isSwapped = false;
for (int ... |
import Grid from "@mui/material/Grid2";
import { Paper } from "@mui/material";
import { Bank } from "../../types/graphql-types";
interface AddBankAccountProps {
invoiceId: number;
selectedBank: string;
setSelectedBank: (value: string) => void;
banks: Bank[];
}
function AddBankAccount({
selectedBank,
setSe... |
package testCases;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.testng.Assert;
import org.testng.annotations.AfterTest;
import org.testng.annotations.BeforeTest;
import org.testng.annotations.Test;
import pageObject.loginPage;
import pageObject.inventory;
public clas... |
题目内容:
编写函数来使一个字符串逆序输出,要求必须用递归函数。
输入格式:
一个字符串,不会超过100个字符长,中间可能包含空格
输出格式:
该字符串的逆序
【注意】使用字符数组和递归实现。
输入样例:
Hello,everyone
输出样例:
enoyreve,olleH
#include <iostream>
using namespace std;
void reverse(char str[], int begin, int n);
int main()
{
char ch[100];
int n=0;
cin.getline(ch, 100);
while (ch[n]!='\0') n++... |
/* -------------------------------------------------------------------------- */
/* DEPENDENCIES */
/* -------------------------------------------------------------------------- */
// Packages
import { m } from 'framer-motion';
// MUI
import Box from '@mui/... |
<?php
declare(strict_types=1);
namespace Bitrix\AI\Cloud;
use Bitrix\AI\Config;
use Bitrix\Main\Application;
use Bitrix\Main\ArgumentException;
use Bitrix\Main\Web\HttpClient;
use Bitrix\Main\Web\Json;
/**
* Class ServerList
* Helps to get the list of allowed servers for the AI service.
*/
final class ServerList
... |
const { expect } = require('@playwright/test')
const LandingPage = 'https://epicbet.com/'
const BRAND = /Epicbet/
const SPORTSBOOK = /.*\/sport/
exports.MainPage = class MainPage {
/**
* * @param {import('@playwright/test').Page} page
* */
constructor(page) {
this.page = page
this... |
// NAVBAR JSX
import React, { useState } from 'react';
import { FaBars } from 'react-icons/fa';
import './NavBar.css';
const Navbar = () => {
const [sidebarOpen, setSidebarOpen] = useState(false);
const toggleSidebar = () => {
setSidebarOpen(!sidebarOpen);
};
return (
<>
<div className="navbar... |
import React from "react";
const commentsData = [
{
name: "Abhishek Kalia",
text: "lorem ipsum dolo sit amet, consectetur adip",
replies: [],
},
{
name: "Abhishek Kalia",
text: "lorem ipsum dolo sit amet, consectetur adip",
replies: [
{
name: "Abhishek Kalia",
text: ... |
package com.mythostrike.model.game.activity.cards.cardtype;
import com.mythostrike.controller.message.game.PlayerCondition;
import com.mythostrike.model.game.activity.PassiveSkill;
import com.mythostrike.model.game.activity.cards.CardSymbol;
import com.mythostrike.model.game.activity.cards.CardType;
import com.mythost... |
// src/App.js
import React from 'react';
import { BrowserRouter as Router, Routes, Route, useLocation, Navigate } from 'react-router-dom';
import { createTheme, ThemeProvider } from '@mui/material/styles';
import Home from './pages/Home/Home.jsx';
import Login from './pages/Login/Login';
import Register from './pages/R... |
<?php
namespace TrxAddons\AiHelper\ProcessSelection;
use TrxAddons\AiHelper\OpenAiAssistants;
use TrxAddons\AiHelper\Lists;
use TrxAddons\AiHelper\Utils;
if ( ! class_exists( 'Helper' ) ) {
/**
* Main class for AI Helper ProcessSelection support
*/
class Helper {
/**
* Constructor
*/
function __cons... |
import math
import multiprocessing
import time
import logging
from concurrent.futures import ThreadPoolExecutor, ProcessPoolExecutor
logging.basicConfig(level=logging.INFO, format="%(asctime)s %(levelname)s: %(message)s")
log = logging.getLogger(__name__)
def integrate(fun, a, b, steps):
h = (b - a) / steps
... |
// DESAFIO #4 - Cálculos de Viagens Espaciais I
/*
A equipe encarregada de aperfeiçoar o sistema de navegação das naves da Federação precisa que você os ajude criando uma nova
funcionalidade. Essa funcionalidade consiste em calcular a elevação quadrática individual de um determinado número.
Para realizar... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { t... |
//Định nghĩa shema và truy vấn đến database
import { model, Document, Schema } from 'mongoose';
import mongoosePaginate from 'mongoose-paginate-v2'
const postSchema = new Schema({
industry_id: {
type: String,
required: true
},
function_id: {
type: String,
required: true
}... |
import React from 'react'
import { useState } from 'react';
import GithubUser from "./GithubUser"
function GithubUsers() {
const [search,setSearch] = useState('');
const [username,setUsername] = useState([]);
function handleSearch(event) {
setSearch(event.target.value);
}
async function handleForm(even... |
// Add replay functionality to Bomberman UI
package ai;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyAdapter;
import java.awt.event.KeyEvent;
public class GameFrame extends JFrame implements Observer {
private Game game;... |
/* eslint-disable react-hooks/exhaustive-deps */
// Add at the top of the file
import { useEffect, useRef, useState } from "react";
export const useInView = (options = {}) => {
const [isInView, setIsInView] = useState(false);
const ref = useRef(null);
useEffect(() => {
const observer = new IntersectionObse... |
import logging
import re
from typing import Dict, Union, Optional, List
import requests
from requests.sessions import Session
from bs4 import BeautifulSoup
from utils import fetch_response
BASE_WEBSITE = 'https://ted.europa.eu'
SEARCH_URL = "https://ted.europa.eu/TED/search/searchResult.do"
logger = logging.getLogg... |
import sys
import os
import gensim
from gensim import corpora, models
import pandas as pd
import matplotlib.pyplot as plt
import pyLDAvis
import pyLDAvis.gensim_models as gensimvis
import seaborn as sns
import warnings
from gensim.models import CoherenceModel
warnings.filterwarnings("ignore", category=DeprecationWarni... |
#ifndef NALOGA0501_ARTWORK_H
#define NALOGA0501_ARTWORK_H
#include <string>
#include <memory>
#include "Artist.h"
class Artwork {
protected:
std::string title;
std::string description;
std::shared_ptr<Artist> artist;
double price;
int year;
public:
Artwork();
Artwork(std::string title,std... |
import { Link, useParams } from "react-router-dom";
import { useGetProductsQuery } from "../redux/api/productApiSlice";
import Loader from "../components/Loader";
import Message from "../components/Message";
import Header from "../components/Header";
import Product from "./Products/Product";
const Home = () => {
c... |
CONTEXT "NatuurlijkPersoon API"
{- Een `NatuurlijkPersoon` kent twee verschijningsvormen (specialisaties):
1. Een `NPForm` waarin we het editen doen, credentials inlezen enzovoorts.
2. Een `NPReg` die geacht wordt aan alle regels te voldoen van de Party die eigenaar is van de applicatie.
Een transitie NPForm -> NPReg ... |
import { HttpClientTestingModule } from '@angular/common/http/testing';
import { CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA } from '@angular/core';
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { ReactiveFormsModule } from '@angular/forms';
import { RouterTestingModule } from '@angular/router/... |
import React, { useState } from 'react';
import {
View,
Text,
StyleSheet,
ScrollView,
TouchableOpacity,
Dimensions
} from 'react-native';
import { useNavigation } from '@react-navigation/native';
import Ionicons from 'react-native-vector-icons/Ionicons';
const FeaturesScreen = () => {
const [expandedCar... |
export default defineEventHandler(async (event) => {
type User = {
id: number;
name: string;
email: string;
status: string;
};
// Simulated in-memory database
let DB_USERS: User[] = [
{
id: 1,
name: "John Doe",
email: "JohnDow@gmail.com",
status: "active",
},
... |
from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework.permissions import AllowAny
from rest_framework import status
from django.utils import timezone
from datetime import timedelta
from django.db.models import Q
from mygrace.models import MyGraceUser
class DashboardS... |
package com.project.mobileStore.controllers;
import com.project.mobileStore.models.Cart;
import com.project.mobileStore.models.Mobile;
import com.project.mobileStore.services.CartService;
import com.project.mobileStore.services.MobileService;
import org.springframework.beans.factory.annotation.Autowired;
import org.sp... |
import React from 'react';
import { View, Text, Image, TouchableOpacity, StyleSheet, Alert } from 'react-native';
import Ionicons from '@expo/vector-icons/Ionicons';
const ProductCardWishlist = ({ product, onRemove }) => {
const size = product.sizes[0]; // Use the first size for simplicity
const discount = Mat... |
import React, { useState } from 'react';
import './Register.scss'
import { login, register } from '../../services/userService'
import { useNavigate } from 'react-router-dom';
import _ from 'lodash';
import { toast } from 'react-toastify';
const Register = () => {
const defaultdata = {
email: '',
p... |
/* <== How to remove n elements from the end of a given array in JavaScript ?
In this article, we will learn how to remove the last n
elements from the end of the given array in JavaScript.
We can remove n elements from the end of a given array in
the following ways:
Using splice() Method
Using pop() Method
Using f... |
import { Component, OnInit, Input } from '@angular/core'
import { SharedService } from '../core/shared.service'
import { Tag, DashboardTag } from '../core/domain/tag'
import { Error } from '../error-handler/error-handler.component'
import { Skill } from '../core/domain/skill'
import { UserService } from '../core/user.s... |
advent_of_code::solution!(4);
use itertools::Itertools;
fn str_to_2d_vec(input: &str) -> Vec<Vec<char>> {
// Split our multiline string into a 2D vector of characters
input.lines().map(|line| line.chars().collect()).collect()
}
fn iter_in_direction(
characters: &[Vec<char>],
start: (usize, usize),
... |
package com.example.pokedex2.ui.Filters
import androidx.compose.foundation.background
import androidx.compose.foundation.border
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.aspe... |
package com.wl.domain;
import java.util.List;
/***
* 封装了分页的数据
* 该页学生集合
* 总记录数
* 总页数
* 当前页
* 每页显示记录数
*/
public class PageStudentBean<T> {
private int currentPage;
private int totalPage;
private int pageSize;
private int totalSize;
private List<T> list;
public PageStudentBean() {
... |
import "./style.css";
import Logo from "../../assets/logo.svg";
import { useNavigate } from "react-router-dom";
import { useEffect, useState } from "react";
import api from "../../services/api";
import { getItem, setItem } from "../../utils/storage"
function SignIn() {
const navigate = useNavigate();
const [email,... |
import React, { useContext, useState } from 'react';
import {Button, Form} from 'react-bootstrap';
import Modal from 'react-bootstrap/Modal';
import { Context } from '../../App';
import { collection, addDoc, getDocs } from "firebase/firestore";
import { useNavigate } from 'react-router-dom';
import { SHOP_ROUTE } from... |
<template>
<base-nav v-model="showMenu" class="navbar-absolute top-navbar" type="white" :transparent="true">
<div slot="brand" class="navbar-wrapper">
<div class="navbar-toggle d-inline" :class="{ toggled: $sidebar.showSidebar }">
<button type="button" class="navbar-toggler" @click="toggleSidebar">
... |
"use client";
import useDebounce from "@/app/_hooks/useDebounce";
import { usePathname, useRouter, useSearchParams } from "next/navigation";
const SearchBar = () => {
const searchParams = useSearchParams();
const router = useRouter();
const pathname = usePathname();
function handleSearch(searchQuery) ... |
package local.begin.leetCode;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.PriorityQueue;
/**
* 786. 第 K 个最小的素数分数
* 给你一个按递增顺序排序的数组 arr 和一个整数 k 。数组 arr 由 1 和若干 素数 组成,且其中所有整数互不相同。
*
* 对于每对满足 0 <= i < j < arr.length 的 i 和 j ,可以得到分数 arr[i] / arr[j] 。
*
* 那么第 k ... |
import { ButtonGroup } from "@mui/material";
import FormatListBulletedIcon from '@mui/icons-material/FormatListBulleted';
import GridViewIcon from '@mui/icons-material/GridView';
import ClearIcon from '@mui/icons-material/Clear';
import { useLocalStorage } from "../../common/utils/useLocalStorage";
import { useMessageA... |
import {isConvertible} from "./isConvertible";
/**
* Clase para convertir sistemas y unidades de velocidad
*/
export class Velocidad implements isConvertible<[string, number]>{
/**
* @param unidades Relación entre las unidades definidas en la clase.
*/
unidades: [string[], number[]];
/**
*... |
import discord
from discord.ext import commands
from paradise import Paradise
from botrix import Botrix
import json, asyncio, itertools, dbots
intents = discord.Intents.default()
intents.members = True
tokens = json.load(open("tokens.json"))
client = commands.Bot(command_prefix="k?", help_command=None, intents=inten... |
# Python package template project
This is a template project for a Python package. It is intended to be used as a starting point for creating a new Python package.
# Usage and installation
To install all the packages included on the template, run the following command (on the root of the project):
```bash
sourc... |
import React from 'react';
import { useSelector, useDispatch } from "react-redux";
import { Link, useNavigate } from 'react-router-dom';
import CartItems from './CartItems';
import { addItemsToCart, removeItemsFromCart } from './../../actions/CartAction';
import './Cart.css'
import cartIcon from '../../Images/icons8-ad... |
/*
* Copyright 2016 Judge Muzinda.
*
* 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... |
<script>
import Card from './Card.vue';
import Header from './Header.vue';
import Filters from './Filters.vue'
import MobileCard from './mobileCard.vue';
export default {
name: 'MainPage',
components: {
Header,
Card,
Filters,
MobileCard
},
data() {
return {
inputValue: ''
}
},
}
</script>
<template... |
ah-client(1) -- simple, service oriented management of AWS resources
## SYNOPSIS
`ah-client` [`-hcu`] [`-s` <SHA>] [<TARGET> ...]
## DESCRIPTION
The **ah-client** tool is used to deploy **ah** services to instances on AWS,
either manually by calling `ah-client` on an instance in an **ah** environment
autoscaling ... |


 -> Result<()> {
let t = Tensor::new(&[[1.0f32, 2., 3.], [4., 5., 6.]], &Device::Cpu)?;
let v = t.to_vec2::<f32>()?;
let mut dims = t.dims().to_vec();
dims.insert(0, 1);
... |
import React from 'react';
import PropTypes from 'prop-types';
import { v4 as uuid } from 'uuid';
import styles from './input.module.scss';
const Input = ({
id, className, type, value, placeholder, handleChange,
}) => (
<input
id={id}
className={`${className} ${styles.input}`}
type={type}
value={va... |
import React, { useState } from 'react';
import { useLocation } from 'react-router-dom';
import { getAuth, createUserWithEmailAndPassword, signInWithPopup, GoogleAuthProvider, GithubAuthProvider } from 'firebase/auth';
import { collection, addDoc } from 'firebase/firestore';
import { app, database } from '../firebaseCo... |
import * as cdk from 'aws-cdk-lib';
import { Construct } from 'constructs';
import * as sam from 'aws-cdk-lib/aws-sam';
import * as lambda from 'aws-cdk-lib/aws-lambda';
import * as apigateway from 'aws-cdk-lib/aws-apigateway';
import * as logs from 'aws-cdk-lib/aws-logs';
import * as iam from 'aws-cdk-lib/aws-iam';
i... |
import { useState, useEffect } from 'react';
import { createRol, getRoles, deleteRol, updateRol } from '../services/rol';
export const useRoles = () => {
const [roles, setRoles] = useState([]);
const [editMode, setEditMode] = useState(false);
const [editedRol, setEditedRol] = useState({
id_rol: '',
nombr... |
import { useEffect } from "react";
const useScrollAnimation = () => {
useEffect(() => {
const handleScroll = () => {
const elements = document.querySelectorAll(".animate-on-scroll");
elements.forEach((el) => {
const rect = el.getBoundingClientRect();
if (rect.top < window.innerHeight ... |
package Pages;
import org.openqa.selenium.By;
import org.openqa.selenium.NoSuchElementException;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
public class Login {
public WebDriver driver;
// Constructor to initialize the WebDriver
public Login(WebDriver driver) {
... |
package io.github.tropheusj.magic_8_ball.loot;
import com.google.gson.JsonDeserializationContext;
import com.google.gson.JsonObject;
import com.google.gson.JsonSerializationContext;
import io.github.tropheusj.magic_8_ball.BuiltInResponses;
import io.github.tropheusj.magic_8_ball.Magic8Ball;
import io.github.tropheusj... |
const express = require('express');
const Faculty = require('../models/Faculty'); // Adjust path as needed
const router = express.Router();
// Get all faculty members and render the list view
router.get('/list', (req, res) => {
Faculty.getAllFaculty((err, results) => {
if (err) {
console.error(... |
"use client";
import { siteConfig } from "@/config/site";
import {
Navbar,
NavbarBrand,
NavbarContent,
NavbarItem,
NavbarMenu,
NavbarMenuItem,
NavbarMenuToggle,
} from "@nextui-org/navbar";
import clsx from "clsx";
import { usePathname, useRouter } from "next/navigation";
import NextLink from "next/link";... |
import tkinter as tk
from tkinter import ttk
from tkinter import PhotoImage
from datetime import datetime, timedelta
from PIL import Image, ImageTk
from tkinter import simpledialog
root = tk.Tk()
root.title("Utilisation tracker")
root.geometry("800x300")
root.iconbitmap("app-icon.ico")
# Load the image
original_imag... |
//
// Profile.swift
// Cinerama Maps
//
// Created by Techimmense Software Solutions on 03/09/24.
//
import Foundation
struct Api_UserProfile : Codable {
let result : Res_UserProfile?
let message : String?
let status : String?
enum CodingKeys: String, CodingKey {
case result = "result"
... |
import React, { useState, useEffect } from "react";
import axios from "axios";
import { getAuth, onAuthStateChanged } from "firebase/auth";
import { IP } from "../assets/ConstantValues";
import LeftNavBar from "../Components/LeftNavBar";
import {
TextField,
Button,
Container,
Typography,
CircularProgress,
... |
using APILearn.Models;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Options;
using Microsoft.OpenApi.Models;
var builder = WebApplication.CreateBuilder(args);
var constring= builder.Configuration.GetConnectionString("DefaultConnection"); // Connection strings
builder.Services.AddDbContext<DataCon>... |
import puppeteer from 'puppeteer';
import fs from 'fs';
const spots = [
{
name: 'Khaya Beach 🐕',
slug: 'khaya',
url: 'https://www.windguru.cz/208276',
},
{
name: 'Dolphin 🐬️',
slug: 'dolphin',
url: 'https://www.windguru.cz/206959',
},
{
name: `Big Bay ${getRandomSurferEmoji()}`,... |
use nom::{
branch::alt,
bytes::complete::tag,
character::complete::{self, anychar},
combinator::value,
multi::{many1, many_till},
sequence::{delimited, separated_pair},
IResult, Parser,
};
#[derive(Clone, PartialEq, Eq)]
enum Instruction {
Mul(u32, u32),
Do,
Dont,
}
fn mul(inpu... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using Yarn.Unity;
public class VisualManage : MonoBehaviour
{
[SerializeField] private Image visualDisplay; // Reference to the UI Image
[SerializeField] private Dictionary<string, Sprite> spriteDictionary = ne... |
import { Musique } from "../../models/musique.model";
import { Injectable } from '@angular/core';
import { Observable } from 'rxjs';
import { map } from 'rxjs/operators';
import { AngularFirestore, AngularFirestoreCollection } from '@angular/fire/firestore';
@Injectable({
providedIn: 'root'
})
export class MusiqueS... |
import { NgModule, Component } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { CardListComponent } from './components/cards/card-list/card-list.component';
import { HomePageComponent } from './components/home-page/home-page.component';
import { CardListPromotionComponent } from '.... |
import React, {useState} from "react";
import "../../css/AddWish.css";
interface props {
wishlistId: number
}
function ProductSubmit({wishlistId}: props) {
const [productUrl, setProductUrl] = useState("");
const [notes, setNotes] = useState("");
const [quantity, setQuantity] = useState(1);
const ... |
import {
Input,
Title,
Button,
Container,
LinkContainer,
FieldsetContainer,
Error,
} from '../../components';
import * as yup from 'yup';
import { yupResolver } from '@hookform/resolvers/yup';
import { useNavigate } from 'react-router-dom';
import { useForm } from 'react-hook-form';
import { useEffect, us... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Taste the Rainbow with Skittles - Explore the delicious flavors and fun!">
<title>Skittles - Taste the Rainbow</title>
<!-- CSS -->
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.