Valet is a decentralized test automation network where developers run tests on real devices (iOS or Android), and device owners get paid for executing them. Using Nostr for discovery, Lightning for payments, and Raspberry Pi nodes for execution, it’s less expensive, more open, and more scalable than traditional test clouds. Built by Jason Huggins (Selenium, Appium, Sauce Labs), Valet is an experiment in P2P testing at scale. 🚀
This file contains hidden or 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
#include "Touch.h" | |
#if defined(_USING_HID) | |
#define CONTACT_COUNT_MAXIMUM 10 | |
#define REPORTID_TOUCH 0x04 | |
#define LSB(v) ((v >> 8) & 0xff) | |
#define MSB(v) (v & 0xff) |
This file contains hidden or 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 run script and start an interactive session (REPL): | |
# $ python -i demo.py --host=http://localhost:5000 | |
import cv2 | |
import os | |
import sys | |
import shutil | |
import time | |
import json | |
import sys |
This file contains hidden or 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
import cv2 | |
cap = cv2.VideoCapture(0) | |
# You *must* grab at least frame before focus settings take effect. | |
# Try commenting and uncommenting the following line to test it | |
grabbed, frame = cap.read() | |
cap.set(cv2.CAP_PROP_AUTOFOCUS, 0) | |
cap.set(cv2.CAP_PROP_FOCUS, 460) |
This file contains hidden or 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
import os | |
import cv2 | |
import time | |
# Set image resolution | |
# Option 1 | |
#frame_width = 4656 | |
#frame_height = 3496 |
This file contains hidden or 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
# Minimal Viable Web Server for Nim | |
# 1) Install Nim: | |
# https://nim-lang.org/install.html | |
# 2) To run, enter this in a terminal window: | |
# nim c -r webserver.nim | |
# 3) Press Control-C to quit / stop the server. |
This file contains hidden or 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
// https://github.com/qweasd1/node-uvc-control (npm uvc-control2) | |
// Example | |
// import { Control } from './arducam16.mjs' | |
// var control = new Control({width: this.config.width, height: this.config.height}) | |
// control.init() | |
import UVCControl from 'uvc-control2' | |
const defaults = { |
This file contains hidden or 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
Grbl 1.1f ['$' for help] | |
$0=3 | |
$1=255 | |
$2=0 | |
$3=0 | |
$4=0 | |
$5=1 | |
$6=0 | |
$10=1 | |
$11=0.010 |
This file contains hidden or 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
# Tapster 3 Assembly | |
# (c) 2020 Jason R. Huggins | |
# It's okay to use CoffeeScript ☕ | |
# No, really, pi is wrong | |
Math.TAU = Math.PI*2 | |
arm_offset = Math.acos(69.912/70) / Math.TAU * 360 | |
servo_height_offset = (-28.5 / 2) - 5 | |
servo_width_offset = 44.6 / 2 |
https://twitter.com/hugs/status/1291798092950441990
python3 -m venv env
source env/bin/activate
NewerOlder