Skip to content

Commit 2da3ab5

Browse files
committed
added c and c++ demos
1 parent a1d1e1b commit 2da3ab5

7 files changed

Lines changed: 51 additions & 35 deletions

File tree

v3/css/index.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,10 @@ div#learnPane p {
115115
}
116116

117117
div#learnPane #startLink {
118-
font-size: 18pt;
118+
font-size: 16pt;
119119
font-weight: normal;
120-
margin-top: 30px;
121-
margin-bottom: 35px;
120+
margin-top: 20px;
121+
margin-bottom: 25px;
122122
font-family: verdana, arial, helvetica, sans-serif;
123123
}
124124

v3/index.html

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
<head>
3333

34-
<title>Online Python Tutor - Visualize Python, Java, JavaScript, TypeScript, Ruby, C, and C++ code execution</title>
34+
<title>Python Tutor - Visualize Python, Java, JavaScript, TypeScript, Ruby, C, and C++ code execution</title>
3535

3636
<meta http-equiv="Content-type" content="text/html; charset=UTF-8"/>
3737

@@ -76,12 +76,14 @@ <h1><span id="learnHeading">VISUALIZE</span> <span class="smallH1">
7676

7777
</span></h1>
7878

79-
<p><a id="optLink" href="visualize.html">Online Python Tutor</a> is a
80-
free educational tool created by <a href="http://www.pgbovine.net/">Philip Guo</a>
81-
that helps people overcome a fundamental
79+
<p><a id="optLink" href="visualize.html">Python Tutor</a>, created
80+
by <a
81+
href="http://www.pgbovine.net/">Philip Guo</a>,
82+
helps people overcome a fundamental
8283
barrier to learning programming: understanding what happens as the
8384
computer executes each line of a program's source code.</p>
8485

86+
8587
<p>Using this
8688
tool, you can write <b><a href="visualize.html#py=2">Python</a></b>,
8789
<a href="java.html"><b>Java</b></a>,
@@ -91,10 +93,10 @@ <h1><span id="learnHeading">VISUALIZE</span> <span class="smallH1">
9193
<a href="http://pgbovine.net/rosetta/c-demo.html"><b>C</b></a>,
9294
and <a href="http://pgbovine.net/rosetta/cpp-demo.html"><b>C++</b></a>
9395
programs in your Web
94-
browser and visualize what the computer is doing step-by-step as it executes those programs.</p>
96+
browser and visualize what the computer is doing step-by-step as it executes those programs.
9597

96-
<p>So far, over 1.2 million people in over 165 countries have used
97-
Online Python Tutor to visualize over 11 million pieces of code, often as a
98+
So far, over <b>1.5 million people in over 180 countries</b> have used
99+
Python Tutor to visualize over 13 million pieces of code, often as a
98100
supplement to textbooks, lecture notes, and online programming
99101
tutorials.</p>
100102

@@ -105,9 +107,7 @@ <h1><span id="learnHeading">VISUALIZE</span> <span class="smallH1">
105107

106108
<p>For example, here is a visualization showing a Python program that <a
107109
href="http://en.wikipedia.org/wiki/Recursion_(computer_science)">recursively</a>
108-
finds the sum of a linked list.
109-
Click the &ldquo;Forward&rdquo; button to see what happens as the
110-
computer executes each line of code.</p>
110+
finds the sum of a linked list:</p>
111111

112112
<div id="demoViz"></div>
113113

@@ -177,7 +177,7 @@ <h1><span id="embedHeading">SHARE</span> <span class="smallH1">live visualizatio
177177
<h1><span id="shareHeading">EMBED</span> <span class="smallH1"> in any Web page</span></h1>
178178

179179
<p>Using a single line of JavaScript code, you can <a
180-
href="https://github.com/pgbovine/OnlinePythonTutor/blob/master/v3/docs/embedding-HOWTO.md">embed</a> an Online Python Tutor
180+
href="https://github.com/pgbovine/OnlinePythonTutor/blob/master/v3/docs/embedding-HOWTO.md">embed</a> a Python Tutor
181181
visualization within any Web page (as shown in the &ldquo;Learn&rdquo;
182182
box above). The screenshot below shows a visualization
183183
embedded within the online textbook for the introductory CS course at UC
@@ -198,7 +198,7 @@ <h1><span id="shareHeading">EMBED</span> <span class="smallH1"> in any Web page<
198198
Details:
199199
<ul>
200200

201-
<li/>Online Python Tutor runs Python 2.7 and 3.3, hosted on any CGI-capable Web server.
201+
<li/>Python Tutor runs Python 2.7 and 3.3, hosted on any CGI-capable Web server.
202202

203203
<li/>Main technologies: Python, Node.js, and Docker for
204204
backends; HTML/CSS/JavaScript with <a

v3/java.html

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,13 +162,15 @@
162162
Java Tutor - Visualize Java code execution to learn Java online
163163

164164
<p style="font-size: 10pt";>
165-
This tool is part of <a href="index.html">Online Python
166-
Tutor</a>, which visualizes
165+
(also visualize
167166
<a href="visualize.html#py=2">Python</a>,
168167
<a href="java.html">Java</a>,
169168
<a href="javascript.html">JavaScript</a>,
170-
<a href="typescript.html">TypeScript</a>, and
171-
<a href="ruby.html">Ruby</a> code.
169+
<a href="typescript.html">TypeScript</a>,
170+
<a href="ruby.html">Ruby</a>,
171+
<a href="http://pgbovine.net/rosetta/c-demo.html">C</a>,
172+
and <a href="http://pgbovine.net/rosetta/cpp-demo.html">C++</a>
173+
code)
172174
</p>
173175

174176
</div>

v3/javascript.html

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,13 +163,15 @@
163163
JavaScript Tutor - Visualize JavaScript code execution to learn JavaScript online
164164

165165
<p style="font-size: 10pt";>
166-
This tool is part of <a href="index.html">Online Python
167-
Tutor</a>, which visualizes
166+
(also visualize
168167
<a href="visualize.html#py=2">Python</a>,
169168
<a href="java.html">Java</a>,
170169
<a href="javascript.html">JavaScript</a>,
171-
<a href="typescript.html">TypeScript</a>, and
172-
<a href="ruby.html">Ruby</a> code.
170+
<a href="typescript.html">TypeScript</a>,
171+
<a href="ruby.html">Ruby</a>,
172+
<a href="http://pgbovine.net/rosetta/c-demo.html">C</a>,
173+
and <a href="http://pgbovine.net/rosetta/cpp-demo.html">C++</a>
174+
code)
173175
</p>
174176

175177
</div>

v3/ruby.html

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,13 +162,15 @@
162162
Ruby Tutor - Visualize Ruby code execution to learn Ruby online
163163

164164
<p style="font-size: 10pt";>
165-
This tool is part of <a href="index.html">Online Python
166-
Tutor</a>, which visualizes
165+
(also visualize
167166
<a href="visualize.html#py=2">Python</a>,
168167
<a href="java.html">Java</a>,
169168
<a href="javascript.html">JavaScript</a>,
170-
<a href="typescript.html">TypeScript</a>, and
171-
<a href="ruby.html">Ruby</a> code.
169+
<a href="typescript.html">TypeScript</a>,
170+
<a href="ruby.html">Ruby</a>,
171+
<a href="http://pgbovine.net/rosetta/c-demo.html">C</a>,
172+
and <a href="http://pgbovine.net/rosetta/cpp-demo.html">C++</a>
173+
code)
172174
</p>
173175

174176
</div>

v3/typescript.html

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,13 +162,15 @@
162162
TypeScript Tutor - Visualize TypeScript code execution to learn TypeScript online
163163

164164
<p style="font-size: 10pt";>
165-
This tool is part of <a href="index.html">Online Python
166-
Tutor</a>, which visualizes
165+
(also visualize
167166
<a href="visualize.html#py=2">Python</a>,
168167
<a href="java.html">Java</a>,
169168
<a href="javascript.html">JavaScript</a>,
170-
<a href="typescript.html">TypeScript</a>, and
171-
<a href="ruby.html">Ruby</a> code.
169+
<a href="typescript.html">TypeScript</a>,
170+
<a href="ruby.html">Ruby</a>,
171+
<a href="http://pgbovine.net/rosetta/c-demo.html">C</a>,
172+
and <a href="http://pgbovine.net/rosetta/cpp-demo.html">C++</a>
173+
code)
172174
</p>
173175

174176
</div>

v3/visualize.html

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,12 +163,16 @@
163163
<div id="adHeader" style="margin-left: 15px; margin-bottom: 35px;">
164164

165165
<div id="optHeader" style="font-family: Georgia, Palatino, Times, serif; font-size: 13pt; margin-bottom: 10px;">
166-
<a href="index.html">Online Python Tutor</a>: Visualize
166+
<a href="index.html">Python Tutor</a>: Visualize
167167
Python,
168168
<a href="java.html">Java</a>,
169169
<a href="javascript.html">JavaScript</a>,
170-
<a href="typescript.html">TypeScript</a>, and
171-
<a href="ruby.html">Ruby</a> code execution
170+
<a href="typescript.html">TypeScript</a>,
171+
<a href="ruby.html">Ruby</a>,
172+
<a href="http://pgbovine.net/rosetta/c-demo.html">C</a>,
173+
and <a href="http://pgbovine.net/rosetta/cpp-demo.html">C++</a>
174+
code execution
175+
172176
</div>
173177

174178
<!--
@@ -457,7 +461,7 @@
457461
</div>
458462

459463
<p style="margin-top: 25px;">
460-
<a href="http://pythontutor.com/">Online Python Tutor</a> currently supports five
464+
<a href="http://pythontutor.com/">Python Tutor</a> currently supports seven
461465
languages (despite its name!):</p>
462466

463467
<p>1. Python <a href="http://www.python.org/doc/2.7/">2.7</a> and <a
@@ -510,6 +514,10 @@
510514
href="https://github.com/pgbovine/OnlinePythonTutor/tree/master/v4-cokapi/backends/ruby">Backend
511515
source code</a>.</p>
512516

517+
<p>6. <a href="http://pgbovine.net/rosetta/c-demo.html">C using Valgrind</a> (full online support coming soon)</p>
518+
519+
<p>7. <a href="http://pgbovine.net/rosetta/cpp-demo.html">C++ using Valgrind</a> (full online support coming soon)</p>
520+
513521
<p style="margin-top: 30px;">Privacy Policy: By using Online Python
514522
Tutor, your visualized code, options, user interactions, text chats, and
515523
IP address are logged on our server and may be analyzed for research

0 commit comments

Comments
 (0)