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
# -*- coding: utf-8 -*- | |
import os | |
import glob | |
def _append_slash_if_dir(p): | |
if p and os.path.isdir(p) and p[-1] != os.sep: | |
return p + os.sep | |
else: |
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
# -*- coding: utf-8 -*- | |
class bcolors: | |
HEADER = '\033[95m' | |
OKBLUE = '\033[94m' | |
OKGREEN = '\033[92m' | |
WARNING = '\033[93m' | |
FAIL = '\033[91m' | |
ENDC = '\033[0m' |
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
# -*- coding: utf-8 -*- | |
import subprocess | |
import time | |
import os | |
import fcntl | |
import json | |
from datastruct import truncate_string | |
from colorprint import print_warning, print_emph |
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 | |
PKG=com.paijwar.drawithme # the package name of the app to be launched | |
WAITTIME=3 # seconds to wait after starting the app | |
REPEAT=2 # number of replays | |
DEVICE=xxxxxx # device serialno | |
echo 'Make sure you have ImageMagick' | |
./appetizer devices control $DEVICE launch_pkg $PKG | |
sleep $WAITTIME | |
echo '1. When recording starts, perform some complicated gestures, type exit to finish' |