diff --git a/info.json b/info.json index c68d071..97c20e0 100644 --- a/info.json +++ b/info.json @@ -1,105 +1,121 @@ { - "js": { - "name": "Evan Zhou", - "github": "EvanZhouDev", - "run": "node donut.js" + "adb": { + "name": "Vianney Hervy", + "gitlab": "sullyvian", + "github": "sullyvian", + "run": "gnatmake donut.adb && ./donut" }, - "py": { - "name": "Evan Zhou", - "github": "EvanZhouDev", - "run": "python3 donut.py" + "bas": { + "name": "Erik Schreiner", + "github": "ErikSchreiner" + }, + "bf": { + "name": "Drake Fletcher", + "github": "drakeerv", + "run": "brainwhat donut.bf" }, "c": { "name": "Andy Sloane", "github": "a1k0n", "run": "gcc -o donut donut.c -lm -lc && ./donut" }, - "libless.c": { - "name": "Andy Sloane", - "github": "a1k0n", - "run": "gcc -o donut donut.libless.c -lc && ./donut", - "description": "A donut in c that doesnt use the math library" - }, - "floatless.c": { - "name": "Andy Sloane", - "github": "a1k0n", - "run": "gcc -o donut donut.floatless.c -lc && ./donut", - "description": "A donut in c that doesnt use the math library or floats" + "cpp": { + "name": "Amaar Chughtai", + "github": "DragonXDev" }, "cs": { "name": "Rue", "github": "IOKG04", "run": "mkdir donut && cd donut && dotnet new console && cp ../donut.cs Program.cs && dotnet run" }, - "cpp": { - "name": "Amaar Chughtai", - "github": "DragonXDev" + "dart": { + "name": "Drake Fletcher", + "github": "drakeerv", + "run": "dart donut.dart" + }, + "exs": { + "name": "\u0179mi\u0107er Rubin\u0161tejn", + "github": "virviil", + "run": "elixir donut.exs" + }, + "f": { + "name": "Sirraide", + "github": "Sirraide", + "run": "gfortran donut.f -std=legacy -o donutf && ./donutf" + }, + "floatless.c": { + "name": "Andy Sloane", + "github": "a1k0n", + "run": "gcc -o donut donut.floatless.c -lc && ./donut", + "description": "A donut in c that doesnt use the math library or floats" }, "go": { "name": "Evan Roos", "github": "j-Ewan" }, + "html": { + "name": "The Color Blocks", + "github": "thecolorblocks" + }, "java": { "name": "Joe Skeen", "github": "joeskeen" }, - "f": { - "name": "Sirraide", - "github": "Sirraide", - "run": "gfortran donut.f -std=legacy -o donutf && ./donutf" + "js": { + "name": "Evan Zhou", + "github": "EvanZhouDev", + "run": "node donut.js" }, - "ps1": { - "name": "Joe Skeen", - "github": "joeskeen", - "run": "pwsh donut.ps1", - "description": "Not compatible with Windows PowerShell 5.1 (which comes with Windows); you need the cross-platform PowerShell 7+ (separate install)." + "jsfuck.js": { + "name": "Rue", + "github": "IOKG04", + "run": "node donut.jsfuck.js", + "description": "jsfuck implementation of donut.js made using jsfuck.com" }, - "🍇": { - "name": "Joe Skeen", - "github": "joeskeen", - "run": "emojicodec donut.🍇 -o donut-emojicode && ./donut-emojicode", - "description": "Depending on your computer's font, the code will look more or less donut shaped. It turns out that fixed-width fonts aren't fixed-width for emoji characters." + "kt": { + "name": "Abdallah Mehiz", + "github": "AbdallahMehiz" }, - "php": { - "name": "Joe Skeen", - "github": "joeskeen", - "description": "All the donut rendering code is in PHP, so the web page must request each frame from the server." + "libless.c": { + "name": "Andy Sloane", + "github": "a1k0n", + "run": "gcc -o donut donut.libless.c -lc && ./donut", + "description": "A donut in c that doesnt use the math library" }, - "zig": { - "name": "Kacey Kniffen", - "github": "KaceyXam" + "lua": { + "name": "Claire Lacroix", + "github": "Ex-Opera" + }, + "ml": { + "name": "Vianney Hervy", + "gitlab": "sullyvian", + "github": "sullyvian", + "run": "ocaml donut.ml" }, "pas": { "name": "Joe Skeen", "github": "joeskeen" }, - "svg": { + "php": { "name": "Joe Skeen", "github": "joeskeen", - "description": "This is the simplest possible animated SVG that when rendered resembles a spinning donut, made as a proof-of-concept. A much more verbose version exists which implements the ASCII representation." - }, - "lua": { - "name": "Claire Lacroix", - "github": "Ex-Opera" - }, - "jsfuck.js": { - "name": "Rue", - "github": "IOKG04", - "run": "node donut.jsfuck.js", - "description": "jsfuck implementation of donut.js made using jsfuck.com" + "description": "All the donut rendering code is in PHP, so the web page must request each frame from the server." }, - "html": { - "name": "The Color Blocks", - "github": "thecolorblocks" + "pl": { + "name": "Drake Fletcher", + "github": "drakeerv", + "run": "perl donut.pl" }, - "s": { - "name": "Rue", - "github": "IOKG04", - "run": "gcc -o donut donut.s -lc -lm && ./donut" + "ps1": { + "name": "Joe Skeen", + "github": "joeskeen", + "run": "pwsh donut.ps1", + "description": "Not compatible with Windows PowerShell 5.1 (which comes with Windows); you need the cross-platform PowerShell 7+ (separate install)." }, - "kt": { - "name": "Abdallah Mehiz", - "github": "AbdallahMehiz" + "py": { + "name": "Evan Zhou", + "github": "EvanZhouDev", + "run": "python3 donut.py" }, "rs": { "name": "TJ Moody", @@ -107,61 +123,45 @@ "repo": "https://github.com/tj-moody/donut.rs", "run": "cargo +nightly -Zscript donut.rs 2>/dev/null" }, - "bas": { - "name": "Erik Schreiner", - "github": "ErikSchreiner" - }, - "v": { - "name": "Drake Fletcher", - "github": "drakeerv", - "run": "v run donut.v" - }, - "bf": { - "name": "Drake Fletcher", - "github": "drakeerv", - "run": "brainwhat donut.bf" - }, "ruby": { "name": "Drake Fletcher", "github": "drakeerv", "run": "ruby donut.rb" }, + "s": { + "name": "Rue", + "github": "IOKG04", + "run": "gcc -o donut donut.s -lc -lm && ./donut" + }, + "sb3": { + "name": "NameGoesThere", + "github": "NameGoesThere", + "run": "open in turbowarp.org (normal scratch is too slow)", + "description": "donut in scratch lol" + }, + "svg": { + "name": "Joe Skeen", + "github": "joeskeen", + "description": "This is the simplest possible animated SVG that when rendered resembles a spinning donut, made as a proof-of-concept. A much more verbose version exists which implements the ASCII representation." + }, "swift": { "name": "Drake Fletcher", "github": "drakeerv", "run": "swift donut.swift" }, - "dart": { - "name": "Drake Fletcher", - "github": "drakeerv", - "run": "dart donut.dart" - }, - "pl": { + "v": { "name": "Drake Fletcher", "github": "drakeerv", - "run": "perl donut.pl" - }, - "exs": { - "name": "Źmićer Rubinštejn", - "github": "virviil", - "run": "elixir donut.exs" - }, - "sb3": { - "name": "NameGoesThere" - "github": "NameGoesThere" - "run": "open in turbowarp.org (normal scratch is too slow)" - "description": "donut in scratch lol" + "run": "v run donut.v" }, - "ml": { - "name": "Vianney Hervy", - "gitlab": "sullyvian", - "github": "sullyvian", - "run": "ocaml donut.ml" + "zig": { + "name": "Kacey Kniffen", + "github": "KaceyXam" }, - "adb": { - "name": "Vianney Hervy", - "gitlab": "sullyvian", - "github": "sullyvian", - "run": "gnatmake donut.adb && ./donut" + "\ud83c\udf47": { + "name": "Joe Skeen", + "github": "joeskeen", + "run": "emojicodec donut.\ud83c\udf47 -o donut-emojicode && ./donut-emojicode", + "description": "Depending on your computer's font, the code will look more or less donut shaped. It turns out that fixed-width fonts aren't fixed-width for emoji characters." } -} +} \ No newline at end of file diff --git a/tools/sorter/info_sorter.py b/tools/sorter/info_sorter.py new file mode 100644 index 0000000..f133bae --- /dev/null +++ b/tools/sorter/info_sorter.py @@ -0,0 +1,15 @@ +import os +import json +from typing import Dict + + +path = os.getcwd() +print(path) + +info = {} + +with open("info.json", mode="r", encoding="UTF-8") as f: + info: Dict = json.load(f) + +with open("info.json", mode="w", encoding="UTF-8") as f: + json.dump(dict(sorted(info.items())), f, indent=4)