#!./slides.py
Slides Demo
by Bruce Hill
slides is a terminal slide presenter.
You can see the slide number in the bottom left corner.
Slides are separated by three or more dashes on a line: ---
To advance to the next slide, press Right or Space or J.
Slide Navigation
You can go back a slide by pressing Left or Backspace or K.
You can go to the first slide by pressing Home or H.
You can go to the last slide by pressing End or L.
You can also type in a slide number and hit Enter to go to that slide.
Basic Features
This is italic, bold, and inline code
The paragraph continues on line two.
- A list
- With items
- and
- some
- numbered ones
Block quote that spans multiple lines
Here's a shell example:
ls --color=auto
Demos
For runnable demos, you can use ```demo
and press Enter to run the demo
seq 1000 | less
Another demo:
for i in `seq 5`; do
echo "$i"
sleep 1
done
echo "DONE"
Syntax Highlighting
Some code:
def sing_bottles(n:int):
for i in reversed(range(n)):
if i > 1:
print(f"{i} bottles of beer on the wall,")
print(f"{i} bottles of beer!")
print("Take one down, pass it around...")
elif i == 1:
print("One bottle of beer on the wall,")
print("One bottle of beer!")
print("Take it down, pass it around...")
else:
print("No more bottles of beer on the wall!")
print("Go to the store, buy some more...")
sing_bottles(n)
This is some *markdown* text with **asterisks**.
Some basic emojis: 🌎💨🔥
They do render correctly with appropriate box size
(But your mileage may vary, depending on how your
terminal renders emojis and what font you use)
Embedding files
You can embed files with the syntax :
You can scroll up/down with Up/Down, the mouse wheel, or Ctrl-U/Ctrl-D.
Images
![]()
Supported! (kinda)
Re-running Code
You can re-run code by pressing Ctrl-R or R.
It is currently:
date
Some random numbers:
openssl rand -hex 16
hexdump -n 128 /dev/urandom
Inspecting the Source
You can inspect a slide's code at any point using
the Backtick key `
hexdump -n 128 /dev/urandom
Get the Code
You can get the source code at the github repo
(links are [link text](url), press Enter to launch)
The End
Thanks for your time!
1 #!./slides.py3 # Slides Demo5 *by Bruce Hill*9 You can see the slide number in the bottom left corner.15 ---------------------------------------------------------17 # Slide Navigation27 ---------------------------------------------------------29 # Basic Features32 The paragraph continues on line two.34 - A list35 - With items37 1. and38 2. some39 3. numbered ones41 > Block quote42 > that spans multiple lines44 Here's a shell example:47 ls --color=auto48 ```50 ---------------------------------------------------------52 # Demos58 seq 1000 | less59 ```61 Another demo:64 for i in `seq 5`; do65 echo "$i"66 sleep 167 done68 echo "DONE"69 ```71 ---------------------------------------------------------73 # Syntax Highlighting75 Some code:78 def sing_bottles(n:int):79 for i in reversed(range(n)):80 if i > 1:81 print(f"{i} bottles of beer on the wall,")82 print(f"{i} bottles of beer!")83 print("Take one down, pass it around...")84 elif i == 1:85 print("One bottle of beer on the wall,")86 print("One bottle of beer!")87 print("Take it down, pass it around...")88 else:89 print("No more bottles of beer on the wall!")90 print("Go to the store, buy some more...")91 sing_bottles(n)92 ```95 This is some *markdown* text with **asterisks**.96 ```98 ```99 Some basic emojis: 🌎💨🔥100 They do render correctly with appropriate box size101 (But your mileage may vary, depending on how your102 terminal renders emojis and what font you use)103 ```105 ---------------------------------------------------------107 # Embedding files113 115 117 ---------------------------------------------------------119 # Images121 123 Supported! (kinda)125 ---------------------------------------------------------127 # Re-running Code131 It is currently:134 date135 ```137 Some random numbers:140 openssl rand -hex 16141 ```144 hexdump -n 128 /dev/urandom145 ```147 ---------------------------------------------------------149 # Inspecting the Source151 You can inspect a slide's code at any point using155 hexdump -n 128 /dev/urandom156 ```158 ---------------------------------------------------------160 # Get the Code166 ---------------------------------------------------------168 # The End170 Thanks for your time!