Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added some missing commas in info.json and wrote a small sorter script for the file so that it is more neatly arranged #48

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
216 changes: 108 additions & 108 deletions info.json
Original file line number Diff line number Diff line change
@@ -1,167 +1,167 @@
{
"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",
"github": "tj-moody",
"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."
}
}
}
15 changes: 15 additions & 0 deletions tools/sorter/info_sorter.py
Original file line number Diff line number Diff line change
@@ -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)