This file contains 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
using System; | |
using InTheHand.Net.Sockets; | |
namespace ConsoleApplication1 | |
{ | |
class Program | |
{ | |
static void Main() | |
{ | |
var bluetoothClient = new BluetoothClient(); |
This file contains 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 <pebble.h> | |
#define MATH_PI 3.141592653589793238462 | |
#define NUM_DISCS 20 | |
#define DISC_DENSITY 0.25 | |
#define ACCEL_RATIO 0.05 | |
#define ACCEL_STEP_MS 50 | |
Window *window; | |
TextLayer *text_layer; | |
static AppTimer *timer; |
This file contains 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
static void Main() | |
{ | |
WriteAppTitle(); | |
if (ConnectToPebble()) return; | |
var client = LyncClient.GetClient(); | |
client.ConversationManager.ConversationAdded += ConversationManager_ConversationAdded; | |
Console.WriteLine("Press Enter to exit."); | |
Console.ReadLine(); | |
} |
This file contains 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
using System; | |
using System.Threading.Tasks; | |
using Leap; | |
namespace ElBruno.LeapV2NewFeatures | |
{ | |
public class MotionListener : Listener | |
{ | |
public event Action<bool, bool> OnLeftOrRightHand; | |
public event Action<float, float> OnPitchAndGrab; |
This file contains 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
static void _bodyFrameReader_FrameArrived(object sender, BodyFrameArrivedEventArgs e) | |
{ | |
var frame = e.FrameReference.AcquireFrame(); | |
if (null == frame) return; | |
using (frame) | |
{ | |
frame.GetAndRefreshBodyData(_bodies); | |
foreach (var body in _bodies) |
This file contains 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
using System; | |
using System.ComponentModel; | |
using System.Runtime.CompilerServices; | |
using System.Windows; | |
using System.Windows.Threading; | |
using SharpDX.XInput; | |
namespace ElBruno.GameController | |
{ | |
public partial class MainWindow : INotifyPropertyChanged |
This file contains 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 void WindowLoaded(object sender, RoutedEventArgs e) | |
{ | |
kinectSensor = KinectSensor.GetDefault(); | |
kinectSensor.Open(); | |
var audioBeamList = kinectSensor.AudioSource.AudioBeams; | |
var audioStream = audioBeamList[0].OpenInputStream(); | |
convertStream = new KinectAudioStream(audioStream); | |
Var ri = GetKinectRecognizer(); | |
recognitionSpans = new List<Span> { forwardSpan, backSpan, rightSpan, leftSpan }; |
OlderNewer