Loading...
This is a test to see how an md file is rendered in my site, the file you see was generated by chatgpt.
Let's start with some code!
Dockerfile
# Use the official Rust image as the base image
FROM rust:latest
# Set the working directory inside the container
WORKDIR /usr/src/app
# Copy the Rust project files into the container
COPY . .
# Build the Rust project
RUN cargo build --release
# Run the binary after the build
CMD ["./target/release/my_app"]
Now some rust code!
Rust
struct Person {
name: String,
age: u32,
}
impl Person {
fn new(name: &str, age: u32) -> Self {
Person {
name: String::from(name),
age,
}
}
fn say_hello(&self) {
println!("Hello, my name is {} and I'm {} years old.", self.name, self.age);
}
}
Now a bit of assembly code,as these topics will be covered in this blog
X86 asm code
; get a write handle
MOV rcx, STD_OUTPUT_HANDLE
CALL GetStdHandle
MOV whandle, eax ; write handle
; get a read handle
MOV rcx, STD_INPUT_HANDLE
CALL GetStdHandle
MOV rhandle, eax ; read handle`
And finally... for importance, C code.
C code
void MyFunction()
{
TCHAR szBuffer[100];
DWORD dwCount;
WriteConsoleW(GetStdHandle(STD_OUTPUT_HANDLE),
L"Type some text:\n",
16,
&dwCount,
NULL);
ReadConsoleW(GetStdHandle(STD_INPUT_HANDLE),
szBuffer,
100,
&dwCount,
NULL);
WriteConsoleW(GetStdHandle(STD_OUTPUT_HANDLE),
szBuffer,
dwCount,
&dwCount,
NULL);
}
This is a paragraph tag. It's used for displaying text content.
Click me to visit Example website!
Unordered list
Ordered list
It's probably important that images look okay here by default as well:
Now some maths!
Integral $\int_{a}^{b} x^2 dx$ inside text. The same integral on display: $$\int_{a}^{b} x^2 \,dx$$ and multiple integrals: $$\iint_V \mu(u,v) \,du\,dv$$ $$\iiint_V \mu(u,v,w) \,du\,dv\,dw$$ $$\oint_V f(s) \,ds$$ Sum $\sum_{n=1}^{\infty} 2^{-n} = 1$ inside text.