Skip to content

Instantly share code, notes, and snippets.

View imjacobclark's full-sized avatar
:shipit:
Shipping

Jacob Clark imjacobclark

:shipit:
Shipping
View GitHub Profile
var Router = Backbone.Router.extend({
routes: {
"" : "main",
"about" : "about"
},
main: function() {
},
about: function(){
var Router = Backbone.Router.extend({
routes: {
"" : "main",
"about" : "about"
},
main: function() {
},
about: function(){
Meteor.startup(function () {
Backbone.history.start({pushState: true});
});
var Router = Backbone.Router.extend({
routes: {
"" : "main",
"about" : "about"
},
main: function() {
},
about: function(){
<template name="about">
This is the about template!
</template>
<template name="about">
This is the about template!
</template>
<template name="main">
Hello World! This is the main template!
</template>
<head>
<title></title>
</head>
<body>
{{> main}}
{{> about}}
</body>
@imjacobclark
imjacobclark / Ultrasonic_Ranging_ATtiny85.ino
Created April 26, 2013 00:01
For use with an ATtiny85, Ultrasonic Ranging Module HC-SR04 and 3 LEDs.
/*
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)
@imjacobclark
imjacobclark / Ultrasonic_Rannging.ino
Created April 24, 2013 23:21
For use with the Ultrasonic Ranging Module HC-SR04 and 3 LEDs.
/*
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