From 33b4ba4eb52d2c351a775427714e7f0949bb2b5f Mon Sep 17 00:00:00 2001 From: Landon Curt Noll Date: Wed, 12 Apr 2023 12:48:11 +0930 Subject: [PATCH] initial author handle and winner JSON files ideas The `tmp/example.author_handle.json' is an initial concept for a JSON file describing people who have won the IOCCC at least once. If this example described a real winner, the filename would be: ``` author/author_handle.json ``` The `tmp/example.dot_winner.json` is an initial concept for a JSON file describing an entry what won the IOCCC. If this example described a real entry, the filename would be: ``` 2024/dirname/.winner.json ``` These files are "works in progress" and are subject to change. There is currently NO code that generates, nor manages these files. Suggestions and questions are welcome. --- tmp/example.author_handle.json | 20 ++++++ tmp/example.dot_winner.json | 124 +++++++++++++++++++++++++++++++++ 2 files changed, 144 insertions(+) create mode 100644 tmp/example.author_handle.json create mode 100644 tmp/example.dot_winner.json diff --git a/tmp/example.author_handle.json b/tmp/example.author_handle.json new file mode 100644 index 000000000..5c8fa79e0 --- /dev/null +++ b/tmp/example.author_handle.json @@ -0,0 +1,20 @@ +{ + "no_comment" : "mandatory comment: because comments were removed from the original JSON spec", + "author_version" : "0.0 2023-04-12", + "author_handle" : "first0_last0", + "full_name" : "First Middle Last", + "location_code" : "AU", + "location_name" : "Australia", + "email" : "user0@example.com", + "url" : "https:\/\/a.host0.example.com\/index.html", + "alt_url" : "https:\/\/b.host0.example.com\/index.html", + "mastodon" : "@mastodon0@example.com", + "mastodon_url" : "https:\/\/example.org\/@mastodon0", + "github" : "@github0", + "affiliation" : "an affiliation group", + "winning_entry_set" : [ + { "IOCCC_entry_handle" : "1987_somedir" }, + { "IOCCC_entry_handle" : "2020_entrydir" }, + { "IOCCC_entry_handle" : "2024_dirname" } + ] +} diff --git a/tmp/example.dot_winner.json b/tmp/example.dot_winner.json new file mode 100644 index 000000000..0af97226c --- /dev/null +++ b/tmp/example.dot_winner.json @@ -0,0 +1,124 @@ +{ + "no_comment" : "mandatory comment: because comments were removed from the original JSON spec", + "winner_version" : "0.0 2023-04-12", + "IOCCC_award" : "Best award title", + "IOCCC_contest" : "IOCCC28", + "IOCCC_year_dir" : 2024, + "IOCCC_dirname" : "dirname", + "IOCCC_entry_handle" : "2024_dirname", + "author_set" : [ + { "author_handle" : "first0_last0" }, + { "author_handle" : "first1_last1" }, + { "author_handle" : "first2_last2" } + ], + "manifest" : [ + { + "filename" : "index.html", + "filetype" : "html", + "created_by" : "README2index", + "winners.html_show" : true, + "winners.html_display_via" : "browser", + "winners.html_extra_text" : " - click here first", + "winners.html_rank" : 10 + }, + { + "filename" : "README.md", + "filetype" : "markdown", + "created_by" : null, + "winners.html_show" : false, + "winners.html_display_via" : null, + "winners.html_extra_text" : null, + "winners.html_rank" : null + }, + { + "filename" : "prog.c", + "filetype" : "c", + "created_by" : null, + "winners.html_show" : true, + "winners.html_display_via" : "GitHub", + "winners.html_extra_text" : " - winning source code", + "winners.html_rank" : 20 + }, + { + "filename" : "Makefile", + "filetype" : "make", + "created_by" : null, + "winners.html_show" : true, + "winners.html_display_via" : "GitHub", + "winners.html_extra_text" : " - how to compile", + "winners.html_rank" : 30 + }, + { + "filename" : "prog.alt.c", + "filetype" : "c", + "created_by" : null, + "winners.html_show" : true, + "winners.html_display_via" : "GitHub", + "winners.html_extra_text" : " - alternative program to try", + "winners.html_rank" : 40 + }, + { + "filename" : "raw_data.file", + "filetype" : "data", + "created_by" : null, + "winners.html_show" : true, + "winners.html_display_via" : "download_only", + "winners.html_extra_text" : " - optional argument", + "winners.html_rank" : 100 + }, + { + "filename" : "chocolate_cake.jpg", + "filetype" : "image", + "created_by" : null, + "winners.html_show" : true, + "winners.html_display_via" : "browser", + "winners.html_extra_text" : " - required argument", + "winners.html_rank" : 100 + }, + { + "filename" : "magic.txt", + "filetype" : "text", + "created_by" : null, + "winners.html_show" : true, + "winners.html_display_via" : "download_only", + "winners.html_extra_text" : " - required data file", + "winners.html_rank" : 100 + }, + { + "filename" : "spoliler.md", + "filetype" : "markdown", + "created_by" : null, + "winners.html_show" : false, + "winners.html_display_via" : null, + "winners.html_extra_text" : null, + "winners.html_rank" : null + }, + { + "filename" : "spoliler.html", + "filetype" : "html", + "created_by" : "md2html", + "winners.html_show" : true, + "winners.html_display_via" : "browser", + "winners.html_extra_text" : " - Spoiler warning", + "winners.html_rank" : 200 + }, + { + "filename" : ".gitignore", + "filetype" : "gitignore", + "created_by" : null, + "winners.html_show" : false, + "winners.html_display_via" : null, + "winners.html_extra_text" : null, + "winners.html_rank" : null + }, + { + "filename" : ".winner.json", + "filetype" : "JSON", + "created_by" : "jwinner", + "winners.html_show" : false, + "winners.html_display_via" : null, + "winners.html_extra_text" : null, + "winners.html_rank" : null + } + ] +}