This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
import requests | |
import pandas as pd | |
from tqdm import tqdm | |
import chromedriver_binary | |
from bs4 import BeautifulSoup | |
from selenium import webdriver | |
browser = webdriver.Chrome() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For reading input from the command line | |
const readline = require('readline'); | |
const rl = readline.createInterface({ | |
input: process.stdin, | |
output: process.stdout, | |
terminal: false | |
}); | |
// Function to solve the problem | |
function solve(input) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cv2 | |
import numpy as np | |
def detect_boxes(image): | |
# Convert image to HSV color space | |
hsv = cv2.cvtColor(image, cv2.COLOR_BGR2HSV) | |
# Define range for brown color in HSV | |
lower_brown = np.array([10, 50, 50]) | |
upper_brown = np.array([20, 255, 255]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>BMI Calculator</title> | |
<style> | |
body { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function validateLoginForm() { | |
const usernameInput = document.getElementById('username'); | |
const passwordInput = document.getElementById('password'); | |
const username = usernameInput.value.trim(); | |
const password = passwordInput.value.trim(); | |
if (username === '' || password === '') { | |
alert('Please fill in all fields.'); | |
return false; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function validateLogin() { | |
var username = document.getElementById("username").value; | |
var password = document.getElementById("password").value; | |
if (username === "" || password === "") { | |
alert("Please enter your username and password."); | |
return false; | |
} | |
var xhr = new XMLHttpRequest(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Login Page</title> | |
<style> | |
.container { | |
width: 400px; | |
margin: 0 auto; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main(void) | |
{ | |
// your code goes here | |
int n, x, y; | |
int sum = 0; | |
int day = 0; | |
int k = 1; | |
scanf("%i", &n); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* package codechef; // don't place package name! */ | |
import java.util.*; | |
class Codechef | |
{ | |
public static void main (String[] args) | |
{ | |
Scanner input =new Scanner(System.in); | |
int t=input.nextInt(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
public class Main { | |
public static void main(String[] args) { | |
Scanner sc = new Scanner(System.in); | |
int t = sc.nextInt(); | |
while(t-- > 0) { | |
boolean prime = true; | |
int n = sc.nextInt(); | |
if(n == 1){ |
NewerOlder