Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 3e3019f5a7
Fetching contributors…

Cannot retrieve contributors at this time

executable file 16 lines (13 sloc) 0.33 kB
#!/bin/bash
id=$(node -e 'console.log(Math.random().toString(16).slice(2))')
dir="/tmp/slides/$id"
mkdir -p $dir
slides=$(grep '^!' slides.markdown | sed 's/.*(//; s/)$//')
i=0
echo $dir
for slide in $slides; do
echo $slide
ln -s $PWD/$slide $dir/$(printf "%04d" $i)_$(basename "$slide")
i=$((i+1))
done
eog $dir/*
Jump to Line
Something went wrong with that request. Please try again.