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 puppeteer from "puppeteer"; | |
async function scrape() { | |
// Launch the browser | |
const browser = await puppeteer.launch({ headless: false }); | |
const page = await browser.newPage(); | |
// Navigate to the URL | |
await page.goto("https://parents.msrit.edu/newparents/"); |
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 streamlit as st | |
import pandas as pd | |
import matplotlib.pyplot as plt | |
from urllib.parse import urlparse | |
data = pd.read_csv("csvdata/dark-patterns.csv") |
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.sql.Connection; | |
import java.sql.DriverManager; | |
import java.sql.PreparedStatement; | |
import java.sql.ResultSet; | |
import java.sql.SQLException; | |
public class Read { | |
public static void main(String[] args) { | |
String jdbcUrl = "jdbc:mysql://localhost:3306/school_db"; | |
String username = "root"; |
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
-- create a new database and switch to it using the following commands: | |
mysql> CREATE DATABASE school_db; | |
mysql> USE school_db; | |
CREATE TABLE students ( | |
id INT PRIMARY KEY AUTO_INCREMENT, | |
name VARCHAR(255), | |
usn VARCHAR(255), | |
semester INT, |
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
from selenium import webdriver | |
from selenium.webdriver.common.by import By | |
from selenium.webdriver.chrome.service import Service as ChromeService | |
from webdriver_manager.chrome import ChromeDriverManager | |
from bs4 import BeautifulSoup | |
import fitz | |
import requests | |
import json | |
url = "https://www.mstcecommerce.com/auctionhome/container.jsp?title_id=Mine%20Block%20Summary&linkid=0&main_link=y&sublink=n&main_link_name=203&portal=mlcl" |
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
from selenium import webdriver | |
from selenium.webdriver.common.by import By | |
from selenium.webdriver.chrome.service import Service as ChromeService | |
from webdriver_manager.chrome import ChromeDriverManager | |
from bs4 import BeautifulSoup | |
import fitz | |
import requests | |
import json | |
url = "https://mines.gov.in/webportal/rules" |
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> | |
#include <stdlib.h> | |
#define MAX_VERTICES 10 | |
int cost[MAX_VERTICES][MAX_VERTICES], i, j, k, n, stk[MAX_VERTICES], top, v, visit[MAX_VERTICES], visited[MAX_VERTICES]; | |
int main() |
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 pikepdf | |
from tqdm import tqdm | |
letter = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", | |
"W", "X", "Y", "Z"] | |
date = [f"{i:02}" for i in range(1, 32)] | |
month = [f"{i:02}" for i in range(1, 13)] | |
##password in formate of "AAAA + date + month" | |
passwords = [f"{i}{j}{k}{l}{m}{n}" for i in letter for j in letter for k in letter for l in letter for m in date for n | |
in month] |