Skip to content

Instantly share code, notes, and snippets.

View balakrishnangithub's full-sized avatar
🐱

Balakrishnan balakrishnangithub

🐱
View GitHub Profile
@balakrishnangithub
balakrishnangithub / pip_upgrade_wizard.py
Created September 2, 2024 12:32
A flexible Python script for managing package updates, supporting patch/minor/major upgrades while excluding pre-releases and providing user-friendly output.
# Created with the help of Claude 3.5 Sonnet https://claude.ai/chat/a514bbd8-5535-4e92-bf4a-938541753061
# Tip: Use pipreqs to extract the relevant packages first, then create an environment using that file, and finally run the script from there.
# pip install packaging
# python pip_upgrade_wizard.py [patch|minor|major]
import subprocess
import json
import requests
from packaging import version
import sys
import argparse
@balakrishnangithub
balakrishnangithub / index.html
Created December 9, 2019 10:44
Challenge Emerion
<!DOCTYPE html>
<html>
<head>
<title>House Energy Coins</title>
</head>
<body>
<div>
<label>Input: </label>