From fa7bcca78392dbeb167601b2a60f4a3f8109683d Mon Sep 17 00:00:00 2001 From: Blista Kanjo Date: Sun, 28 May 2023 17:45:49 -0400 Subject: refactor: set as new upcoming version --- download.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'download.php') diff --git a/download.php b/download.php index b6aa4cb..ea08e52 100644 --- a/download.php +++ b/download.php @@ -16,7 +16,7 @@

this website is inspired from the suckless's presentation tool (sent) -- cgit v1.2.3 From bfe25a65e46475cd76e64b64c47bed08f992b80c Mon Sep 17 00:00:00 2001 From: Blista Kanjo Date: Mon, 29 May 2023 13:58:17 -0400 Subject: notForProd: added test files for 16:9 themes --- .gitignore | 6 ++++++ download.php | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ index.php | 4 ++++ output/test169.md | 7 +++++++ 4 files changed, 72 insertions(+) create mode 100644 .gitignore create mode 100644 output/test169.md (limited to 'download.php') diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9bd4030 --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +# Ignore files starting with "procrastiSlides" +procrastiSlides*.pdf + +# Ignore the conversion files +push*.md +convert*.md diff --git a/download.php b/download.php index ea08e52..405c6d8 100644 --- a/download.php +++ b/download.php @@ -36,6 +36,61 @@

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

download presentation

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

download presentation

+ + +

select

+ + placeHolderImage
+ + defaultIsKing
diff --git a/output/test169.md b/output/test169.md new file mode 100644 index 0000000..d434e10 --- /dev/null +++ b/output/test169.md @@ -0,0 +1,7 @@ +--- +theme: Nord +colortheme: Nord +aspectratio: 169 +fontsize: 17pt +fontfamily: libertine +--- -- cgit v1.2.3 From ef6e4abd50af3f07b8f42bae7430917aec6b5e4d Mon Sep 17 00:00:00 2001 From: Blista Kanjo Date: Mon, 29 May 2023 17:28:57 -0400 Subject: feat: 16:9 conversion logic --- download.php | 122 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++-- index.php | 24 +++++++++++- 2 files changed, 140 insertions(+), 6 deletions(-) (limited to 'download.php') diff --git a/download.php b/download.php index 405c6d8..4e6039c 100644 --- a/download.php +++ b/download.php @@ -36,7 +36,7 @@
output/'$push'"); - shell_exec("cat output/test169.md output/'$push' > output/'$convert'"); + shell_exec("cat output/90sMakeUpCommercial.md output/'$push' > output/'$convert'"); shell_exec($conversion); // sleep(1); ?> @@ -64,7 +64,7 @@ output/'$push'"); - shell_exec("cat output/defaultIsKing.md output/'$push' > output/'$convert'"); + shell_exec("cat output/chicagoOlives.md output/'$push' > output/'$convert'"); + shell_exec($conversion); + // sleep(1); ?> + +

download presentation

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

download presentation

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

download presentation

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

download presentation

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

download presentation

+ + + + select - placeHolderImage
- + 90sMakeUpCommercial
+ + + + chicagoOlives
+ + + + cleanMetropolis
+ + + + earlyCupertino
+ + + + ohioCustard
+ + + + raleighAroundMe
+ defaultIsKing
-- cgit v1.2.3 From 8e896b8b3025b461ba8aaea091308cb113beef6e Mon Sep 17 00:00:00 2001 From: Aedriel Kyle Javier Date: Sun, 11 Jun 2023 01:02:05 -0400 Subject: refactor: code formatting --- download.php | 527 ++++++++++++++++++++++++++++++++--------------------------- index.php | 32 ++-- 2 files changed, 303 insertions(+), 256 deletions(-) (limited to 'download.php') diff --git a/download.php b/download.php index 4e6039c..f54f99b 100644 --- a/download.php +++ b/download.php @@ -25,7 +25,7 @@ souce community throughout the years… πŸ™Œ Thank you! πŸ€—


- +

πŸŽ‰ your procrastiSlides .pdf presentation has been generated successfully!!! 🍾 @@ -34,342 +34,393 @@

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

- output/'$push'"); - shell_exec("cat output/90sMakeUpCommercial.md output/'$push' > output/'$convert'"); - shell_exec($conversion); - // sleep(1); ?> + shell_exec("echo '$userMarkdown' > output/'$push'"); + shell_exec( + "cat output/90sMakeUpCommercial.md output/'$push' > output/'$convert'" + ); + shell_exec($conversion); -

download presentation

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

">download presentation

- - if(isset($_POST['chicagoOlives'])) - { - $_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/chicagoOlives.md output/'$push' > output/'$convert'"); - shell_exec($conversion); - // sleep(1); ?> + shell_exec("echo '$userMarkdown' > output/'$push'"); + shell_exec( + "cat output/chicagoOlives.md output/'$push' > output/'$convert'" + ); + shell_exec($conversion); -

download presentation

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

">download presentation

- - if(isset($_POST['cleanMetropolis'])) - { - $_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/cleanMetropolis.md output/'$push' > output/'$convert'"); - shell_exec($conversion); - // sleep(1); ?> + shell_exec("echo '$userMarkdown' > output/'$push'"); + shell_exec( + "cat output/cleanMetropolis.md output/'$push' > output/'$convert'" + ); + shell_exec($conversion); -

download presentation

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

">download presentation

- - if(isset($_POST['ohioCustard'])) - { - $_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/ohioCustard.md output/'$push' > output/'$convert'"); - shell_exec($conversion); - // sleep(1); ?> + shell_exec("echo '$userMarkdown' > output/'$push'"); + shell_exec( + "cat output/ohioCustard.md output/'$push' > output/'$convert'" + ); + shell_exec($conversion); -

download presentation

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

">download presentation

- - if(isset($_POST['raleighAroundMe'])) - { - $_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/raleighAroundMe.md output/'$push' > output/'$convert'"); - shell_exec($conversion); - // sleep(1); ?> + shell_exec("echo '$userMarkdown' > output/'$push'"); + shell_exec( + "cat output/raleighAroundMe.md output/'$push' > output/'$convert'" + ); + shell_exec($conversion); -

download presentation

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

">download presentation

- - if(isset($_POST['earlyCupertino'])) - { - $_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/earlyCupertino.md output/'$push' > output/'$convert'"); - shell_exec($conversion); - // sleep(1); ?> + shell_exec("echo '$userMarkdown' > output/'$push'"); + shell_exec( + "cat output/earlyCupertino.md output/'$push' > output/'$convert'" + ); + shell_exec($conversion); -

download presentation

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

">download presentation

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

download presentation

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

">download presentation

- if(isset($_POST['strengthInNumbers'])) - { - $_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); - // sleep(1); ?> + shell_exec("echo '$userMarkdown' > output/'$push'"); + shell_exec( + "cat output/strengthInNumbers.md output/'$push' > output/'$convert'" + ); + shell_exec($conversion); -

download presentation

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

">download presentation

- if(isset($_POST['thatMagazine'])) - { - $_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); - // 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

- if(isset($_POST['cuppertinoIsh'])) - { - $_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); - // 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

- if(isset($_POST['lazyProfessor'])) - { - $_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); - // 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

- if(isset($_POST['redmond2003'])) - { - $_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/redmond2003.md output/'$push' > output/'$convert'"); - shell_exec($conversion); - // sleep(1); ?> + shell_exec("echo '$userMarkdown' > output/'$push'"); + shell_exec( + "cat output/redmond2003.md output/'$push' > output/'$convert'" + ); + shell_exec($conversion); + + // sleep(1); + ?> -

download presentation

+

">download presentation

- + @@ -379,7 +430,7 @@

- +
diff --git a/index.php b/index.php index 26bea81..aec2b2d 100644 --- a/index.php +++ b/index.php @@ -1,14 +1,12 @@ +session_start(); ?> - + procrastiSlides: great for procratinators who need to get a presentation out, quick! πŸ˜† @@ -26,16 +24,12 @@

πŸƒ great for procratinators who need to get a presentation out, quick! πŸ‘Ÿ

🏫 try copy and pasting your school notes! that might even work πŸ˜‚


- - +

🎨 please select your presentation theme 🎭

@@ -98,13 +92,15 @@

- - + +

plain text or markdown goes here:

- +
@@ -153,7 +149,7 @@
- +
-- cgit v1.2.3 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