Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a7e5195

Browse files
committed
Updated pdf readme and faq
1 parent 3fc61a5 commit a7e5195

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

pdf/README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@ Printing to PDF
1414
### Normal PDF
1515
* Open `index.html` in text editor and first remove element `<p><br></p>` before the `<h1>Libraries</h1>`.
1616
* Then replace the index and footer with contents of `pdf/index_for_pdf.html` file and save.
17+
* Change brightness of comments by right clicking on them and selecting inspect. Then click on the rectangle that represents color and toggle the color space to HSLA by clicking on the button with two vertical arrows.
18+
* Change lightness (L) percentage to 77%.
1719
* Open `index.html` in Chrome and select 'Print...'.
18-
* Select destination 'Save as PDF', paper size 'A4', margins and scale 'Default' and no headers and footers and save.
20+
* Select destination 'Save as PDF', paper size 'A4', customised margins of top 10mm, right 9.5mm, bottom 5mm and left 10mm, 'Default' scale and no headers and footers and save (the document should be 50 pages long).
1921

2022
### PDF optimized for laser color printing
2123
* Run `./parse.js` again.
@@ -33,7 +35,7 @@ Printing to PDF
3335
* 58% for the comments.
3436
* Individually change brightness of every comment line that starts with: `# $ pip3 install
3537
...` and of comments in basic script template to 57%, by adding `color: hsla(0, 0%, 57%, 1);` to their element.style.
36-
* Select 'Print...' and destination 'Save as PDF', paper size 'A4', margins and scale 'Default' and no headers and footers and save.
38+
* Select 'Print...' with destination 'Save as PDF', paper size 'A4', customised margins of top 10mm, right 9.5mm, bottom 5mm and left 10mm, 'Default' scale and no headers and footers and save (the document should be 50 pages long).
3739

3840
Adding headers and footers to PDF (the same for both files)
3941
-----------------------------------------------------------

web/faq.html

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<details open><summary><strong>What is the best way to use it?</strong></summary><br>
66
&nbsp;&nbsp;&nbsp;&nbsp;I keep the text file open on separate desktop at all times. It is also in a different text editor than the one I usually use, so it's easier to switch to with <code>Ctrl+↹</code> / <code>⌘↹</code>. Cheatsheet consists of minimal text and short examples so things are easy to find with <code>Ctrl+F</code> / <code>⌘F</code>. If you're on the webpage, searching for <code>'#&lt;name&gt;'</code> will only search for the titles.<br><br>
7-
&nbsp;&nbsp;&nbsp;&nbsp;I also keep the Python console open at all times to test little snippets of code, to check out the available functions of a module using code completion and above all, to use <code>help(&lt;module/object/function/type&gt;)</code> command. If something is still unclear, then I search the Python docs by googling <code>'python docs &lt;module/function&gt;'</code>.
7+
&nbsp;&nbsp;&nbsp;&nbsp;I also keep the Python console open at all times to test little snippets of code, to check out the available functions of a module using code completion and above all, to use <code>help(&lt;module/object/function/type/str&gt;)</code> command. If something is still unclear, then I search the Python docs by googling <code>'python docs &lt;module/function&gt;'</code>.
88
</details><br>
99

1010
<details open><summary><strong>What does the '&lt;type&gt;' signify?</strong></summary><br>
@@ -32,12 +32,16 @@
3232
&nbsp;&nbsp;&nbsp;&nbsp;Check out <a href="https://google.github.io/styleguide/pyguide.html">Google Style Guide</a> and use <code>Ctrl+Alt+L</code> / <code>⌥⌘L</code> shortcut in PyCharm to automatically reformat code.
3333
</details><br>
3434

35-
<details open><summary><strong>Why are import statements, virtual environment, tests, packaging and installation not covered?</strong></summary><br>
35+
<details open><summary><strong>Why are there no blank lines between method definitions?</strong></summary><br>
36+
&nbsp;&nbsp;&nbsp;&nbsp;This way classes can be copy-pasted into the Python console, which would otherwise raise IndentationError.
37+
</details><br>
38+
39+
<details open><summary><strong>Why are import statements, virtual environments and tests not covered?</strong></summary><br>
3640
&nbsp;&nbsp;&nbsp;&nbsp;Check out <a href="https://docs.python-guide.org/">The Hitchhiker’s Guide to Python</a> for a nice overview of the mentioned topics.
3741
</details><br>
3842

39-
<details open><summary><strong>Why is Django not covered?</strong></summary><br>
40-
&nbsp;&nbsp;&nbsp;&nbsp;Maybe it will be in the future. For now, here is a nice <a href="https://github.com/kickstartcoding/cheatsheets/blob/master/build/topical/django.jpg">Django cheatsheet</a>.
43+
<details open><summary><strong>Why are Flask and Django not covered?</strong></summary><br>
44+
&nbsp;&nbsp;&nbsp;&nbsp;Maybe they will be in the future. For now, here is a nice <a href="https://github.com/kickstartcoding/cheatsheets/blob/master/build/topical/django.jpg">Django cheatsheet</a>.
4145
</details><br>
4246

4347
<details open><summary><strong>Why are there no concrete Regex examples?</strong></summary><br>
@@ -49,7 +53,7 @@
4953
</details><br>
5054

5155
<details open><summary><strong>Why is staticmethod decorator not covered in Class section?</strong></summary><br>
52-
&nbsp;&nbsp;&nbsp;&nbsp;Because it's of very limited use and is easy to mix up with classmethod.
56+
&nbsp;&nbsp;&nbsp;&nbsp;Because it is of very limited use and is easy to mix up with classmethod.
5357
</details><br>
5458

5559
<details open><summary><strong>Why are descriptors not covered?</strong></summary><br>

0 commit comments

Comments
 (0)