I hereby claim:
- I am steveatinfincia on github.
- I am infincia (https://keybase.io/infincia) on keybase.
- I have a public key whose fingerprint is 5D77 D9A4 2E28 0F5A FF8F 2EBF B67C 19E8 17A8 D846
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
-----BEGIN PGP SIGNED MESSAGE----- | |
Hash: SHA512 | |
I am transitioning my gpg key from a 2048-bit RSA key to a new | |
4096-bit RSA key. | |
The new key is signed by the old key, and this transition document | |
is signed with both keys. | |
func search(words: [String]?) -> [Codepoint] { | |
guard let searchTerms = words else { | |
print("failed to unpack words") | |
return [] | |
} | |
var predicates : [NSPredicate] = [NSPredicate]() | |
for term in searchTerms { | |
let codePredicate = NSPredicate(format: "(%@ IN[cd] code)", term) | |
let typePredicate = NSPredicate(format: "(%@ IN[cd] type)", term) |
// error: | |
error[E0277]: the trait bound `mymodule::MyHeader: mymodule::reqwest::header::Header` is not satisfied | |
// in crate root | |
#[macro_use] extern crate hyper; | |
// original code in mymodule using header! macro from Hyper | |
extern crate reqwest; |
install_name_tool -id "@rpath/libmy.dylib" dist-x86_64-apple-darwin/lib/libmy.dylib || true | |
clang -o test src/test.c -rpath dist-x86_64-apple-darwin/lib -Ldist-x86_64-apple-darwin/lib -Idist-x86_64-apple-darwin/include -lmy -O2 | |
/* Complete USB Joystick Example | |
You must select Joystick from the "Tools > USB Type" menu and edit the Teensy headers to enable | |
the mega-joystick mode, otherwise some of the axis will not be available | |
*/ | |
void setup() { | |
// you can print to the serial monitor while the joystick is active! | |
Serial.begin(115200); | |
// configure the joystick to manual send mode. This gives precise | |
// control over when the computer receives updates, but it does |
/* Complete USB Joystick Example | |
You must select Joystick from the "Tools > USB Type" menu and edit the Teensy headers to enable | |
the maxy axis joystick mode, otherwise some of the axis will not be available | |
*/ | |
void setup() { | |
// you can print to the serial monitor while the joystick is active! | |
Serial.begin(115200); | |
// configure the joystick to manual send mode. This gives precise | |
// control over when the computer receives updates, but it does |
/* | |
* Author: Jurgen "PlantCorn" Schull <j.schull@plantcorn.com> | |
* I originally created this for a mode 2 controller (Turnigy 9xr Pro) as most of the other | |
* solutions available to me simply did not work or were too much of a pain. | |
* things such as smartpropro plus did not work at all for me, and out of frustration I | |
* created this. I calibrated the controller, and within minutes i was able to use my | |
* favorite sims, I hope this also works for you. | |
* Be sure to upload to your teensy in serial+keyboard+mouse+joych mode, 72mhz optimized | |
* i used a Teensy 3.1 with ppm input on pin 10 and ppm ground to GND | |
*/ |
import picamera | |
import subprocess | |
from time import sleep | |
proc = subprocess.Popen([ | |
'/usr/bin/gst-launch-1.0', | |
'fdsrc', '!', | |
'h264parse', '!', | |
'rtph264pay', 'config-interval=1', 'pt=96', '!', | |
'udpsink', 'host=192.168.40.14', 'port=5600' |
QT_MAJOR_VERSION=5.13 | |
QT_MINOR_VERSION=1 | |
# fix broadcom opengl library names without breaking anything else | |
ln -sf /opt/vc/lib/libbrcmEGL.so /opt/vc/lib/libEGL.so | |
ln -sf /opt/vc/lib/libEGL.so /opt/vc/lib/libEGL.so.1 | |
ln -sf /opt/vc/lib/libbrcmGLESv2.so /opt/vc/lib/libGLESv2.so | |
ln -sf /opt/vc/lib/libbrcmGLESv2.so /opt/vc/lib/libGLESv2.so.2 | |
ln -sf /opt/vc/lib/libbrcmOpenVG.so /opt/vc/lib/libOpenVG.so | |
ln -sf /opt/vc/lib/libbrcmWFC.so /opt/vc/lib/libWFC.so |