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
/*global self, document, DOMException */ | |
/*! @source http://purl.eligrey.com/github/classList.js/blob/master/classList.js */ | |
// Full polyfill for browsers with no classList support | |
if (!("classList" in document.createElement("_"))) { | |
(function (view) { | |
"use strict"; |
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 argparse | |
import cv2 | |
import numpy as np | |
import matplotlib.pyplot as plt | |
from scipy.signal import detrend | |
helpText = "'Esc' to Quit" | |
def parse_args(): |
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 argparse | |
import cv2 | |
import numpy as np | |
import matplotlib.pyplot as plt | |
from scipy.signal import detrend | |
helpText = "'Esc' to Quit" | |
def parse_args(): |
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
// Simple gamepad example that demonstraits how to read five Arduino | |
// digital pins and map them to the Arduino Joystick library. | |
// | |
// The digital pins 2 - 6 are grounded when they are pressed. | |
// Pin 2 = UP | |
// Pin 3 = RIGHT | |
// Pin 4 = DOWN | |
// Pin 5 = LEFT | |
// Pin 6 = FIRE | |
// Pin 7 = FIRE |
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
// Simple gamepad example that demonstraits how to read five Arduino | |
// digital pins and map them to the Arduino Joystick library. | |
// | |
// The digital pins 2 - 6 are grounded when they are pressed. | |
// Pin 2 = UP | |
// Pin 3 = RIGHT | |
// Pin 4 = DOWN | |
// Pin 5 = LEFT | |
// Pin 6 = FIRE | |
// |
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
/* | |
----------------------- pin 9 | |
| | |
| | |
\ | |
/ | |
\ 100 ohm | |
/ | |
| | |
| \ | |
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
# -------------------------------------------------------- | |
# Camera Caffe sample code for Tegra X2/X1 | |
# | |
# This program captures and displays video from IP CAM, | |
# USB webcam, or the Tegra onboard camera, and do real-time | |
# image classification (inference) with Caffe. Refer to the | |
# following blog post for how to set up and run the code: | |
# | |
# https://jkjung-avt.github.io/tx2-camera-caffe/ | |
# |
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 argparse | |
import cv2 | |
import numpy | |
helpText = "'Esc' to Quit" | |
def parse_args(): | |
parser = argparse.ArgumentParser(description="CV2 Video Capture PhotoPlethysmoGram Test") | |
parser.add_argument("--vid", dest="video_dev", |
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 argparse | |
import cv2 | |
helpText = "'Esc' to Quit" | |
def parse_args(): | |
parser = argparse.ArgumentParser(description="CV2 Video Capture Test") | |
parser.add_argument("--vid", dest="video_dev", | |
help="video device # of USB webcam (/dev/video?) [1]", |
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
private BluetoothAdapter.LeScanCallback mLeScanCallback = | |
new BluetoothAdapter.LeScanCallback() { | |
@Override public void onLeScan(final BluetoothDevice device, final int rssi, byte[] scanRecord) { | |
runOnUiThread(new Runnable() { | |
@Override public void run() { | |
runOnUiThread(new Runnable() { | |
@Override public void run() { | |
addDevice(device, rssi); |
NewerOlder