Skip to content

Commit

Permalink
update slides
Browse files Browse the repository at this point in the history
update slides

update slides
  • Loading branch information
Chleba committed Jul 10, 2024
1 parent e422a12 commit 1e46c7f
Show file tree
Hide file tree
Showing 5 changed files with 89 additions and 19 deletions.
Binary file added talk_example/images/kanban.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added talk_example/images/mc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added talk_example/images/netscanner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added talk_example/images/snake.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
108 changes: 89 additions & 19 deletions talk_example/slides.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,34 +5,33 @@
},

"slides" : [

{
"title": "Block",
"title": "RATATUI",
"content": [
{"type": "CodeHighlight", "content": "Block::new()\n.borders(Borders::ALL)\n.title(\"Block title\")", "rect": {"x": 10, "y": 10, "width": 40, "height": 10}}
{"type": "Image", "content": "./images/ratatui.png", "rect": { "x": 28, "y": 8, "width": 34, "height": 19 }},
{"type": "Line", "content": "A Rust library for creating", "rect": { "x": 32, "y": 27, "width": 30, "height": 1 }, "color": "#FFFFee"},
{"type": "Line", "content": "TERMINAL USER INTERFACES", "rect": { "x": 33, "y": 28, "width": 30, "height": 1 }, "color": "#FFFF00"}
]
},

{
"title": "RATATUI",
"title": "FIRST PC",
"content": [
{"type": "Image", "content": "./images/ratatui.png", "rect": { "x": 34, "y": 9, "width": 21, "height": 13 }},
{"type": "Line", "content": "A Rust library for creating", "rect": { "x": 31, "y": 24, "width": 30, "height": 1 }, "color": "#FFFFee"},
{"type": "Line", "content": "TERMINAL USER INTERFACES", "rect": { "x": 32, "y": 25, "width": 30, "height": 1 }, "color": "#FFFF00"}
{ "type": "Image", "content": "./images/atari800xe.png", "rect": { "x": 18, "y": 9, "width": 56, "height": 23 }}
]
},

{
"title": "first",
"title": "BASIC",
"content": [
{ "type": "Image", "content": "./images/atari800xe.png", "rect": { "x": 22, "y": 10, "width": 46, "height": 19 }}
{ "type": "Image", "content": "./images/atari_basic.jpg", "rect": { "x": 18, "y": 10, "width": 50, "height": 18 }}
]
},

{
"title": "turbo-basic",
"title": "MAGIC",
"content": [
{ "type": "Image", "content": "./images/atari_basic.jpg", "rect": { "x": 22, "y": 11, "width": 46, "height": 17 }}
{ "type": "Image", "content": "./images/magical_stone.jpg", "rect": { "x": 18, "y": 6, "width": 54, "height": 29 }}
]
},

Expand All @@ -43,8 +42,8 @@
{ "type": "Line", "content": "Lukas `Chleba` Franek", "rect": { "x": 35, "y": 13, "width": 25, "height": 1 }, "color": "#FFFF00"},
{
"type": "Paragraph",
"rect": { "x": 35, "y": 15, "width": 44, "height": 4 },
"content": "- 📁 github.com/Chleba\n- 🚧 Web, Embedded, Games, Desktop, Mobile\n- 📦 Alpine Linux package maintainer\n- 🌐 www.chleba.org",
"rect": { "x": 35, "y": 15, "width": 44, "height": 9 },
"content": " 📁 github.com/Chleba\n\n 🚧 Web, Embedded, Games, Desktop, Mobile\n\n 📦 Alpine Linux package maintainer\n\n 🌐 www.chleba.org",
"color": "#FFFFEE"
}
]
Expand All @@ -65,30 +64,101 @@
},

{
"title": "new love",
"title": "NEW LOVE",
"content": [
{ "type": "Image", "content": "./images/zig.png", "rect": { "x": 28, "y": 10, "width": 34, "height": 18 } }
{ "type": "Image", "content": "./images/rust.jpg", "rect": { "x": 27, "y": 8, "width": 34, "height": 19 } },
{ "type": "Line", "content": "💚println!(\"Hello World!\")💚", "rect": { "x": 30, "y": 28, "width": 28, "height": 1 }, "color": "#FFFF00"}
]
},

{
"title": "new love",
"title": "LEARNING",
"content": [
{ "type": "Image", "content": "./images/rust.jpg", "rect": { "x": 27, "y": 10, "width": 34, "height": 19 } }
{ "type": "Paragraph",
"content": "▸ rustlings: https://github.com/rust-lang/rustlings\n▸ #1 APP (hello world) is CLI\n▸ CLI > TUI\n▸ TUI: Ratatui\n▸ rust + ratatui = netscanner",
"rect": { "x": 10, "y": 8, "width": 58, "height": 5 }, "color": "#FFFFFF"
},
{ "type": "Image", "content": "./images/netscanner.png", "rect": { "x": 22, "y": 16, "width": 48, "height": 17 } }
]
},

{
"title": "CLI vs TUI",
"content": [
{ "type": "Image", "content": "./images/netscanner.png", "rect": { "x": 9, "y": 9, "width": 24, "height": 10 } },
{
"type": "Paragraph",
"rect": { "x": 39, "y": 10, "width": 44, "height": 6 },
"content": "Netscanner\n▸ nmap\n▸ arpscan\n▸ iw|airport\n▸ ping\n▸ etc..",
"color": "#FFFFEE"
},

{ "type": "Image", "content": "./images/mc.png", "rect": { "x": 9, "y": 22, "width": 24, "height": 10 } },
{
"type": "Paragraph",
"rect": { "x": 39, "y": 22, "width": 44, "height": 7 },
"content": "Midnight commander\n▸ cp\n▸ ls\n▸ mv\n▸ ftp\n▸ ssh\n▸ etc..",
"color": "#FFFFEE"
}
]
},

{
"title": "learning",
"title": "TUI LIB",
"content": [
{ "type": "Line", "content": "rustlings" }
{"type": "Image", "content": "./images/ratatui.png", "rect": { "x": 28, "y": 10, "width": 34, "height": 19 }}
]
},

{
"title": "RATATUI",
"content": [
{ "type": "Image", "content": "./images/ratatui.png", "rect": { "x": 62, "y": 11, "width": 19, "height": 12 } },
{
"type": "Paragraph",
"rect": { "x": 9, "y": 10, "width": 38, "height": 19},
"content": "▸ lightweight immediate mode \n graphics library\n\n▸ fork of tui-rs library \n (since Feb 2023)\n\n▸ handling keyboard & mouse events\n\n▸ support various backends\n (Crossterm, Termion or Termwiz)\n\n▸ many build-in widgets\n (Canvas, Gauge, Table, Chart, ...)\n\n▸ simple dynamic layout system\n using constraints",
"color": "#FFFFEE"
}
]
},

{
"title": "TEMPLATES",
"content": [
{ "type": "Image", "content": "./images/ratatui.png", "rect": { "x": 62, "y": 11, "width": 19, "height": 12 } },
{
"type": "Paragraph",
"rect": { "x": 9, "y": 10, "width": 38, "height": 19},
"content": "▸ lightweight immediate mode \n graphics library\n\n▸ fork of tui-rs library \n (since Feb 2023)\n\n▸ handling keyboard & mouse events\n\n▸ support various backends\n (Crossterm, Termion or Termwiz)\n\n▸ many build-in widgets\n (Canvas, Gauge, Table, Chart, ...)\n\n▸ simple dynamic layout system\n using constraints",
"color": "#FFFFEE"
}
]
},

{
"title": "SPARKLINE",
"content": [
{"type": "Sparkline", "data": [0, 1, 2, 3, 4, 5, 10, 5, 5, 4, 1, 3, 2, 6, 7, 3, 9, 7], "max": 10, "direction": "RightToLeft", "rect": {"x": 10, "y": 10, "width": 50, "height": 20}}
]
},

{
"title": "Block",
"content": [
{"type": "CodeHighlight", "content": "Block::new()\n.borders(Borders::ALL)\n.title(\"Block title\")", "rect": {"x": 10, "y": 10, "width": 40, "height": 10}}
]
},

{
"title": "AI SNAKE",
"content": [
{ "type": "Image", "content": "./images/snake.png", "rect": { "x": 18, "y": 12, "width": 56, "height": 18 } },
{ "type": "Paragraph",
"content": "A neural network learns to play snakes in a terminal",
"rect": { "x": 20, "y": 8, "width": 58, "height": 2 }, "color": "#FFFFFF"
}
]
}
]
}

0 comments on commit 1e46c7f

Please sign in to comment.