-
Choose your names thoughtfully
-
Communicate your intent
-
Avoid Disinformation
- don't let the names' meaning drift; rename if necessary
-
Pronounceable Names
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
# Given three integers `x`, `y` and `z` representing the dimensions of a cuboid along with an integer `n`. | |
# Print a list of all possible coordinates given by `(i, j, k)` on a 3D grid where the sum of `i + j + k` is NOT equal to `n`. | |
# Here, `0<=i<=x;0<=j<=y;0<=k<=z` | |
def for_loops(x: int, y: int, z: int, n: int): | |
result = [] | |
for k in range(z + 1): | |
for j in range(y + 1): | |
for i in range(x + 1): |
- Give what your audience need!
- NOT speaker-centered
- be audience-centered
- less is more, don't give unnecessary details
- Identify the challenges
- What's the problem?
- What's the goal?
In this quick walkthough you'll learn how to create a separate branch in your repo to house your screenshots and demo gifs for use in your master's readme.
In order to prevent any loss of work it is best to clone the repo in a separate location to complete this task.
Create a new branch in your repo by using git checkout --orphan assets
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
#!/bin/bash | |
git fetch upstream | |
git checkout master | |
git rebase upstream/master |
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
version: "3.8" | |
services: | |
mongodb: | |
image: mongo:4.4 | |
container_name: mongodb | |
# we need a constant hostname for --bind_ip | |
hostname: mongodb.test | |
volumes: | |
- data_db:/data/db |
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
[tool.black] | |
line-length = 99 # override black's default line-length | |
exclude = ''' | |
/( | |
\.git | |
| \.mypy_cache | |
| \.tox | |
| venv | |
| \.venv | |
| _build |
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
{ | |
"editor.formatOnSave": true, | |
"python.pythonPath": "./workspace_venv/bin/python3", | |
"python.formatting.provider": "black", | |
"python.formatting.blackArgs": [ | |
"--line-length=99" | |
], | |
"python.sortImports.args": [ | |
"--profile", "black" | |
], |
NewerOlder