Skip to content
This repository has been archived by the owner on Mar 31, 2022. It is now read-only.

WIP: Building Web App Chapter 1 #35

Open
wants to merge 76 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
76 commits
Select commit Hold shift + click to select a range
2d9cca1
Added preview image shared by @thejeshgn to the webapps course
anandology Nov 27, 2021
c225341
feat: Add Week-1 Material
mr-karan Dec 10, 2021
5536900
chore: reword week 1
mr-karan Dec 15, 2021
1ec4059
feat: Add week2
mr-karan Dec 22, 2021
1f1469e
feat: cleanup week1/2
mr-karan Jan 4, 2022
e5772f9
feat: add note for monschool agent
mr-karan Jan 5, 2022
bf07384
Initial text of chapter basic html
thejeshgn Jan 5, 2022
bcf3a2d
Added content. And videos to first 6 lessons
thejeshgn Jan 5, 2022
d663691
feat: week1 review cleanups
mr-karan Jan 12, 2022
394d069
Add course outline for Git & GitHub for beginners
HarshCasper Jan 19, 2022
ace90ae
FIX: Implement suggestions in regards to chapter name
HarshCasper Jan 31, 2022
f1d6c88
Merge pull request #37 from HarshCasper/git-github-course
anandology Feb 1, 2022
b852307
Add skeleton chapters and files for Git & GitHub for beginners
HarshCasper Feb 1, 2022
b5b048b
Merge pull request #39 from HarshCasper/skeleton-files-git-github
anandology Feb 1, 2022
a03d27b
Add outline of first section
tusharsadhwani Feb 8, 2022
4c4f036
Add chapter 1
tusharsadhwani Feb 9, 2022
86bb960
Add page 2
tusharsadhwani Feb 10, 2022
ddbc231
Whitespace
tusharsadhwani Feb 10, 2022
f423777
Typo
tusharsadhwani Feb 10, 2022
bd902f5
Add page 3
tusharsadhwani Feb 10, 2022
d05d2c1
Add page 4
tusharsadhwani Feb 11, 2022
79e7022
Improve wording
tusharsadhwani Feb 11, 2022
b4f795c
Merge pull request #34 from mr-karan/week1
anandology Feb 12, 2022
492c136
Merge pull request #40 from tusharsadhwani/mypy-primer
anandology Feb 12, 2022
1c29d34
Merge pull request #33 from anandology/webapps-preview-image
anandology Feb 12, 2022
e83e1d1
Added course index page
anandology Feb 12, 2022
4c5a20d
Merge pull request #42 from anandology/course-index
anandology Feb 12, 2022
e796237
Added support for adding custom scripts per course.
anandology Feb 16, 2022
a6444a1
Added customizations for the mypy course.
anandology Feb 16, 2022
42cc7d6
Fixed the width of the output section.
anandology Feb 16, 2022
9822ddc
fixed the livecode server url
anandology Feb 16, 2022
ce452a1
Merge pull request #43 from anandology/mypy-support
anandology Feb 16, 2022
049f919
Add chapter 2
tusharsadhwani Feb 19, 2022
a49a5bd
Update chapter name
tusharsadhwani Feb 19, 2022
5ac803a
Merge branch 'main' into mypy-primer-ch2
tusharsadhwani Feb 19, 2022
4199fc5
Use mypy code blocks
tusharsadhwani Feb 19, 2022
3986593
Added codemirror modes for html
anandology Feb 21, 2022
11e5843
Enabled html mode
anandology Feb 21, 2022
7823d1e
refactorted the livecode integration.
anandology Feb 21, 2022
c4f6e93
Added support for html preview.
anandology Feb 21, 2022
67f7548
Merge pull request #50 from anandology/html-preview
anandology Feb 21, 2022
c9c6243
python-webapps: added runtime
anandology Feb 21, 2022
06ea0f4
Added support for output previews
anandology Feb 21, 2022
7b3b335
Merge pull request #51 from anandology/jinja-preview
anandology Feb 21, 2022
9318245
Add chapter 3 and 4
tusharsadhwani Feb 22, 2022
c8dd45f
Revert "Use mypy code blocks"
tusharsadhwani Feb 22, 2022
26a9772
Merge pull request #46 from tusharsadhwani/mypy-primer-ch2
anandology Feb 22, 2022
2baa785
Push rest of the content
tusharsadhwani Feb 26, 2022
44e4709
Merge branch 'main' into mypy-primer-ch3
tusharsadhwani Feb 26, 2022
02ffaf1
Fix code block language
tusharsadhwani Feb 26, 2022
ffbf01d
Add more content to overload section
tusharsadhwani Feb 26, 2022
0c8b46c
Fix small problems with chapter 1 and 2
tusharsadhwani Feb 27, 2022
df4bdcf
More fixes
tusharsadhwani Feb 27, 2022
e09c380
Fix golang snippet
tusharsadhwani Feb 27, 2022
f00cda9
Added support for specifying stdin for an example.
anandology Feb 28, 2022
4f0cc1e
Added stdin support for mypy course.
anandology Feb 28, 2022
f8221d9
Merge pull request #58 from anandology/stdin-support
anandology Feb 28, 2022
2679dfc
Added support for multiple buffers in code editor
anandology Mar 1, 2022
ecea1c7
Added multi-file support
anandology Mar 1, 2022
ac9e531
Integrated the multifile support with the falcon api.
anandology Mar 1, 2022
0f7e24c
Merge pull request #59 from anandology/multi-file
anandology Mar 1, 2022
09866de
Added support for strict mode for mypy.
anandology Mar 1, 2022
d839f7d
Merge pull request #60 from anandology/mypy-strict
anandology Mar 1, 2022
12216bd
Decorators
tusharsadhwani Feb 28, 2022
423de7a
Add generators
tusharsadhwani Mar 1, 2022
26c39b9
Exercise notes
tusharsadhwani Mar 1, 2022
4abaf41
Add type type
tusharsadhwani Mar 1, 2022
9bcb05c
Merge pull request #57 from tusharsadhwani/mypy-primer-fixes
anandology Mar 1, 2022
d75c399
Merge pull request #52 from tusharsadhwani/mypy-primer-ch3
anandology Mar 1, 2022
6f1c55f
Comment out exercises chapter
tusharsadhwani Mar 1, 2022
6c1385f
Merge pull request #62 from tusharsadhwani/mypy-primer-chapter5
anandology Mar 1, 2022
8123423
Removed the videos and added the code blocks
thejeshgn Mar 1, 2022
044bca3
Initial text of chapter basic html
thejeshgn Jan 5, 2022
db2c1e2
Added content. And videos to first 6 lessons
thejeshgn Jan 5, 2022
bf3c470
Removed the videos and added the code blocks
thejeshgn Mar 1, 2022
1294b39
Merge branch 'building-web-apps-with-python-chapter-1' of github.com:…
thejeshgn Mar 2, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
864 changes: 864 additions & 0 deletions courses/assets/codemirror/mode/css/css.js

Large diffs are not rendered by default.

104 changes: 104 additions & 0 deletions courses/assets/codemirror/mode/css/gss.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
<!doctype html>

<title>CodeMirror: Closure Stylesheets (GSS) mode</title>
<meta charset="utf-8"/>
<link rel=stylesheet href="../../doc/docs.css">

<link rel="stylesheet" href="../../lib/codemirror.css">
<link rel="stylesheet" href="../../addon/hint/show-hint.css">
<script src="../../lib/codemirror.js"></script>
<script src="css.js"></script>
<script src="../../addon/edit/matchbrackets.js"></script>
<script src="../../addon/hint/show-hint.js"></script>
<script src="../../addon/hint/css-hint.js"></script>
<style>.CodeMirror {background: #f8f8f8;}</style>
<div id=nav>
<a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png" alt=""></a>

<ul>
<li><a href="../../index.html">Home</a>
<li><a href="../../doc/manual.html">Manual</a>
<li><a href="https://github.com/codemirror/codemirror">Code</a>
</ul>
<ul>
<li><a href="../index.html">Language modes</a>
<li><a class=active href="#">Closure Stylesheets (GSS)</a>
</ul>
</div>

<article>
<h2>Closure Stylesheets (GSS) mode</h2>
<form><textarea id="code" name="code">
/* Some example Closure Stylesheets */

@provide 'some.styles';

@require 'other.styles';

@component {

@def FONT_FAMILY "Times New Roman", Georgia, Serif;
@def FONT_SIZE_NORMAL 15px;
@def FONT_NORMAL normal FONT_SIZE_NORMAL FONT_FAMILY;

@def BG_COLOR rgb(235, 239, 249);

@def DIALOG_BORDER_COLOR rgb(107, 144, 218);
@def DIALOG_BG_COLOR BG_COLOR;

@def LEFT_HAND_NAV_WIDTH 180px;
@def LEFT_HAND_NAV_PADDING 3px;

@defmixin size(WIDTH, HEIGHT) {
width: WIDTH;
height: HEIGHT;
}

body {
background-color: BG_COLOR;
margin: 0;
padding: 3em 6em;
font: FONT_NORMAL;
color: #000;
}

#navigation a {
font-weight: bold;
text-decoration: none !important;
}

.dialog {
background-color: DIALOG_BG_COLOR;
border: 1px solid DIALOG_BORDER_COLOR;
}

.content {
position: absolute;
margin-left: add(LEFT_HAND_NAV_PADDING, /* padding left */
LEFT_HAND_NAV_WIDTH,
LEFT_HAND_NAV_PADDING); /* padding right */

}

.logo {
@mixin size(150px, 55px);
background-image: url('http://www.google.com/images/logo_sm.gif');
}

}
</textarea></form>
<script>
var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
extraKeys: {"Ctrl-Space": "autocomplete"},
lineNumbers: true,
matchBrackets: true,
mode: "text/x-gss"
});
</script>

<p>A mode for <a href="https://github.com/google/closure-stylesheets">Closure Stylesheets</a> (GSS).</p>
<p><strong>MIME type defined:</strong> <code>text/x-gss</code>.</p>

<p><strong>Parsing/Highlighting Tests:</strong> <a href="../../test/index.html#gss_*">normal</a>, <a href="../../test/index.html#verbose,gss_*">verbose</a>.</p>

</article>
17 changes: 17 additions & 0 deletions courses/assets/codemirror/mode/css/gss_test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: https://codemirror.net/LICENSE

(function() {
"use strict";

var mode = CodeMirror.getMode({indentUnit: 2}, "text/x-gss");
function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1), "gss"); }

MT("atComponent",
"[def @component] {",
"[tag foo] {",
" [property color]: [keyword black];",
"}",
"}");

})();
81 changes: 81 additions & 0 deletions courses/assets/codemirror/mode/css/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
<!doctype html>

<title>CodeMirror: CSS mode</title>
<meta charset="utf-8"/>
<link rel=stylesheet href="../../doc/docs.css">

<link rel="stylesheet" href="../../lib/codemirror.css">
<link rel="stylesheet" href="../../addon/hint/show-hint.css">
<script src="../../lib/codemirror.js"></script>
<script src="css.js"></script>
<script src="../../addon/hint/show-hint.js"></script>
<script src="../../addon/hint/css-hint.js"></script>
<style>.CodeMirror {background: #f8f8f8;}</style>
<div id=nav>
<a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png" alt=""></a>

<ul>
<li><a href="../../index.html">Home</a>
<li><a href="../../doc/manual.html">Manual</a>
<li><a href="https://github.com/codemirror/codemirror">Code</a>
</ul>
<ul>
<li><a href="../index.html">Language modes</a>
<li><a class=active href="#">CSS</a>
</ul>
</div>

<article>
<h2>CSS mode</h2>
<form><textarea id="code" name="code">
/* Some example CSS */

@import url("something.css");

body {
margin: 0;
padding: 3em 6em;
font-family: tahoma, arial, sans-serif;
color: #000;
}

#navigation a {
font-weight: bold;
text-decoration: none !important;
}

h1 {
font-size: 2.5em;
}

h2 {
font-size: 1.7em;
}

h1:before, h2:before {
content: "::";
}

code {
font-family: courier, monospace;
font-size: 80%;
color: #418A8A;
}
</textarea></form>
<script>
var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
extraKeys: {"Ctrl-Space": "autocomplete"}
});
</script>

<p>CSS mode supports this option:</p>
<d1>
<dt><code><strong>highlightNonStandardPropertyKeywords</strong>: boolean</code></dt>
<dd>Whether to highlight non-standard CSS property keywords such as <code>margin-inline</code> or <code>zoom</code> (default: <code>true</code>).</dd>
</d1>

<p><strong>MIME types defined:</strong> <code>text/css</code>, <code>text/x-scss</code> (<a href="scss.html">demo</a>), <code>text/x-less</code> (<a href="less.html">demo</a>).</p>

<p><strong>Parsing/Highlighting Tests:</strong> <a href="../../test/index.html#css_*">normal</a>, <a href="../../test/index.html#verbose,css_*">verbose</a>.</p>

</article>
152 changes: 152 additions & 0 deletions courses/assets/codemirror/mode/css/less.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,152 @@
<!doctype html>

<title>CodeMirror: LESS mode</title>
<meta charset="utf-8"/>
<link rel=stylesheet href="../../doc/docs.css">

<link rel="stylesheet" href="../../lib/codemirror.css">
<script src="../../lib/codemirror.js"></script>
<script src="../../addon/edit/matchbrackets.js"></script>
<script src="css.js"></script>
<style>.CodeMirror {border: 1px solid #ddd; line-height: 1.2;}</style>
<div id=nav>
<a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png" alt=""></a>

<ul>
<li><a href="../../index.html">Home</a>
<li><a href="../../doc/manual.html">Manual</a>
<li><a href="https://github.com/codemirror/codemirror">Code</a>
</ul>
<ul>
<li><a href="../index.html">Language modes</a>
<li><a class=active href="#">LESS</a>
</ul>
</div>

<article>
<h2>LESS mode</h2>
<form><textarea id="code" name="code">@media screen and (device-aspect-ratio: 16/9) { … }
@media screen and (device-aspect-ratio: 1280/720) { … }
@media screen and (device-aspect-ratio: 2560/1440) { … }

html:lang(fr-be)

tr:nth-child(2n+1) /* represents every odd row of an HTML table */

img:nth-of-type(2n+1) { float: right; }
img:nth-of-type(2n) { float: left; }

body > h2:not(:first-of-type):not(:last-of-type)

html|*:not(:link):not(:visited)
*|*:not(:hover)
p::first-line { text-transform: uppercase }

@namespace foo url(http://www.example.com);
foo|h1 { color: blue } /* first rule */

span[hello="Ocean"][goodbye="Land"]

E[foo]{
padding:65px;
}

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button {
-webkit-appearance: none; // Inner-padding issues in Chrome OSX, Safari 5
}
button::-moz-focus-inner,
input::-moz-focus-inner { // Inner padding and border oddities in FF3/4
padding: 0;
border: 0;
}
.btn {
// reset here as of 2.0.3 due to Recess property order
border-color: #ccc;
border-color: rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25);
}
fieldset span button, fieldset span input[type="file"] {
font-size:12px;
font-family:Arial, Helvetica, sans-serif;
}

.rounded-corners (@radius: 5px) {
border-radius: @radius;
-webkit-border-radius: @radius;
-moz-border-radius: @radius;
}

@import url("something.css");

@light-blue: hsl(190, 50%, 65%);

#menu {
position: absolute;
width: 100%;
z-index: 3;
clear: both;
display: block;
background-color: @blue;
height: 42px;
border-top: 2px solid lighten(@alpha-blue, 20%);
border-bottom: 2px solid darken(@alpha-blue, 25%);
.box-shadow(0, 1px, 8px, 0.6);
-moz-box-shadow: 0 0 0 #000; // Because firefox sucks.

&.docked {
background-color: hsla(210, 60%, 40%, 0.4);
}
&:hover {
background-color: @blue;
}

#dropdown {
margin: 0 0 0 117px;
padding: 0;
padding-top: 5px;
display: none;
width: 190px;
border-top: 2px solid @medium;
color: @highlight;
border: 2px solid darken(@medium, 25%);
border-left-color: darken(@medium, 15%);
border-right-color: darken(@medium, 15%);
border-top-width: 0;
background-color: darken(@medium, 10%);
ul {
padding: 0px;
}
li {
font-size: 14px;
display: block;
text-align: left;
padding: 0;
border: 0;
a {
display: block;
padding: 0px 15px;
text-decoration: none;
color: white;
&:hover {
background-color: darken(@medium, 15%);
text-decoration: none;
}
}
}
.border-radius(5px, bottom);
.box-shadow(0, 6px, 8px, 0.5);
}
}
</textarea></form>
<script>
var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
lineNumbers: true,
matchBrackets: true,
mode: "text/x-less"
});
</script>

<p>The LESS mode is a sub-mode of the <a href="index.html">CSS mode</a> (defined in <code>css.js</code>).</p>

<p><strong>Parsing/Highlighting Tests:</strong> <a href="../../test/index.html#less_*">normal</a>, <a href="../../test/index.html#verbose,less_*">verbose</a>.</p>
</article>
Loading