Skip to content

Instantly share code, notes, and snippets.

View brzez's full-sized avatar

Paweł Brzeziński brzez

View GitHub Profile
# 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
@brzez
brzez / hapi.sse.js
Created July 5, 2018 05:59
hapi 16 sse
// @flow
import {PassThrough} from 'stream';
class SSEStream extends PassThrough {
_compressor = null;
_read (size) {
super._read(size);
if (this._compressor) {
#!/bin/bash
adb shell screencap -p /sdcard/screen.png
adb pull /sdcard/screen.png
xclip -selection clipboard -t image/png -i screen.png
#!/bin/bash
while true; do
read input
echo "Write $input"
adb shell input text $input
done