Skip to content

Instantly share code, notes, and snippets.

View mauronr's full-sized avatar
💭
Let's have fun!

Mauro Rezende mauronr

💭
Let's have fun!
View GitHub Profile
@chrisbolin
chrisbolin / serve.py
Last active March 22, 2023 13:53
Python SimpleHTTPServer for Static Serving (React / Angular / Ember) in HTML5 mode (a la mod_rewrite)
'''
Taken from:
http://stackoverflow.com/users/1074592/fakerainbrigand
http://stackoverflow.com/questions/15401815/python-simplehttpserver
'''
import SimpleHTTPServer, SocketServer
import urlparse, os
PORT = 3000