Skip to content

Instantly share code, notes, and snippets.

#include <BLEDevice.h>
#include <BLEUtils.h>
#include <BLEServer.h>
#include "BLE2902.h"
#include "BLEHIDDevice.h"
#include "HIDTypes.h"
#include "HIDKeyboardTypes.h"
// See the following for generating UUIDs:
// https://www.uuidgenerator.net/
@ylh888
ylh888 / node-speaker-example
Created July 8, 2017 12:40
node.js speaker sine wave playing example
var Speaker = require('speaker');
var Readable = require('stream').Readable;
// node v0.8.x compat
if (!Readable) Readable = require('readable-stream/readable');
// Examples :
// makeSound(440,0.5).play(8); // frequency, duration, delay
let s440 = makeSound(440, 1.0);
s440.play(); // play immediately
# import the necessary packages
from imutils.video import VideoStream
from numpy import *
import datetime
import argparse
import imutils
import time
import cv2
def improc (src):
$ time python eyescope.py
2016-03-24 18:35:08.177 python[13218:236981] -[CaptureDelegate doFireTimer:]: unrecognized selector sent to instance 0x7fbc834a68a0
2016-03-24 18:35:08.179 python[13218:236981] An uncaught exception was raised
2016-03-24 18:35:08.179 python[13218:236981] -[CaptureDelegate doFireTimer:]: unrecognized selector sent to instance 0x7fbc834a68a0
2016-03-24 18:35:08.179 python[13218:236981] (
0 CoreFoundation 0x00007fff98399ae2 __exceptionPreprocess + 178
1 libobjc.A.dylib 0x00007fff9363773c objc_exception_throw + 48
2 CoreFoundation 0x00007fff9839cb9d -[NSObject(NSObject) doesNotRecognizeSelector:] + 205
3 CoreFoundation 0x00007fff982d5601 ___forwarding___ + 1009
4 CoreFoundation 0x00007fff982d5188 _CF_forwarding_prep_0 + 120