Skip to content

Instantly share code, notes, and snippets.

View pranavsuri's full-sized avatar
🌴
On Vacation

Pranav Suri pranavsuri

🌴
On Vacation
View GitHub Profile
@vipulgupta2048
vipulgupta2048 / avengers.py
Last active April 20, 2019 18:24
Get notified about tickets @ BookMyShow, whatever it takes.
# Owner - Vipul Gupta (@vipulgupta2048)
# Description - A infinite loop trapping Bookmyshow to let them know that you have come to bargain for tickets. Well, only until they block you.
# Real Description - Infinite loop requesting BMS every 3 minutes for availablity for Movie Tickets.
# Pre-requistes - sudo apt install beep
# - pip install beautifulsoup4 requests
# - sudo modprobe pcspkr
# Language - Python3
import requests
from lxml import html
@manojpandey
manojpandey / gotchas.md
Last active August 31, 2021 14:52
Attack of Pythons

Attack of Pythons

Among computer programmers, a “gotcha” has become a term for a feature of a programming language that is likely to play tricks on you to display behavior that is different than what you expect.

Just as a fly or a mosquito can “bite” you, we say that a gotcha can “bite” you. So, let's proceed to examine some of Python's gotchas !

alt text