#Create bitbucket branch
##Create local branch
$ git checkout -b sync
Switched to a new branch 'sync'
$ git branch
master
* sync
| #!/bin/sh | |
| COMMAND="op read $OP_PIN_ITEM" | |
| echo "OK" | |
| while read cmd rest; do | |
| echo "cmd=$cmd rest=$rest" >&2 | |
| echo "cmd=$cmd rest=$rest" >> $LOG | |
| case "$cmd" in | |
| \#*) |
| class classmethod_: | |
| """Allows using a classmethod also as an instance method""" | |
| def __init__(self, cls_method, inst_method=None): | |
| self.cls_method = cls_method | |
| self.inst_method = inst_method | |
| def __get__(self, obj, objtype=None): | |
| if obj is not None: | |
| return lambda *args: self.inst_method(obj, *args) | |
| if objtype is None: |
| #!/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 |
#Create bitbucket branch
##Create local branch
$ git checkout -b sync
Switched to a new branch 'sync'
$ git branch
master
* sync