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
<div class=”vr-container”> <!-- container div --> | |
<a-scene class=”vr-background”> <!-- the a-frame embed code --> | |
<a-entity rotation="0 0 0"> <!-- rotation value sets the starting view point, play around! --> | |
<a-animation attribute="rotation" | |
dur="600000" | |
easing="linear" | |
fill="forwards" | |
to="0 360 0" | |
repeat="indefinite"></a-animation> <!-- remove if you don’t like the automatic movement --> | |
<a-sky src="your-image-link"></a-sky> |
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
<html> | |
<head> | |
<script src="clmtrackr.js"></script> | |
<script src="model_pca_20_svm.js"></script> | |
<script src="p5.js"></script> | |
<script src="p5.dom.js"></script> | |
<script> | |
var ctracker; |
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
for(int i=0; i<valLen; i++) { | |
valResult += (val[(valLen-1)-i] - '0')*pow(10, i); | |
if(DEBUG) Serial << i << ": " << val[(valLen-1)-i] << " " << (val[(valLen-1)-i] - '0') << " " << pow(10, i) << "=" << (val[(valLen-1)-i] - '0')*pow(10, i) << endl; | |
} | |
/* | |
if(valLen > 3) { | |
valResult += (val[0] - '0')*1000; | |
valResult += (val[1] - '0')*100; | |
valResult += (val[2] - '0')*10; |
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
// Arduino DatatypeSize v2 - Display information about data types used in Arduino | |
// Created by Michael 'TeX' Hex - http://www.texhex.info/ | |
// | |
// Full list of all data types: | |
// http://arduino.cc/en/Reference/HomePage -> Section "Data Types" | |
// | |
// Additonal references: | |
// http://www.arduino.cc/playground/Code/DatatypePractices | |
// http://arduino.cc/en/Reference/VariableDeclaration | |
// |
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
int port = 0; | |
for (int i=0; i<Serial.list().length; i++) { | |
println(Serial.list()[i]); | |
if (Serial.list()[i].equals("/dev/tty.usbserial-A900F5IY")) { | |
println("ding!"); | |
port = i; | |
} | |
} |
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 <Wire.h> | |
#include <Servo.h> | |
#include <Max3421e.h> | |
#include <Usb.h> | |
#include <AndroidAccessory.h> | |
#include <CapSense.h> | |
#define LED3_RED 2 |