-
Notifications
You must be signed in to change notification settings - Fork 21
/
index.html
611 lines (552 loc) · 21.9 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
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
611
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Realtime BI Presentation</title>
<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=1.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">
<!-- Gridster Layout and Styles -->
<link rel="stylesheet" href="css/gridster.css">
<link rel="stylesheet" href="css/styles.css">
<!-- If the query includes 'print-pdf', use the PDF print sheet -->
<script>
document.write( '<link rel="stylesheet" href="css/print/' + ( window.location.search.match( /print-pdf/gi ) ? 'pdf' : 'paper' ) + '.css" type="text/css" media="print">' );
</script>
<!--[if lt IE 9]>
<script src="lib/js/html5shiv.js"></script>
<![endif]-->
</head>
<body>
<div class="reveal">
<!-- Any section element inside of this container is displayed as a slide -->
<div class="slides">
<!-- Title Slides -->
<section>
<section>
<h1>Real-time stream processing & Visualization</h1>
<h3>Kafka, Storm, D3 and Friends</h3>
</section>
<section>
<h1>Byron Ellis</h1>
<h3>Chief Data Scientist @ LivePerson, Inc.</h3>
<p>Statistician by training, engineer by experience. Started out in "big data" working on genome and microarray data (back when a terabyte was pretty big).</p>
</section>
<section>
<h1>Some things to talk about...</h1>
<ul>
<li>In-Browser Visualization with D3.js and node.js</li>
<li>Driving that visualization from Storm (and Redis)</li>
<li>Using Kafka to move data around.</li>
<li>A little bit of jQuery to make life easier.</li>
</ul>
</section>
</section>
<!-- Browser Visualization -->
<section>
<section><h1>Visualization in the Browser</h1></section>
<section><h1>Data Driven Documents (D3)</h1></section>
<section><h1>I've heard the name...</h1>
<ul>
<li>Popular for Inline SVG Rendering</li>
<li>Fantastic Mapping Support</li>
<li>Low Level Package (think jQuery)</li>
</ul></section>
<section><h1>Selections</h1>
<ul>
<li><strong>d3.select</strong> selects a DOM single node.</li>
<li><strong>d3.selectAll</strong> selects a group of DOM nodes</li>
</ul>
<pre><code contenteditable>
//Chainable for subselections
d3.select("div#mydiv").selectAll("p");
//Or in jQuery-style
d3.selectAll("div#mydiv p");
//Or grouped
d3.selectAll("div").selectAll("p");
//Flat-styled grouping (but has limited utility)
d3.selectAll("div p");
</code></pre>
</section>
<section><h1>Binding Data</h1>
<ul>
<li>Uses the <strong>data()</strong> function.</li>
<li>Acts something like a full outer join.</li>
</ul>
<pre><code contenteditable>
var colors = ["#66C2A5","#FC8D62","#8DA0CB"];
var x = d3.select("div#colors").selectAll("div").data(colors);
</code></pre>
</section>
<section><h1>Manipulating the Join</h1>
<pre><code>var x = d3.select("div#colors").selectAll("div").data(colors);</code></pre>
<svg width="640" height="480" xmlns="http://www.w3.org/2000/svg">
<!-- Created with SVG-edit - http://svg-edit.googlecode.com/ -->
<g>
<title>Layer 1</title>
<ellipse ry="122" rx="122" id="svg_3" cy="237" cx="242" stroke-linecap="null" stroke-linejoin="null" stroke-dasharray="null" stroke-width="5" stroke="#7f7f7f" fill="#d4ffaa" opacity="0.5"/>
<ellipse opacity="0.5" id="svg_5" ry="122" rx="122" cy="237" cx="398" stroke-linecap="null" stroke-linejoin="null" stroke-dasharray="null" stroke-width="5" stroke="#7f7f7f" fill="#ffd4aa"/>
<text xml:space="preserve" text-anchor="middle" font-family="serif" font-size="24" id="svg_6" y="243.5" x="312" opacity="0.5" stroke-linecap="null" stroke-linejoin="null" stroke-dasharray="null" stroke-width="0" stroke="#7f7f7f" fill="#fff">x</text>
<text xml:space="preserve" text-anchor="middle" font-family="serif" font-size="24" id="svg_7" y="243.5" x="197" opacity="0.5" stroke-linecap="null" stroke-linejoin="null" stroke-dasharray="null" stroke-width="0" stroke="#7f7f7f" fill="#fff">x.enter()</text>
<text xml:space="preserve" text-anchor="middle" font-family="serif" font-size="24" id="svg_8" y="243.5" x="440" opacity="0.5" stroke-linecap="null" stroke-linejoin="null" stroke-dasharray="null" stroke-width="0" stroke="#7f7f7f" fill="#fff">x.exit()</text>
<text xml:space="preserve" text-anchor="middle" font-family="serif" font-size="24" id="svg_9" y="93.5" x="236" opacity="0.5" stroke-linecap="null" stroke-linejoin="null" stroke-dasharray="null" stroke-width="0" stroke="#7f7f7f" fill="#fff">data</text>
<text xml:space="preserve" text-anchor="middle" font-family="serif" font-size="24" id="svg_10" y="93.5" x="406" opacity="0.5" stroke-linecap="null" stroke-linejoin="null" stroke-dasharray="null" stroke-width="0" stroke="#7f7f7f" fill="#fff">selectAll</text>
</g>
</svg>
</section>
<section><h1>A Simple Visualization</h1>
<pre><code contenteditable>
var svg = d3.select('#a-simple-visualization')
.append('svg').attr({width:"400",height:"400"});
var points = generateRandomPoints(400,400,50);
//Update
var x = svg.selectAll("circle").data(points)
.attr({cx:function(d) { return d.x;},
cy:function(d) { return d.y},
r:function(d) { return d.r; }});
//Create
x.enter().append("circle")
.attr({cx:function(d) { return d.x;},
cy:function(d) { return d.y},
r:function(d) { return d.r; }});
</code></pre>
</section>
<section>
<div id="a-simple-visualization" style="width:400px;height:400px;border: white solid 1px;margin: 0 auto;"></div>
<input type="button" id="a-simple-visualization-go" value="Go"/>
</section>
</section>
<section>
<section><h1>Elements of a D3.js Visualization</h1></section>
<section><h1>Scales</h1><ul>
<li>Converts from a domain (e.g. -1,1) to a range (e.g. 0,10)</li>
<li>Linear and Power scales (e.g. log)</li>
<li>Color Ramps</li>
<li>Ordinal Scales</li>
</ul></section>
<section><pre><code>
//Your basic linear axis
var x = d3.scale.linear()
.domain([0,d3.sum(words,function(d) { return d.count; })])
.range([0,1]);
//Or some nice colors...
var color = d3.scale.ordinal()
.range(["#98abc5", "#8a89a6", "#7b6888",
"#6b486b", "#a05d56", "#d0743c", "#ff8c00"]);
</code></pre></section>
<section><h1>Shapes</h1><ul>
<li>Lines and Arcs</li>
<li>Areas and Chords</li>
<li>Symbols</li>
</ul></section>
<section><pre><code>
//Create an arc shape using SVG
var arc = d3.svg.arc()
.outerRadius(190)
.innerRadius(130);
</code></pre></section>
<section><h1>Layouts</h1><ul>
<li>Treemaps and Hierarchical Packings</li>
<li>Stacked Charts</li>
<li>Histograms</li>
<li>Hierarchical Partitioning</li>
<li>Force Directed Layouts</li>
<li>Chord Layouts</li>
<li>...and more</li>
</ul></section>
<section><pre><code>
//Like pie charts...
var pie = d3.layout.pie()
.sort(null)
.value(function(d) { return x(d.count); });
</code></pre></section>
<section><h1>Mix It Together</h1>
<pre><code>
var arcs = svg.selectAll("g.arc")
.data(pie(words),function(d) { return d.data.word; });
var newArcs = arcs.enter().append("g").attr("class","arc");
newArcs.append("path")
.style("fill",function(d) { return color(d.data.word); })
.attr("d",arc);
newArcs.append("text")
.attr("transform",
function(d) { return "translate("+arc.centroid(d)+")"; })
.attr({dy:".35em"}).style({"text-anchor":"middle",
"font-size":"40%","fill":"#fff"})
.text(function(d) { return d.data.word; });
</code></pre>
</section>
<section><h1>Update Arcs Too...</h1>
<pre><code>
//Update existing elements
arcs.select("path").attr("d",arc);
arcs.select("text")
.attr("transform",
function(d) { return "translate("+arc.centroid(d)+")"; });
</code></pre>
</section>
<section><h1>Or Add Some Animation</h1><pre><code>
arcs.select("path").transition().duration(750)
.attrTween("d",arcTween);
arcs.select("text").transition().duration(750)
.attr("transform",function(d) {
return "translate("+arc.centroid(d)+")";
});
</code></pre></section>
<section><h1>Custom "tween" function</h1><pre><code>
function arcTween(a) {
var i = d3.interpolate(this._current, a);
this._current = i(0);
return function(t) {
return arc(i(t));
};
}
</code></pre></section>
<section><h1>Ta Da!</h1>
<div id="example-2" style="width:400px;height:400px;border: white solid 1px;margin: 0 auto;"></div>
<input type="button" id="example-2-go" value="Go"/>
</section>
<section><h1>And Lots More...</h1></section>
<section><h1>Cartography</h1><ul>
<li>GeoJSON and TopoJSON Support</li>
<li>Comprehensive projection support</li>
</ul></section>
<section><h1>Axes</h1><ul>
<li>Used with Scales</li>
<li>Render axes onto plots</li>
<li>Fine control over ticks and labels</li>
</ul></section>
<section><h1>Some More Examples</h1>
<h3><a href="http://bl.ocks.org/mbostock">bl.ocks.org/mbostock</a></h3>
</section>
</section>
<!-- Higher Level Interfaces -->
<section>
<section><h1>Still Sounds Like Work</h1></section>
<section><h1>Lots of Higher Level Packages</h1>
<ul>
<li>NVD3 (Novus)</li>
<li>Rickshaw (Shutterstock)</li>
<li>DC.js (Nick Zhu)</li>
<li>Vega (Trifacta)</li>
<li>PolychartJS (Commercial)</li>
</ul></section>
</section>
<!-- Getting Data There -->
<section>
<section><h1>Getting The Data</h1></section>
<section><h1>Modern Transports</h1><ul>
<li>AJAX Polling Techniques</li>
<li>Server Sent Events (Unidirectional)</li>
<li>WebSockets (Bidirectional)</li>
</ul></section>
<section><h1>Server Sent Events</h1><ul>
<li>Pretty good native browser support.</li>
<li>Pure HTTP Protocol, available "polyfill" libraries.</li>
<li>Broadcast only.</li>
<li>Browser automatically reconnects</li>
</ul></section>
<section><h1>The Format</h1><pre><code>
Content-Type: text/event-stream
data: message 1 line 1
data: message 1 line 2
data: message 2 line 1
id: 1
data: ids are optional
retry: 10000
data: you can also specify a reconnect time (default is 3 seconds).
</code></pre></section>
<section><h1>The EventSource Object</h1>
<pre><code contenteditable>
var source = new EventSource("/events");
source.addEventListener('message',function(event) {
var json = null;
try {
json = JSON.parse(event.data);
} catch(e) { }
if(json != null) {
//Really simple data binding to jQuery events
for(var i in json) $(document).trigger('data:'+i,json[i]);
}
});
</code></pre></section>
<section><h1>Basic Server</h1>
<pre><code contenteditable>
function eventStream(req,res,cb) {
req.socket.setTimeout(Infinity);
req.writeHead(200,{
'Content-Type':'text/event-stream',
'Cache-Control':'no-cache',
'Connection':'keepalive'
});
cb(res,function(obj) { res.write("data:"+JSON.stringify(obj)+"\n\n"); });
}
</code></pre>
</section>
</section>
<!-- Processing Data -->
<section>
<section><h1>Where Does Data Come From?</h1></section>
<section><h1>Storm!</h1><ul>
<li>"Hadoop for Streaming Data"</li>
<li>Java-based</li>
<li>Manages distributed stream computations.</li>
</ul></section>
<section><h1>Basic Concepts</h1>
<ul>
<li><strong>Bolts</strong> are units of processing. Take input stream(s), produce output stream(s).</li>
<li><strong>Spouts</strong> are units of input. Bring data in from an external source.</li>
<li><strong>Tuples</strong> are arrays of objects that Spouts and Bolts use to communicate.</li>
<li><strong>Topologies</strong> are arrangements of Spouts and Storms.</li>
</ul></section>
<section><h1>Storm Components</h1>
<ul>
<li><strong>Supervisors</strong> manage computation on a node. Like TaskTracker.</li>
<li><strong>Nimbus</strong> manages a collection of supervisors and their topologies</li>
</ul>
</section>
<section><h1>Controlling Topologies</h1>
<ul>
<li>storm jar topology.jar my.topology.TopologyMain</li>
<li>storm kill topologies-have-a-name</li>
</ul>
</section>
<section><h1>Simple Word Count</h1>
<pre><code contenteditable>
public void execute(Tuple input) {
try {
long line = input.getLongByField("line");
String speaker = input.getStringByField("speaker");
String text = input.getStringByField("text");
for(String word : line.toLowerCase().split("\\s+")) {
redis.zadd("Word:"+word,line,""+line);
redis.sadd("Words",word);
redis.sadd("Speakers",speaker);
synchronized(updated) { updated.add(word); }
}
} catch(Exception e) {
collector.reportError(e.getMessage());
} finally {
collector.ack(input);
}
}
</code></pre>
</section>
<section><h1>Background Update</h1>
<pre><code contenteditable>
(new Timer("Updater"))
.schedule(new TimerTask() {
public void run() {
HashSet todo;
synchronized(update) {
todo=updated();updated = new HashSet();
}
for(String word : todo) {
redis.zadd("WordCount",
conn.zcard("Word:"+word), word);
}
if(todo.size() > 0)
redis.publish("WordCount",
""+todo.size());
}
},1000,1000);
</code></pre>
</section>
<section><h1>Topology Definitions</h1>
<pre><code contenteditable>
TopologyBuilder builder = new TopologyBuilder();
builder.setSpout("spout", (new SimpleKafkaSpout()).topic("hamlet"));
builder.setBolt("event", new EventParserBolt())
.shuffleGrouping("spout");
builder.setBolt("words", (new WordCountBolt()).redis("localhost"))
.shuffleGrouping("event");
Map conf = new HashMap();
conf.put(Config.TOPOLOGY_WORKERS, 1);
conf.put(Config.TOPOLOGY_DEBUG, "true");
</code></pre>
</section>
</section>
<section>
<section><h1>Moving Data Around</h1></section>
<section><h1>Kafka</h1><ul>
<li>Developed by LinkedIn</li>
<li>Similar to <strong>Flume</strong>, <strong>Scribe</strong>, <strong>Kestrel</strong>, etc</li>
<li>Distributed persistent log motion (not a queue system)</li>
<li>Data agnostic</li>
<li>Coordinates via ZooKeeper</li>
<li>"Plays well with others"</li>
</ul></section>
<section><h1>Basic Components</h1><ul>
<li><strong>Topics</strong> are "channels" of related data.</li>
<li><strong>Brokers</strong> store data from topics fixed time periods.</li>
<li><strong>Consumers</strong> communicate with brokers to read data from topics.</li>
<li><strong>Producers</strong> send data to brokers to be stored in a topic.</li>
</ul></section>
<section><h1>Usage</h1><ul>
<li>Topics are created and destroyed on the fly</li>
<li>Supports Consumer Groups for distributed processing.</li>
<li>Native compression available through gzip or snappy.</li>
<li>Cluster-to-cluster replication out of the box.</li>
<li>Can monitor clients by watching ZooKeeper directly.</li>
</ul>
</section>
<section><h1>That's pretty much it...</h1><ul>
<li>Monitor the disk carefully, it will happily fill it.</li>
<li>Version 0.8 adds internal replication and lots of other goodies.</li>
</ul></section>
</section>
<section>
<section><h1>Putting it all together</h1></section>
<section><h1>node.js Event Producer</h1></section>
<section><pre><code>
var fs = require('fs')
, kafka = require('kafka');
fs.readFile("hamlet.txt",{encoding:"UTF-8"},function(err,data) {
var lines = (""+data).split("\n");
var producer = new kafka.Producer({topic:'hamlet'})
.connect(function() {
var i = 0;
setInterval(function() {
var line = lines[Math.floor(
lines.length*Math.random())];
var p = line.split("\t");
producer.send(""+i+"\t"+p[1]+"\t"+p[2]);
i++;
},500);
});
});
</code></pre></section>
<section><h1>Simple Storm Kafka Spout</h1></section>
<section><h1>Initialization</h1>
<pre><code>
transient SpoutOutputCollector collector;
transient SimpleConsumer consumer;
transient long offset;
public void open(Map conf, TopologyContext context,
SpoutOutputCollector collector) {
this.collector = collector;
consumer = new SimpleConsumer(host,port,timeout,buffer);
offset = 0;
}
public void declareOutputFields(OutputFieldsDeclarer declarer) {
declarer.declare(new Fields("message"));
}
</code></pre>
</section>
<section><h1>Reading from Kafka</h1>
<pre><code>
public void nextTuple() {
FetchRequest req = new FetchRequest(topic,0,offset,1024*1024);
ByteBufferMessageSet messages = consumer.fetch(req);
Iterator<MessageAndOffset> iter = messages.iterator();
while(iter.hasNext()) {
MessageAndOffset msg = iter.next();
collector.emit(new Values(
Utils.toString(msg.message().payload(),
"UTF-8")));
offset = msg.offset();
}
//... Sleep handling
}
</code></pre>
</section>
<section><h1>Parse Messages</h1>
<pre><code>
transient OutputCollector collector;
public void prepare(Map stormConf, TopologyContext context,
OutputCollector collector) {
this.collector = collector;
}
public void declareOutputFields(OutputFieldsDeclarer declarer) {
declarer.declare(new Fields("line","speaker","text"));
}
public void execute(Tuple input) {
String[] parts = input.getStringByField("message")
.split("\t");
Integer line = Integer.parseInt(parts[0]);
String speaker = parts[1];
String text = parts[2];
collector.emit(new Values(line,speaker,text));
}
</code></pre>
</section>
<!-- Demo Visualization -->
<section>
<div class="gridster" style="left: -50%;">
<ul>
<li data-row="1" data-col="1" data-sizex="1" data-sizey="1">
<p>LINES</p>
<p class="statistic" id="processed">0</p>
</li>
<li data-row="2" data-col="1" data-sizex="1" data-sizey="1"></li>
<li data-row="3" data-col="1" data-sizex="1" data-sizey="1"></li>
<li data-row="1" data-col="2" data-sizex="2" data-sizey="1"></li>
<li data-row="2" data-col="2" data-sizex="2" data-sizey="2">
<p>POPULARITY</p>
<div id="donut" style="width:250px;height:250px;margin: 0 auto;"></div>
</li>
<li data-row="1" data-col="4" data-sizex="1" data-sizey="1">
<p>WORDS</p>
<p class="statistic" id="words">0</p>
</li>
<li data-row="2" data-col="4" data-sizex="2" data-sizey="1"></li>
<li data-row="3" data-col="4" data-sizex="1" data-sizey="1"></li>
<li data-row="1" data-col="5" data-sizex="1" data-sizey="1"></li>
<li data-row="3" data-col="5" data-sizex="1" data-sizey="1">
<p style="font-size: 80%">SPEAKERS</p>
<p class="statistic" id="speakers">0</p>
</li>
<li data-row="1" data-col="6" data-sizex="1" data-sizey="1"></li>
<li data-row="2" data-col="6" data-sizex="1" data-sizey="2"></li>
</ul>
</div>
</section>
</section>
<section><h1>Thanks!</h1>
<a href="http://github.com/byronellis/realtime-bi-presentation">github.com/byronellis/realtime-bi-presentation</a>
</section>
</div>
</div>
<script src="lib/js/head.min.js"></script>
<script src="js/reveal.min.js"></script>
<script src="js/jquery.js"></script>
<script src="js/gridster.js"></script>
<script src="js/d3.v3.min.js"></script>
<script src="js/dc.min.js"></script>
<script src="js/simple.js"></script>
<script>
$(function() {
// Full list of configuration options available here:
// https://github.com/hakimel/reveal.js#configuration
Reveal.initialize({
controls: false,
progress: false,
history: true,
center: true,
theme: Reveal.getQueryHash().theme, // available themes are in /css/theme
transition: Reveal.getQueryHash().transition || 'default', // default/cube/page/concave/zoom/linear/fade/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; } }
// { src: 'plugin/search/search.js', async: true, condition: function() { return !!document.body.classList; } }
// { src: 'plugin/remotes/remotes.js', async: true, condition: function() { return !!document.body.classList; } }
]
});
$(".gridster ul").gridster({
widget_margins: [10, 10],
widget_base_dimensions: [140, 140]
});
});
</script>
<script src="js/examples.js"></script>
</body>
</html>