From b12a66beaecad509249fc45f31da7416e4ee71fd Mon Sep 17 00:00:00 2001 From: kj_sh604 Date: Sun, 9 Jul 2023 00:47:08 -0400 Subject: kj.bash: download.php --- download.php | 369 +++++++++++++++++++++++++++-------------------------------- 1 file changed, 169 insertions(+), 200 deletions(-) (limited to 'download.php') diff --git a/download.php b/download.php index f54f99b..af207d5 100644 --- a/download.php +++ b/download.php @@ -1,39 +1,38 @@ - - - - - - - + + + + + - - procrastiSlides: great for procratinators who need to get a presentation out, quick! πŸ˜† - + procrastiSlides: great for procratinators who need to get a presentation out, quick! πŸ˜† + - - - -

this website is inspired from the suckless's presentation tool (sent) - and Luke Smith's video on creating presentations using markdown and LaTeX beamer. - We would like to personally thank them for all the educational resources (for suckless, it's the source code πŸ˜‚) that they have shared with the open - souce community throughout the years… πŸ™Œ Thank you! πŸ€—

-
- - -
- -

πŸŽ‰ your procrastiSlides .pdf presentation has been generated successfully!!! 🍾 -

- -

πŸ“‚ your download link is below: πŸ—ƒ -

-
+ + + + +

this website is inspired from the suckless's presentation tool (sent). it uses pandoc and LaTeX beamer for the backend.

latest feature update: addition of 16:9 themes

+
+ + +
+ +

πŸŽ‰ your procrastiSlides .pdf presentation has been generated successfully!!! 🍾 +

+ +

πŸ“‚ your download link is below: πŸ—ƒ +

+
+ ?> -

">download presentation

+

">download presentation

- + ?> -

">download presentation

+

">download presentation

- + ?> -

">download presentation

+

">download presentation

- + ?> -

">download presentation

+

">download presentation

- + ?> -

">download presentation

+

">download presentation

- + ?> -

">download presentation

+

">download presentation

- @@ -250,188 +237,170 @@ shell_exec($conversion); // sleep(1); - ?> + ?> -

">download presentation

+

">download presentation

- - output/'$push'"); - shell_exec( - "cat output/strengthInNumbers.md output/'$push' > output/'$convert'" - ); - shell_exec($conversion); - - // sleep(1); - ?> - -

">download presentation

- - + $_SESSION["pres"] = uniqid("pres", true) . ".md"; + $_SESSION["push"] = uniqid("push", true) . ".md"; + $_SESSION["convert"] = uniqid("convert", true) . ".md"; + $_SESSION["filename"] = uniqid("procrastiSlides_", true) . ".pdf"; - output/'$push'"); + shell_exec( + "cat output/strengthInNumbers.md output/'$push' > output/'$convert'" + ); + shell_exec($conversion); - $userMarkdown = $_SESSION["user-input"]; // this used to be _POST['user-input'] - // $_SESSION['user-input'] = $_POST['user-input']; - $conversion = "pandoc -f markdown+hard_line_breaks output/'$convert' -t beamer -o output/'$filename' --pdf-engine=pdflatex"; + // sleep(1); + ?> - shell_exec("echo '$userMarkdown' > output/'$push'"); - shell_exec( - "cat output/thatMagazine.md output/'$push' > output/'$convert'" - ); - shell_exec($conversion); +

">download presentation

- // sleep(1); - ?> + -

">download presentation

+ + $_SESSION["pres"] = uniqid("pres", true) . ".md"; + $_SESSION["push"] = uniqid("push", true) . ".md"; + $_SESSION["convert"] = uniqid("convert", true) . ".md"; + $_SESSION["filename"] = uniqid("procrastiSlides_", true) . ".pdf"; - output/'$push'"); + shell_exec( + "cat output/thatMagazine.md output/'$push' > output/'$convert'" + ); + shell_exec($conversion); - $userMarkdown = $_SESSION["user-input"]; // this used to be _POST['user-input'] - // $_SESSION['user-input'] = $_POST['user-input']; - $conversion = "pandoc -f markdown+hard_line_breaks output/'$convert' -t beamer -o output/'$filename' --pdf-engine=pdflatex"; + // sleep(1); + ?> - shell_exec("echo '$userMarkdown' > output/'$push'"); - shell_exec( - "cat output/cuppertinoIsh.md output/'$push' > output/'$convert'" - ); - shell_exec($conversion); +

">download presentation

- // sleep(1); - ?> + -

">download presentation

+ + $_SESSION["pres"] = uniqid("pres", true) . ".md"; + $_SESSION["push"] = uniqid("push", true) . ".md"; + $_SESSION["convert"] = uniqid("convert", true) . ".md"; + $_SESSION["filename"] = + uniqid("procrastiSlides_", true) . ".pdf"; - output/'$push'"); + shell_exec( + "cat output/cuppertinoIsh.md output/'$push' > output/'$convert'" + ); + shell_exec($conversion); - $userMarkdown = $_SESSION["user-input"]; // this used to be _POST['user-input'] - // $_SESSION['user-input'] = $_POST['user-input']; - $conversion = "pandoc -f markdown+hard_line_breaks output/'$convert' -t beamer -o output/'$filename' --pdf-engine=pdflatex"; + // sleep(1); + ?> - shell_exec("echo '$userMarkdown' > output/'$push'"); - shell_exec( - "cat output/lazyProfessor.md output/'$push' > output/'$convert'" - ); - shell_exec($conversion); +

">download presentation

- // sleep(1); - ?> + -

">download presentation

+ + $_SESSION["pres"] = uniqid("pres", true) . ".md"; + $_SESSION["push"] = uniqid("push", true) . ".md"; + $_SESSION["convert"] = uniqid("convert", true) . ".md"; + $_SESSION["filename"] = + uniqid("procrastiSlides_", true) . ".pdf"; - output/'$push'"); + shell_exec( + "cat output/lazyProfessor.md output/'$push' > output/'$convert'" + ); + shell_exec($conversion); - $userMarkdown = $_SESSION["user-input"]; // this used to be _POST['user-input'] - // $_SESSION['user-input'] = $_POST['user-input']; - $conversion = "pandoc -f markdown+hard_line_breaks output/'$convert' -t beamer -o output/'$filename' --pdf-engine=pdflatex"; + // sleep(1); + ?> - shell_exec("echo '$userMarkdown' > output/'$push'"); - shell_exec( - "cat output/redmond2003.md output/'$push' > output/'$convert'" - ); - shell_exec($conversion); +

">download presentation

- // sleep(1); - ?> + -

">download presentation

+ + $_SESSION["pres"] = uniqid("pres", true) . ".md"; + $_SESSION["push"] = uniqid("push", true) . ".md"; + $_SESSION["convert"] = uniqid("convert", true) . ".md"; + $_SESSION["filename"] = + uniqid("procrastiSlides_", true) . ".pdf"; + $pres = $_SESSION["pres"]; // filename of the template file with metadata + $push = $_SESSION["push"]; // filename of where the user data is stored + $convert = $_SESSION["convert"]; // concatanated file to be converted to .pdf + $filename = $_SESSION["filename"]; // output file name + $userMarkdown = $_SESSION["user-input"]; // this used to be _POST['user-input'] + // $_SESSION['user-input'] = $_POST['user-input']; + $conversion = "pandoc -f markdown+hard_line_breaks output/'$convert' -t beamer -o output/'$filename' --pdf-engine=pdflatex"; -
+ shell_exec("echo '$userMarkdown' > output/'$push'"); + shell_exec( + "cat output/redmond2003.md output/'$push' > output/'$convert'" + ); + shell_exec($conversion); + // sleep(1); + ?> -

-
+

+ + - - -- cgit v1.2.3