- C-a == Ctrl-a
- M-a == Alt-a
:q close
:w write/saves
:wa[!] write/save all windows [force]
:wq write/save and close
#!/usr/bin/python | |
''' | |
Author: Igor Maculan - n3wtron@gmail.com | |
A Simple mjpg stream http server | |
''' | |
import cv2 | |
import Image | |
import threading | |
from BaseHTTPServer import BaseHTTPRequestHandler,HTTPServer | |
from SocketServer import ThreadingMixIn |
#lsauer.com, 2013 | |
#Note: -)for convenience the function uses the re-module, but can be rewritten to fit into a lambda expression | |
# -)choose any other, more-expressive return type such as NumPy's `nan` over None if you like | |
#demonstrative-version: | |
def parseInt(sin): | |
import re | |
return int(''.join([c for c in re.split(r'[,.]',str(sin))[0] if c.isdigit()])) if re.match(r'\d+', str(sin), re.M) and not callable(sin) else None | |
#via a simple regex: |
''' Code Inspired by http://github.com/tito 's NFC gist | |
This is a complete implementation allowing for NFC tag or p2p detection | |
Allows you to create any type of NdefRecord using functions like | |
`create_RTDURI(uri)` | |
This is the Android implementatoin of NFC Scanning using the | |
built in NFC adapter of some android phones. | |
''' | |
from kivy.app import App | |
from kivy.clock import Clock |
HTTPPort 8090 | |
HTTPBindAddress 0.0.0.0 | |
MaxHTTPConnections 200 | |
MaxClients 100 | |
MaxBandWidth 500000 | |
CustomLog - | |
<Feed camera.ffm> | |
File /tmp/camera.ffm | |
FileMaxSize 200M |