Skip to content

Commit ecacd77

Browse files
author
Victor Santiago Martinez Picardo
committed
Style change, and code distribution fix.
Signed-off-by: Victor Santiago Martinez Picardo <vmartinez@efor.es>
1 parent e490d16 commit ecacd77

File tree

5 files changed

+16
-23
lines changed

5 files changed

+16
-23
lines changed

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
<!-- Footer -->
6767
<footer class="main-footer"> <!--style="position: fixed; left: 0; right: 0; bottom: 0; height: 50px;"-->
6868
<div class="float-right d-none d-sm-block">
69-
<b>Version</b> 0.0.7
69+
<b>Version</b> 0.0.8
7070
</div>
7171
<strong>Copyright © <span id="year_footer">2024</span> <a href="https://github.com/elModo7" target="_blank">Víctor Santiago Martínez Picardo</a>.</strong> All rights reserved.
7272
</footer>

personal_projects/gb_library/article.html

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@ <h4>Phone Preview</h4>
4242
<h4>Project Structure</h4>
4343
<img class="shadow-lg article-inner-image" src="static/img/personal_projects/gb_library/folder_structure.png"></img>
4444
<h4>Libraries and Configuration</h4>
45-
<pre class="col-md-12">
46-
<code class="language-autohotkey">#NoEnv ; GB Library v2 Bootstrap Version
45+
<pre class="col-md-12"><code class="language-autohotkey">#NoEnv ; GB Library v2 Bootstrap Version
4746
#SingleInstance force
4847
SetBatchLines, -1
4948
#include, &lt;AHKhttp&gt;
@@ -52,13 +51,11 @@ <h4>Libraries and Configuration</h4>
5251
global WebEmu := "http://127.0.0.1:81"
5352
global WebEmuRoot := WebEmu ; Root, same due to the use of index.html
5453
global PuertoPHP := 81 ; Emulator Port
55-
global PuertoAHK := 80 ; Auto-generated base Port</code>
56-
</pre>
54+
global PuertoAHK := 80 ; Auto-generated base Port</code></pre>
5755
</div>
5856

5957
<h4>Dynamic generator</h4>
60-
<pre class="col-md-12">
61-
<code class="language-autohotkey">Loop Files, %A_ScriptDir%\roms\*.*, R ; Recurse into subfolders.
58+
<pre class="col-md-12"><code class="language-autohotkey">Loop Files, %A_ScriptDir%\roms\*.*, R ; Recurse into subfolders.
6259
{
6360
StringReplace , CurrentGame, A_LoopFileName, %A_Space%,,All
6461
StringReplace, FileNameNoExt, A_LoopFileName, % "." . A_LoopFileExt
@@ -72,12 +69,10 @@ <h4>Dynamic generator</h4>
7269
EnlacesRoms := EnlacesRoms Rutilla
7370
ListaRoms.Push(A_LoopFileName)
7471
paths["/"CurrentGame] := Func("IniciarRom").Bind(A_LoopFileName)
75-
}</code>
76-
</pre>
72+
}</code></pre>
7773

7874
<h4>PHP & HTTP Server</h4>
79-
<pre class="col-md-12">
80-
<code class="language-autohotkey">; PHP Server
75+
<pre class="col-md-12"><code class="language-autohotkey">; PHP Server
8176
SetWorkingDir, %A_ScriptDir%\htdocs
8277
Run, cmd /c "%A_ScriptDir%\php" -S 0.0.0.0:%PuertoPHP% -t . codex.php,, Hide
8378
menu, tray, NoStandard
@@ -90,20 +85,17 @@ <h4>PHP & HTTP Server</h4>
9085
server := new HttpServer()
9186
server.LoadMimes(A_ScriptDir . "/lib/mime.types")
9287
server.SetPaths(paths)
93-
server.Serve(PuertoAHK)</code>
94-
</pre>
88+
server.Serve(PuertoAHK)</code></pre>
9589

9690
<h4>Emulator REST Controller</h4>
97-
<pre class="col-md-12">
98-
<code class="language-autohotkey">IniciarRom(rom, ByRef req, ByRef res) {
91+
<pre class="col-md-12"><code class="language-autohotkey">IniciarRom(rom, ByRef req, ByRef res) {
9992
RunWait, cmd /c del /f "%A_ScriptDir%\htdocs\rom\game.gb",, Hide ; Force delete
10093
FileCopy, %A_ScriptDir%\roms\%rom%, %A_ScriptDir%\htdocs\rom\game.gb, 1
10194
res.SetBodyText("&lt;html&gt;&lt;header&gt;&lt;title&gt;GB Online Library&lt;/title&gt;&lt;/header&gt;&lt;body&gt;&lt;meta http-equiv='Refresh' content='0; url=" WebEmu "' /&gt;&lt;a href='" WebEmu "'&gt;Iniciar Emulador&lt;/a&gt;&lt;/body&gt;&lt;/html&gt;")
10295
res.status := 200
10396
FormatTime, FechaActual,,[dd-MM-yyyy HH:mm:ss]
10497
FileAppend, %FechaActual% Iniciando Rom`: %rom%`n, ..\Log.txt
105-
}</code>
106-
</pre>
98+
}</code></pre>
10799

108100

109101
<br><br>

pills/ram_optimizer.html

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ <h4>Libraries used:</h4>
3232
</p>
3333
<br>
3434
<h3>💻 Explaining the main 3 functions:</h3>
35-
<pre class="col-md-12"><code class="language-autohotkey">
36-
; Function to get the current memory load percentage
35+
<pre class="col-md-12"><code class="language-autohotkey">; Function to get the current memory load percentage
3736
MemoryLoad()
3837
{
3938
; Define a static variable MEMORYSTATUSEX and initialize it with the size of the structure.
@@ -85,7 +84,6 @@ <h3>💻 Explaining the main 3 functions:</h3>
8584
}
8685
; Finally, call 'EmptyWorkingSet' on the current process (-1) to clean up its memory.
8786
return DllCall("psapi.dll\EmptyWorkingSet", "ptr", -1)
88-
}
89-
</code></pre>
87+
}</code></pre>
9088
</div>
9189
</div>

static/css/prism/themes/coy.css

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

static/css/prism/themes/coy_original.css

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)