Skip to content

Commit

Permalink
Formatting updates
Browse files Browse the repository at this point in the history
  • Loading branch information
aalexmmaldonado committed Nov 18, 2024
1 parent 82808c0 commit ad302fb
Show file tree
Hide file tree
Showing 31 changed files with 208 additions and 262 deletions.
34 changes: 17 additions & 17 deletions LICENSE_INFO.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,45 +39,45 @@ m. **You** means the individual or entity exercising the Licensed Rights under t

a. ***License grant.***

1. Subject to the terms and conditions of this Public License, the Licensor hereby grants You a worldwide, royalty-free, non-sublicensable, non-exclusive, irrevocable license to exercise the Licensed Rights in the Licensed Material to:
1. Subject to the terms and conditions of this Public License, the Licensor hereby grants You a worldwide, royalty-free, non-sublicensable, non-exclusive, irrevocable license to exercise the Licensed Rights in the Licensed Material to:

A. reproduce and Share the Licensed Material, in whole or in part; and

B. produce, reproduce, and Share Adapted Material.

2. **Exceptions and Limitations.** For the avoidance of doubt, where Exceptions and Limitations apply to Your use, this Public License does not apply, and You do not need to comply with its terms and conditions.
2. **Exceptions and Limitations.** For the avoidance of doubt, where Exceptions and Limitations apply to Your use, this Public License does not apply, and You do not need to comply with its terms and conditions.

3. **Term.** The term of this Public License is specified in Section 6(a).
3. **Term.** The term of this Public License is specified in Section 6(a).

4. **Media and formats; technical modifications allowed.** The Licensor authorizes You to exercise the Licensed Rights in all media and formats whether now known or hereafter created, and to make technical modifications necessary to do so.
4. **Media and formats; technical modifications allowed.** The Licensor authorizes You to exercise the Licensed Rights in all media and formats whether now known or hereafter created, and to make technical modifications necessary to do so.
The Licensor waives and/or agrees not to assert any right or authority to forbid You from making technical modifications necessary to exercise the Licensed Rights, including technical modifications necessary to circumvent Effective Technological Measures.
For purposes of this Public License, simply making modifications authorized by this Section 2(a)(4) never produces Adapted Material.

5. **Downstream recipients.**
5. **Downstream recipients.**

A. **Offer from the Licensor – Licensed Material.** Every recipient of the Licensed Material automatically receives an offer from the Licensor to exercise the Licensed Rights under the terms and conditions of this Public License.

B. **Additional offer from the Licensor – Adapted Material.** Every recipient of Adapted Material from You automatically receives an offer from the Licensor to exercise the Licensed Rights in the Adapted Material under the conditions of the Adapter’s License You apply.

C. **No downstream restrictions.** You may not offer or impose any additional or different terms or conditions on, or apply any Effective Technological Measures to, the Licensed Material if doing so restricts exercise of the Licensed Rights by any recipient of the Licensed Material.

6. **No endorsement.** Nothing in this Public License constitutes or may be construed as permission to assert or imply that You are, or that Your use of the Licensed Material is, connected with, or sponsored, endorsed, or granted official status by, the Licensor or others designated to receive attribution as provided in Section 3(a)(1)(A)(i).
6. **No endorsement.** Nothing in this Public License constitutes or may be construed as permission to assert or imply that You are, or that Your use of the Licensed Material is, connected with, or sponsored, endorsed, or granted official status by, the Licensor or others designated to receive attribution as provided in Section 3(a)(1)(A)(i).

b. ***Other rights.***

1. Moral rights, such as the right of integrity, are not licensed under this Public License, nor are publicity, privacy, and/or other similar personality rights; however, to the extent possible, the Licensor waives and/or agrees not to assert any such rights held by the Licensor to the limited extent necessary to allow You to exercise the Licensed Rights, but not otherwise.
1. Moral rights, such as the right of integrity, are not licensed under this Public License, nor are publicity, privacy, and/or other similar personality rights; however, to the extent possible, the Licensor waives and/or agrees not to assert any such rights held by the Licensor to the limited extent necessary to allow You to exercise the Licensed Rights, but not otherwise.

2. Patent and trademark rights are not licensed under this Public License.
2. Patent and trademark rights are not licensed under this Public License.

3. To the extent possible, the Licensor waives any right to collect royalties from You for the exercise of the Licensed Rights, whether directly or through a collecting society under any voluntary or waivable statutory or compulsory licensing scheme. In all other cases the Licensor expressly reserves any right to collect such royalties.
3. To the extent possible, the Licensor waives any right to collect royalties from You for the exercise of the Licensed Rights, whether directly or through a collecting society under any voluntary or waivable statutory or compulsory licensing scheme. In all other cases the Licensor expressly reserves any right to collect such royalties.

## Section 3 – License Conditions.

Your exercise of the Licensed Rights is expressly made subject to the following conditions.

a. ***Attribution.***

1. If You Share the Licensed Material (including in modified form), You must:
1. If You Share the Licensed Material (including in modified form), You must:

A. retain the following if it is supplied by the Licensor with the Licensed Material:

Expand All @@ -95,21 +95,21 @@ a. ***Attribution.***

C. indicate the Licensed Material is licensed under this Public License, and include the text of, or the URI or hyperlink to, this Public License.

2. You may satisfy the conditions in Section 3(a)(1) in any reasonable manner based on the medium, means, and context in which You Share the Licensed Material.
2. You may satisfy the conditions in Section 3(a)(1) in any reasonable manner based on the medium, means, and context in which You Share the Licensed Material.
For example, it may be reasonable to satisfy the conditions by providing a URI or hyperlink to a resource that includes the required information.

3. If requested by the Licensor, You must remove any of the information required by Section 3(a)(1)(A) to the extent reasonably practicable.
3. If requested by the Licensor, You must remove any of the information required by Section 3(a)(1)(A) to the extent reasonably practicable.

b. ***ShareAlike.***

In addition to the conditions in Section 3(a), if You Share Adapted Material You produce, the following conditions also apply.

1. The Adapter’s License You apply must be a Creative Commons license with the same License Elements, this version or later, or a BY-SA Compatible License.
1. The Adapter’s License You apply must be a Creative Commons license with the same License Elements, this version or later, or a BY-SA Compatible License.

2. You must include the text of, or the URI or hyperlink to, the Adapter's License You apply.
2. You must include the text of, or the URI or hyperlink to, the Adapter's License You apply.
You may satisfy this condition in any reasonable manner based on the medium, means, and context in which You Share Adapted Material.

3. You may not offer or impose any additional or different terms or conditions on, or apply any Effective Technological Measures to, Adapted Material that restrict exercise of the rights granted under the Adapter's License You apply.
3. You may not offer or impose any additional or different terms or conditions on, or apply any Effective Technological Measures to, Adapted Material that restrict exercise of the rights granted under the Adapter's License You apply.

## Section 4 – Sui Generis Database Rights.

Expand Down Expand Up @@ -141,9 +141,9 @@ However, if You fail to comply with this Public License, then Your rights under

b. Where Your right to use the Licensed Material has terminated under Section 6(a), it reinstates:

1. automatically as of the date the violation is cured, provided it is cured within 30 days of Your discovery of the violation; or
1. automatically as of the date the violation is cured, provided it is cured within 30 days of Your discovery of the violation; or

2. upon express reinstatement by the Licensor.
2. upon express reinstatement by the Licensor.

For the avoidance of doubt, this Section 6(b) does not affect any right the Licensor may have to seek remedies for Your violations of this Public License.

Expand Down
187 changes: 0 additions & 187 deletions docs/basics/colab.md

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# 2. Variables and Collections


```python
# Python has a print function
print("I'm Python. Nice to meet you!") # => I'm Python. Nice to meet you!
Expand Down
1 change: 0 additions & 1 deletion docs/external/ultimate/advanced/async.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ jobs. In the real world, it takes time for a scheduler to start a job (i.e.
hit an API endpoint, ask the operating system for resources) so we assume
that starting a job has some intrinsic delay.


```python
import asyncio
from dataclasses import dataclass
Expand Down
1 change: 0 additions & 1 deletion docs/external/ultimate/advanced/benchmark.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ Benchmarking is an approach that helps developers use profiling metrics
and their code intuition to optimize programs further. This module uses
cProfile to compare the performance of two functions with each other.


```python
import cProfile
import io
Expand Down
1 change: 0 additions & 1 deletion docs/external/ultimate/advanced/context_manager.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ can manage are files, database connections and sockets. In this module,
we simulate how a context manager can handle open and close operations of
a file-like object called StringIO.


```python
from contextlib import contextmanager
from io import StringIO
Expand Down
5 changes: 2 additions & 3 deletions docs/external/ultimate/advanced/date_time.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,19 @@ personal device. Once we use `datetime` objects for web applications that
are deployed globally, it's important to know the offset that `datetime`
objects are aligned to before processing them. For more on `datetime`:

https://docs.python.org/3/library/datetime.html
<https://docs.python.org/3/library/datetime.html>

Backend developers address this by storing time fields with offsets aligned
with the UTC (Coordinated Universal Time) timezone. As a result, time fields
can be displayed in any timezone - at any moment. For more on UTC:

https://en.wikipedia.org/wiki/Coordinated_Universal_Time
<https://en.wikipedia.org/wiki/Coordinated_Universal_Time>

In this module, we will show the difference between offset-naive and
offset-aware `datetime` objects. We will also highlight the builtin
UTC timezone and show how it can be used to make the default `datetime`
object more powerful.


```python
from datetime import datetime, timezone

Expand Down
1 change: 0 additions & 1 deletion docs/external/ultimate/advanced/decorator.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ This module shows how a simple "encryption" function for one string can
be decorated to work with a collection of strings. Note that the decorator
handles nested collections with the use of recursion.


```python
from functools import wraps

Expand Down
1 change: 0 additions & 1 deletion docs/external/ultimate/advanced/file_handling.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ Python provides various ways to work with files. We can use the
builtin 'open' function to open files in different modes like
reading ('r'), writing ('w'), and appending ('a').


```python
import os

Expand Down
1 change: 0 additions & 1 deletion docs/external/ultimate/advanced/meta_class.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ Metaclass are used to modify a class as it is being created at runtime.
This module shows how a metaclass can add database attributes and tables
to "logic-free" model classes for the developer.


```python
from abc import ABC

Expand Down
1 change: 0 additions & 1 deletion docs/external/ultimate/advanced/mixin.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ module, we have one request handler interface and two request handler
mixins to illustrate how mixins can make our lives easier when defining
concrete classes.


```python
from abc import ABC, abstractmethod
from dataclasses import dataclass
Expand Down
Loading

0 comments on commit ad302fb

Please sign in to comment.