This file contains hidden or 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
| var Router = Backbone.Router.extend({ | |
| routes: { | |
| "" : "main", | |
| "about" : "about" | |
| }, | |
| main: function() { | |
| }, | |
| about: function(){ |
This file contains hidden or 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
| var Router = Backbone.Router.extend({ | |
| routes: { | |
| "" : "main", | |
| "about" : "about" | |
| }, | |
| main: function() { | |
| }, | |
| about: function(){ |
This file contains hidden or 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
| Meteor.startup(function () { | |
| Backbone.history.start({pushState: true}); | |
| }); |
This file contains hidden or 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
| var Router = Backbone.Router.extend({ | |
| routes: { | |
| "" : "main", | |
| "about" : "about" | |
| }, | |
| main: function() { | |
| }, | |
| about: function(){ |
This file contains hidden or 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
| <template name="about"> | |
| This is the about template! | |
| </template> |
This file contains hidden or 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
| <template name="about"> | |
| This is the about template! | |
| </template> |
This file contains hidden or 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
| <template name="main"> | |
| Hello World! This is the main template! | |
| </template> |
This file contains hidden or 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
| <head> | |
| <title></title> | |
| </head> | |
| <body> | |
| {{> main}} | |
| {{> about}} | |
| </body> |
This file contains hidden or 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 use with a 4 Pin Ultrasonic Ranging Sensor, see: http://www.micropik.com/PDF/HCSR04.pdf | |
| & an ATtiny85 Microprocessor | |
| Power can be supplied to the ATtiny85 via the Arduino | |
| VCC // 5v (+) | |
| GND // GND (-) | |
| TRIG // Analog Input 3 (Pin 3) | |
| ECHO // Analog Input 2 (Pin 4) |
This file contains hidden or 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 use with a 4 Pin Ultrasonic Ranging Sensor, see: http://www.micropik.com/PDF/HCSR04.pdf | |
| Read about this project: http://fusionstrike.com/arduino-ultrasonic-ranging-project/ | |
| I have used Analog Pins over Digital Pins for a possible port to an ATtiny85 | |
| VCC // 5v | |
| GND // GND | |
| TRIG // Analog Pin 5 |