Skip to content

Commit 81fd15d

Browse files
committed
watch commit
1 parent 69dc262 commit 81fd15d

File tree

3 files changed

+36
-2
lines changed

3 files changed

+36
-2
lines changed

.ruby-version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.1.1
1+
3.3.4

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ tig working-with-unix-processes/
1717
## [auto commit](https://github.com/liijunwei/omz-git/blob/4c85c101e11ef9fd660f4378c8f51ca60b26fbdc/aliases.sh#L19)
1818

1919
```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'"
2121
```
2222

2323
## vm for c programs

javascript/basics/cart.html

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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>

0 commit comments

Comments
 (0)