Skip to content

Commit bea43f0

Browse files
authored
Merge pull request #18 from makersacademy/h1-2024-fixes
acquire recent changes
2 parents 39c9d03 + 17dc973 commit bea43f0

File tree

8 files changed

+735
-47
lines changed

8 files changed

+735
-47
lines changed

.replit

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
# The command that runs the program. If the interpreter field is set, it will have priority and this run command will do nothing
2-
run = "bash lib/intro.sh"
2+
run = "bash -c 'source lib/intro.sh; bash'"
33

44
# The primary language of the repl. There can be others, though!
55
language = "python3"
66
entrypoint = "main.py"
77
# A list of globs that specify which files and directories should
88
# be hidden in the workspace.
99
hidden = ["venv", ".config", "**/__pycache__", "**/.mypy_cache", "**/*.pyc", "999_video_index.md"]
10+
modules = ["python-3.10:v18-20230807-322e88b"]
1011

1112
# Specifies which nix channel to use when building the environment.
1213
[nix]

000_START_HERE.md

Lines changed: 27 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,30 @@ ideas will apply to any language.
1414
> guide](https://youtu.be/c0GdcmPfKL4) to get set up.
1515
> Otherwise, keep reading below.
1616
17-
[Open up the replit space.](https://replit.com/@neoeno/The-Perfect-Crab-Introduction-to-Programming)
18-
19-
Click the 'Fork' button on the right. This will open up the
20-
programming interface you will use to learn.
17+
To get started:
18+
19+
1.[Open up the replit
20+
space.](https://replit.com/@neoeno/The-Perfect-Crab-Introduction-to-Programming)
21+
**If you're reading this, you've already done this and you can move on to the
22+
line below.**
23+
2. Click the 'Fork & Run' button on the right. This will open up the programming
24+
interface you will use to learn.
25+
3. Sign up for a new replit account, or log in if you have one already.
26+
4. Replit will open this file again in your own account.
27+
5. After this, keep reading down the file for further instructions.
28+
29+
⚠️ **If you encounter any 404 errors after you've signed up,** please follow
30+
this process:
31+
32+
1. Sign up and sign in to replit. You can tell you are signed in because it
33+
won't say 'Log in' in the top right.
34+
2. [Click this
35+
link](https://replit.com/@neoeno/The-Perfect-Crab-Introduction-to-Programming).
36+
Make sure you click it, don't just press the back button or assume you're on
37+
it already.
38+
3. Click the green 'Fork & Run' button on the right.
39+
40+
⚙️ **If you prefer to use your own local development setup**
2141

2242
If you're confident using your own local development setup
2343
and you have Python 3 installed, you can instead clone this
@@ -44,8 +64,8 @@ You may find the default replit theme hard to read. We have
4464
created two themes which combine good contrast and
4565
readability. I would recommend you use one of them:
4666

47-
* [Makers Reader Theme (Light)](https://replit.com/theme/@neoeno/makers-reader)
48-
* [Makers Reader Theme (Dark)](https://replit.com/theme/@neoeno/makers-reader-dark)
67+
* [Makers Reader Theme (Light)](https://replit.com/theme/@training17/makers-reader)
68+
* [Makers Reader Theme (Dark)](https://replit.com/theme/@training17/makers-reader-dark)
4969

5070
When you're done setting it up, it should look something like this:
5171

@@ -87,4 +107,4 @@ each file.
87107

88108
We would receive it with gratitude. [You can give us
89109
feedback
90-
here.](https://airtable.com/shrDOnkLFDkRiOHmU?prefill_Repository=IntroToProgramming)
110+
here.](https://forms.gle/Vo76eDCGRrWngWkD7)

010_comments.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
# Before you go any further:
2+
3+
# Replit has added some AI tools! Pretty cool, but it might
4+
# interfere with your learning if the AI does your work for
5+
# you. To disable it, find the 'AI' button at the bottom of
6+
# the screen, click it, and then uncheck the check box next
7+
# to 'Enable'.
8+
9+
# Here's a video that will show you how: https://youtu.be/YHlWrWFQZC0
10+
11+
# You're welcome to re-enable it if you want to try it out,
12+
# but keep it disabled when you're doing the exercises.
13+
14+
# Now, back to where we were —
15+
116
# Video alternative: https://youtu.be/JxLwSFfns_4
217

318
# Hello! Welcome to programming. My name is Kay and I will

013_add_two.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@
1010
# * Adds two to it
1111
# * Returns the result
1212

13+
# ⚠️ If you see code magically appearing in your editor
14+
# before you type it — that's AI! Please disable it to
15+
# make sure it doesn't do your work for you.
16+
# Here's how: https://youtu.be/YHlWrWFQZC0
17+
1318
# YOUR FUNCTION GOES BELOW THIS LINE
1419

1520

lib/intro.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#!/bin/bash
22

3+
THIS_DIR="$(dirname -- "${BASH_SOURCE[0]}")"
4+
cp $THIS_DIR/.bashrc ~/.bashrc
5+
36
BLUE='\033[1;34m'
47
RED='\033[1;31m'
58
NC='\033[0m'

0 commit comments

Comments
 (0)