- Realtimey push of async events to all clients - We track ships. Ships move. The client should be informed of each position report, as they happen. I strongly believe that this should be at the core of all our apps. This expands to a generic async event notification system. Consider WebSockets via Engine IO or push as a service via http://pusher.com
- DOM templates. This isn't just a bunch of strings dammit, it's chunks of HTML. The templates should be HTML too.
- Client side DB. Structured APIs over localStorage & indexDB are sufficiently advanced that we can sync subsets of the server data with a client side DB-like structure. User interactions manipulate the local data, and just those diffs are communicated to the server. If the client maliciously force-violates the front-end validators, then the server simply rejects the change, and sends back the relevant diff to patch their database state
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 <AFMotor.h> | |
/* | |
Graccefully spin up, run, spin down and reverse a motor | |
*/ | |
AF_DCMotor motor(2, MOTOR12_64KHZ); // create motor #2, 64KHz pwm | |
// FORWARD = 1, BACKEWARD = 2, RELEASE = 4 | |
const int UP = 1; |
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
img { | |
width:200px; | |
opacity:0; | |
position:absolute; | |
top:0; | |
z-index:1; | |
} | |
body{ | |
margin: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
#include <Servo.h> | |
Servo servo; | |
int servoPin = 9; | |
int rotationSpeed = 1250; | |
// Oi! Jamie! You may need to noodle the value of `rotationSpeed` | |
// As far as I can tell, it means: |
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
head | |
68 x 36.5 cm | |
eyes | |
12cm diameter | |
- 13cm in from left x 9.5 down from top. | |
neck 1 | |
47 x 4.7cm |
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,body,#objects { | |
width: 100%; height: 100% | |
} | |
body{ | |
background:white; | |
} |
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
/* | |
Only allow users with a verified email address on a pre-verified domain to log in. | |
We're getting people to authenticate and only authorising those that have an email we recognise. | |
Assumes a Meteor.settings like: | |
{ adminDomains: ['tableflip.io', 'meteor.com'] } | |
...and meteor-developer accounts, but other login mechanisms (email, twitter) would work too. | |
*/ |