This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import threading | |
| import time | |
| class ThreadingExample(object): | |
| """ Threading example class | |
| The run() method will be started and it will run in the background | |
| until the application exits. | |
| """ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| # -*- coding: UTF-8 -*- | |
| import urllib2, re | |
| def ParseIEEEOui(url = "http://standards.ieee.org/develop/regauth/oui/oui.txt"): | |
| req = urllib2.Request(url) | |
| res = urllib2.urlopen(req) | |
| data = res.read() | |
| IEEOUI = [] | |
| for line in data.split('\n'): |