Skip to content

Instantly share code, notes, and snippets.

tkgwy

Block or report user

Report or block tkgwy

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@tkgwy
tkgwy / serve-python2.py
Last active Apr 26, 2019
SimpleHTTPServer for SPA
View serve-python2.py
import os
import sys
import urlparse
import SimpleHTTPServer
import BaseHTTPServer
class Handler(SimpleHTTPServer.SimpleHTTPRequestHandler):
def do_GET(self):
url = urlparse.urlparse(self.path)
You can’t perform that action at this time.