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 | |
while true; do | |
read input | |
echo "Write $input" | |
adb shell input text $input | |
done |
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 | |
adb shell screencap -p /sdcard/screen.png | |
adb pull /sdcard/screen.png | |
xclip -selection clipboard -t image/png -i screen.png |
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
// @flow | |
import {PassThrough} from 'stream'; | |
class SSEStream extends PassThrough { | |
_compressor = null; | |
_read (size) { | |
super._read(size); | |
if (this._compressor) { |
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
# untested port from https://reprap.org/forum/read.php?185,618696 | |
SERVOFAKTORLEFT = 650 | |
SERVOFAKTORRIGHT = 650 | |
SERVOLEFTNULL = 2250 | |
SERVORIGHTNULL = 920 | |
L1=35 #both lower arms | |
L2=55.1 #left upper arm to pen |