Skip to content

Commit 699bb2d

Browse files
committed
Adds Coursera Statistics blog article
1 parent fa6f0aa commit 699bb2d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+2676
-31
lines changed

_config.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
title: "Scala Documentation"
22
description: "Documentation for the Scala programming language- Tutorials, Overviews, Cheatsheets, and more."
3-
keywords:
3+
keywords:
44
- Scala
55
- Documentation
66
- Tutorial
@@ -16,4 +16,4 @@ scala-version: 2.9.1
1616
pygments: true
1717
permalink: /:categories/:title.html
1818

19-
#markdown: rdiscount
19+
markdown: rdiscount

_includes/coursera-stats-js.txt

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<script src="http://d3js.org/d3.v3.min.js"></script>
2+
<script src="../resources/javascript/bootstrap-twipsy.js"></script>
3+
4+
<script src="../resources/javascript/coursera/bargraphs.js"></script>
5+
<script src="../resources/javascript/coursera/grades-breakdown.js"></script>
6+
7+
<script src="../resources/javascript/coursera/jquery-jvectormap-1.1.1.min.js"></script>
8+
<script src="../resources/javascript/coursera/worldmap.js"></script>
9+
<script src="../resources/dat/worldmap-counts.js"></script>
10+
<script src="../resources/dat/worldmap-density-count.js"></script>
11+
<script src="../resources/dat/worldmap-density-pop.js"></script>
12+
<script src="../resources/dat/worldmap-density.js"></script>
13+
<script src="../resources/javascript/coursera/worldmap-density.js"></script>
14+
<script src="../resources/javascript/coursera/worldmap-population.js"></script>
15+
16+
<script src="../resources/javascript/coursera/raphael.js"></script>
17+
<script src="../resources/javascript/coursera/g.raphael.js"></script>
18+
<script src="../resources/javascript/coursera/g.pie.js"></script>
19+
20+
<script src="../resources/javascript/coursera/where-apply.js"></script>
21+
<script src="../resources/javascript/coursera/what-interested-you.js"></script>

_includes/footer.txt

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
1-
21
{% include footerbar.txt %}
3-
2+
43
<script type="text/javascript">
54
$('#toc').toc({exclude: 'h1, h5, h6', context: '', autoId: true, numerate: false});
65
</script>
76

8-
<script type="text/javascript">
7+
<script type="text/javascript">
98
$(function() {
109
moveScroller();
1110
});
12-
</script>
13-
11+
</script>
12+
1413
</body>
1514
</html>
1615

_includes/header-coursera.txt

+178
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,178 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
5+
<title>{% if page.partof %}{{ page.partof | replace: '-',' ' | split:" " | capitalize | join:" " }} - {% endif %}{% if page.title %}{{ page.title }} - {% endif %}{{ site.title }}</title>
6+
{% if page.description %}
7+
<meta name="description" content="{{ page.description }}" />
8+
{% endif %}
9+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
10+
11+
<link rel="icon" type="image/png" href="{{ site.baseurl }}/resources/favicon.ico">
12+
13+
<!-- prettify js and CSS -->
14+
<link rel="stylesheet" href="{{ site.baseurl }}/resources/stylesheets/prettify.css" type="text/css" />
15+
<script src="{{ site.baseurl }}/resources/javascript/prettify/prettify.js" type="text/javascript" ></script>
16+
17+
18+
<!-- jquery js -->
19+
<script src="{{ site.baseurl }}/resources/javascript/jquery.js" type="text/javascript" ></script>
20+
<script src="{{ site.baseurl }}/resources/javascript/effects.core.js" type="text/javascript" ></script>
21+
<script src="{{ site.baseurl }}/resources/javascript/effects.highlight.js" type="text/javascript" ></script>
22+
<script src="{{ site.baseurl }}/resources/javascript/moveScroller.js" type="text/javascript" ></script>
23+
24+
<!-- Bootstrap JS and CSS -->
25+
<link rel="stylesheet" href="{{ site.baseurl }}/resources/stylesheets/bootstrap.css" type="text/css" />
26+
<script src="{{ site.baseurl }}/resources/javascript/bootstrap-dropdown.js" type="text/javascript" ></script>
27+
<script src="{{ site.baseurl }}/resources/javascript/bootstrap-dropdown-app.js" type="text/javascript" ></script>
28+
29+
<!-- Base stylesheet for all pages -->
30+
<link rel="stylesheet" href="{{ site.baseurl }}/resources/stylesheets/base.css" type="text/css" />
31+
32+
<!-- table of contents js -->
33+
<script src="{{ site.baseurl }}/resources/javascript/toc.js" type="text/javascript" ></script>
34+
35+
<!-- google fonts -->
36+
<link href='http://fonts.googleapis.com/css?family=Bitter:400,400italic' rel='stylesheet' type='text/css'>
37+
38+
<!-- google analytics -->
39+
<script type="text/javascript">
40+
41+
var _gaq = _gaq || [];
42+
_gaq.push(['_setAccount', 'UA-574683-5']);
43+
_gaq.push(['_trackPageview']);
44+
45+
(function() {
46+
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
47+
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
48+
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
49+
})();
50+
51+
</script>
52+
53+
<!-- prettyprint js to prepend generated pre/code tags -->
54+
<script type="text/javascript">
55+
function styleCode()
56+
{
57+
if (typeof disableStyleCode != "undefined")
58+
{
59+
return;
60+
}
61+
var a = false;
62+
$("pre code").parent().each(function()
63+
{
64+
if (!$(this).hasClass("prettyprint"))
65+
{
66+
$(this).addClass("prettyprint lang-scala linenums");
67+
a = true
68+
}
69+
});
70+
if (a) { prettyPrint() }
71+
}
72+
</script>
73+
74+
<script type="text/javascript">
75+
jQuery(document).ready(function($) {
76+
77+
$(".scroll").click(function(event){
78+
event.preventDefault();
79+
$('html,body').animate({scrollTop:$(this.hash).offset().top}, 500);
80+
$('html,body').animate({scrollTop:$(this.hash).offset().top-=50}, 500);
81+
$(this.hash).effect("highlight", {color: "#FFCC85"}, 3000);
82+
});
83+
});
84+
</script>
85+
86+
<script type="text/javascript">
87+
$(window).ready(function goToSubsection() {
88+
if (window.location.hash)
89+
{
90+
$('html,body').animate({scrollTop:$(window.location.hash).offset().top}, 500);
91+
$('html,body').animate({scrollTop:$(window.location.hash).offset().top-=50}, 500);
92+
$(window.location.hash).effect("highlight", {color: "#FFCC85"}, 3000);
93+
}
94+
});
95+
</script>
96+
97+
<style type="text/css">
98+
99+
p {
100+
font-size: 14px;
101+
line-height: 22px;
102+
}
103+
104+
.summary {
105+
font-size: 16px;
106+
font-family: Bitter;
107+
font-style: italic;
108+
margin-bottom: 20px;
109+
line-height: 24px;
110+
}
111+
112+
.authors {
113+
font-size: 20px;
114+
font-family: Bitter;
115+
font-style: italic;
116+
margin-bottom: 15px;
117+
margin-top: 20px;
118+
line-height: 24px;
119+
}
120+
121+
p.contents {
122+
margin-left: 15px;
123+
font-weight: bold;
124+
font-size: 16px;
125+
}
126+
127+
div#toc ul {
128+
list-style: none;
129+
}
130+
131+
div#toc ul a {
132+
display: block;
133+
list-style: none;
134+
line-height: 22px;
135+
font-weight: bold;
136+
width: 100%;
137+
}
138+
139+
div#toc ul li ul {
140+
list-style: disc;
141+
}
142+
143+
div#toc ul li ul a {
144+
line-height: 18px;
145+
font-weight: normal;
146+
}
147+
148+
div#toc ul li ul li ul {
149+
list-style: square;
150+
}
151+
div#toc ul li ul li ul a {
152+
}
153+
154+
div#scroller-anchor {
155+
width: inherit;
156+
}
157+
158+
div#scroller {
159+
width: inherit;
160+
}
161+
162+
div#guide-title {
163+
text-transform: capitalize;
164+
font-size: 16px;
165+
padding-bottom: 6px;
166+
color: #BFBFBF;
167+
text-transform: uppercase;
168+
font-weight: bold;
169+
}
170+
171+
input, textarea, select, .uneditable-input {
172+
width: 165px;
173+
}
174+
175+
</style>
176+
177+
</head>
178+
<body onload="styleCode()">

_includes/header.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323

2424
<!-- Bootstrap JS and CSS -->
2525
<link rel="stylesheet" href="{{ site.baseurl }}/resources/stylesheets/bootstrap.css" type="text/css" />
26-
<script src="{{ site.baseurl }}/resources/javascript/bootstrap-dropdown.js" type="text/javascript" ></script>
27-
<script src="{{ site.baseurl }}/resources/javascript/bootstrap-dropdown-app.js" type="text/javascript" ></script>
26+
<script src="{{ site.baseurl }}/resources/javascript/bootstrap-dropdown.js" type="text/javascript" ></script>
27+
<script src="{{ site.baseurl }}/resources/javascript/bootstrap-dropdown-app.js" type="text/javascript" ></script>
2828

2929
<!-- Base stylesheet for all pages -->
3030
<link rel="stylesheet" href="{{ site.baseurl }}/resources/stylesheets/base.css" type="text/css" />

_includes/worldmap.html

Whitespace-only changes.

_layouts/news-coursera.html

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
layout: default
3+
---
4+
{% include header-coursera.txt %}
5+
{% include topbar.txt %}
6+
7+
<div class="container">
8+
<div class="row">
9+
10+
<div class="span12">{% if page.title %}<h1>{{ page.title }}</h1>{% else %}<h1>{{ site.title }}</h1>{% endif %}</div>
11+
12+
<div class="span12">
13+
{{ content }}
14+
{% if page.disqus == true %}{% include disqus.txt %}{% endif %}
15+
</div>
16+
17+
</div>
18+
</div>
19+
20+
{% include footer.txt %}
21+
{% include coursera-stats-js.txt %}

_layouts/news.html

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
layout: default
3+
---
4+
{% include header.txt %}
5+
{% include topbar.txt %}
6+
7+
<div class="container">
8+
<div class="row">
9+
10+
<div class="span10">{% if page.title %}<h1>{{ page.title }}</h1>{% else %}<h1>{{ site.title }}</h1>{% endif %}</div>
11+
12+
<div class="span10">
13+
{{ content }}
14+
{% if page.disqus == true %}{% include disqus.txt %}{% endif %}
15+
</div>
16+
17+
<div class="span6">
18+
{% include toc.txt %}
19+
</div>
20+
21+
22+
</div>
23+
</div>
24+
25+
{% include footer.txt %}

0 commit comments

Comments
 (0)