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 <Firmata.h> | |
#include <Boards.h> | |
#include <math.h> | |
#include <DHT.h> | |
#define RED 12 | |
#define GREEN 13 | |
#define SOUND_SENSOR A4 | |
#define LIGHT_SENSOR 0 |
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
/** | |
* @author richt / http://richt.me | |
* @author WestLangley / http://github.com/WestLangley | |
* | |
* W3C Device Orientation control (http://w3c.github.io/deviceorientation/spec-source-orientation.html) | |
*/ | |
THREE.DeviceOrientationControls = function ( object, controls ) { | |
var scope = this; |
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
/** | |
* @author jbouny / http://github.com/jbouny | |
*/ | |
// This control perform rotation on one object by using gyroscope data. | |
// It only works on devices and browsers providing the deviceorientation event (smartphones, tablets). | |
// It permits to control the 3D camera with a natural way, by moving the device around oneself. | |
// One application can be augmented reality. | |
THREE.MotionControls = function ( object3D ) { |
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
#clean encoding | |
iconv -f iso-8859-1 -t utf-8 -c items.json > clean.json | |
#import objets in mongo | |
mongoimport --db books --collection books --file clean.json |
NewerOlder