-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
62 lines (50 loc) · 1.88 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Purely Functional Queues</title>
<link rel="stylesheet" href="deps/pure.css" />
<link rel="stylesheet" href="style.css" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
</head>
<body>
<header>
Visualization of purely functional queues for a talk (<a href="https://www.youtube.com/watch?v=u14K7z365mY">video</a>, <a href="http://timbaumann.info/presentations/bankers-queue/bankers-queue.pdf">slides</a>) at <a href="http://curry-club-augsburg.de/">Curry Club Augsburg</a>.
View source <a href="https://github.com/timjb/pfds-visualizations">on Github</a>.
</header>
<div class="main">
<section>
<h1>
Banker's Queue
</h1>
<div id="bqueue-vis"></div>
</section>
<section>
<h1>
Amortized Queue
</h1>
<div id="aqueue-vis"></div>
</section>
<section>
<h1>
Real-Time-Queue
</h1>
<div id="rtqueue-vis"></div>
</section>
</div>
<script>
/* https://goo.gl/km1j9V */
var loadJsFileSet=function(){function h(c,d){var b=document.createElement("script");b.src=c;b.async=!0;b.onload=d;var a=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(b,a)}var c={};return function(e,d){var b=!0;Object.keys(e).forEach(function(a){if(2!==c[a]&&(b=!1,1!==c[a])){for(var g=e[a],f=0;f<g.length;f++)if(2!==c[g[f]])return;c[a]=1;h(a,function(){c[a]=2;console.log("loaded `"+a+"`");loadJsFileSet(e,d)})}});b&&d()}}();
var productionFileSet = {
'js-build/app.min.js': []
};
var developmentFileSet = {
'deps/react.js': [],
'deps/react-dom.js': ['deps/react.js'],
'js-build/queue-animations.js': ['deps/react.js', 'deps/react-dom.js']
}
var environment = (location.host === 'localhost:8000') ? 'development' : 'production';
loadJsFileSet(environment === 'development' ? developmentFileSet : productionFileSet, function () {});
</script>
</body>
</html>