Skip to content

Commit 4a6bc6a

Browse files
pedrothCopilot
andcommitted
Refactor tags in JSON database, update RSS lastBuildDate, and optimize page rendering in JavaScript
Co-authored-by: Copilot <copilot@github.com>
1 parent 8014075 commit 4a6bc6a

19 files changed

Lines changed: 13 additions & 12 deletions

File tree

database/db.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,6 @@
339339
"c",
340340
"3d",
341341
"js",
342-
"library",
343342
"project",
344343
"simulation",
345344
"visualization",
@@ -382,8 +381,6 @@
382381
"creationDate": "11/04/2021",
383382
"lastUpdateDate": "11/04/2021",
384383
"tags": [
385-
"2d",
386-
"3d",
387384
"NLP",
388385
"java",
389386
"geometry",

feed/rss.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<description><![CDATA[Pedroth's Corner: Maths. Computer Science. Philosophy]]></description>
55
<link>https://pedroth.github.io</link>
66
<generator>Pedroth RSS Generator</generator>
7-
<lastBuildDate>Tue, 05 May 2026 19:39:31 GMT</lastBuildDate>
7+
<lastBuildDate>Fri, 08 May 2026 23:15:35 GMT</lastBuildDate>
88
<atom:link href="https://pedroth.github.io/feed/rss.xml" rel="self" type="application/rss+xml"/>
99
<language><![CDATA[en-US]]></language>
1010
<item>

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ function footer() {
170170
content = await mainModule.default();
171171
}
172172

173+
// important optimization, instead of re-rendering the whole page we just change the content of the page container, this way we keep the header and footer intact and avoid re-rendering them.
173174
contentContainer
174175
.removeChildren()
175176
.append(content);
-5.08 KB
Binary file not shown.

posts/CellularAutomaton/CellularAutomaton.nd

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,20 @@ tags: [
1313
-->
1414
I made a simple [*Cellular Automaton*][automaton] application long time ago. Here each pixel represents a [cellular automaton][automaton] which is *alive* if is green or *dead* if is dark. The rules for the cellular automaton to be born and to survive are defined by the $S/B$ rules:
1515
- $S$ defines counts of alive neighbors necessary for a cell to survive.
16-
- $B$ defines counts of alive neighbors necessary for a cell to be born.
16+
- $B$ defines counts of alive neighbors necessary for a cell to be born.
17+
18+
If cell is not born or does not survive, then it dies or remains dead.
1719

1820
In this _app_ you can try several [cellular automata rules][rules]:
1921

20-
- Maze: `12345/3`
21-
- 34 Life: `34/34`
22-
- Coral: `45678/3`
23-
- Coagulation: `2335678/378`
24-
- Pseudo life: `238/357`
25-
- Replicator: `1357/1357`
26-
- Total Random rules
22+
- Maze: `12345/3` *[key 1]*
23+
- 34 Life: `34/34` *[key 2]*
24+
- Coral: `45678/3` *[key 5]*
25+
- Coagulation: `235678/378` *[key 6]*
26+
- Replicator: `1357/1357` *[key 7]*
27+
- Gnarl: `1/1` *[key 8]*
28+
- Flakes: ` 012345678/3` *[key 9]*
29+
- Total Random rules *[key 0]*
2730

2831
![*Cellular automaton* app video](https://www.youtube.com/watch?v=HO1TijJ5DFM)
2932

-5.08 KB
Binary file not shown.

posts/CubeChaos/CubeChaos.zip

-5.08 KB
Binary file not shown.
-5.7 KB
Binary file not shown.

posts/GraphXY/GraphXY.zip

-5.08 KB
Binary file not shown.
-5.7 KB
Binary file not shown.

0 commit comments

Comments
 (0)