You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Week1/LESSONPLAN.md
+74-34Lines changed: 74 additions & 34 deletions
Original file line number
Diff line number
Diff line change
@@ -16,73 +16,113 @@ The purpose of this class is to introduce to the student (1) the basics of worki
16
16
- CSS basics
17
17
- The box model
18
18
19
-
## FIRST HALF (12.00 - 13.30)
19
+
## Core concepts
20
+
FIRST HALF (12.00 - 13.30)
20
21
21
-
###1. Command line interface basics
22
+
## 1. Command line interface basics
22
23
24
+
### Explanation
23
25
- The command line interface (CLI) is a way to navigate your computer by issuing direct commands
24
26
- In the past computer had **just** a command line
25
27
- Desktop application icons are visual shortcuts (Windows: show `$ calc` to launch the calculator)
26
-
27
-
_Tell and show basic command line concepts: `~`, `$`, path, avoid spaces, ctrl+c to cancel, arrow up to go through history, Windows: right click paste_
28
-
29
-
_Show students the most commonly used commands (`ls`, `pwd`, `cd`, `echo`, `cat`, `mkdir`, `touch`, `mv`, `cp`, `clear`, `exit`)_
30
-
31
-
### 2. Exercise
32
-
28
+
### Example
29
+
30
+
| Command | Description |
31
+
| ------- | ----------- |
32
+
|`pwd`| present working directory |
33
+
|`ls`| List files in the directory |
34
+
|`cd`| change the directory |
35
+
|`touch`| Create an empty file |
36
+
|`echo`| display the string |
37
+
|`echo -n`| Display the string without newline |
38
+
|`echo “something” > file`| Redirect the output of echo and create file |
39
+
|`echo “another thing” >> file`| Append the string to the file |
40
+
|`mkdir`| make a new directory |
41
+
|`cd ~`| home |
42
+
|`cd -`| previous directory |
43
+
|`cd ..`| parent directory |
44
+
|`ls -a`| List all files including hidden files |
45
+
|`cd /`| change to the root directory |
46
+
|`cat`| Concatenate the file line by line and display it on the terminal |
47
+
|`less`| Print the big file line by line |
48
+
|`vim <file>`| open the editor with <file> {`a:` to go to the insert mode, <ESC>`:wq` to write and quit } |
49
+
|`for var in {START..END}; do <COMMAND1>; <COMMAND2>;..; ; done`||
50
+
|`head <file>`| display the first 10 lines of file |
51
+
|`tail <file>`| display the last 10 lines of file |
52
+
|`head -n <file>`| display first n lines of file |
53
+
|`tail -n <file>`| display last n lines of file |
54
+
|`man <COMMAND>`| Display manual of the COMMAND |
55
+
56
+
### Excercise
33
57
- Open a command line (Git Bash on Windows)
34
58
- Create a project folder to contain all your HYF work (mkdir)
35
59
- Create a module folder (cd, mkdir)
36
60
- Create a text file: notes.txt (cd, touch)
37
61
- Open Visual Studio Code and add some notes (code .)
38
62
- Rename the file to lecture1.txt (mv)
39
63
40
-
## SECOND HALF (14.00 - 16.00)
41
64
42
-
### 1. HTML basics
43
-
44
-
- HTML is just plain text, nothing special
45
-
- Browsers read the HTML and CSS and render a beautiful webpage
46
-
- HTML of a website comes from a server (which is just another computer somewhere)
65
+
_"I go on holiday and I take with me"_ with CLI commands:
47
66
48
-
_Show most basic HTML structure, also show how Visual Studio Code can autocomplete html structure by just typing: html_
67
+
- They have to repeat the commands said before them.
68
+
- Add a new command and explain what it does.
69
+
- Let the round continue twice otherwise the students that went first don't have to repeat all the commands.
49
70
50
-
### 2. Difference `<head>` and `<body>`
71
+
E.g., first student says _"ls : lists commands"_. Second student must say _"ls and cd: change directory"_. Then third student must say _"ls, cd and pwd : show print working directory"_ and so on.
0 commit comments