-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #384 from bozhodimitrov/main
Examples for episodes 557 - 559
- Loading branch information
Showing
11 changed files
with
82 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# [don't delete from pypi! (yank instead) (intermediate)](https://youtu.be/lUFA_WklFII) | ||
|
||
Today we talk about pypi -- and why you shouldn't delete from it! yanking is the way and we show how it works and what effects it has on people attempting to install! | ||
|
||
## Interactive examples | ||
|
||
### Bash | ||
|
||
```bash | ||
virtualenv -ppython3.11 venv | ||
. venv/bin/activate | ||
|
||
pip install codecov-cli'<0.3.7' | ||
pip install codecov-cli==0.3.6 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# [git: --first-parent (intermediate)](https://youtu.be/nsSj7snqODM) | ||
|
||
Today we talk about a helpful argument in `git` for visualizing histories (and diffs!) | ||
|
||
## Interactive examples | ||
|
||
### Bash | ||
|
||
```bash | ||
git clone [email protected]:anthonywritescode/twitch-chat-bot | ||
cd twitch-chat-bot/ | ||
|
||
git log | ||
git log --oneline | ||
git log --oneline --graph | ||
|
||
git show <commit_hash> | ||
git log --oneline --first-parent | ||
git show --first-parent <commit_hash> | ||
|
||
git clone [email protected]:pre-commit/pre-commit | ||
cd pre-commit/ | ||
git log --oneline --first-parent --decorate | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# [I don't use backslashes (with one exception) (beginner - intermediate)](https://youtu.be/Y_gfBcjS5EY) | ||
|
||
Today I talk about the backslash character in python and why I avoid it -- but also the one case where I do use it :) | ||
|
||
## Interactive examples | ||
|
||
### Python | ||
|
||
```python | ||
x | ||
x.lstrip() | ||
x.lstrip('\n') | ||
``` | ||
|
||
### Bash | ||
|
||
```bash | ||
python t.py | ||
python -m tokenize t.py | ||
python -i t.py | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
x = | ||
3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
x = \ | ||
3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
x = \ | ||
3 \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
x = \ | ||
3 \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
x = ( | ||
3 | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
x = """ | ||
hello | ||
hello | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
x = """\ | ||
hello | ||
hello | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters