-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
338 lines (274 loc) · 8.01 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
<!DOCTYPE html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Node Intro</title>
<link rel="stylesheet" href="reveal/css/reveal.css">
<!--<link rel="stylesheet" href="reveal/css/print/pdf.min.css"> -->
<link rel="stylesheet" href="reveal/css/theme/sky.css" id="theme">
<!-- For syntax highlighting -->
<link rel="stylesheet" href="reveal/lib/css/zenburn.css">
<!-- CSS tables -->
<link rel="stylesheet" href="css/pure-min.css">
<link rel="stylesheet" href="custom.css" id="theme">
<link rel='shortcut icon' type='image/x-icon' href='favicon.ico' />
</head>
<body>
<div class="reveal">
<div class="slides">
<section>
<span data-markdown>
<script type="text/template">
# Node & Npm
</script>
</span>
<br>
<img src="./img/node.png" style="height: 4em" class="img-none"> <br>
<img src="./img/npm.png" style="height: 4em" class="img-none">
<a id="forkme" href="https://github.com/biojs-edu/vizbi-node-intro"><img style="position: absolute; top: 0; right: 0; border: 0;" src="img/forkme.png" alt="Fork me on GitHub" data-canonical-src="img/forkme.png"></a>
</section>
<section>
<span data-markdown>
<script type="text/template">
## Scripttag hell
</script>
</span>
<pre><code><html>
<head>
<meta charset="utf-8" />
<title>Hell no!</title>
</head>
<body>
<script src="jquery.js"></script>
<script src="d3.js"></script>
<script src="underscore.js"></script>
<script src="backbone.js"></script>
<script src="fancy.js"></script>
<script src="tree.js"></script>
<script src="main.js"></script>
<script src="server.js"></script>
//ongoing...
</body>
</html></code></pre>
</section>
<section data-state="tree-state">
<span data-markdown >
<script type="text/template">
## Scripttag hell
</script>
</span>
<style>
.node {
cursor: pointer;
}
.node circle {
fill: #fff;
stroke: red;
stroke-width: 0.05em;
}
.node text {
font: 0.8em sans-serif;
}
.link {
fill: none;
stroke: #ccc;
stroke-width: 0.1em;
}
</style>
<div id="d3-tree" height="100%"></div>
</section>
<section>
<span data-markdown>
<script type="text/template">
# Node
* JS runtime environment (on top of V8)
* cross-platform
* popular for throughput (e.g. realtime apps)
* trendy
</script>
</span>
<br>
<img src="./img/node.png" style="height: 4em" class="img-none"> <br>
</section>
<section>
<span data-markdown>
<script type="text/template">
# NPM
* package manager for Node modules
* popular for throughput (e.g. realtime apps)
* > 130k packages (2014: 50k, 2013: 20k)
</script>
</span>
<br>
<br>
<img src="./img/npm.png" style="height: 4em" class="img-none"> <br>
</section>
<section>
<span data-markdown>
<script type="text/template">
# NPM
</script>
</span>
<div style="float: left; width: 60%">
<img src="./img/modulecounts.jpg" style="height: 100%; margin: 0 auto; display: block" class="img-none"> <br>
</div>
<style>
.pure-table td {
padding: 0em 1em;
}
</style>
<div style="float: left; width: 39%">
<table style="font-size: 0.6em" class="pure-table">
<thead>
<td>Pkg.mgr</td>
<td>AVG Growth</td>
</thead>
<tbody>
<tr>
<td> NPM </td>
<td> 250 / day</td>
</tr>
<tr>
<td> Go </td>
<td> 137 / day</td>
</tr>
<tr>
<td> Maven</td>
<td> 96 / day</td>
</tr>
<tr>
<td> Packagist (PHP) </td>
<td> 92 / day</td>
</tr>
<tr>
<td> nuget (.NET) </td>
<td> 66 / day</td>
</tr>
<tr>
<td> Rubygems </td>
<td> 61 / day</td>
</tr>
<tr>
<td> PyPI </td>
<td> 57 / day</td>
</tr>
<tr>
<td> CPAN </td>
<td> 8 / day</td>
</tr>
<tr>
<td> CRAN </td>
<td> 3 / day</td>
</tr>
</tbody>
</table>
</div>
</section>
<!--
<section style="height: 80%">
<h2> NPM universe </h2>
<iframe src="https://anvaka.github.io/allnpmviz3d/#" width="100%" height="100%" >
</iframe>
</section>
-->
<section data-markdown><script type="text/template">
## Reuse code
exportme.js
```
module.exports = function () {
return 1;
};
```
import.js
```
var one = require('./exportme');
console.log(one)); // 1
```
</script>
</section>
<section>
<p> </p>
<img src="./img/browserify.png" style="max-height: 4em" class="img-none">
<pre><code>browserify importme.js > browser.js</code></pre>
<pre><code>require=(function e(t,n,r){ [...] // small header (< 1kB)
{1:[function(require,module,exports){
...
}]}
});</code></pre>
</section>
</div>
<div class='footer' style="width: 100%">
<a id="biojs-logo" style="float: left; margin-left: 5%" href="http://biojs.net">
<img alt="BioJS logo - a registry of biological visualizations" src="img/biojs2.png" width="140" height="40" style="float: left">
</a>
<a href="/" class="home" title="VIZBI home page" style="color: #F4B; font-size: 2em; font-weight: bold;text-shadow: 0px 0px 8px; float: right; margin-right: 10%">VIZBI 15</a>
</div>
</div>
<script src="reveal/lib/js/head.min.js"></script>
<script src="reveal/js/reveal.js"></script>
<script>
Reveal.initialize({
// Display controls in the bottom right corner
controls: false,
// Display a presentation progress bar
progress: true,
// Push each slide change to the browser history
history: true,
// Enable keyboard shortcuts for navigation
keyboard: true,
// Enable the slide overview mode
overview: true,
// Vertical centering of slides
center: false,
// Loop the presentation
loop: false,
// Change the presentation direction to be RTL
rtl: false,
// Number of milliseconds between automatically proceeding to the
// next slide, disabled when set to 0, this value can be overwritten
// by using a data-autoslide attribute on your slides
autoSlide: 0,
// Enable slide navigation via mouse wheel
mouseWheel: false,
// Apply a 3D roll to links on hover
rollingLinks: false,
// Transition style
transition: 'fade', // default/cube/page/concave/zoom/linear/fade/none
dependencies: [
// Cross-browser shim that fully implements classList - https://github.com/eligrey/classList.js/
{ src: 'reveal/lib/js/classList.js', condition: function() { return !document.body.classList; } },
// Interreveal.js/pret Markdown in <section> elements
{ src: 'reveal/plugin/markdown/marked.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: 'reveal/plugin/markdown/markdown.js',
condition: function() { return !!document.querySelector( '[data-markdown]' ); },
callback: function() {
} },
// Syntareveal.js/x highlight for <code> elements
{ src: 'reveal/plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } },
// Zoom reveal.js/in and out with Alt+click
{ src: 'reveal/plugin/zoom-js/zoom.js', async: true, condition: function() { return !!document.body.classList; } },
// Speakreveal.js/er notes
//{ src: 'reveal/plugin/notes/notes.js', async: true, condition: function() { return !!document.body.classList; } },
// Remotreveal.js/e control your reveal.js presentation using a touch device
// { src: 'reveal/plugin/remotes/remotes.js', async: true, condition: function() { return !!document.body.classList; } }
// MathJax
// { src: 'plugin/math/math.js', async: true }
]
});
Reveal.addEventListener( 'tree-state', function() {
start();
}, false );
</script>
<!-- If the query includes 'print-pdf', use 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.media = 'print';
link.href = 'reveal.js/css/print/pdf.css';
document.getElementsByTagName( 'head' )[0].appendChild( link );
document.body.style.background = "white";
}
</script>
<script src="js/d3.min.js"></script>
<script src="js/d3_tree.js"></script>
</body>