aboutsummaryrefslogtreecommitdiff
path: root/slides/example/slides.md
blob: 3fd92cdd224edaa9372c91f3d7e87bd4b83e0cf6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
layout: true
---

## Test online slideshow

Couple of example slides to test

![alt text](https://media.giphy.com/media/i9qmSfLuXXcXK/giphy.gif)

---

## Image

![alt text](https://media.giphy.com/media/4d0nGeMweD49q/giphy.gif)

---

## JSON example

Some code examples.

```json
{
  "short_name": "MF",
  "name": "Mitja Felicijan",
  "author": "Mitja Felicijan",
  "icons": [{
    "src": "/assets/avatar.png",
    "sizes": "512x512",
    "type": "image/png"
  }],
  "start_url": "/",
  "display": "fullscreen",
  "theme_color": "#000000",
  "background_color": "#000000"
}
```

---

## Python example

Some code examples.

```python
@app.route("{}".format(args["path"]), method=["GET"])
def route_default():
  with open("static/index.html", "r") as fp:
    data = str(fp.read())
    data = data.replace("$$path$$", args["path"])
    data = data.replace("$$cache$$", CACHE_VER)
    data = data.replace("$$db$$", str(args["redis_database"]))
  return data
```

---

## Tables

| URL           | Num of requests | Transfered | Finish  | DOMContentLoaded | Load   |
| ------------- | --------------- | ---------- | ------- | ---------------- | ------ |
| cnn.com       | 134             | 3.22 MB    | 4.7 s   | 575 ms           | 3.60 s |
| youtube.com   | 61              | 1.8 MB     | 5.13 s  | 1.78 s           | 1.97   |
| wikipedia.com | 11              | 64.5 KB    | 642 ms  | 531 ms           | 573 ms |
| reddit.com    | 177             | 12.9 MB    | 7.65 MB | 2.03 s           | 3.74 s |
| amamzon.com   | 278             | 8.0 MB     | 5.20 s  | 1.15s            | 2.99 s |
| twitter.com   | 2'2             | 5.1 MB     | 23.48 s | 3.20 s           | 4.55 s |
| twitch.tv     | 177             | 4.4 MB     | 5.08 s  | 579 ms           | 798 ms |
| microsoft.com | 77              | 1.1 MB     | 3.96 s  | 1.01 s           | 1.26 s |