Skip to content

Instantly share code, notes, and snippets.

View vinay-nandipur's full-sized avatar

Vinay vinay-nandipur

View GitHub Profile
@vinay-nandipur
vinay-nandipur / cheatsheet.py
Created December 10, 2019 06:54 — forked from fuyufjh/cheatsheet.py
My Python Cheatsheet
Python Cheatsheet
=================
################################ Input & Output ###############################
name = input('please enter your name: ')
print('hello,', name)
ageStr = input('please enter your age: ')
age = int(ageStr)
@vinay-nandipur
vinay-nandipur / web-servers.md
Created December 10, 2019 06:50 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000