Skip to content

Instantly share code, notes, and snippets.

View persuader72's full-sized avatar

Stefano Pagnottelli persuader72

View GitHub Profile
@persuader72
persuader72 / nmeaparser.py
Last active January 20, 2016 10:49
Very simple class to parse nmea sentences
# -
# - Simple function to parase nmea ascii sentences
# -
class NmeaParser(object):
MAX_NMEA_LENGth = 256
def __init__(self):
self.decode_status = 0
self.decode_errors = 0
#!/usr/bin/python
#based on the ideas from http://synack.me/blog/implementing-http-live-streaming
# Run this script and then launch the following pipeline:
# gst-launch videotestsrc pattern=ball ! video/x-raw-rgb, framerate=15/1, width=640, height=480 ! jpegenc ! multipartmux boundary=spionisto ! tcpclientsink port=9999
from Queue import Queue
from threading import Thread
from socket import socket
from select import select
from wsgiref.simple_server import WSGIServer, make_server, WSGIRequestHandler