forked from hakimel/reveal.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
297 lines (252 loc) · 9.55 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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>reveal.js</title>
<link rel="stylesheet" href="css/reveal.css">
<link rel="stylesheet" href="css/theme/nebulab.css">
<!-- Theme used for syntax highlighting of code -->
<link rel="stylesheet" href="lib/css/zenburn.css">
<!-- Printing and PDF exports -->
<script>
var link = document.createElement( 'link' );
link.rel = 'stylesheet';
link.type = 'text/css';
link.href = window.location.search.match( /print-pdf/gi ) ? 'css/print/pdf.css' : 'css/print/paper.css';
document.getElementsByTagName( 'head' )[0].appendChild( link );
</script>
</head>
<body>
<div class="reveal">
<div class="slides">
<section style="text-align: left;" data-markdown data-markdown data-background="https://media.giphy.com/media/3o6ZsTKlw7wmJrdJ4I/giphy.gif" data-background-size="50%" data-background-position="right">
<textarea data-template>
A new identity for Solidus.
**Michela**
<small>All Hands 2019</small>
</textarea>
</section>
<section style="text-align: left;" data-markdown data-background="https://upload.wikimedia.org/wikipedia/commons/5/5a/Yukihiro_Matsumoto_EuRuKo_2011.jpg" data-background-size="50%" data-background-position="right">
<textarea data-template>
## “no one wants to program <br> in assembler anymore.”
-Matz
</textarea>
<aside class="notes">
Oh hey, these are some notes. They'll be hidden in your presentation, but you can see them if you open the speaker notes window (hit »S« on your keyboard).
</aside>
</section>
<section data-markdown data-background-color="#66BEF9">
<textarea data-template>
## “no one ~~wants to program in~~ can avoid ~~assembler~~ javascript anymore.”
-Matz
</textarea>
</section>
<section data-markdown data-background="https://images.unsplash.com/photo-1521737451536-00a86f630f3e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=3150&q=80">
<textarea data-template>
# Meet Joe
</textarea>
</section>
<section data-markdown>
<textarea data-template>
<p class="fragment">Done Rails for 5+ years</p>
<p class="fragment">Can do decent TDD</p>
<p class="fragment">Can setup Capistrano</p>
<p class="fragment">Enough jQuery to survive</p>
</textarea>
</section>
<section data-markdown>
<textarea data-template>
<p class="fragment">Rather good at Rails</p>
<p class="fragment">Can fix some HTML/CSS</p>
<p class="fragment">Prefers the backend</p>
<p class="fragment">Knows his way around DBs</p>
</textarea>
</section>
<section data-markdown data-background-color="#66BEF9">
<textarea data-template>
## Joe has to to do some Javascript...
</textarea>
</section>
<section data-markdown data-background="https://media.giphy.com/media/WJK2SABYwvEvm/giphy.gif">
</section>
<section data-markdown data-background-color="#66BEF9">
<textarea data-template>
# 💘
## Let’s have a fresh look at ruby by using it in a completely new environment
<small>but still retaining the years of experience, the learned skill and the fun that made us love it in the first place</small>
</textarea>
</section>
<section data-background="https://i.ibb.co/8s2R86h/Schermata-2019-03-07-alle-10-58-05.png" data-background-size="60%" data-background-color="#A0B0DF">
</section>
<section data-markdown data-background="https://secure.gravatar.com/avatar/88298620949a6534d403da2e356c9339?s=420&d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-org-420.png" data-background-size="20%">
<textarea data-template>
## Opal is a Ruby to JavaScript <br> source-to-source compiler.
</textarea>
</section>
<section data-markdown data-background-color="#66BEF9">
<textarea data-template>
# 3K
GitHub Stars
</textarea>
</section>
<section data-markdown data-background-color="#66BEF9">
<textarea data-template>
# 11K
Ruby spec examples
</textarea>
</section>
<section data-markdown data-background-color="#66BEF9">
<textarea data-template>
# 100K
Downloads from RubyGems
</textarea>
</section>
<section data-markdown>
<textarea data-template>
## It's Ruby
<p class="fragment">Method missing & blocks</p>
<p class="fragment">Require & Autoload</p>
<p class="fragment">Classes & singleton class</p>
<p class="fragment">Modules & mixins</p>
<p class="fragment">Enumerable & Struct</p>
<p class="fragment">(much more)</p>
</textarea>
</section>
<section data-markdown>
<textarea data-template>
## It's fast
<p class="fragment">bridged classes → <strong>Array String RegExp Function Boolean Date</strong></p>
<p class="fragment">class Hierarchy → <strong>.prototype.chain</strong></p>
<p class="fragment">.methods → <strong>$functions()</strong></p>
<p class="fragment">@instance_variables → <strong>this.properties</strong></p>
<p class="fragment">Constant::Lookup → <strong>.prototype.chain</strong></p>
</textarea>
</section>
<section data-markdown>
<textarea data-template>
## Caveats
<p class="fragment">String = Symbol = (JS) String → <strong>Strings are immutable</strong>(# frozen_string_literal: true)</p>
<p class="fragment"><strong>Fixnum = Float</strong>= (JS) Numeric</p>
<p class="fragment"><strong>missing:</strong>Threads File Kernel.system fork etc.</p>
</textarea>
</section>
<section data-markdown>
<textarea data-template>
## Production Ready
<p class="fragment"><strong>68K gzipped</strong> (52K using opal/mini)</p>
<p class="fragment">Deployed to production since 2012</p>
<p class="fragment">Has served millions of users.</p>
</textarea>
</section>
<section data-markdown data-background-color="#66BEF9">
<textarea data-template>
## A pragmatic use case
Flexible admin user interfaces
</textarea>
</section>
<section data-markdown>
<textarea data-template>
## But first...
</textarea>
</section>
<section data-markdown data-background="https://media.giphy.com/media/SURh9oaSsEZjO/giphy.gif">
<textarea data-template>
# Crash Course
</textarea>
</section>
<section data-markdown>
<textarea data-template>
### $ shell
<pre><code data-trim data-noescape>
$ opal -e "puts 'hello worłd!'"
hello wrocławd!
$ opal -e "3.times{|n| p n}" -c > app.js
$ node app.js
</code></pre>
</textarea>
</section>
<section data-markdown>
<textarea data-template>
### $ shell
<pre><code data-trim data-noescape>
$ opal -rostruct -e "OpenStruct.new" -Rserver
I, [2016-03-07T23:20:04.762798 #94300] INFO -- : WEBrick 1.3.1
…snip… port=3000
$ open localhost:3000
</code></pre>
</textarea>
</section>
<section data-markdown>
<textarea data-template>
### $ shell
<pre><code data-trim data-noescape>
$ ruby -ropal-jquery -S opal -ropal-jquery \
-e "Element[:body] << 'Hello!'"
$ ruby -ropal-browser -S opal -rbrowser \
-e 'DOM { h1 "Hello!" }.append_to($document.body)'
</code></pre>
</textarea>
</section>
<section data-markdown>
<textarea data-template>
### config.ru
<pre><code data-trim data-noescape>
require 'opal'
run Opal::Server.new { |server|
# will use ./opal/app.rb
# as the main file:
server.append_path './opal'
server.main = 'app'
}
</code></pre>
</textarea>
</section>
<section data-background="https://media.giphy.com/media/A0TvAqfWhHQRy/giphy.gif">
</section>
<section data-markdown data-background-color="#66BEF9">
<textarea data-template>
## A pragmatic use case
Flexible admin user interfaces
</textarea>
</section>
<section data-markdown data-background="https://media.giphy.com/media/xstpzu2xZE0JG/giphy.gif">
<textarea data-template>
## A pragmatic use case
~~Flexible admin user interfaces~~
# TETRIS
</textarea>
</section>
<section data-markdown>
<textarea data-template>
# Demo
</textarea>
</section>
<section style="text-align: left;" data-markdown data-markdown data-background="https://media.giphy.com/media/3o6ZsTKlw7wmJrdJ4I/giphy.gif" data-background-size="50%" data-background-position="right">
<textarea data-template>
# Thank you!
**@elia**
<small>opalrb.org</small>
</textarea>
</section>
</div>
</div>
<script src="lib/js/head.min.js"></script>
<script src="js/reveal.js"></script>
<script>
// More info about config & dependencies:
// - https://github.com/hakimel/reveal.js#configuration
// - https://github.com/hakimel/reveal.js#dependencies
Reveal.initialize({
history: true,
controls: false,
dependencies: [
{ src: 'plugin/markdown/marked.js' },
{ src: 'plugin/markdown/markdown.js' },
{ src: 'plugin/notes/notes.js', async: true },
{ src: 'plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } }
]
});
</script>
</body>
</html>