Skip to content

Instantly share code, notes, and snippets.

View udit-001's full-sized avatar
🏠
Working from home

Udit udit-001

🏠
Working from home
View GitHub Profile
import psutil
from pprint import pprint
for proc in psutil.process_iter():
pprint(proc.as_dict())
@udit-001
udit-001 / in_choices.py
Last active May 7, 2025 01:08
------------------------------------------ Indian States List in tuple form with their short codes (Choices for Django Select Widget) ---------------------------------------- ------------------------------------------ Django Choices Tuple for Indian States and Union Territories with Abbreviations ----------------------------------------------------
STATE_CHOICES = (
("AN","Andaman and Nicobar Islands"),
("AP","Andhra Pradesh"),
("AR","Arunachal Pradesh"),
("AS","Assam"),
("BR","Bihar"),
("CG","Chhattisgarh"),
("CH","Chandigarh"),
("DN","Dadra and Nagar Haveli"),
("DD","Daman and Diu"),
@udit-001
udit-001 / us_choices.py
Last active August 7, 2019 02:13
US States in tuple form (Choices for Django Select Widget)
STATE_CHOICES = (
("AL","Alabama"),
("AK","Alaska"),
("AS","American Samoa"),
("AZ","Arizona"),
("AR","Arkansas"),
("CA","California"),
("CO","Colorado"),
("CT","Connecticut"),
("DE","Delaware"),