forked from pbassiner/coursera_progfun-004_materials
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathview (1).html
472 lines (372 loc) · 29 KB
/
view (1).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
<!DOCTYPE html><html xmlns:fb="http://ogp.me/ns/fb#" itemtype="http://schema.org"><head><meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=IE7"><meta name="fragment" content="!"><meta name="robots" content="NOODP"><meta charset="utf-8"><meta property="og:title" content="Coursera"><meta property="og:type" content="website"><meta property="og:image" content="http://s3.amazonaws.com/coursera/media/Coursera_Computer_Narrow.png"><meta property="og:url" content="https://www.coursera.org/"><meta property="og:site_name" content="Coursera"><meta property="og:locale" content="en_US"><meta property="og:description" content="Take free online classes from 80+ top universities and organizations. Coursera is a social entrepreneurship company partnering with Stanford University, Yale University, Princeton University and others around the world to offer courses online for anyone to take, for free. We believe in connecting people to a great education so that anyone around the world can learn without limits."><meta property="fb:admins" content="727836538,4807654"><meta property="fb:app_id" content="274998519252278"><meta name="twitter:site" content="Coursera"><meta name="twitter:app:name:iphone" content="Coursera"><meta name="twitter:app:name:ipad" content="Coursera"><meta name="twitter:app:name:googleplay" content="Coursera"><meta name="twitter:app:id:iphone" content="id736535961"><meta name="twitter:app:id:ipad" content="id736535961"><meta name="twitter:app:id:googleplay" content="org.coursera.android"><meta name="description" content="Take free online classes from 80+ top universities and organizations. Coursera is a social entrepreneurship company partnering with Stanford University, Yale University, Princeton University and others around the world to offer courses online for anyone to take, for free. We believe in connecting people to a great education so that anyone around the world can learn without limits."><meta name="image" content="http://s3.amazonaws.com/coursera/media/Coursera_Computer_Narrow.png"><meta name="apple-itunes-app" content="app-id=736535961"><title>Wiki - Tools Setup | Coursera</title> <link href='https://dw0ugk4msqulk.cloudfront.net/61a7c1335d196f1295e3341330ed120d255fe89d/css/spark.main.css' rel='stylesheet' type='text/css' >
<link href='https://www.coursera.org/maestro/api/course/972351/course.css' rel='stylesheet' type='text/css' >
<link href='https://spark-public.s3.amazonaws.com/progfun/static/images/favicon.ico' rel='icon' >
</head><body><div id="fb-root"></div><div id="spark-help" class="hide"><div data-helpwidget data-helpwidget-link-help="http://support.coursera.org" data-helpwidget-link-discuss="http://class.coursera.org/mooc/" data-helpwidget-link-filter="coursera-admin-helpwidget-link" tabindex="0" role="button" aria-haspopup="true" aria-expanded="false" class="helpwidget-tab">Admin Help</div></div><a href="https://learner.coursera.help/hc/requests/new" target="_blank"><div style="z-index: 1" data-networkprioritysupportwidget role="button" class="helpwidget-tab hide">Premium Support</div></a><div id="spark" class="hide">
<h2 class="course-page-header">
Tools Setup <a class="coursera-reporter-link" title="Click here if you're experiencing technical problems or found errors in the course materials." target="_blank" href="https://class.coursera.org/progfun-004/help/pages?url=https%3A%2F%2Fclass.coursera.org%2Fprogfun-004%2Fwiki%2Fview%3Fpage%3DToolsSetup">
Help Center
</a>
<a data-coursera-admin-helpwidget-link rel="help" href="https://class.coursera.org/mooc/help/pages/setup" title="Course Page Setup" style="display:none;">Learn more.</a>
</h2>
<style type="text/css">
.bigwarn {
color: #D00000;
font-weight: bold;
font-size: 1.3em;
font-height: 100%;
}
</style>
<p>In order to work on the programming assignments, you need to have the following tools installed on your machine:</p>
<ul>
<li>JDK, the Java Development Kit, version 1.6 or 1.7</li>
<li>Sbt, a build tool for Scala, version 0.12.4</li>
<li>The Scala IDE for Eclipse (or another IDE of your choice)</li>
</ul>
<p>Please follow the instructions on this page carefully. You can also watch one of the following videos that explain how to set up your machine:</p>
<table><tbody><tr>
<td style="border:0"><a href="https://class.coursera.org/progfun-004/lecture/23" class="btn">Setup Video for Linux</a></td>
<td style="border:0"><a href="https://class.coursera.org/progfun-004/lecture/25" class="btn" title="Link: ../lecture/25">Setup Video for Mac OS X</a></td>
<td style="border:0"><a href="https://class.coursera.org/progfun-004/lecture/21" class="btn">Setup Video for Windows</a></td>
</tr></tbody></table>
<h2 id="installing_the_jdk">Installing the JDK</h2>
<h3 id="linux">Linux</h3>
<ul>
<li>
<p><strong>Ubuntu, Debian</strong>: To install the JDK using apt-get, execute the following command in a terminal <code>sudo apt-get install openjdk-7-jdk</code></p>
</li>
<li>
<p><strong>Fedora, Oracle, Red Had</strong>: To install the JDK using yum, execute the following command in a terminal <code>su -c "yum install java-1.7.0-openjdk-devel"</code></p>
</li>
<li>
<p><strong>Manual Installation</strong>: To install the JDK manually on a Linux system, follow these steps:</p>
<ol>
<li>Download the <code>.tar.gz</code> archive from <a href="http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html">http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html</a>
</li>
<li>Unpack the downloaded archive to a directory of your choice</li>
<li>Add the <code>bin/</code> directory of the extracted JDK to the <code>PATH</code> environment variable. Open the file <code>~/.bashrc</code> in an editor (create it if it doesn’t exist) and add the following line <code>export PATH=/PATH/TO/YOUR/jdk1.7.0-VERSION/bin:$PATH</code>
</li>
</ol>
</li>
</ul>
<p><strong>Verify your setup</strong>: Open a new terminal (to apply the changed <code>.bashrc</code> in case you did the manual installation) and type <code>java -version</code>. If you have problems installing the JDK, ask for help on the forums.</p>
<h3 id="mac_os_x">Mac OS X</h3>
<p>Mac OS X either comes with a pre-installed JDK, or installs it automatically.</p>
<p>To verify your JDK installation, open the <code>Terminal</code> application in <code>/Applications/Utilities/</code> and type <code>java -version</code>. If the JDK is not yet installed, the system will ask you if you would like to download and install it.</p>
<h3 id="windows">Windows</h3>
<ul>
<li>Download the JDK installer for Windows from <a href="http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html">http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html</a>
</li>
<li>Run the installer</li>
<li>Add the <code>bin\</code> directory of the installed JDK to the <code>PATH</code> environment variable, as described here: <a href="http://www.java.com/en/download/help/path.xml" title="Link: http://www.java.com/en/download/help/path.xml">http://www.java.com/en/download/help/path.xml</a>
</li>
</ul>
<p>To verify the JDK installation, open the Command Prompt and type <code>java -version</code>. If you have problems installing the JDK, ask for help on the forums.</p>
<h2 id="installing_sbt">Installing sbt</h2>
<h3 id="linux">Linux</h3>
<ul>
<li>Download sbt from here: <a href="http://scalasbt.artifactoryonline.com/scalasbt/sbt-native-packages/org/scala-sbt/sbt/0.12.4/sbt.tgz" title="Link: http://scalasbt.artifactoryonline.com/scalasbt/sbt-native-packages/org/scala-sbt/sbt/0.12.2/sbt.tgz">http://scalasbt.artifactoryonline.com/scalasbt/sbt-native-packages/org/scala-sbt/sbt/0.12.4/sbt.tgz</a>
</li>
<li>Unpack the archive to a directory of your choice</li>
<li>Add the <code>bin/</code> directory to the <code>PATH</code> environment variable. Open the file <code>~/.bashrc</code> in an editor (create it if it doesn’t exist) and add the following line <code>export PATH=/PATH/TO/YOUR/sbt/bin:$PATH</code>
</li>
</ul>
<p>Verify that sbt is installed correctly: Open a new terminal (to apply the changed <code>.bashrc</code>) and type <code>sbt -h</code>, you should see a help message from sbt. If you have problems installing sbt, ask for help on the forums.</p>
<h3 id="mac_os_x">Mac OS X</h3>
<p>If you use the <a href="http://mxcl.github.com/homebrew/">homebrew</a> package manager, simply type <code>brew update</code> and then <code>brew install sbt</code> in a Terminal prompt.</p>
<p>Otherwise, install sbt by following these steps:</p>
<ul>
<li>Download sbt from here: <a href="http://scalasbt.artifactoryonline.com/scalasbt/sbt-native-packages/org/scala-sbt/sbt/0.12.4/sbt.tgz" title="Link: http://scalasbt.artifactoryonline.com/scalasbt/sbt-native-packages/org/scala-sbt/sbt/0.12.2/sbt.tgz">http://scalasbt.artifactoryonline.com/scalasbt/sbt-native-packages/org/scala-sbt/sbt/0.12.4/sbt.tgz</a>
</li>
<li>Unpack the archive to a directory of your choice</li>
<li>Add the <code>bin/</code> directory to the <code>PATH</code> environment variable. Open the file <code>~/.bash_profile</code> in an editor (create it if it doesn’t exist) and add the following line <code>export PATH=/PATH/TO/YOUR/sbt/bin:$PATH</code>
</li>
</ul>
<p>Verify that sbt is installed correctly: Open a new terminal (to apply the changed <code>.bash_profile</code>) using the <code>Terminal</code> application in <code>/Applications/Utilities/</code> and type <code>sbt -h</code>, you should see a help message from sbt. If you have problems installing sbt, ask for help on the forums.</p>
<h3 id="windows">Windows</h3>
<ul>
<li>Download the sbt installer from here: <a href="http://scalasbt.artifactoryonline.com/scalasbt/sbt-native-packages/org/scala-sbt/sbt/0.12.4/sbt.msi" title="Link: http://scalasbt.artifactoryonline.com/scalasbt/sbt-native-packages/org/scala-sbt/sbt/0.12.4/sbt.msi">http://scalasbt.artifactoryonline.com/scalasbt/sbt-native-packages/org/scala-sbt/sbt/0.12.4/sbt.msi</a>
</li>
<li>Run the installer</li>
</ul>
<p>Verify that sbt is installed correctly: open the Command Prompt and type <code>sbt sbt-version</code>, you should see the version number of sbt (the first time you run it, sbt will download libraries from the internet). If you have problems installing sbt, ask for help on the forums.</p>
<h2 id="installing_the_scala_ide_for_eclipse_with_the_scala_worksheet_linux__mac_os_x__windows">Installing the Scala IDE for Eclipse with the Scala Worksheet (Linux / Mac OS X / Windows)</h2>
<p>You can download the Scala IDE for eclipse with the Scala Worksheet pre-installed from the following URL:</p>
<p><a href="http://www.typesafe.com/stack/downloads/scala-ide" title="Link: http://www.typesafe.com/stack/downloads/scala-ide">http://typesafe.com/stack/scala_ide_download</a> (<strong>Make sure to download the IDE for Scala version 2.10.2!</strong>)</p>
<p>After downloading the archive for your operating system, simply unpack it and start eclipse. Eclipse requires you to select a workspace on startup. We recommend you create one workspace directory for this class and use it for all assignments.</p>
<h3 id="hello_world_scala_ide_and_the_scala_worksheet">Hello World: Scala IDE and the Scala Worksheet</h3>
<p>To familiarize yourself with the Scala IDE, create a small “Hello World” project in eclipse:</p>
<ol>
<li>Go to “File” - “New” - “Other…” and select “Scala Project” from the folder “Scala Wizards”</li>
<li>Chose a project name and select “Finish” <img src="https://raw.github.com/lrytz/progfun-wiki/gh-pages/images/eclipse-new-project.png" title="Image: https://raw.github.com/lrytz/progfun-wiki/gh-pages/images/eclipse-new-project.png">
</li>
<li>Select “File” - “New” - “Scala Object” to create a new object</li>
<li>Enter <code>Hello</code> as the name for the object and put <code>greeter</code> as the package name above <img src="https://raw.github.com/lrytz/progfun-wiki/gh-pages/images/eclipse-new-object.png" title="Image: https://raw.github.com/lrytz/progfun-wiki/gh-pages/images/eclipse-new-object.png">
</li>
<li>Change the source code to the one given below [1]</li>
<li>Save the file and select “Run” - “Run” from the menu. Chose to run as “Scala Application” <img src="https://raw.github.com/lrytz/progfun-wiki/gh-pages/images/eclipse-run-as.png" title="Image: https://raw.github.com/lrytz/progfun-wiki/gh-pages/images/eclipse-run-as.png">
</li>
</ol>
<p>You should see a the hello world output in the Eclipse console.</p>
<p>[1] Source code</p>
<pre><code>package greeter
object Hello extends App {
println("Hello, World!")
}</code></pre>
<h3 id="creating_a_scala_worksheet">Creating a Scala Worksheet</h3>
<p>Creating a Scala Worksheet is very easy:</p>
<ol>
<li>Right-click on the package <code>greeter</code> in the hello world project that you just created</li>
<li>Select “New” - “Scala Worksheet”</li>
<li>Choose a name for your worksheet (different than <code>Hello</code> or the name you chose for the “Scala Object” before)</li>
</ol>
<p>Now you can type some Scala code into the worksheet. Every time you save the file, the content of the worksheet will be evaluated. Copy the following code into the object of your worksheet:</p>
<pre><code> val x = 1 //> x : Int = 1
def increase(i: Int) = i + 1 //> increase: (i: Int)Int
increase(x) //> res0: Int = 2</code></pre>
<h2 id="installing_the_scala_ide_for_eclipse_with_the_scala_worksheet_linux__mac_os_x__windows" style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; color: rgb(85, 85, 85); white-space: normal;">IntelliJ (optional alternative IDE)</h2>
<p style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; white-space: normal;">If you want to use the IntelliJ IDE instead of Eclipse, some guidance is provided through <a href="https://class.coursera.org/progfun-004/wiki/IntelliJ_IDEA" target="_blank">the IntelliJ tutorial page</a> and <a href="https://class.coursera.org/progfun-004/lecture/129" target="_blank">the IntelliJ getting started video</a>.</p>
<hr>
<div>
<div style="float:left">
</div>
<div style="float:right;text-align:right;font-size:10px;">
Created Fri 10 Aug 2012 6:23 PM CEST<br>
Last Modified Thu 24 Apr 2014 12:10 PM CEST </div>
</div>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
config: ["MMLorHTML.js"],
styleSheets: [],
styles: {},
jax: ["input/TeX"],
extensions: ["tex2jax.js"],
preJax: null,
postJax: null,
preRemoveClass: "MathJax_Preview",
showProcessingMessages: true,
messageStyle: "none",
displayAlign: "center",
displayIndent: "0em",
delayStartupUntil: "none",
skipStartupTypeset: false,
elements: [],
tex2jax: {
inlineMath: [
['$$','$$'], // uncomment this for standard TeX math delimiters
['\\(','\\)']
],
displayMath: [
['\\[','\\]']
],
skipTags: ["script","noscript","style","textarea","pre","code"],
ignoreClass: "tex2jax_ignore",
processClass: "tex2jax_process",
processEscapes: false,
processEnvironments: true,
preview: "TeX"
},
mml2jax: {
preview: "alttext"
},
jsMath2jax: {
preview: "TeX"
},
TeX: {
TagSide: "right",
TagIndent: ".8em",
MultLineWidth: "85%",
Macros: {},
extensions: ["AMSmath.js", "AMSsymbols.js"]
},
//============================================================================
//
// These parameters control the MathML inupt jax.
//
MathML: {
//
// This specifies whether to use TeX spacing or MathML spacing when the
// HTML-CSS output jax is used.
//
useMathMLspacing: false
},
//============================================================================
//
// These parameters control the HTML-CSS output jax.
//
"HTML-CSS": {
scale: 100,
availableFonts: ["STIX","TeX"],
preferredFont: "TeX",
webFont: "TeX",
imageFont: "TeX",
undefinedFamily: "STIXGeneral,'Arial Unicode MS',serif",
showMathMenu: true,
styles: {},
tooltip: {
delayPost: 600, // milliseconds delay before tooltip is posted after mouseover
delayClear: 600, // milliseconds delay before tooltip is cleared after mouseout
offsetX: 10, offsetY: 5 // pixels to offset tooltip from mouse position
}
},
//============================================================================
//
// These parameters control the NativeMML output jax.
//
NativeMML: {
scale: 100,
showMathMenu: true,
showMathMenuMSIE: true,
styles: {}
},
MathMenu: {
delay: 400,
helpURL: "http://www.mathjax.org/help/user/",
showRenderer: true,
showFontMenu: false,
showContext: false,
windowSettings: {
status: "no", toolbar: "no", locationbar: "no", menubar: "no",
directories: "no", personalbar: "no", resizable: "yes", scrollbars: "yes",
width: 100, height: 50
},
styles: {}
},
MMLorHTML: {
prefer: {
MSIE: "MML",
Firefox: "HTML",
Opera: "HTML",
other: "HTML"
}
}
});
</script>
<script type="text/javascript">
(function () {
function loadMathJax() {
var script = document.createElement("script");
script.type = "text/javascript";
script.src = "https://duqnjvq4jwr55.cloudfront.net/2.1/MathJax.js";
document.getElementsByTagName("head")[0].appendChild(script);
}
window.loadOrRefreshMathJax = function(domId) {
if (window.MathJax) {
if (domId) {
MathJax.Hub.Queue(["Typeset", MathJax.Hub, domId]);
} else {
MathJax.Hub.Queue(["Typeset", MathJax.Hub]);
}
} else {
loadMathJax();
}
}
})();
</script></div><!-- - track IE8 and less browser for eventing purposes--><!--[if lte IE 8]><script>window._204 = window._204 || [];
window._gaq = window._gaq || [];
window._gaq.push(
['_setAccount', 'UA-28377374-1'],
['_setDomainName', window.location.hostname],
['_setAllowLinker', true],
['_trackPageview', window.location.pathname]);
window._204.push(
['client', 'home'],
{key:"pageview", value:window.location.pathname});</script><script src="https://dw0ugk4msqulk.cloudfront.net/61a7c1335d196f1295e3341330ed120d255fe89d/js/lib/204.js"></script><script src="https://ssl.google-analytics.com/ga.js"></script><![endif]--><div id="fb-root"></div><div id="origami" data-js="origami"><div style="position:absolute;top:0px;left:0px;width:100%;height:100%;background:#f5f5f5;padding-top:5%;"><div id="coursera-loading-nojs" style="text-align:center; margin-bottom:10px;display:none;"><div>Please use a <a href="https://learner.coursera.help/hc/articles/201522945-Recommended-Software-and-Devices">modern browser </a> with JavaScript enabled to use Coursera.</div><div id="get-browser-zh" style="display:none;">请下载现代的浏览器(<a href="http://windows.microsoft.com/zh-cn/internet-explorer/download-ie">IE11</a>或<a href="https://www.google.com/intl/zh-CN/chrome/browser/">Google Chrome</a>)来使用Coursera。</div></div><div><span id="coursera-loading-js" style="display: none; padding-left:45%; font-size: 14px; line-height: 1.428571429; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif">loading <img src="https://dw0ugk4msqulk.cloudfront.net/images/icons/loading.gif"></span></div><noscript><div style="text-align:center; margin-bottom:10px;">Please use a <a href="https://learner.coursera.help/hc/articles/201522945-Recommended-Software-and-Devices">modern browser </a> with JavaScript enabled to use Coursera.</div></noscript></div></div><!--[if gte IE 9]><script>document.getElementById("coursera-loading-js").style.display = 'block';</script><![endif]-->
<!--[if lte IE 8]><script>document.getElementById("coursera-loading-nojs").style.display = 'block';</script><![endif]-->
<!--[if !IE]> --><script>document.getElementById("coursera-loading-js").style.display = 'block';</script><!-- <![endif]--><script>if (/zh/i.test(window.localStorage ? localStorage.getItem('locale') : '') || '{{ locale }}') {
document.getElementById('get-browser-zh').style.display = 'block';
}</script><!--[if !IE]> --><script>document.getElementById('coursera-loading-js').style.display = 'block';</script><!-- <![endif]-->
<script src='https://dw0ugk4msqulk.cloudfront.net/61a7c1335d196f1295e3341330ed120d255fe89d/js/vendor/jquery.v1-7.js' ></script>
<script src='https://dw0ugk4msqulk.cloudfront.net/61a7c1335d196f1295e3341330ed120d255fe89d/spark/core/js/loadOrRefreshMathJax.js' ></script>
<script src='https://dw0ugk4msqulk.cloudfront.net/61a7c1335d196f1295e3341330ed120d255fe89d/spark/app/textbook/js/textbook_wiki.js' ></script>
<script src="https://dw0ugk4msqulk.cloudfront.net/61a7c1335d196f1295e3341330ed120d255fe89d/js/vendor/require.v2-1-1.js"></script><script data-baseurl="https://dw0ugk4msqulk.cloudfront.net/61a7c1335d196f1295e3341330ed120d255fe89d/" data-version="61a7c1335d196f1295e3341330ed120d255fe89d" data-timestamp='1465424411607' data-debug='0' data-locale="en_US" id="_require">if(document.getElementById('coursera-loading-js').style.display == 'block') {
(function(el) {
require.config({
//enforceDefine: true,
waitSeconds: 75,
baseUrl: el.getAttribute('data-baseurl'),
urlArgs: el.getAttribute('data-debug') == '1' ? 'v=' + el.getAttribute('data-timestamp') : '',
shim: {
'underscore': {
exports: '_'
},
'backbone': {
deps: ['underscore', 'jquery'],
exports: 'Backbone',
init: function(_, $) {
Backbone.$ = $;
return Backbone;
}
},
'pages/hg/thirdparty/js/backbone.marionette': {
deps: ['backbone']
},
'pages/hg/thirdparty/js/webshims/polyfiller': {
deps: ['jquery']
},
'pages/hg/thirdparty/js/webshims/extras/mousepress': {
deps: ['jquery', 'pages/hg/thirdparty/js/webshims/polyfiller']
},
'pages/hg/thirdparty/js/jquery.throttle': {
deps: ['jquery']
},
'js/lib/jquery.linkify': {
deps: ['jquery']
},
'pages/hg/thirdparty/js/js/bootstrap/alert': {
deps: ['jquery', 'pages/hg/thirdparty/js/bootstrap/transition']
},
'spark/core/js/jquery_ui': {
deps: ['jquery']
},
'spark/core/js/jquery.history': {
deps: ['jquery']
},
'js/lib/bootstrap.tooltip': {
deps: ['jquery']
},
'pages/hg/thirdparty/js/bootstrap/transition': {
deps: ['jquery']
},
'pages/hg/thirdparty/js/bootstrap/tab': {
deps: ['jquery']
},
'bundles/videojs/lib/video.4.3.0': {
exports: 'vjs'
}
},
paths: {
'q': 'js/vendor/q.v1-0-1',
'react-with-addons': 'js/vendor/react-with-addons.v0-12',
'jquery': 'pages/spark/jquery',
'underscore': 'js/vendor/underscore.v1-5-2',
'backbone': 'js/vendor/backbone.v1-1-0',
'backbone.relational': 'js/lib/backbone.relational.0.8.6',
'i18n': 'js/lib/i18n._t',
'css': 'js/vendor/require.css.v0-1-2',
'memoize': 'js/lib/require.memoize.v0-0-1',
'pages/spark/models/user.json': 'empty:',
'pages/spark/models/course.json': 'empty:',
'pages/spark/models/navbar.json': 'empty:'
},
callback: function() {
require(['pages/spark/routes']);
},
config: {
i18n: {
locale: (window.localStorage ? localStorage.getItem('locale') : '') || el.getAttribute('data-locale')
}
}
});
})(document.getElementById('_require'));
}
</script><script>define('pages/spark/models/user.json', [], function(){
return JSON.parse("{\"id\":4452529,\"email_address\":\"[email protected]\",\"full_name\":\"Pol Bassiner\",\"locale\":\"en_US\",\"timezone\":\"Europe\\\/Madrid\",\"access_group_id\":\"4\",\"registration_time\":\"1394212065\",\"last_access_time\":\"1465970693\",\"last_access_ip\":\"213.229.148.26\",\"signature_track_register_time\":\"0\",\"email_announcement\":\"1\",\"email_forum\":\"1\",\"in_signature_track\":\"0\",\"wishes_proctored_exam\":null,\"first_name\":\"Pol\",\"permissions\":[\"default\",\"allow_site_access\"],\"group\":\"Student\",\"anonymous\":false,\"forum_title\":\"Student\",\"signature_track_state\":1,\"verified_quizzes\":[],\"submitted_quizzes\":[\"60\",\"78\",\"88\",\"90\",\"92\",\"100\",\"104\",\"128\",\"130\",\"132\"],\"scheduled_proctored_exam\":null,\"last_chance_modal\":1,\"flexjoin_last_chance_modal\":null}");
});
define('pages/spark/models/course.json', [], function(){
return JSON.parse("{\"id\":972351,\"isPrivate\":false,\"type\":\"public\",\"name\":\"Functional Programming Principles in Scala\",\"instructor\":\"\",\"sessionName\":\"progfun-004\",\"externalBaseURL\":\"https:\\\/\\\/www.coursera.org\\\/\",\"shortname\":\"progfun\",\"host\":\"https:\\\/\\\/www.coursera.org\\\/\",\"assetUnversionedLink\":\"https:\\\/\\\/dw0ugk4msqulk.cloudfront.net\\\/\",\"cheggID\":\"\",\"hasLTI\":true,\"badgevilleDomain\":\"\",\"linkable\":false,\"universityShortname\":\"epfl\",\"signatureTrackStatus\":{\"signature_track_enabled\":1},\"courseURLs\":{\"log_in_link\":\"https:\\\/\\\/www.coursera.org\\\/login?post_redirect=https%3A%2F%2Fwww.coursera.org%2Flogin%3Fuser_action%3Dclass%26course_id%3D972351%26post_redirect%3Dhttps%253A%252F%252Fclass.coursera.org%252Fprogfun-004%252Fauth%252Fauth_redirector%253Ftype%253Dlogin%2526subtype%253Dnormal%2526visiting%253D\",\"sign_up_link\":\"https:\\\/\\\/www.coursera.org\\\/signup?enroll_cid=972351&enroll_sn=progfun&enroll_n=Functional Programming Principles in Scala\",\"view_course_info_link\":\"https:\\\/\\\/www.coursera.org\\\/course\\\/progfun\",\"sign_up_link_cant_enroll\":\"https:\\\/\\\/www.coursera.org\\\/signup?post_redirect=https%3A%2F%2Fwww.coursera.org%2Fcourse%2Fprogfun\"},\"courseBase\":\"https:\\\/\\\/class.coursera.org\\\/progfun-004\\\/\",\"search\":true,\"hideWiki\":true,\"aceStartRegistrationDate\":\"Thu 1 Jan 1970 1:00 AM CET\",\"aceEndRegistrationDate\":\"Thu 1 Jan 1970 1:00 AM CET\",\"aceExamStartDate\":\"Thu 1 Jan 1970 1:00 AM CET\",\"aceExamEndDate\":\"Thu 1 Jan 1970 1:00 AM CET\",\"aceExamRules\":\"\",\"aceExamDuration\":\"\",\"aceBeforeExam\":false,\"aceAfterExam\":true,\"aceHours\":null,\"aceCreditType\":\"\",\"acePrice\":null,\"aceExamID\":null,\"aceEligible\":false,\"canRegisterForACE\":false,\"specialization\":null,\"supportForums\":true,\"textbooks\":\"\",\"inVideoQuizV2\":false,\"in_flexjoin\":0,\"honorCodeExtraText\":\"\",\"honorCodeCustomTitle\":\"\",\"honorCodeCustomButton\":\"\",\"studentAccessDisabled\":0,\"disableQQs\":true}");
});
define('pages/spark/models/navbar.json', [], function(){
return JSON.parse("{\"items\":[{\"name\":\"Home\",\"icon\":\"home\",\"link_type\":\"circuit\",\"link_data\":\"class:index\"},{\"name\":\"\",\"icon\":\"\",\"link_type\":\"circuit\",\"link_data\":\"\"},{\"name\":\"Video Lectures\",\"icon\":\"lecture\",\"link_type\":\"circuit\",\"link_data\":\"lecture:index\"},{\"name\":\"Learning Resources\",\"icon\":\"wiki\",\"link_type\":\"wiki\",\"link_data\":\"LearningResources\"},{\"name\":\"Assignments\",\"icon\":\"assignment\",\"link_type\":\"circuit\",\"link_data\":\"assignment:index\"},{\"name\":\"\",\"icon\":\"\",\"link_type\":\"circuit\",\"link_data\":\"\"},{\"name\":\"Discussion Forums\",\"icon\":\"forum\",\"link_type\":\"circuit\",\"link_data\":\"forum:index\"},{\"name\":\"\",\"icon\":\"\",\"link_type\":\"circuit\",\"link_data\":\"\"},{\"name\":\"Tools Setup\",\"icon\":\"wiki\",\"link_type\":\"wiki\",\"link_data\":\"ToolsSetup\"},{\"name\":\"Sbt Tutorial\",\"icon\":\"wiki\",\"link_type\":\"wiki\",\"link_data\":\"SbtTutorial\"},{\"name\":\"SBT FAQ\",\"icon\":\"\",\"link_type\":\"link\",\"link_data\":\"https:\\\/\\\/share.coursera.org\\\/wiki\\\/index.php\\\/Progfun:sbt\"},{\"name\":\"Eclipse Tutorial\",\"icon\":\"wiki\",\"link_type\":\"wiki\",\"link_data\":\"EclipseTutorial\"},{\"name\":\"IntelliJ IDEA Tutorial (optional alternative IDE)\",\"icon\":\"\",\"link_type\":\"wiki\",\"link_data\":\"IntelliJ_IDEA\"},{\"name\":\"Scala Tutorial\",\"icon\":\"wiki\",\"link_type\":\"wiki\",\"link_data\":\"ScalaTutorial\"},{\"name\":\"\",\"icon\":\"\",\"link_type\":\"circuit\",\"link_data\":\"\"},{\"name\":\"Scala Style Guide\",\"icon\":\"wiki\",\"link_type\":\"wiki\",\"link_data\":\"ScalaStyleGuide\"},{\"name\":\"Assignment Feedback\",\"icon\":\"wiki\",\"link_type\":\"wiki\",\"link_data\":\"AssignmentFeedback\"},{\"name\":\"Scala Cheat Sheet\",\"icon\":\"wiki\",\"link_type\":\"wiki\",\"link_data\":\"CheatSheet\"},{\"name\":\"Grading Policy\",\"icon\":\"wiki\",\"link_type\":\"wiki\",\"link_data\":\"GradingPolicy\"}]}");
});
</script><script>var coursera_enable_new_help_center = false;
</script></body></html>