Skip to content

Instantly share code, notes, and snippets.

View swrh's full-sized avatar
🏠
Working from home

Fernando Silveira swrh

🏠
Working from home
View GitHub Profile

Keybase proof

I hereby claim:

  • I am swrh on github.
  • I am swrh (https://keybase.io/swrh) on keybase.
  • I have a public key ASAee05f7OuIZK580KbXKtFRx9YJcLeB4jX8X4lRxA6uiQo

To claim this, I am signing this object:

### Keybase proof
I hereby claim:
* I am swrh on github.
* I am swrh (https://keybase.io/swrh) on keybase.
* I have a public key ASCDADDCAoL7b5KmvLxjPR-M_V9ni5SodBAdIzunPLpo9wo
To claim this, I am signing this object:
@swrh
swrh / serve_http.py
Created May 12, 2016 12:49 — forked from pankajp/serve_http.py
Simple Python HTTP Server with multi-threading and partial-content support
#! /usr/bin/env python
# Standard library imports.
from SocketServer import ThreadingMixIn
import BaseHTTPServer
import SimpleHTTPServer
import sys
import json
import os
from os.path import (join, exists, dirname, abspath, isabs, sep, walk, splitext,