forked from cherimarie/gdi-ruby
-
Notifications
You must be signed in to change notification settings - Fork 5
/
class1.html
610 lines (550 loc) · 27.2 KB
/
class1.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
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Intro to Ruby : Class 1 ~ Girl Develop It</title>
<meta name="description" content="This is the official Girl Develop It Core Intro to Ruby course. The course is meant to be taught in four two-hour sessions. Each of the slides and practice files are customizable according to the needs of a given class or audience.">
<meta name="author" content="Girl Develop It">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<link rel="stylesheet" href="css/reveal.min.css">
<link rel="stylesheet" href="css/theme/gdiaa.css" id="theme">
<link rel="stylesheet" href="lib/css/light.css">
<link rel="stylesheet" href="css/print/pdf.css" media="print">
<script src="lib/js/head.min.js"></script>
<!--[if lt IE 9]>
<script src="lib/js/html5shiv.js"></script>
<![endif]-->
</head>
<body>
<div class="reveal">
<div class="slides">
<section>
<!-- Welcome & Intros - 20 min -->
<section>
<img src="images/gdi_logo_badge.png" class="img--bare" height="450px" />
<div class="box--small">
<h3><span class="green">Intro to Ruby</span></h3>
<h4><span class="blue">Class 1</span></h4>
</div>
</section>
<section>
<h3>About Me</h3>
<div class="left" style="margin-right: 40px"><img src="images/about_me_andrew.png" class="img--bare" height="400px" /></div>
<ul class="fa-ul list--bare list--tall box--small">
<li><i class="fa-li fa fa-user"></i><a href="http://andrewsardone.com">Andrew Sardone</a></li>
<li><i class="fa-li fa fa-mobile"></i><a href="https://nutshell.com">Nutshell.com</a></li>
<li><i class="fa-li fa fa-twitter"></i><a href="https://twitter.com/andrewa2">@andrewa2</a></li>
<li><i class="fa-li fa fa-github"></i><a href="https://github.com/andrewsardone">github.com/andrewsardone</a></li>
<li><i class="fa-li fa fa-envelope-o"></i><a href="mailto:andrew@andrewsardone.com">andrew@andrewsardone.com</a></li>
</u>
</section>
<section>
<h3>About the TAs</h3>
<!-- <div class="left" style="width: 48%">
<div class="box--small left-align copy--small clear">
<img src="images/sara.jpg" alt="Sara Gibbons" class="left" width="150"/>
<div><strong>Sara Gibbons</strong></div>
<div class="copy--xsmall">
<div><i>@saragibby</i></div>
<div>Ruby/Rails/JavaScript Dev</div>
</div>
</div><br/>
<div class="box--small left-align copy--small clear">
<img src="images/david.jpg" alt="Dave Chmura" class="left" width="150"/>
<div><strong>Dave Chmura</strong></div>
<div class="copy--xsmall">
<div><i>@humbledaisy</i></div>
<div>Ruby on Rails Dev @ UM</div>
</div>
</div>
</div>
<div class="right" style="width: 48%">
<div class="box--small left-align copy--small clear">
<img src="images/patrick.jpg" alt="Patrick McSweeny" class="left" width="150"/>
<div><strong>Patrick McSweeny</strong></div>
<div class="copy--xsmall">
<div><i>@PatrickMcSweeny</i></div>
<div style="line-height: 1.25">A2 Ruby Brigade Organizer<br/>Ruby On Rails Dev @ Alfa Jango</div>
</div>
</div><br/>
<div class="box--small left-align copy--small clear">
<img src="images/julie.jpg" alt="Julie Cameron" class="left" width="150"/>
<div><strong>Julie Cameron</strong></div>
<div class="copy--xsmall">
<div><i>jewl@girldevelopit.com</i></div>
<div style="line-height: 1.25">Sass/CSS/JS/Rails Dev @ Articulate</div>
</div>
</div>
<br/>
</div>
<div class="box left-align copy--small clear" style="width: 48%; margin: 0 auto;">
<img src="images/ronda.jpg" alt="Ronda Bergman" class="left" width="150"/>
<div><strong>Ronda Bergman</strong></div>
<div class="copy--xsmall">
<div><i>ronda@girldevelopit.com</i></div>
<div style="line-height: 1.25">C# Dev & Ruby Student @ Terumo</div>
</div>
</div> -->
</section>
<section>
<h3>Meet The Team!</h3>
<ul class="box--small center-align list--xtall list--bare">
<li>Who are you?</li>
<li>What do you hope to get out of this class?</li>
<li>For fun: what's your favorite book?</li>
</ul>
</section>
<!-- Homework Review - 10 min -->
<section>
<h3>Homework Discussion</h3>
<div class="left-align">
<p class="box">How was the homework? Do you have any questions or concepts that you'd like to discuss?</p>
<h6 class="grey">The Homework was:</h6>
<p class="box--small copy--xsmall"><strong>Practice:</strong> spend at least 20 minutes practicing navigating and creating/removing documents and directories with the command line.</p>
<p class="box--small copy--xsmall"><strong>Prep:</strong> Work through Code Academy's <a target="_blank" href="http://www.codecademy.com/courses/ruby-beginner-en-d1Ylq/0/1?curriculum_id=5059f8619189a5000201fbcb" alt="Code Academy">"Intro to Ruby"</a>. If you don't have previous programming experience, read Chapters 1 and 2 in <a target="_blank" href="https://pine.fm/LearnToProgram/?Chapter=01" alt="Learn to Program">Learn to Program</a> - don't try to do the exercises at the end, though. </p>
</div>
</section>
<!-- Setting the Stage - 10 min -->
<section>
<h3>What we will cover today</h3>
<ul class="list--xtall box--small">
<li class="fragment">What is programming?</li>
<li class="fragment">Why Ruby?</li>
<li class="fragment">Variables, Arithmetic & Objects</li>
<li class="fragment">Methods and Error Messages</li>
</ul>
</section>
</section>
<!-- What Is Programming -->
<section>
<h3>What is programming?</h3>
<ul class="list--tall box--small copy--small">
<li class="fragment">Teaching the computer to do a task.</li>
<li class="fragment">A program is made of one or more files of code, each of which solve part of the overall task.
</li>
<li class="fragment">Programming code is human readable but also needs a form that the computer can run directly.
This form is not human readable.
</li>
<li class="fragment">To create the form of code the computer can use, we use the Ruby <a
href="http://en.wikipedia.org/wiki/Interpreter_(computing)">interpreter</a>. Other languages use other
interpreters or a <a href="http://en.wikipedia.org/wiki/Compiler">compiler</a>
</li>
<li class="fragment">Don't focus on what's "under the hood" for now. We will "drive the car" first.</li>
<!--<li class="fragment">In other words, there are many layers to the onion. We start at one layer and slowly move-->
<!--toward layers that are beneath or above us.-->
<!--</li>-->
</ul>
</section>
<!-- Why Ruby -->
<section>
<section>
<h3>Why Ruby?</h3>
<ul class="list--tall box--small copy--small">
<li class="fragment">It reads like English. The syntax is intuitive.
<pre style="height: 150px; overflow:hidden;"><code contenteditable class="ruby">
# Java
for(int i = 0; i < 5; i++)
# Ruby
5.times do
</code></pre>
</li>
<li class="fragment">The community is large, active and interested in helping others learn.</li>
<li class="fragment">You can get a web app off the ground quickly.</li>
<!--<li class="fragment">You can make a lucrative career out of it.</li>-->
<!--<li class="fragment">Using Ruby will cost you $0.</li>-->
</ul>
</section>
<section>
<h3>What is Ruby used for?</h3>
<ul class="list--tall box--small">
<li class="fragment">Web development (<a href="http://rubyonrails.org/">Rails</a>)</li>
<li class="fragment">iPhone & Android apps (<a href="http://www.rubymotion.com/">RubyMotion</a>)</li>
<li class="fragment">System Administration (<a href="https://www.chef.io/chef/">Chef</a>)</li>
<li class="fragment">Testing (<a href="https://www.vagrantup.com/">Vagrant</a>)</li>
<li class="fragment">Security (<a href="http://www.metasploit.com/">Metasploit</a>)</li>
</ul>
</section>
<section>
<h3>Who is using Ruby?</h3>
<ul class="list--tall box--small">
<li><a href="http://www.hulu.com/">Hulu</a></li>
<li><a href="https://www.livingsocial.com/">LivingSocial</a></li>
<li><a href="http://www.groupon.com/">Groupon</a></li>
<li><a href="https://basecamp.com/">Basecamp</a></li>
<li><a href="https://github.com/">Github</a></li>
<li>#2 in 2014 on <a href="http://adambard.com/blog/top-github-languages-for-2013-so-far/">github</a></li>
<li>More <a href="https://www.ruby-lang.org/en/documentation/success-stories/">Success Stories</a></li>
</ul>
</section>
<!-- Basic IRB - 10 min -->
<section>
<h3>Working with IRB</h3>
<ul class="list--tall box--small copy--small">
<li class="fragment">IRB is a <span class="green">command line interface</span> to Ruby that is installed along with Ruby. It works kind of like a calculator and is a great way to get started quickly.</li>
<li class="fragment"><strong>Open:</strong> In the terminal, type <code>irb</code></li>
<li class="fragment"><strong>Quit:</strong> Type <code>quit</code> and then press <code>enter</code></li>
<li class="fragment">Follow along with the examples in the slides ahead. Type them in!</li>
<li class="fragment">Feel free to explore as well. You will not accidentally break things.</li>
</ul>
</section>
<!-- Arithmetic -->
<section>
<h3>Arithmetic</h3>
<p class="box">Try out some calculator functions</p>
<pre><code contenteditable class="ruby">
3 + 4
2 * 4
6 - 2
4 / 2
4 /* 2
=> SyntaxError: (irb):10:syntax error, unexpected *
</code></pre>
</section>
<section>
<h3>Errors are Neat!</h3>
<ul class="list--tall box--small copy--small">
<li class="fragment">There are different kinds of errors that can occur. We just saw the <strong>SyntaxError</strong> which often
helps us find misspelled words or missing quotes.
</li>
<li class="fragment box">Take time to read each Error. They often tell you how to fix the issue and can be a great
starting point when searching for help online.
</li>
</ul>
<pre class="fragment"><code contenteditable class="ruby">
irb> hi
NameError: undefined local variable or method `hi' for main:Object
</code></pre>
</section>
</section>
<!-- Variables - 10 min -->
<section>
<section>
<h3>Variables</h3>
<ul class="list--tall box--small copy--small">
<li class="fragment">Variables are references to information.</li>
<li class="fragment">We reference variables by name.</li>
<li class="fragment">They are called variables because the<br/>information they reference may change.</li>
</ul>
<pre class="fragment"><code contenteditable class="ruby">
# Everything after this pound sign will not be evaluated.
# These are called comments and I will use them to annotate code
age = 50
days_in_year = 365
days_alive = age * days_in_year
=> 18250
</code></pre>
</section>
<section>
<h3>Ruby's Variables</h3>
<ul class="list--tall box--small copy--small">
<li class="fragment">Ruby has three kinds of variables, one kind of constant and exactly two pseudo-variables.</li>
<li class="fragment">A local variable starts with a lower case letter or an underscore character (_) and consists entirely of letters, numbers and underscores.</li>
</ul>
<pre class="fragment"><code contenteditable class="ruby">
age = 50
_age = 50
_my_age = 50
</code></pre>
</section>
<section>
<h3>What can I do with a Variable?</h3>
<ul class="list--tall box--small copy--small">
<li class="fragment">Create - Initialize</li>
<li class="fragment">Access - Read</li>
<li class="fragment">Assign - Replace</li>
</ul>
<pre class="fragment"><code contenteditable class="ruby ">
# create and assign in one line
age = 0
# access the value in age
age
# replace value in age
age = 40
</code></pre>
</section>
<section>
<h3>Variable naming</h3>
<ul class="list--tall box--small copy--small">
<li class="fragment">Express what is stored inside</li>
<li class="fragment">Make it easy to read</li>
<li class="fragment">Should be understood by someone who has no idea what your program does</li>
<li class="fragment">Should be unique</li>
</ul>
<pre class="fragment"><code contenteditable class="ruby ">
# good
occupation = "software engineer"
# bad
occupation_i_always_dreamed_of_having_in_seattle = "software engineer"
o = "software engineer"
1st_occupation = "software engineer"
</code></pre>
</section>
<section>
<h3>Local Variable Values</h3>
<ul class="list--tall box--small copy--small">
<li class="fragment">No default value</li>
<li class="fragment">No type declaration</li>
<li class="fragment">Do not live forever</li>
</ul>
<pre class="fragment"><code contenteditable class="ruby">
# error
name
name = "Heather"
defined?(name)
</code></pre>
</section>
</section>
<!-- Data Types - 10 min -->
<section>
<section>
<h2>Data Types</h2>
<p class="fragment">Numbers | Strings | Symbols | Booleans<br/>Regular Expressions | Arrays | Ranges | Hashes</p>
<ul class="list--tall box--small copy--small">
<li class="fragment">Data always has a "type"</li>
<li class="fragment">You will hear the words Class/Type/Object used interchangeably</li>
<li class="fragment">Let's explore a few built in Objects</li>
</ul>
<pre class="fragment"><code contenteditable class="ruby">
irb> 1.class
=> Fixnum
irb> "Hello".class
=> String
irb> 1.0022.class
=> Float
irb> [1,2,3].class
=> Array
</code></pre>
</section>
<section>
<h3>Strings</h3>
<p class="box--small copy--small">Strings are characters inside double or single quotes.</p>
<pre class="fragment"><code contenteditable class="ruby">
a = 'Hello '
b = "World"
c = a + b
c.reverse
=> "dlroW olleH"
</code></pre>
<pre class="fragment"><code contenteditable class="ruby ">
a = "Spam "
# Here multiplying a by 4 concatenates (links) four strings together
b = a * 4
=>"Spam Spam Spam Spam "
</code></pre>
</section>
<section>
<h3>String Practice</h3>
<pre><code contenteditable class="ruby">
"Heather".upcase
"Heather".downcase
"heather".capitalize
"Hello".reverse
"Heather".length
"Heather Moore".swapcase
"".empty?
</code></pre>
<p>What is the reverse of your name?</p>
<p>How many characters long is your name?</p>
<p>Can you repeat the word hello 100 times?</p>
<p>What is the 5th character of my name?</p>
</section>
<section>
<h3>Numbers</h3>
<p class="box">Numeric data comes in two types: <strong>Integers</strong> and <strong>Floats</strong></p>
<div class="fragment">
<p class="copy--small">Integers are either <strong>Fixnum</strong> or <strong>Bignum</strong>. They do not have decimals.</p>
<pre style="height: 120px; overflow:hidden;"><code contenteditable class="ruby">
irb> 1_000_000_000_000_000_000.class
=> Fixnum
irb> 1_000_000_000_000_000_000_000.class
=> Bignum
</code></pre>
</div>
<div class="box--small fragment">
<p class="copy--small">Floats have at least one number to the left of a decimal point.</p>
<pre style="height: 120px; overflow:hidden;" class=""><code contenteditable class="ruby ">
irb> 1.001.class
=> Float
</code></pre>
</div>
</section>
<section>
<h3>Number Practice</h3>
<pre><code contenteditable class="ruby">
7/8
7.0/8.0
3.14.to_s
3.14.to_i
1 + "2"
1 + "2".to_i
(1 + 2) * 3
1 + (2 * 3)
</code></pre>
<p>How many seconds are in an hour?</p>
<p>How many minutes are in a week?</p>
<p>How many years old are you if you've been alive 1 million seconds?</p>
</section>
<section>
<h3>Symbols</h3>
<p class="box--small copy--small fragment">You can think of symbols as lightweight Strings.</p>
<p class="box--small copy--small fragment">It's good to know these exist, but don't<br/>worry about them too much for now.</p>
<pre class="fragment"><code contenteditable class="ruby">
# transient and mutable
"hello"
# permanent and immutable
:hello
</code></pre>
</section>
<section>
<h3>Booleans</h3>
<p class="box--small copy--small fragment">This is another Object that we will learn about later.</p>
<p class="box--small copy--small fragment">For now, when you hear Boolean, think TRUE and FALSE.</p>
<pre class="fragment"><code contenteditable class="ruby">
# NOT true
!true
=> false
# NOT false
!false
=> true
</code></pre>
</section>
<section>
<h3>Arrays, Ranges & Hashes</h3>
<p class="box--small copy--small fragment">We will also leave these data types for the next class</p>
<p class="box--small copy--small fragment">Examples of what they will look like:</p>
<pre class="fragment"><code contenteditable class="ruby">
# Arrays are used to hold sets of data.
irb> array_of_numbers = [1,2,3]
irb> array_of_numbers.first
=> 1
# Ranges are used to express a sequence.
irb> range_of_numbers = (1..5)
irb> range_of_numbers.include?(4)
=> true
# Hashes are like dictionaries. You can look up a value by a key.
irb> hash_of_key_to_value =
{
"Apple" => "A fruit.",
"Cucumber" => "A vegetable."
}
</code></pre>
</section>
</section>
<!-- Methods -->
<section>
<section>
<h3>Methods</h3>
<ul class="list--tall box--small copy--small">
<li class="fragment">Methods define the behavior for an Object.</li>
<li class="fragment">String Objects can <strong>reverse</strong>, for example.</li>
<li class="fragment">Some methods are accessed using our friend 'dot' and some are standalone.</li>
<li class="fragment">Let's call some methods</li>
</ul>
<pre class="fragment"><code contenteditable class="ruby">
irb> puts "hello"
hello
=> nil
irb> "2".to_i
=> 2
irb> 2.to_s
=> "2"
irb> "2" / 5
NoMethodError: undefined method `/' for "2":String
</code></pre>
</section>
<section>
<h3>User Input</h3>
<ul class="box--small list--tall copy--small">
<li class="fragment">To obtain user input, use <code>gets</code></li>
<li class="fragment">To print out information, use <code>puts</code></li>
<li class="fragment">Let's create our first program together</li>
</ul>
<div class="fragment"><p>Put the code below in a file and save it as name.rb</p>
<pre style="height: 120px; overflow:hidden;"><code contenteditable class=" ruby">
puts 'Hello there, and what\'s your name?'
name = gets
puts 'Your name is ' + name.chomp! + '? What a lovely name!'
puts 'Pleased to meet you, ' + name + '. :)'
</code></pre></div>
<div class="fragment"><p>Run your program from the command line:</p>
<pre style="height: 80px; overflow:hidden"><code>
ruby name.rb
</code></pre></div>
</section>
<section>
<h3>Let's Develop It</h3>
<ul class="list--tall box--small copy--small">
<li>Write your own program using <code>puts</code> and <code>gets</code> to ask a user for their age and then tell them how old they are in dog years.</li>
<li>reminder: <code>gets</code> method returns a string. To do math on it, convert it to an integer with the <code>.to_i</code> method.</li>
<pre><code class="ruby">
#1 dog year = 7 human years
user_age = gets.to_i
</code></pre>
</ul>
</section>
<section>
<h3>Bonus Feature 1</h3>
<p class="box--small copy--small">Update your code to return a message in all capital letters.</p>
<pre><code class="ruby">
# YOU ARE 5 YEARS OLD IN DOG YEARS
</code></pre>
</section>
<section>
<h3>Bonus Feature 2</h3>
<p class="box--small copy--small">Update your code to return a message in all capital letters, reversed with a count of the characters returned in parens.</p>
<pre><code class="ruby">
# YOU ARE 5 YEARS OLD IN DOG YEARS (32 characters)
</code></pre>
</section>
</section>
<section>
<section>
<h3>Questions?</h3>
</section>
<section>
<h3>Homework</h3>
<p class="box--small copy--small left-align"><strong>Practice:</strong> Write a command line program that asks the user for the year they were born, then calculates their age in years, days, and seconds. Tell the user how old they are in these different formats. (Note: you'll be using <code>gets</code> and <code>puts</code> in this program, along with some math)</p>
<p class="box--small copy--small left-align"><strong>Prep:</strong> Read <a href="https://pine.fm/LearnToProgram/?Chapter=06" alt="Chp 6 of Learn to Program">Chapter 6</a> and <a href="https://pine.fm/LearnToProgram/?Chapter=07" alt="Chp 7 of Learn to Program">Chapter 7</a> of Learn To Program- don't try to do the exercises at the end yet, though.</p>
</section>
<section>
<img src="images/gdi_logo_badge.png" class="img--bare" height="450px" />
<div class="box--small">
<h3><span class="green">Intro to Ruby</span></h3>
<h4><span class="blue">Class 1</span></h4>
</div>
</section>
</section>
</div>
<footer>
<div class="copyright">
Intro to Ruby ~ GDI Ann Arbor ~
<a rel="license" href="http://creativecommons.org/licenses/by-nc/3.0/deed.en_US"><img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by-nc/3.0/80x15.png" /></a>
</div>
</footer>
</div>
<script src="js/jquery.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,
rollingLinks: true,
theme: Reveal.getQueryHash().theme, // available themes are in /css/theme
transition: Reveal.getQueryHash().transition || 'default', // default/cube/page/concave/zoom/linear/none
// Optional libraries used to extend on reveal.js
dependencies: [
{ src: 'lib/js/classList.js', condition: function() { return !document.body.classList; } },
{ src: 'plugin/markdown/showdown.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; } }
]
});
</script>
</body>
</html>