-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
395 lines (324 loc) · 11.3 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
<!doctype html>
<!--
Copyright 2017 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<html lang="en">
<head>
<meta charset="utf-8">
<title>IoT Prototyping with Firebase</title>
<meta name="description" content="Firebase + Johnny-Five + Raspberry Pi = IoT Prototyping fun">
<meta name="author" content="Jen Tong">
<meta name="apple-mobile-web-app-capable" content="yes"/>
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=2.0, user-scalable=no">
<link rel="stylesheet" href="css/reveal.min.css">
<link rel="stylesheet" href="css/theme/default.css" id="theme">
<!-- For syntax highlighting -->
<link rel="stylesheet" href="lib/css/zenburn.css">
<!-- If the query includes 'print-pdf', include the PDF print sheet -->
<script>
if (window.location.search.match(/print-pdf/gi)) {
var link = document.createElement('link');
link.rel = 'stylesheet';
link.type = 'text/css';
link.href = 'css/print/pdf.css';
document.getElementsByTagName('head')[0].appendChild(link);
}
</script>
<script
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyA6U2ExB8yLDc7RiGPYK3C3yIzDPpyFJE0&sensor=false"></script>
<script src="https://cdn.firebase.com/libs/geofire/3.0.2/geofire.min.js"></script>
<script src="https://cdn.firebase.com/js/client/2.1.1/firebase.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<!--[if lt IE 9]>
<script src="lib/js/html5shiv.js"></script>
<![endif]-->
<script>
var currentSlide = 0;
</script>
<style>
.openlayers-map img {
margin: 0;
}
#map-canvas img {
max-width: none;
max-height: none;
box-shadow: none;
}
.slides section {
font-size: 125%;
}
.slides section img {
background: none;
box-shadow: none;
border: none;
}
.reveal pre code {
font-size: 120%;
}
ul.multicol li {
display: inline-block;
width: 400px;
height: 400px;
}
ul.multicol li li {
display: block;
width: auto;
height: auto;
}
.reveal section img {
max-height: 65%;
}
</style>
</head>
<body>
<div class="reveal">
<!-- Any section element inside of this container is displayed as a slide -->
<div class="slides">
<section>
<img src="img/logo_firebase_with_text.png" style="border:none; box-shadow: none; background: none;">
<br/> <br/>
<h3>Makes IoT Prototyping Fun</h3>
</section>
<section>
<div>
<img src="img/jen-headshot.jpg" style="float: left; border-radius: 150px; margin-right: 40px; width: 300px;">
<div style="float: left; width: 400px; text-align: left;">
<h3>Jen Tong</h3>
Google Cloud Platform
Developer Advocate
<br/>
<br/>
<a href="https://twitter.com/MimmingCodes">@MimmingCodes</a><br/>
<a href="https://mimming.com">mimming.com</a><br/>
</div>
</div>
</section>
<section>
<h2>How many of you...</h2>
<ul>
<li class="fragment">Are EEs?</li>
<li class="fragment">Know JavaScript better than C?</li>
<li class="fragment">Own a dusty Arduino or Raspberry Pi?</li>
</ul>
</section>
<section data-markdown>
<script type="text/template">
## The Plan
- EE for Web Devs
- Recipe for IoT
- Live build & code
- Silly demos
</script>
</section>
<section data-markdown>
<script type="text/template">
# Signals
</script>
</section>
<section>
<h2>Bits & Volts</h2>
<div>
<h3>0 Bit</h3>
<img style="height: 200px" src="img/digital-low-transparent.png">
</div>
<div class="fragment">
<h3>1 Bit</h3>
<img style="height: 200px" src="img/digitial-high-transparent.png">
</div>
</section>
<section>
<div>
<h3>Analog</h3>
<img style="height: 200px" src="img/analog-transparent.png">
</div>
<div class="fragment">
<h3>PWM</h3>
<img style="height: 200px" src="img/pwm-transparent.png">
</div>
</section>
<section>
<h1>Components</h1>
Kind of like Legos... But, sometimes they dance, sometimes they catch fire
</section>
<section>
<h2>The Recipe</h2>
<br/>
<div style="display: inline-block; padding: 0 15px; font-size: 25px;" class="fragment"><img style="max-height: 175px;" src="img/recipe-comp.png"><br/>Components</div>
<div style="display: inline-block; padding: 0 15px; font-size: 25px;" class="fragment"><img style="max-height: 175px;" src="img/recipe-arduino.png"><br/>Arduino Uno</div>
<div style="display: inline-block; padding: 0 15px; font-size: 25px;" class="fragment"><img style="max-height: 175px;" src="img/recipe-raspi.png"><br/>Raspberry Pi</div>
<div style="display: inline-block; padding: 0 15px; font-size: 25px;" class="fragment"><img style="max-height: 175px;" src="img/sgier-johnny-five.png"><br/>Johnny-Five</div>
<div style="display: inline-block; padding: 0 15px; font-size: 25px;" class="fragment"><img style="max-height: 175px;" src="img/logo_firebase.png"><br/>Firebase</div>
<br/><br/>
<small>Diagrams made in Fritzing</small>
</section>
<section>
<h2>Johnny-Five</h2>
<a href="https://github.com/rwaldron/johnny-five/" target="_blank"><img src="img/johnny-five.png"></a>
</section>
<section>
<h3>Firebase</h3>
<div>Goodies to make app dev easier</div>
<br/>
<div class="fragment">
<div style="float: left; margin: 0 20px;">
<img src="img/database.png" style="height: 150px;"/><br/><b>Realtime Data</b>
</div>
<div style="float: left; margin: 0 20px;">
<img src="img/firebase-auth.png" style="height: 150px;"/><br/><b>Authentication</b>
</div>
<div style="float: left; margin: 0 20px;">
<img src="img/hosting.png" style="height: 150px;"/><br/><b>Hosting</b>
</div>
<div style="clear: both;"></div>
</div>
</section>
<section>
<h3>Firebase Realtime Database</h3>
<br/>
<img src="img/database.png" style="height: 300px;"/>
</section>
<section>
<h3>Realtime is where your bus is</h3>
<a href="https://wherebus.firebaseapp.com">https://wherebus.firebaseapp.com</a>
<br/>
<br/>
<iframe src="https://wherebus.firebaseapp.com/" style="width: 100%; max-height: 100%; height: 600px"></iframe>
</section>
<section>
<h3>Realtime is collaborative drawing</h3>
<a href="https://firesketch.firebaseapp.com">https://firesketch.firebaseapp.com</a>
<iframe scrolling="no" src="https://firesketch.firebaseapp.com/#default"
style="background-color: #fff; overflow: hidden; width: 1200px; height: 700px; -webkit-transform: scale(0.75);
"></iframe>
</section>
<section>
<h2>Some JavaScript code</h2>
<br/>
<div class="fragment">
<h4>Connect</h4>
<pre style="margin-bottom:-50px;"><code data-trim>
var firebase = require("firebase");
firebase.initializeApp({
apiKey: "AIcorrectHorseBatteryStapler2141",
projectId: "espbutton", ...
});
var ref = firebase.database().ref();
</code></pre>
</div>
<br/>
<br/>
<div class="fragment">
<h4>Write Data</h4>
<pre style="margin-bottom:-50px;"><code data-trim>
ref.set("Hello, Developers!");
</code></pre>
</div>
<br/>
<br/>
<div class="fragment">
<h4>Read Data</h4>
<pre><code data-trim>
ref.on("value", function (snapshot) {
console.log(snapshot.val());
});
</code></pre>
</div>
</section>
<section>
<h2>Time to build something</h2>
<br/><br/>
<div class="fragment">The "Hello, World" of electronics: an LED Button</div>
</section>
<section id="rick-roll-slide">
<h2>Silly Demos</h2>
<div style="margin: 0 auto; width: 454px; height: 349px;" id='rickroll'></div>
<script>
var ref = new Firebase("https://espbutton.firebaseio.com/button");
ref.on("value", function (snapshot) {
var buttonValue = snapshot.val();
if (buttonValue == "down" && $("#rick-roll-slide").hasClass('present')) {
$('#rickroll').html('<img src="./img/rickroll.gif">');
}
});
</script>
</section>
<section>
<h3>Another Silly Demo</h3>
<a href="https://firesketch.firebaseapp.com">https://firesketch.firebaseapp.com</a>
<iframe scrolling="no" src="https://firesketch.firebaseapp.com/#default"
style="background-color: #fff; overflow: hidden; width: 1200px; height: 700px; -webkit-transform: scale(0.75);
"></iframe>
</section>
<section>
<h2>Parting Words</h2>
<ul>
<li class="fragment">Isn't that easy?</li>
<li class="fragment">Let projects guide your hacking</li>
<li class="fragment">Experiment!</li>
<li class="fragment">Celebrate the first thing you burn up</li>
</ul>
</section>
<section>
<h2>Now go build cool stuff</h2>
<ul style="list-style: none">
<li>Slides: <a href="https://mimming.com/presos/internet-of-nodebots">mimming.com/presos/internet-of-nodebots</a></li>
<li>Code: <a href="https://github.com/mimming/internet-of-nodebots/tree/master/code">github.com/mimming/internet-of-nodebots</a></li>
<li>Video: <a href="https://youtu.be/_RjfoNnxKGA">youtu.be/_RjfoNnxKGA</a><br><br></li>
<li>Me: <a href="https://twitter.com/MimmingCodes">@MimmingCodes</a></li>
</ul>
</section>
</div>
</div>
<script src="lib/js/head.min.js"></script>
<script src="js/reveal.min.js"></script>
<script>
// Full list of configuration options available here:
// https://github.com/hakimel/reveal.js#configuration
Reveal.initialize({
controls: true,
progress: true,
history: true,
center: true,
theme: "night", // available themes are in /css/theme
transition: Reveal.getQueryHash().transition || 'concave', // default/cube/page/concave/zoom/linear/fade/none
// Parallax scrolling
// parallaxBackgroundImage: 'https://s3.amazonaws.com/hakim-static/reveal-js/reveal-parallax-1.jpg',
// parallaxBackgroundSize: '2100px 900px',
// Optional libraries used to extend on reveal.js
dependencies: [
{ src: 'lib/js/classList.js', condition: function () {
return !document.body.classList;
} },
{ src: 'plugin/markdown/marked.js', condition: function () {
return !!document.querySelector('[data-markdown]');
} },
{ src: 'plugin/markdown/markdown.js', condition: function () {
return !!document.querySelector('[data-markdown]');
} },
{ src: 'plugin/highlight/highlight.js', async: true, callback: function () {
hljs.initHighlightingOnLoad();
} },
{ src: 'plugin/zoom-js/zoom.js', async: true, condition: function () {
return !!document.body.classList;
} },
{ src: 'plugin/notes/notes.js', async: true, condition: function () {
return !!document.body.classList;
} }
]
});
Reveal.addEventListener('slidechanged', function (event) {
currentSlide = event.indexh;
});
</script>
</body>
</html>