-
Notifications
You must be signed in to change notification settings - Fork 0
/
slides.html
550 lines (478 loc) · 25 KB
/
slides.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
<!DOCTYPE html>
<html>
<head>
<title>PHP - правильный путь</title>
<meta charset='utf-8' />
<meta content='width=1024, user-scalable=no' name='viewport' />
<!-- deck.js's core css -->
<link href="deck.js/core/deck.core.css" rel="stylesheet" type="text/css"/>
<!-- deck.js extension CSS files -->
<link href="deck.js/extensions/scale/deck.scale.css" rel="stylesheet" type="text/css"/>
<link href="deck.js/extensions/navigation/deck.navigation.css" rel="stylesheet" type="text/css"/>
<link href="deck.js/extensions/status/deck.status.css" rel="stylesheet" type="text/css"/>
<link href="deck.js/extensions/codemirror/deck.codemirror.css" rel="stylesheet" type="text/css"/>
<link href="deck.js/extensions/hash/deck.hash.css" rel="stylesheet" type="text/css"/>
<link href="deck.js/extensions/menu/deck.menu.css" rel="stylesheet" type="text/css"/>
<link href="deck.js/extensions/goto/deck.goto.css" rel="stylesheet" type="text/css"/>
<!-- all css in the css dir: Keydown CSS, your custom CSS, and themes from deck.js -->
<link href="css/keydown.css" rel="stylesheet" type="text/css"/>
<link href="css/horizontal-slide.css" rel="stylesheet" type="text/css"/>
<link href="css/swiss.css" rel="stylesheet" type="text/css"/>
<link href="css/default.css" rel="stylesheet" type="text/css"/>
<link href="css/my.css" rel="stylesheet" type="text/css"/>
<!-- Modernizr (provided for legacy browsers) -->
<script src="deck.js/support/modernizr.custom.js" type="text/javascript"></script>
</head>
<body class='deck-container keydown'>
<section class='slide'>
<div class='spacer top'></div>
<div class='content'>
<h1>PHP</h1>
<h2>правильный путь</h2>
</div>
<div class='spacer bottom'></div>
</section>
<section class='slide'>
<div class='spacer top'></div>
<div class='content'>
<h1>Экскурс в историю</h1>
</div>
<div class='spacer bottom'></div>
</section>
<section class='slide'>
<div class='spacer top'></div>
<div class='content'>
<ul>
<li><p><strong>PHP/FI (1995)</strong></p>
<ul>
<li>HTML шаблонизатор и обработчик форм</li>
</ul>
</li>
<li><p><strong>PHP/FI 2.0 (1997)</strong></p>
<ul>
<li>Тоже что и первое, но быстрее</li>
</ul>
</li>
<li><p><strong>PHP 3 (1998)</strong></p>
<ul>
<li>Новое API</li>
<li>Расширение ядра модулями</li>
</ul>
</li>
</ul>
</div>
<div class='spacer bottom'></div>
</section>
<section class='slide'>
<div class='spacer top'></div>
<div class='content'>
<ul>
<li><p><strong>PHP 4 (2000)</strong></p>
<ul>
<li>Zend Engine</li>
<li>Первый шаблонизатор на шаблонизаторе (Smarty)</li>
</ul>
</li>
<li><p><strong>PHP 5</strong></p>
<ul>
<li>Быстрее, выше, сильнее</li>
<li>ООП</li>
<li>ФП</li>
<li>Трейты</li>
</ul>
</li>
</ul>
</div>
<div class='spacer bottom'></div>
</section>
<section class='slide'>
<div class='spacer top'></div>
<div class='content'>
<ul>
<li><strong>PHP 6?</strong></li>
</ul>
</div>
<div class='spacer bottom'></div>
</section>
<section class='slide'>
<div class='spacer top'></div>
<div class='content'>
<h1>Абсолтно верного пути нет</h1>
<h2>есть Best Practice</h2>
</div>
<div class='spacer bottom'></div>
</section>
<section class='slide'>
<div class='spacer top'></div>
<div class='content'>
<h1>#1 Будь в теме</h1>
<h1> </h1>
<ul>
<li><p>Следи за миром вокруг</p></li>
<li><p>Используй только последнюю версию <strong>PHP (5.4)</strong></p></li>
<li><p>Примененяй новые фишки языка на практике</p></li>
<li><p>Изучай новые пути решения старых задач</p></li>
</ul>
</div>
<div class='spacer bottom'></div>
</section>
<section class='slide'>
<div class='spacer top'></div>
<div class='content'>
<h1>#2 Используй ООП</h1>
<h2></h2>
<ul>
<li>Абстрактные классы и Интерфейсы</li>
<li><s>Наследование</s></li>
<li>Трейты</li>
</ul>
</div>
<div class='spacer bottom'></div>
</section>
<section class='slide'>
<div class='spacer top'></div>
<div class='content'>
<h1>#3 Используй ФП</h1>
<h2></h2>
<ul>
<li>Рекурсия</li>
<li>Функции высшего порядка</li>
<li>Замыкания</li>
</ul>
</div>
<div class='spacer bottom'></div>
</section>
<section class='slide'>
<div class='spacer top'></div>
<div class='content'>
<h1>#4 Метапрограммируй</h1>
<h2></h2>
<ul>
<li>Reflection API</li>
<li>Magic Methods</li>
</ul>
</div>
<div class='spacer bottom'></div>
</section>
<section class='slide'>
<div class='spacer top'></div>
<div class='content'>
<h1>#5 Делай по стандарту</h1>
<h2>PSR, PSR-1, PSR-2</h2>
<p><em>http://www.php-fig.org/</em></p>
<p><em>by PHP Framework Interop Group</em></p>
</div>
<div class='spacer bottom'></div>
</section>
<section class='slide'>
<div class='spacer top'></div>
<div class='content'>
<ul>
<li><strong>PSR-0:</strong> пространства имён</li>
<li><strong>PSR-1:</strong> стандартные элементы кода</li>
<li><strong>PSR-2:</strong> расширенные и частные случаи PSR-1</li>
</ul>
</div>
<div class='spacer bottom'></div>
</section>
<section class='slide'>
<div class='spacer top'></div>
<div class='content'>
<h1>#6 Автоматизируй стандартизацию</h1>
<h2>PHP Coding Standards Fixer</h2>
<p><em>http://cs.sensiolabs.org/</em></p>
</div>
<div class='spacer bottom'></div>
</section>
<section class='slide'>
<div class='spacer top'></div>
<div class='content'>
<h1>#7 Пиши документацию</h1>
<h2>PHPDoc</h2>
<p><em>http://www.phpdoc.org/</em></p>
</div>
<div class='spacer bottom'></div>
</section>
<section class='slide'>
<div class='spacer top'></div>
<div class='content'>
<h1>Хорошо</h1>
<p><textarea class='code' display='none' mode='php'><?php
/**
 * Translate array.
 *
 * @param array $array Array with source text to translate
 * @param string $fromLanguage Source language
 * @param string $toLanguage Destenation language
 * @param bool $translit If true function return transliteration of source text 
 * @return array|bool Array with translated text or false if exists errors
 */ 
public function translateArray($array, $fromLanguage = "en", $toLanguage = "ru", $translit = false) 
{
 if (empty($this->_errors)) {
 $text = implode("[<#>]", $array);
 $response = $this->translateText($text, $fromLanguage, $toLanguage, $translit);
 return $this->_explode($response);
 } else {
 return false;
 }
}</textarea>
</p>
</div>
<div class='spacer bottom'></div>
</section>
<section class='slide'>
<div class='spacer top'></div>
<div class='content'>
<h1>Плохо</h1>
<p><textarea class='code' display='none' mode='php'><?php

//
// Function to translate array.
// 
public function translateArray($array, $fromLanguage = "en", $toLanguage = "ru", $translit = false) 
{
 if (empty($this->_errors)) {
 $text = implode("[<#>]", $array);
 $response = $this->translateText($text, $fromLanguage, $toLanguage, $translit);
 return $this->_explode($response);
 } else {
 return false;
 }
}</textarea>
</p>
</div>
<div class='spacer bottom'></div>
</section>
<section class='slide'>
<div class='spacer top'></div>
<div class='content'>
<p><textarea class='code' display='none' mode='php'><?php
/*
 .___________..______ ___ .__ __. _______. __ 
 | || _ \ / \ | \ | | / || | 
 `---| |----`| |_) | / ^ \ | \| | | (----`| | 
 | | | / / /_\ \ | . ` | \ \ | | 
 | | | |\ \----. / _____ \ | |\ | .----) | | `----.
 |__| | _| `._____|/__/ \__\ |__| \__| |_______/ |_______|
 
 ___ .___________. _______ _______.
 / \ | || ____| / |
 / ^ \ `---| |----`| |__ | (----`
 / /_\ \ | | | __| \ \ 
 / _____ \ | | | |____ .----) | 
 /__/ \__\ |__| |_______||_______/ 
 
 ___ .______ .______ ___ ____ ____ 
 / \ | _ \ | _ \ / \ \ \ / / 
 / ^ \ | |_) | | |_) | / ^ \ \ \/ / 
 / /_\ \ | / | / / /_\ \ \_ _/ 
 / _____ \ | |\ \----.| |\ \----. / _____ \ | | 
 /__/ \__\ | _| `._____|| _| `._____|/__/ \__\ |__| 
*/
public function translateArray($array, $fromLanguage = "en", $toLanguage = "ru", $translit = false) 
{
 if (empty($this->_errors)) {
 $text = implode("[<#>]", $array);
 $response = $this->translateText($text, $fromLanguage, $toLanguage, $translit);
 return $this->_explode($response);
 } else {
 return false;
 }
}</textarea>
<strong> Красиво, но...</strong></p>
</div>
<div class='spacer bottom'></div>
</section>
<section class='slide'>
<div class='spacer top'></div>
<div class='content'>
<h1>#8 Управляй зависимостями</h1>
<h2></h2>
<ul>
<li><p>Ваш проект зависит от нескольких библиотек</p></li>
<li><p>...которые зависят от других библиотек</p></li>
<li><p>...которые конфликтуют с определёнными версиями предыдущих библиотек</p></li>
</ul>
</div>
<div class='spacer bottom'></div>
</section>
<section class='slide'>
<div class='spacer top'></div>
<div class='content'>
<h2>Хватит это терпеть!</h2>
<p><img src='images/998990.jpg' height="500px"/></p>
</div>
<div class='spacer bottom'></div>
</section>
<section class='slide'>
<div class='spacer top'></div>
<div class='content'>
<h2>Composer</h2>
<p><em>http://getcomposer.org/</em></p>
<h2><s>PEAR</s></h2>
</div>
<div class='spacer bottom'></div>
</section>
<section class='slide'>
<div class='spacer top'></div>
<div class='content'>
<p>Ставим:</p>
<p><textarea class='code' display='none' mode='sh'>curl -s https://getcomposer.org/installer | php</textarea>
</p>
<p>Пишем, что хотим в <code>composer.json</code>:</p>
<p><textarea class='code' display='none' mode='json'>{
 "require": {
 "monolog/monolog": "1.2.*"
 }
}</textarea>
</p>
</div>
<div class='spacer bottom'></div>
</section>
<section class='slide'>
<div class='spacer top'></div>
<div class='content'>
<p>Устанавливаем:</p>
<p><textarea class='code' display='none' mode='sh'>php composer.phar install</textarea>
</p>
<p>Подключаем в проект:</p>
<p><textarea class='code' display='none' mode='php'><?php
require 'vendor/autoload.php';</textarea>
</p>
</div>
<div class='spacer bottom'></div>
</section>
<section class='slide'>
<div class='spacer top'></div>
<div class='content'>
<h1>#9 Сравнивай чётко</h1>
<h2></h2>
<p><textarea class='code' display='none' mode='php'><?php
$a = 5; // 5 as an integer

var_dump($a == 5); // compare value; return true
var_dump($a == '5'); // compare value (ignore type); return true
var_dump($a === 5); // compare type/value (integer vs. integer); return true
var_dump($a === '5'); // compare type/value (integer vs. string); return false

/**
 * Strict comparisons
 */
if (strpos('testing', 'test')) { // 'test' is found at position 0, which is interpreted as the boolean 'false'
 // code...
}

vs.

if (strpos('testing', 'test') !== false) { // true, as strict comparison was made (0 !== false)
 // code...
}</textarea>
</p>
</div>
<div class='spacer bottom'></div>
</section>
<section class='slide'>
<div class='spacer top'></div>
<div class='content'>
<h1>#10 Склеивай красиво</h1>
<h2></h2>
<p><textarea class='code' display='none' mode='php'><?php
 $a = 'Multi-line example'; // concatenating assignment operator (.=)
 $a .= "\n";
 $a .= 'of what not to do';

// vs.

 $a = 'Multi-line example' 
 . "\n" 
 . 'of what to do';</textarea>
</p>
</div>
<div class='spacer bottom'></div>
</section>
<section class='slide'>
<div class='spacer top'></div>
<div class='content'>
<h1>#11 ...или вообще не склеивай</h1>
<h2></h2>
<p><textarea class='code' display='none' mode='php'><?php
 echo 'phptherightway is ' . $adjective . '.'
 . "\n"
 . 'I love learning' . $code . '!';

// vs.

 echo "phptherightway is $adjective.\n I love learning $code!"</textarea>
</p>
<p><textarea class='code' display='none' mode='php'><?php
 $juice = array('apple', 'orange', 'plum');

 echo 'I drank some juice made of ' . $juice[1]} 's';

// vs.

 echo "I drank some juice made of {$juice[1]}s";</textarea>
</p>
</div>
<div class='spacer bottom'></div>
</section>
<section class='slide'>
<div class='spacer top'></div>
<div class='content'>
<h1>#12 Не пиши else лишний раз</h1>
<h2></h2>
<p><textarea class='code' display='none' mode='php'><?php
function test($a)
{
 if ($a) {
 return true;
 } else {
 return false;
 }
}

// vs.

function test($a)
{
 if ($a) {
 return true;
 }
 return false;
}</textarea>
</p>
</div>
<div class='spacer bottom'></div>
</section>
<section class='slide'>
<div class='spacer top'></div>
<div class='content'>
<p><textarea class='code' display='none' mode='php'><?php
function test($a)
{
 if ($a) {
 return $a;
 } else {
 return false;
 }
}

// vs.

function test($a)
{
 $b = false;

 if ($a) {
 $b = $a
 }

 return $b;
}</textarea>
</p>
</div>
<div class='spacer bottom'></div>
</section>
<section class='slide'>
<div class='spacer top'></div>
<div class='content'>
<h1>#13 Используй jQuery стиль</h1>
<h2></h2>
<p><textarea class='code' display='none' mode='php'><?php
 $_data = array (
 'addon' => $addon_scheme->getId(),
 'priority' => $addon_scheme->getPriority(),
 );

 db_query("REPLACE INTO ?:addon_descriptions ?e", array(
 'lang_code' => $translation['lang_code'],
 'addon' => $addon_scheme->getId(),
 'name' => $translation['value'],
 'description' => $translation['description']
 ));

 return array(
 'status' => Response::STATUS_OK,
 'data' => array(
 'settings' => $result,
 'search' => $params
 )
 );</textarea>
</p>
</div>
<div class='spacer bottom'></div>
</section>
<section class='slide'>
<div class='spacer top'></div>
<div class='content'>
<h1>#14 Лови - бросай</h1>
<h2></h2>
<p><textarea class='code' display='none' mode='php'><?php
$email = new Fuel\Email;
$email->subject('My Subject');
$email->body('How the heck are you?');
$email->to('guy@example.com', 'Some Guy');

try
{
 $email->send();
}
catch(Fuel\Email\ValidationFailedException $e)
{
 // The validation failed
}
catch(Fuel\Email\SendingFailedException $e)
{
 // The driver could not send the email
}</textarea>
</p>
</div>
<div class='spacer bottom'></div>
</section>
<section class='slide'>
<div class='spacer top'></div>
<div class='content'>
<h1>#15 БазДань правильно</h1>
<h2>PDO</h2>
<p><textarea class='code' display='none' mode='php'><?php
$pdo = new PDO('sqlite:users.db');
$stmt = $pdo->prepare('SELECT name FROM users WHERE id = :id');
$stmt->bindParam(':id', $_GET['id'], PDO::PARAM_INT); //<-- Automatically sanitized by PDO
$stmt->execute();</textarea>
</p>
</div>
<div class='spacer bottom'></div>
</section>
<section class='slide'>
<div class='spacer top'></div>
<div class='content'>
<h2>Aura SQL</h2>
<h2>Doctrine2 DBAL</h2>
<h2>ZF Db</h2>
</div>
<div class='spacer bottom'></div>
</section>
<section class='slide'>
<div class='spacer top'></div>
<div class='content'>
<h1>#16 Защищай</h1>
<h2>OWASP Security Guide</h2>
<p><em>https://www.owasp.org/index.php/Guide_Table_of_Contents</em></p>
</div>
<div class='spacer bottom'></div>
</section>
<section class='slide'>
<div class='spacer top'></div>
<div class='content'>
<h1>#17 Фильтруй</h1>
<h2>strip_tags</h2>
<h2>htmlspecialchars</h2>
<h2>htmlentities</h2>
</div>
<div class='spacer bottom'></div>
</section>
<section class='slide'>
<div class='spacer top'></div>
<div class='content'>
<h1>#17 Тестируй</h1>
<h2>PHPUnit</h2>
<p><em>http://www.phpunit.de/manual/current/en/</em></p>
<h2>Selenium</h2>
<p><em>http://seleniumhq.org/</em></p>
</div>
<div class='spacer bottom'></div>
</section>
<section class='slide'>
<div class='spacer top'></div>
<div class='content'>
<h1>#18 Деплой</h1>
<h2>Capistrano</h2>
<p><em>https://github.com/capistrano/capistrano</em></p>
<h2>Chef</h2>
<p><em>http://www.opscode.com/chef/</em></p>
</div>
<div class='spacer bottom'></div>
</section>
<section class='slide'>
<div class='spacer top'></div>
<div class='content'>
<h1>#18 Пиши **** код!</h1>
<p><img src="images/bl.jpg" height="500px"/></p>
</div>
<div class='spacer bottom'></div>
</section>
<section class='slide'>
<div class='spacer top'></div>
<div class='content'>
<h1>Спасибо!</h1>
<h2>Андрей Кулаков</h2>
<p><strong>https://github.com/Andrew8xx8/right-way-presentation</strong></p>
<p><strong>http://8xx8.ru</strong></p>
<p><strong>@8xx8ru</strong></p>
<p><strong>avk@8xx8.ru</strong></p>
</div>
<div class='spacer bottom'></div>
</section>
<!-- deck.js navigation extension -->
<a class='deck-prev-link' href='#' title='Previous'>←</a>
<a class='deck-next-link' href='#' title='Next'>→</a>
<!-- deck.js hash extension -->
<a class='deck-permalink' href='.' title='Permalink to this slide'>#</a>
<!-- deck.js status extension -->
<p class='deck-status'>
<span class='deck-status-current'></span>
/
<span class='deck-status-total'></span>
</p>
<!-- jQuery & deck.js -->
<script src="deck.js/support/jquery.1.6.4.min.js" type="text/javascript"></script>
<script src="deck.js/core/deck.core.js" type="text/javascript"></script>
<!-- deck.js extension JS files -->
<script src="deck.js/extensions/scale/deck.scale.js" type="text/javascript"></script>
<script src="deck.js/extensions/navigation/deck.navigation.js" type="text/javascript"></script>
<script src="deck.js/extensions/status/deck.status.js" type="text/javascript"></script>
<script src="deck.js/extensions/codemirror/deck.codemirror.js" type="text/javascript"></script>
<script src="deck.js/extensions/codemirror/codemirror.js" type="text/javascript"></script>
<script src="deck.js/extensions/codemirror/mode/sparql/sparql.js" type="text/javascript"></script>
<script src="deck.js/extensions/codemirror/mode/ruby/ruby.js" type="text/javascript"></script>
<script src="deck.js/extensions/codemirror/mode/rst/rst.js" type="text/javascript"></script>
<script src="deck.js/extensions/codemirror/mode/yaml/yaml.js" type="text/javascript"></script>
<script src="deck.js/extensions/codemirror/mode/plsql/plsql.js" type="text/javascript"></script>
<script src="deck.js/extensions/codemirror/mode/r/r.js" type="text/javascript"></script>
<script src="deck.js/extensions/codemirror/mode/php/php.js" type="text/javascript"></script>
<script src="deck.js/extensions/codemirror/mode/velocity/velocity.js" type="text/javascript"></script>
<script src="deck.js/extensions/codemirror/mode/python/python.js" type="text/javascript"></script>
<script src="deck.js/extensions/codemirror/mode/smalltalk/smalltalk.js" type="text/javascript"></script>
<script src="deck.js/extensions/codemirror/mode/xmlpure/xmlpure.js" type="text/javascript"></script>
<script src="deck.js/extensions/codemirror/mode/scheme/scheme.js" type="text/javascript"></script>
<script src="deck.js/extensions/codemirror/mode/haskell/haskell.js" type="text/javascript"></script>
<script src="deck.js/extensions/codemirror/mode/clojure/clojure.js" type="text/javascript"></script>
<script src="deck.js/extensions/codemirror/mode/css/css.js" type="text/javascript"></script>
<script src="deck.js/extensions/codemirror/mode/diff/diff.js" type="text/javascript"></script>
<script src="deck.js/extensions/codemirror/mode/xml/xml.js" type="text/javascript"></script>
<script src="deck.js/extensions/codemirror/mode/htmlmixed/htmlmixed.js" type="text/javascript"></script>
<script src="deck.js/extensions/codemirror/mode/stex/stex.js" type="text/javascript"></script>
<script src="deck.js/extensions/codemirror/mode/clike/clike.js" type="text/javascript"></script>
<script src="deck.js/extensions/codemirror/mode/javascript/javascript.js" type="text/javascript"></script>
<script src="deck.js/extensions/codemirror/mode/coffeescript/coffeescript.js" type="text/javascript"></script>
<script src="deck.js/extensions/codemirror/mode/lua/lua.js" type="text/javascript"></script>
<script src="deck.js/extensions/hash/deck.hash.js" type="text/javascript"></script>
<script src="deck.js/extensions/menu/deck.menu.js" type="text/javascript"></script>
<script src="deck.js/extensions/goto/deck.goto.js" type="text/javascript"></script>
<!-- your custom JS here, including call to initialize deck.js-codemirror -->
<!-- Initialize the deck. -->
<script type='text/javascript'>
$(function() { $.deck('.slide'); });
</script>
</body>
</html>