aboutsummaryrefslogtreecommitdiff
path: root/projects
diff options
context:
space:
mode:
Diffstat (limited to 'projects')
-rw-r--r--projects/autograd.md8
-rw-r--r--projects/bubbl.md16
-rw-r--r--projects/index.html18
-rw-r--r--projects/msg.md32
4 files changed, 37 insertions, 37 deletions
diff --git a/projects/autograd.md b/projects/autograd.md
index fe076eb..0a9997f 100644
--- a/projects/autograd.md
+++ b/projects/autograd.md
@@ -25,15 +25,15 @@ X = [
[ 3.0, 3.0, 3.0 ]
]
-y = [ 1.0, -1.0, 1.0, -1.0 ]
+ y = [ 1.0, -1.0, 1.0, -1.0 ]
n = MLP(3, [ 4, 4, 1 ])
-for i in range(400):
+ for i in range(400):
pred = [ n(x) for x in X ]
loss = mse(y, pred)
loss.zero_grad()
loss.backward()
n.optimise(0.01)
-print(pred)
-```
+ print(pred)
+ ```
diff --git a/projects/bubbl.md b/projects/bubbl.md
index 324b821..2d1b8de 100644
--- a/projects/bubbl.md
+++ b/projects/bubbl.md
@@ -16,14 +16,14 @@ priority = 3
After entering the devshell (with direnv or `nix develop`),
-```sh
-mkdir build && cd build
-cmake -G Ninja ..
-ninja
-```
+ ```sh
+ mkdir build && cd build
+ cmake -G Ninja ..
+ ninja
+ ```
## Running
-```sh
-ninja run # or run-headless or run-gdb
-```
+ ```sh
+ ninja run # or run-headless or run-gdb
+ ```
diff --git a/projects/index.html b/projects/index.html
index 9ffb78c..beb392c 100644
--- a/projects/index.html
+++ b/projects/index.html
@@ -2,23 +2,23 @@ title = PROJECTS
---
<div class="p-16">
- <h1 class="text-5xl">PROJECTS</h1>
- <p class="text-xl">Here's a bunch of things I've done.</p>
+ <h1 class="text-5xl">PROJECTS</h1>
+ <p class="text-xl">Here's a bunch of things I've done.</p>
</div>
<div class="card-container">
- {{ eachdo resources.projects }}
+ {{ eachdo resources.projects }}
<a href="{{ put url }}" class="card-anchor button-inverted">
- <div class="flex flex-col gap-2 pt-2 items-center items-center">
- <p class="text-2xl font-semibold text-center">{{ put name }}</p>
- <p class="text-xl text-center text-wrap">{{ put description }}</p>
- </div>
+ <div class="flex flex-col gap-2 pt-2 items-center items-center">
+ <p class="text-2xl font-semibold text-center">{{ put name }}</p>
+ <p class="text-xl text-center text-wrap">{{ put description }}</p>
+ </div>
- <div class="text-center text-sm border-t-2 mt-3 py-1">{{ put languages }}</div>
+ <div class="text-center text-sm border-t-2 mt-3 py-1">{{ put languages }}</div>
</a>
- {{ endeachdo }}
+ {{ endeachdo }}
</div>
diff --git a/projects/msg.md b/projects/msg.md
index 64893cb..a9c4989 100644
--- a/projects/msg.md
+++ b/projects/msg.md
@@ -23,11 +23,11 @@ $ ./msg -h
msg: The Minimal Static Site Generator
Usage: ./msg [-h] [-w] [-v] [-o <output>] <directory>
- -h : Help
- -w : Watch working directory for changes
- -v : Verbose
- -o <output>: Output directory
- <directory>: Working directory
+-h : Help
+-w : Watch working directory for changes
+-v : Verbose
+-o <output>: Output directory
+<directory>: Working directory
```
### Site Structure
@@ -42,7 +42,7 @@ Usage: ./msg [-h] [-w] [-v] [-o <output>] <directory>
│   ├── navbar.html
├── projects.html
└── templates
- └── base.html
+└── base.html
```
### Features
@@ -52,10 +52,10 @@ Usage: ./msg [-h] [-w] [-v] [-o <output>] <directory>
```html
<!-- index.html -->
<html>
- <body>
- {{ include "navbar.html" }}
- ...
- </body>
+<body>
+{{ include "navbar.html" }}
+...
+</body>
</html>
```
@@ -64,12 +64,12 @@ Usage: ./msg [-h] [-w] [-v] [-o <output>] <directory>
```html
<!-- templates/base.html -->
<html>
- <head>
- {{ content "head" }}
- </head>
- <body>
- {{ body }}
- </body>
+<head>
+{{ content "head" }}
+</head>
+<body>
+{{ body }}
+</body>
</html>
<!-- index.html -->