-
Notifications
You must be signed in to change notification settings - Fork 0
/
calvin-demo.yml
187 lines (169 loc) · 4.81 KB
/
calvin-demo.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
# The configurations that used for the recording, feel free to edit them
config:
# Specify a command to be executed
# like `/bin/bash -l`, `ls`, or any other commands
# the default is bash for Linux
# or powershell.exe for Windows
command: bash -l
# Specify the current working directory path
# the default is the current working directory path
cwd: /Users/malcolmnavarro/code/sandbox/calvin
# Export additional ENV variables
env:
recording: true
# Explicitly set the number of columns
# or use `auto` to take the current
# number of columns of your shell
cols: 134
# Explicitly set the number of rows
# or use `auto` to take the current
# number of rows of your shell
rows: 70
# Amount of times to repeat GIF
# If value is -1, play once
# If value is 0, loop indefinitely
# If value is a positive number, loop n times
repeat: 0
# Quality
# 1 - 100
quality: 100
# Delay between frames in ms
# If the value is `auto` use the actual recording delays
frameDelay: auto
# Maximum delay between frames in ms
# Ignored if the `frameDelay` isn't set to `auto`
# Set to `auto` to prevent limiting the max idle time
maxIdleTime: 2000
# The surrounding frame box
# The `type` can be null, window, floating, or solid`
# To hide the title use the value null
# Don't forget to add a backgroundColor style with a null as type
frameBox:
type: floating
title: Terminalizer
style:
border: 0px black solid
# boxShadow: none
# margin: 0px
# Add a watermark image to the rendered gif
# You need to specify an absolute path for
# the image on your machine or a URL, and you can also
# add your own CSS styles
watermark:
imagePath: null
style:
position: absolute
right: 15px
bottom: 15px
width: 100px
opacity: 0.9
# Cursor style can be one of
# `block`, `underline`, or `bar`
cursorStyle: block
# Font family
# You can use any font that is installed on your machine
# in CSS-like syntax
fontFamily: "Monaco, Lucida Console, Ubuntu Mono, Monospace"
# The size of the font
fontSize: 12
# The height of lines
lineHeight: 1
# The spacing between letters
letterSpacing: 0
# Theme
theme:
background: "transparent"
foreground: "#afafaf"
cursor: "#c7c7c7"
black: "#232628"
red: "#fc4384"
green: "#b3e33b"
yellow: "#ffa727"
blue: "#75dff2"
magenta: "#ae89fe"
cyan: "#708387"
white: "#d5d5d0"
brightBlack: "#626566"
brightRed: "#ff7fac"
brightGreen: "#c8ed71"
brightYellow: "#ebdf86"
brightBlue: "#75dff2"
brightMagenta: "#ae89fe"
brightCyan: "#b1c6ca"
brightWhite: "#f9f9f4"
# Records, feel free to edit them
records:
- delay: 2014
content: "\r\nThe default interactive shell is now zsh.\r\nTo update your account to use zsh, please run `chsh -s /bin/zsh`.\r\nFor more details, please visit https://support.apple.com/kb/HT208050.\r\n"
- delay: 124
content: "\e[?1034hmalcolmnavarro@Malcolms-MBP-2 calvin\e[32m (feature/malcolm)\e[00m $ "
- delay: 863
content: p
- delay: 346
content: 'y'
- delay: 70
content: 'y'
- delay: 95
content: t
- delay: 56
content: h
- delay: 146
content: o
- delay: 181
content: 'n'
- delay: 579
content: "\b\e[K"
- delay: 114
content: "\b\e[K"
- delay: 122
content: "\b\e[K"
- delay: 132
content: "\b\e[K"
- delay: 135
content: "\b\e[K"
- delay: 113
content: t
- delay: 95
content: h
- delay: 109
content: o
- delay: 152
content: 'n'
- delay: 517
content: "\r\n"
- delay: 94
content: "Python 3.7.2 (default, Jul 6 2020, 10:29:31) \r\n[Clang 11.0.3 (clang-1103.0.32.62)] on darwin\r\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\r\n>>> "
- delay: 872
content: import calvin
- delay: 597
content: "\r\n"
- delay: 133
content: '>>> '
- delay: 3108
content: >-
calvin.initialize("sk-NX2BXKHhqon31b6QeIo92ELInR8IyiqE2kdpFOf9",
"davinci")
- delay: 501
content: "\r\n>>> "
- delay: 3513
content: "calvin.complete_prompt(\"Is JavaScript programming language better than Python?\")\r\n"
- delay: 1434
content: "JSON: {'id': 'cmpl-BRZAZMAMXml1F7SV607YvBuw', 'object': 'text_completion', 'created': 1595443743, 'model': 'davinci:2020-05-03', 'choices': [{'text': '\\n\\nJavascript is', 'index': 0, 'logprobs': None, 'finish_reason': 'length'}]}\r\n>>> "
- delay: 3381
content: e
- delay: 181
content: x
- delay: 100
content: i
- delay: 124
content: t
- delay: 286
content: (
- delay: 141
content: )
- delay: 378
content: "\r\n"
- delay: 134
content: "malcolmnavarro@Malcolms-MBP-2 calvin\e[32m (feature/malcolm)\e[00m $ "
- delay: 1417
content: "logout\r\n"