Feature Demo
This page is a sample of the features available on project pages.
Formatted text
The writing in the portfolio is meant to be easy to read: short paragraphs, clear headings and, where it helps, a list or a table. This section shows how the text styles appear on the page.
Emphasis and inline styles
A sentence can use bold, italic and bold italic emphasis. Added wording can be shown underlined and withdrawn wording struck through. Technical terms are written as inline code. For other work, see the Projects page.
A project page is a single place that follows the path from idea to result. A reader should find what they need quickly.
Lists
A project page usually consists of these parts:
- A short summary
- Purpose and scope
- Tools used
- A detailed account
- Results and takeaways
The reading order of a project is:
- Read the summary.
- Look into the details:
- Code and circuit examples
- Charts and 3D models
- Reach the downloadable files.
A small table
| Part | Content |
|---|---|
| Summary | Purpose and result of the project |
| Details | Method, code and visuals |
| Files | Downloadable attachments |
| Feature | Status |
|---|---|
| Code | Output is prepared ahead and shown ready on the page |
| Simulation | Result is computed ahead and explored on a chart |
Formula
\[V_{out}(t) = V_{in}\left(1 - e^{-t/RC}\right)\]Code blocks
Python plot
import numpy as np
import matplotlib.pyplot as plt
t = np.linspace(0, 1, 500)
y = np.exp(-3 * t) * np.sin(2 * np.pi * 8 * t)
plt.figure(figsize=(7, 3))
plt.plot(t, y, color='tab:red')
plt.grid(True)
plt.savefig('/out/python.png', dpi=120)
print(f'En dusuk deger: {y.min():.3f}')
C output
#include <stdio.h>
int main(void) {
int total = 0;
for (int i = 1; i <= 10; i++) total += i;
printf("C toplam: %d\n", total);
return 0;
}
C++ output
#include <iostream>
#include <vector>
#include <numeric>
int main() {
std::vector<int> values{2, 4, 6, 8};
std::cout << "C++ toplam: " << std::accumulate(values.begin(), values.end(), 0) << std::endl;
}
Octave plot
t = 0:0.01:1;
y = sin(2 * pi * 3 * t);
fig = figure('visible', 'off');
plot(t, y);
grid on;
print(fig, '/out/octave.png', '-dpng');
printf('RMS: %.3f\n', sqrt(mean(y .^ 2)));
VHDL simulation
library ieee;
use ieee.std_logic_1164.all;
use std.textio.all;
entity sayac_tb is
end entity;
architecture sim of sayac_tb is
begin
process
variable satir : line;
begin
for i in 1 to 3 loop
write(satir, string'("VHDL adim: "));
write(satir, i);
writeline(output, satir);
wait for 10 ns;
end loop;
wait;
end process;
end architecture;
More languages
Bash
kelime="merhaba"
echo "Bash: ${kelime^^}"
Fortran
program toplam
implicit none
integer :: i, s
s = 0
do i = 1, 10
s = s + i
end do
print *, "Fortran toplam:", s
end program toplam
Julia
using LinearAlgebra
A = [2.0 0.0; 0.0 3.0]
println("Julia det: ", det(A))
Verilog
module sayac_tb;
reg [3:0] sayac = 0;
initial begin
repeat (3) begin
sayac = sayac + 1;
$display("Verilog sayac: %0d", sayac);
end
$finish;
end
endmodule
ARM assembly
.global _start
.text
_start:
mov r0, #1
ldr r1, =mesaj
mov r2, #12
mov r7, #4
swi 0
mov r0, #0
mov r7, #1
swi 0
.data
mesaj:
.ascii "ARM calisti\n"
Display-only code
LaTeX
\documentclass{article}
\newcommand{\kare}[1]{{#1}^{2}}
\begin{document}
$\kare{x} + \frac{{a}}{b}$
\end{document}
HTML
<!doctype html>
<html>
<body>
<h1 class="baslik">{{ baslik }}</h1>
<p>Shown only, never run.</p>
</body>
</html>
Picture and table placement
Pictures can be centred, aligned left or right, and shown small, medium or full size. The first picture below is centred and small.
Figure 1. Centred, small.
Figure 2. Right-aligned, medium; the text flows to its left.
Beside a right-aligned picture the text flows around it. This paragraph starts next to the picture and returns to the full width once the picture ends. On a narrow screen such as a phone the picture does not float; it takes its own line above or below the text.
The second paragraph continues the same way along the picture’s left side. A long description, a circuit schematic or a photo can be read side by side, and the page is laid out as it would be in a word-processor document.
The third paragraph is long enough to run past the picture: once the lines reach below it they use the whole page width again and the text carries on normally.
| Part | Value | Qty |
|---|---|---|
| Resistor | 10 kΩ | 4 |
| Capacitor | 100 nF | 2 |
| Microcontroller | STM32F103 | 1 |
Three-part model
Tap or click the model to start. Drag to rotate, scroll or pinch to zoom, right-drag or two fingers to pan, and click a part to select it. Arrow keys rotate; +/− zoom. An idle model pauses where you left it.
Download modelDisplay-only model
Tap or click the model to start. Drag to rotate, scroll or pinch to zoom, right-drag or two fingers to pan, and click a part to select it. Arrow keys rotate; +/− zoom. An idle model pauses where you left it.
Download modelProject files
- Sample file — Sample text file to download
Circuit simulation
Netlist
Seri RLC basamak yaniti
v1 in 0 pulse(0 5 0 1u 1u 2m 4m)
r1 in n1 20
l1 n1 out 10m
c1 out 0 10u
.tran 5u 8m
.endShare
X Facebook LinkedIn Copy LinkIf you would like to talk about this, get in touch.