Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(768)

Unified Diff: native_client_sdk/src/doc/cds2014/python_summary.inc

Issue 731453002: Adding two codelabs for cds2014. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixes Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « native_client_sdk/src/doc/cds2014/python.rst ('k') | native_client_sdk/src/doc/io2014.rst » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: native_client_sdk/src/doc/cds2014/python_summary.inc
diff --git a/native_client_sdk/src/doc/cds2014/python_summary.inc b/native_client_sdk/src/doc/cds2014/python_summary.inc
new file mode 100644
index 0000000000000000000000000000000000000000..09960ac87fd0603dbed5d36ebaec9f327870570b
--- /dev/null
+++ b/native_client_sdk/src/doc/cds2014/python_summary.inc
@@ -0,0 +1,43 @@
+Learn how you can use client-side Python on your webpage.
+Use the python |difflib| module to generate attractive online
+textual diffs.
+Develop inside Google Chrome, using a hot off the presses version
+of our NaCl Dev Environment, running on a webpage,
+powered by Portable Native Client.
+The techniques in this codelab also apply to other interpreted languages
+we've ported to PNaCl, including: Python, Lua, Ruby, Tcl, Bash, and Forth.
+
+Requirements:
+ * A Desktop / Laptop Windows, Mac, Linux, or ChromeOS browser
+ |python_check|
+ * A fast broadband connection (500MB download)
+ * Can read and write Python
+
+
+.. |difflib| raw:: html
+
+ <a href="https://docs.python.org/2/library/difflib.html"
+ target="_blank">difflib</a>
+
+
+.. |python_check| raw:: html
+
+ <br/><span id="python_compat" style="color: #cccc00"
+ >Checking browser compatibility...</span><br/>
+ <i id="python_compat2"></i>
+ <script>
+ var tag = document.getElementById('python_compat');
+ var tag2 = document.getElementById('python_compat2');
+ if (!('application/x-pnacl' in navigator.mimeTypes)) {
+ tag.innerHTML =
+ 'This codelab does not appear to be supported by your browser.';
+ tag.style.color = '#cc0000';
+ tag2.innerHTML =
+ 'You do not appear to be running a browser such as ' +
+ 'Google Chrome which supports Portable Native Client ' +
+ 'or you have disabled Portable Native Client.';
+ } else {
+ tag.innerHTML = 'This codelab appears to be supported by your browser.';
+ tag.style.color = '#00cc00';
+ }
+ </script>
« no previous file with comments | « native_client_sdk/src/doc/cds2014/python.rst ('k') | native_client_sdk/src/doc/io2014.rst » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698