-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
314 lines (255 loc) · 10.5 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
<!DOCTYPE html>
<html>
<head>
<title>Project-ddp2014</title>
<meta charset="utf-8">
<meta name="description" content="Project-ddp2014">
<meta name="author" content="Alok Juneja">
<meta name="generator" content="slidify" />
<meta name="apple-mobile-web-app-capable" content="yes">
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<link rel="stylesheet" href="libraries/frameworks/io2012/css/default.css" media="all" >
<link rel="stylesheet" href="libraries/frameworks/io2012/css/phone.css"
media="only screen and (max-device-width: 480px)" >
<link rel="stylesheet" href="libraries/frameworks/io2012/css/slidify.css" >
<link rel="stylesheet" href="libraries/highlighters/highlight.js/css/tomorrow.css" />
<base target="_blank"> <!-- This amazingness opens all links in a new tab. --> <link rel=stylesheet href="libraries/widgets/bootstrap/css/bootstrap.css"></link>
<link rel=stylesheet href="./assets/css/codefont.css"></link>
<link rel=stylesheet href="./assets/css/custom-alok.css"></link>
<link rel=stylesheet href="./assets/css/ribbons.css"></link>
<link rel=stylesheet href="./assets/css/scroll.css"></link>
<link rel=stylesheet href="./assets/css/txtfont.css"></link>
<!-- Grab CDN jQuery, fall back to local if offline -->
<script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.7.min.js"></script>
<script>window.jQuery || document.write('<script src="libraries/widgets/quiz/js/jquery.js"><\/script>')</script>
<script data-main="libraries/frameworks/io2012/js/slides"
src="libraries/frameworks/io2012/js/require-1.0.8.min.js">
</script>
</head>
<body style="opacity: 0">
<slides class="layout-widescreen">
<!-- LOGO SLIDE -->
<slide class="title-slide segue nobackground">
<hgroup class="auto-fadein">
<h1>Project-ddp2014</h1>
<h2>Project presentation of Unit conversion dynamic UI</h2>
<p>Alok Juneja<br/>Presentation made on Fri Jun 20 02:26:28 2014</p>
</hgroup>
<article></article>
</slide>
<!-- SLIDES -->
<slide class="" id="slide-1" style="background:;">
<article data-timings="">
<!-- Limit image width and height -->
<style type='text/css'>
img {
max-height: 500px;
max-width: 960px;
}
</style>
<h2>Why Unit conversion?</h2>
<p>A system of measurement is a set of units of measurement which we use in our daily life to quantify the things that we use/consume.</p>
<p>There are several systems of measurements used in different countries and in different fields of science depending on the requirements. To name few..</p>
<ol>
<li>Metric system</li>
<li>Imperial and US customary units</li>
<li>Natural units</li>
<li>Non-standard units</li>
<li>Units of currency</li>
</ol>
</article>
<!-- Presenter Notes -->
</slide>
<slide class="txtfont" id="id" style="background:;">
<hgroup>
<h2>Temperature / Length / Volume Conversions</h2>
</hgroup>
<article data-timings="">
<p>As a demonstration, a simple unit converter is implemented in shiny. Following conversions have been used.</p>
<p>Temperature conversion</p>
<p>\(^{\circ}\mathrm{C} = (^{\circ}\mathrm{F} - 32) * 5/9\)</p>
<p>\(^{\circ}\mathrm{F} = (^{\circ}\mathrm{C} * 9/5) + 32\) </p>
<p>\(K = ^{\circ}\mathrm{C} + 273.15\) </p>
<p>Length conversion</p>
<p>\(Mile = Km * 0.62137\)</p>
<p>\(Yard = Km * 1093.6\)</p>
<p>Volume conversion</p>
<p>\(mL = US oz * 29.5735\)</p>
</article>
<!-- Presenter Notes -->
</slide>
<slide class="codefont txtfont" id="id" style="background:;">
<hgroup>
<h2>Examples used in daily life</h2>
</hgroup>
<article data-timings="">
<p>We do conversions from one unit to another in our daily life. Few examples..</p>
<pre><code class="r">#Q1. What is the human body temperature (37 degree celsius) in degree Fahrenheit?
bd_cel=37
(bd_cel*9/5)+32
</code></pre>
<pre><code>## [1] 98.6
</code></pre>
<pre><code class="r">#Q2. How many meters is equivalent to 1 mile in US?
dis_mile=1
dis_mile*1609.344
</code></pre>
<pre><code>## [1] 1609
</code></pre>
<pre><code class="r">#Q3. How much ml in 12.004 US oz coke can in US?
can_oz=12.004
can_oz * 29.5735
</code></pre>
<pre><code>## [1] 355
</code></pre>
</article>
<!-- Presenter Notes -->
</slide>
<slide class="span12" id="id" style="background:;">
<hgroup>
<h2>Shiny application screen-shots</h2>
</hgroup>
<article data-timings="">
<div id="id-carousel" class="carousel slide span12" data-interval="false">
<!-- Indicators -->
<ol class="carousel-indicators">
<li data-target="#id-carousel" data-slide-to="1" class="active"></li>
<li data-target="#id-carousel" data-slide-to="2" class=""></li>
<li data-target="#id-carousel" data-slide-to="3" class=""></li>
</ol>
<!-- Wrapper for slides -->
<div class="carousel-inner">
<div class="item active">
<img src="assets/img/convert-temperature.png" alt="">
<div class="carousel-caption"><p>Convert Temperature</p>
</div>
</div>
<div class="item ">
<img src="assets/img/convert-length.png" alt="">
<div class="carousel-caption"><p>Convert Length</p>
</div>
</div>
<div class="item ">
<img src="assets/img/convert-volume.png" alt="">
<div class="carousel-caption"><p>Convert Volume</p>
</div>
</div>
</div>
<!-- Controls -->
<a class="left carousel-control" href="#id-carousel" data-slide="prev">‹</a>
<a class="right carousel-control" href="#id-carousel" data-slide="next">›</a>
</div>
</article>
<!-- Presenter Notes -->
</slide>
<slide class="class" id="id" style="background:;">
<hgroup>
<h2>Application and shiny source code</h2>
</hgroup>
<article data-timings="">
<p>Shiny source code:</p>
<p><a href="https://gist.github.com/junejaalok/9dfe302679c032a80c47">https://gist.github.com/junejaalok/9dfe302679c032a80c47</a></p>
<p>Application on shinapps.io</p>
<p><a href="https://junejaalok.shinyapps.io/project-ddp2014/">https://junejaalok.shinyapps.io/project-ddp2014/</a></p>
<p>In case of the presence of the DESCRIPTION, README.md, server.R and ui.R do not show you the full GUI on web browser, try to resize your web browser otherwise please use the following link... </p>
<p><a href="https://junejaalok.shinyapps.io/project-ddp2014/?showcase=0">https://junejaalok.shinyapps.io/project-ddp2014/?showcase=0</a></p>
</article>
<!-- Presenter Notes -->
</slide>
<slide class="txtfont" id="id" style="background:;">
<hgroup>
<h2>References</h2>
</hgroup>
<article data-timings="">
<p>Following web-pages helped me to get better insight of making shiny application and slidify presentation</p>
<p><a href="http://slidify.org/samples/intro/index.html#1">http://slidify.org/samples/intro/index.html#1</a></p>
<p><a href="http://stackoverflow.com/questions/23747704/font-size-and-line-spacing-r-slidify">http://stackoverflow.com/questions/23747704/font-size-and-line-spacing-r-slidify</a></p>
<p><a href="https://gist.github.com/wch/9609200">https://gist.github.com/wch/9609200</a></p>
<p><a href="https://gist.github.com/wch/9689441">https://gist.github.com/wch/9689441</a></p>
<p><a href="https://github.com/ramnathv/slidify/issues/158">https://github.com/ramnathv/slidify/issues/158</a></p>
<p><a href="https://gist.github.com/jeromyanglim/2716336">https://gist.github.com/jeromyanglim/2716336</a></p>
<p><a href="https://github.com/rstudio/shinyapps/blob/master/guide/guide.md">https://github.com/rstudio/shinyapps/blob/master/guide/guide.md</a></p>
<p><a href="https://github.com/ramnathv/slidify/issues/264">https://github.com/ramnathv/slidify/issues/264</a></p>
<p><a href="https://github.com/ramnathv/carouselLayout">https://github.com/ramnathv/carouselLayout</a></p>
<p><a href="https://github.com/ramnathv/carouselLayout/issues/1">https://github.com/ramnathv/carouselLayout/issues/1</a></p>
<p><a href="http://stackoverflow.com/questions/16904054/slidify-how-to-position-an-image">http://stackoverflow.com/questions/16904054/slidify-how-to-position-an-image</a></p>
</article>
<!-- Presenter Notes -->
</slide>
<slide class="backdrop"></slide>
</slides>
<div class="pagination pagination-small" id='io2012-ptoc' style="display:none;">
<ul>
<li>
<a href="#" target="_self" rel='tooltip'
data-slide=1 title=''>
1
</a>
</li>
<li>
<a href="#" target="_self" rel='tooltip'
data-slide=2 title='Temperature / Length / Volume Conversions'>
2
</a>
</li>
<li>
<a href="#" target="_self" rel='tooltip'
data-slide=3 title='Examples used in daily life'>
3
</a>
</li>
<li>
<a href="#" target="_self" rel='tooltip'
data-slide=4 title='Shiny application screen-shots'>
4
</a>
</li>
<li>
<a href="#" target="_self" rel='tooltip'
data-slide=5 title='Application and shiny source code'>
5
</a>
</li>
<li>
<a href="#" target="_self" rel='tooltip'
data-slide=6 title='References'>
6
</a>
</li>
</ul>
</div> <!--[if IE]>
<script
src="http://ajax.googleapis.com/ajax/libs/chrome-frame/1/CFInstall.min.js">
</script>
<script>CFInstall.check({mode: 'overlay'});</script>
<![endif]-->
</body>
<!-- Load Javascripts for Widgets -->
<script src="libraries/widgets/bootstrap/js/bootstrap.min.js"></script>
<script src="libraries/widgets/bootstrap/js/bootbox.min.js"></script>
<script src="./assets/js/impress.js"></script>
<script>
$(function (){
$("#example").popover();
$("[rel='tooltip']").tooltip();
});
</script>
<!-- MathJax: Fall back to local if CDN offline but local image fonts are not supported (saves >100MB) -->
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {
inlineMath: [['$','$'], ['\\(','\\)']],
processEscapes: true
}
});
</script>
<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/2.0-latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
<!-- <script src="https://c328740.ssl.cf1.rackcdn.com/mathjax/2.0-latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script> -->
<script>window.MathJax || document.write('<script type="text/x-mathjax-config">MathJax.Hub.Config({"HTML-CSS":{imageFont:null}});<\/script><script src="libraries/widgets/mathjax/MathJax.js?config=TeX-AMS-MML_HTMLorMML"><\/script>')
</script>
<!-- LOAD HIGHLIGHTER JS FILES -->
<script src="libraries/highlighters/highlight.js/highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
<!-- DONE LOADING HIGHLIGHTER JS FILES -->
</html>