This file contains 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
#!/bin/bash | |
##################################################################################################### | |
# This script is meant to be used as a global smudge-clean filter for removing sensitive data # | |
# from your commits. # | |
# # | |
# 1. Place this script in an acceisble path, i.e. ~/scripts/git-smudge-clean-filter.sh. # | |
# # | |
# 2. Populate the 'mapArr' using what you need hidden as the key, and the replacment as the value. # | |
# DO NOT use same values for multiple keys (this will work only in one direction). # |
This file contains 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
/* To compile: | |
g++ --std=c++11 -O3 \ | |
-I /opt/flatbuffers/include \ | |
-I /opt/tensorflow \ | |
run-tflite.cpp -o run-tflite \ | |
libtensorflow-lite.a -lstdc++ -lpthread -lm -lz -ldl | |
*/ | |
#include <iostream> | |
#include <fstream> | |
#include <chrono> |
This file contains 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
#!/bin/sh | |
set -e | |
#set -x | |
CONFIGFS="/sys/kernel/config" | |
GADGET="$CONFIGFS/usb_gadget" | |
VID="0x0525" | |
PID="0xa4a2" | |
SERIAL="0123456789" |
This file contains 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
from picamera.array import PiRGBArray | |
from picamera import PiCamera | |
import time | |
import sys | |
import cv2 | |
import zbar | |
import Image | |
# Debug mode | |
DEBUG = False |