Skip to content

Instantly share code, notes, and snippets.

View KeanW's full-sized avatar

Kean Walmsley KeanW

View GitHub Profile
@KeanW
KeanW / bb8-ollie-cylon-keyboard.js
Last active February 15, 2016 04:10
JavaScript code using Cylon.js to drive an Ollie and a BB-8 via the keyboard
var Cylon = require('cylon');
Cylon.robot({
connections: {
bluetooth_ollie: { adaptor: 'central', uuid: '1259a8ff5b694bf39c77d235fa8ade26', module: 'cylon-ble'},
bluetooth_bb8: { adaptor: 'central', uuid: '971cf6561dec4974ab9d266927873778', module: 'cylon-ble'},
keyboard: {adaptor: 'keyboard'}
},
@KeanW
KeanW / MainActivity.java
Last active September 30, 2015 15:38
Primary file for using the Cardboard SDK for Android with the stereoscopic A360 web samples
package com.autodesk.a360cardboard;
import com.google.vrtoolkit.cardboard.CardboardActivity;
import android.annotation.SuppressLint;
import android.content.Context;
import android.os.Build;
import android.os.Bundle;
import android.os.Vibrator;
import android.util.Log;
@KeanW
KeanW / MainActivity.java
Last active October 16, 2017 17:02
Primary file for using the Oculus Mobile SDK with the stereoscopic A360 web samples
package oculus;
import android.os.Bundle;
import android.util.Log;
import android.view.KeyEvent;
import android.view.MotionEvent;
import android.view.Window;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.webkit.WebViewClient;