Skip to content

Commit 82be28d

Browse files
committed
docs: embed wallet creation cast
1 parent dbfef55 commit 82be28d

File tree

3 files changed

+357
-353
lines changed

3 files changed

+357
-353
lines changed

docs/docs/user/configuration.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ Currently the Moog CLI works only by reading a wallet file containing a mnemonic
2828

2929
The `moog` command will read the wallet file from the `MOOG_WALLET_FILE` environment variable.
3030

31+
<AsciinemaEmbed
32+
src="/moog/video/wallet-create.cast"
33+
options={{ autoplay: false, theme: 'asciinema', speed: 1.0 }}
34+
/>
35+
3136
```bash
3237
export MOOG_WALLET_FILE=wallet.json
3338
```

docs/static/video/compress.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@
33

44
# get the input file name as CLI arg
55
input_file = sys.argv[1]
6+
# get the minimum delta time from CLI args
7+
min_delta = float(sys.argv[2])
68
# get the maximum delta time from CLI args
7-
max_delta = float(sys.argv[2])
9+
max_delta = float(sys.argv[3])
810
# base name without extension
911
base_name = input_file.rsplit(".", 1)[0]
1012
# extension
@@ -36,7 +38,10 @@
3638
# set delta = timestamp - last_time
3739
delta = timestamp - last_time
3840
# set new delta = min (delta, max_delta)
39-
new_delta = min(delta, max_delta)
41+
if delta < max_delta:
42+
new_delta = min_delta
43+
else:
44+
new_delta = max_delta
4045
# update current_time += new_delta
4146
current_time += new_delta
4247
# update last_time = timestamp

0 commit comments

Comments
 (0)