Skip to content

Instantly share code, notes, and snippets.

View madhaven's full-sized avatar
🌚
... you never know

madhaven madhaven

🌚
... you never know
  • Kerala
View GitHub Profile
@madhaven
madhaven / NewProject.py
Last active April 26, 2020 06:24
Start projects without the hazzle of inital files.
from os import system as sys, listdir as ls
import sys as s
from time import strftime as tm
ProjectsFolder = 'D:\\Works\\'
try:
projects = [x.lower() for x in ls(ProjectsFolder) if '.' not in x]
folder = input(' - '.join(projects)+'\nSelect Folder : ')+'\\'
if not folder[:-1].lower() in projects: folder = ''
projectName = input('Project Name : ')+'\\'
@madhaven
madhaven / GreedyAlgorithms.md
Last active February 11, 2021 23:35
PrimsMST Greedy Algorithm

GreedyAlgorithms

Python and Tkinter program to find the optimum solutions for different Greedy Algorithms.

The cost matrix to the different nodes of the graph is to be saved into the spare file. The program then works on this file to generate the Minimum Cost Spanning Tree Graph.

@madhaven
madhaven / K-Means.md
Last active February 17, 2021 11:49
K-Means Algorithm

A matplotlib demonstration of K-means algorithm creating clusters

@madhaven
madhaven / BinaryIntroduction.md
Last active May 2, 2021 08:19
Introduction to Binary

An interactive html page to demonstrate the Binary Number System

@madhaven
madhaven / moon.py
Last active May 28, 2022 20:28
fetchMoon
from selenium.webdriver.chrome.options import Options
from selenium import webdriver
try:
#set up the browser
ops = Options()
ops.add_argument('headless')
ops.add_argument('--log-level=3') # 3 gets rid of warnings and info messages
try: browser = webdriver.Chrome('Z:\\SETUPS\\chromedriver.exe', options=ops) # my driver location
except: browser = webdriver.Chrome(input('Drag-n-Drop your webdriver.exe in here'), options=ops)

getSchedule

python - selenium script to download daily meet schedules just a script to handle the redundant process of fetching daily class schedules.

editing the path variable to your chromedriver could help you avoid the trouble of dragging and dropping your web driver

Requirements

  • Python
  • Selenium library py -m pip install selenium
  • WebDriver that matches your Browser version.
@madhaven
madhaven / hand2mouse.py
Created August 14, 2025 07:02
hand2mouse
import cv2
import pyautogui
import mediapipe as mp
# setup hands and utilities
WINDOW_NAME = 'WebCam'
mp_hands = mp.solutions.hands
lms = mp.solutions.hands.HandLandmark
mp_drawing = mp.solutions.drawing_utils
mp_drawing_styles = mp.solutions.drawing_styles