-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathworkbench.tm
More file actions
250 lines (175 loc) · 5.77 KB
/
workbench.tm
File metadata and controls
250 lines (175 loc) · 5.77 KB
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
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
<TeXmacs|2.1.4>
<style|<tuple|generic|framed-session>>
<\body>
<with|font-series|bold|Scratchpad>
The main page : <slink|./src/main.tm>
<hrule>
This block builds the web pages. We need the environment variable
<shell|$PWD> to be set in order for the scripts to work correctly
<\session|scheme|default>
<\unfolded-io|Scheme] >
(getenv "NOTES")
<|unfolded-io>
#f
</unfolded-io>
<\input|Scheme] >
(setenv "NOTES" "/Users/mgubi/Dropbox/Safe/webpages")
</input>
<\input|Scheme] >
(load (url-\<gtr\>unix "$NOTES/notes-tools.scm"))
</input>
<\input|Scheme] >
(notes-update)
</input>
<\input|Scheme] >
(notes-build)
</input>
<\input|Scheme] >
\;
</input>
</session>
<hrule>
Use this to run a webserver and test the pages. Use the stop button to stop
the running server.
<\session|shell|default>
<\output>
Shell session inside TeXmacs pid = 82215
</output>
<\input|Shell] >
cd /Users/mgubi/Dropbox/Safe/webpages
</input>
<\unfolded-io|Shell] >
python3 -m http.server
<|unfolded-io>
Serving HTTP on :: port 8000 (http://[::]:8000/) ...
::1 - - [31/May/2024 10:58:42] "GET /docs/main.html HTTP/1.1" 304 -
::1 - - [31/May/2024 10:58:42] "GET
/docs/main-1.main-1.csm_random-wave_a3688e46a6.png HTTP/1.1" 304 -
<script-interrupted>
</unfolded-io>
<\unfolded-io|Shell] >
git status
<|unfolded-io>
On branch main
Your branch is ahead of 'origin/main' by 1 commit.
\ \ (use "git push" to publish your local commits)
\;
Changes not staged for commit:
\ \ (use "git add \<file\>..." to update what will be committed)
\ \ (use "git restore \<file\>..." to discard changes in working
directory)
\ \ \ \ \ \ \ \ modified: \ \ docs/list-articles.html
\ \ \ \ \ \ \ \ modified: \ \ docs/notes.atom
\ \ \ \ \ \ \ \ modified: \ \ docs/research/people.html
\ \ \ \ \ \ \ \ modified: \ \ src/list-articles.tm
\;
no changes added to commit (use "git add" and/or "git commit -a")
</unfolded-io>
<\input|Shell] >
git add -u docs src
</input>
<\unfolded-io|Shell] >
git status
<|unfolded-io>
On branch main
Your branch is up to date with 'origin/main'.
\;
Changes to be committed:
\ \ (use "git restore --staged \<file\>..." to unstage)
\ \ \ \ \ \ \ \ modified: \ \ workbench.tm
\;
</unfolded-io>
<\input|Shell] >
git add -u .
</input>
<\unfolded-io|Shell] >
git commit -m"Update workbench"
<|unfolded-io>
[main 855a445] Update workbench
\ 1 file changed, 272 insertions(+)
</unfolded-io>
<\unfolded-io|Shell] >
git push origin
<|unfolded-io>
Enumerating objects: 5, done.
Counting objects: \ 20% (1/5)
Counting objects: \ 40% (2/5)
Counting objects: \ 60% (3/5)
Counting objects: \ 80% (4/5)
Counting objects: 100% (5/5)
Counting objects: 100% (5/5), done.
Delta compression using up to 8 threads
Compressing objects: \ 33% (1/3)
Compressing objects: \ 66% (2/3)
Compressing objects: 100% (3/3)
Compressing objects: 100% (3/3), done.
Writing objects: \ 33% (1/3)
Writing objects: \ 66% (2/3)
Writing objects: 100% (3/3)
Writing objects: 100% (3/3), 2.55 KiB \| 2.55 MiB/s, done.
Total 3 (delta 1), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: \ \ 0% (0/1) \ \ \ \ \ \ \
remote: Resolving deltas: 100% (1/1) \ \ \ \ \ \ \
remote: Resolving deltas: 100% (1/1), completed with 1 local object.
\ \ \ \ \ \ \
To github.com:mgubi/mgubi.github.io.git
\ \ \ 152377f..855a445 \ main -\<gtr\> main
</unfolded-io>
<\input|Shell] >
\;
</input>
</session>
<hrule>
Some experiments with biblio
<\session|scheme|default>
<\input|Scheme] >
(define l '(nocite "choukNonlinearPDEsModulated2014"
"choukRoughSheets2014" "flandoliRelationStochasticIntegration2002"
"gubinelliControlledViscositySolutions2014"))
</input>
<\unfolded-io|Scheme] >
`(document ,@(map (lambda (x) `(nocite ,x)) (cdr '(nocite
"gubinelliGNUTEXMACSScientific2014"
"vanderhoevenGNUTEXMACSScientific2013"
"flandoliEfficientRareEvents2002" "giordanoBridgeMonteCarloNovel2005"
"giordanoEfficiencyBridgeMonte2006"
"giordanoEfficientEstimationGaussian2004"
"giordanoEfficientSimulationOverflow2009"
"giordanoEstimationRareEvents2006" "giordanoRareEventsGaussian2007"
"amorena2002sull" "amorenaControlloDiagnosticaDi2003"))))
<|unfolded-io>
(document (nocite "gubinelliGNUTEXMACSScientific2014") (nocite
"vanderhoevenGNUTEXMACSScientific2013") (nocite
"flandoliEfficientRareEvents2002") (nocite
"giordanoBridgeMonteCarloNovel2005") (nocite
"giordanoEfficiencyBridgeMonte2006") (nocite
"giordanoEfficientEstimationGaussian2004") (nocite
"giordanoEfficientSimulationOverflow2009") (nocite
"giordanoEstimationRareEvents2006") (nocite
"giordanoRareEventsGaussian2007") (nocite "amorena2002sull") (nocite
"amorenaControlloDiagnosticaDi2003"))
</unfolded-io>
<\input|Scheme] >
\;
</input>
<\input>
Scheme]\
<|input>
\;
</input>
</session>
<hrule>
\;
</body>
<\initial>
<\collection>
<associate|font|typewriter=roman,Linux Libertine>
<associate|font-family|rm>
<associate|input-border|0>
<associate|input-color|#f0f0f0>
<associate|ornament-corner|30%>
<associate|page-medium|papyrus>
<associate|scheme-input-color|#aaf>
<associate|scheme-prompt-color|dark red>
</collection>
</initial>