Skip to content

Instantly share code, notes, and snippets.

View PlumCantaloupe's full-sized avatar

Anthony Scavarelli PlumCantaloupe

View GitHub Profile
'use strict';
//UNFINISHED
AFRAME.registerComponent('mdmu-material-override', {
schema: {
src: {type:'map', default:''},
alphaTest: {type:'number', default:0.5},
transparent: {type:'boolean', default:false},
opacity: {type:'number', default:1.0},
shader: {type:'string', default:'standard', oneOf: ['standard', 'flat']},
@PlumCantaloupe
PlumCantaloupe / SerialC.h
Last active August 29, 2015 13:56
A class I have modified/created for use in past projects when needing Windows/MacOSX communication. Used specifically with Teensy which used an extremely high-bandwidth.
/*****************
- A slightly modified version of receive_test.c from here: http://www.pjrc.com/teensy/benchmark_usb_serial_receive.html#code
- Used in Cinder projects when communicating with Serial
- Also tested on both Windows7/8 and Mac OSX platforms
TEST USAGE FOLLIOWING:
void InvestOttawa_2013App::startSerial() {
if (!mSerialOn) {