File tree 3 files changed +36
-2
lines changed
3 files changed +36
-2
lines changed Original file line number Diff line number Diff line change 1
- 3.1.1
1
+ 3.3.4
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ tig working-with-unix-processes/
17
17
## [ auto commit] ( https://github.com/liijunwei/omz-git/blob/4c85c101e11ef9fd660f4378c8f51ca60b26fbdc/aliases.sh#L19 )
18
18
19
19
``` bash
20
- alias git-setup-auto-commit= " watch -n 120 \ " git pull && git add . && git commit -m 'Commit automatically by watch.' \" "
20
+ watch -n 300 " git pull && git add . && git commit -m 'watch commit' "
21
21
```
22
22
23
23
## vm for c programs
Original file line number Diff line number Diff line change
1
+ <!DOCTYPE html>
2
+ < html >
3
+ < head >
4
+ < title > cart quantity</ title >
5
+ </ head >
6
+
7
+ < p > cart overview</ p >
8
+ < body >
9
+ < button onclick ="
10
+ console.log(`current cart quantity: ${quantity}`);
11
+ "> show quantity</ button >
12
+ < button onclick ="
13
+ quantity += 1;
14
+ console.log(`current cart quantity: ${quantity}`);
15
+ "> add to cart</ button >
16
+ < button onclick ="
17
+ quantity += 2;
18
+ console.log(`current cart quantity: ${quantity}`);
19
+ "> +2</ button >
20
+ < button onclick ="
21
+ quantity += 3;
22
+ console.log(`current cart quantity: ${quantity}`);
23
+ "> +3</ button >
24
+ < button onclick ="
25
+ quantity = 0;
26
+ console.log(`cart reset`);
27
+ console.log(`current cart quantity: ${quantity}`);
28
+ "> reset cart</ button >
29
+ </ body >
30
+
31
+ < script >
32
+ let quantity = 0 ;
33
+ </ script >
34
+ </ html >
You can’t perform that action at this time.
0 commit comments