Skip to content

Commit 449c4b4

Browse files
committed
Added GA tracking.
1 parent 4b070c0 commit 449c4b4

File tree

4 files changed

+32
-48
lines changed

4 files changed

+32
-48
lines changed

docs/_themes/quantifiedcode/layout.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,17 @@
159159
</script>
160160
{% endif %}
161161

162+
<script>
163+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
164+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
165+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
166+
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
167+
168+
ga('create', 'UA-62158307-1', 'auto');
169+
ga('send', 'pageview');
170+
171+
</script>
172+
162173
{%- block footer %} {% endblock %}
163174

164175
</body>

docs/correctness/do_not_assign_a_lambda_expression.rst

Lines changed: 0 additions & 44 deletions
This file was deleted.

docs/correctness/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
:maxdepth: 1
66

77
accessing_a_protected_member_from_outside_the_class
8+
assigning_a_lambda_to_a_variable
89
bad_except_clauses_order
910
bad_first_argument_given_to_super
1011
dangerous_default_value_as_argument
11-
do_not_assign_a_lambda_expression
1212
else_clause_on_loop_without_a_break_statement
1313
exit_must_accept_three_arguments
1414
explicit_return_in_init

docs/index.rst

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ The Little Book of Python Anti-Patterns
2020

2121
:github_badge:`quantifiedcode/python-code-patterns`
2222

23-
Welcome, fellow Pythoneer! This is a small book of Python **anti-patterns** and **bad practices**.
23+
Welcome, fellow Pythoneer! This is a small book of Python **anti-patterns** and **worst practices**.
2424

2525
Learning about these anti-patterns will help you to avoid them in your own code and make you
2626
a better programmer (hopefully). Each pattern comes with a small description, examples and
@@ -40,8 +40,8 @@ Who are we?
4040
-----------
4141

4242
We're `QuantifiedCode`_, a Berlin-based startup. Our mission
43-
is to help everyone to write better code, faster! Our first product is an `online tool`_ for
44-
automated, data-driven code review. When building this tool, we learned a lot about code quality
43+
is to help programmers write better code! Our first product is an `online tool`_ for
44+
automated, data-driven code review. When building this tool we learned a lot about code quality
4545
in Python and decided to compile our knowledge into this book.
4646

4747
.. _QuantifiedCode: https://www.quantifiedcode.com/
@@ -87,9 +87,26 @@ simply forking our Github project and sending us a pull request once you're done
8787
We will review and merge all pull requests as fast as possible and be happy to include your name on
8888
the list of authors of this document.
8989

90+
List of Contributors
91+
--------------------
92+
93+
So far, the following people have contributed to this open-source book:
94+
95+
* `Kayce Basques`_ - Kayce wrote most of the original content for this book.
96+
* `Andreas Dewes`_ - Andreas compiled the list of patterns and did most of the editing.
97+
* `Christoph Neumann`_ - Christoph contributed material and did a large part of the editing.
98+
* `Florian Lehmann`_ - Florian designed the modified RTD theme used for this book.
99+
100+
.. _`Kayce Basques`: https://github.com/kaycebasques
101+
.. _`Andreas Dewes`: https://github.com/adewes
102+
.. _`Christoph Neumann`: https://github.com/programmdesign
103+
.. _`Florian Lehmann`: https://github.com/cashaddy
104+
90105
Index Of Patterns
91106
-----------------
92107

108+
Here's the full index of all anti-patterns in this book.
109+
93110
.. toctree::
94111
:glob:
95112
:maxdepth: 2

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy