Skip to content

Commit

Permalink
Test for a script to automatically list the available badges
Browse files Browse the repository at this point in the history
  • Loading branch information
ziadOUA committed Nov 11, 2023
1 parent a7a8e9b commit ea73920
Show file tree
Hide file tree
Showing 2 changed files with 172 additions and 0 deletions.
158 changes: 158 additions & 0 deletions badge_list.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,158 @@
{
"badge_list": [
"Ableton",
"AfterEffects",
"Android",
"AndroidStudio",
"Angular",
"Apache",
"ApolloGraphQL",
"Astro",
"Atom",
"Audacity",
"Axios",
"Babel",
"Behance",
"Blender",
"Bootstrap",
"BuyMeACoffee",
"C",
"C++",
"Cassandra",
"Chrome",
"Cloudflare",
"CouchDB",
"CSharp",
"CSS",
"Dart",
"DaVinciResolve",
"Debian",
"Devto",
"Discord",
"Django",
"Docker",
"dotNET",
"Dribble",
"Duolingo",
"Electron",
"ESLint",
"Expo",
"Express",
"FastAPI",
"Fedora",
"Figma",
"Firebase",
"Firefox",
"Flask",
"Flutter",
"FontAwesome",
"Gatsby",
"Git",
"Github",
"Gmail",
"Go",
"GraphQL",
"Hacktoberfest2023",
"Hashnode",
"Heroku",
"HTML",
"IDEA",
"Illustrator",
"InDesign",
"Ionic",
"iOS",
"Java",
"Javascript",
"Jest",
"jQuery",
"JSON",
"JWT",
"Kotlin",
"Laravel",
"LicenceCCBY",
"LicenceCCBYNC",
"LicenceCCBYNCND",
"LicenceCCBYNCSA",
"LicenceCCBYND",
"LicenceCCBYSA",
"LicenceGPLv3",
"LicenceMIT",
"LinkedIn",
"Linux",
"macOS",
"Mail",
"MariaDB",
"Markdown",
"MongoDB",
"MyPortfolio",
"MySQL",
"Neovim",
"NestJS",
"Netlify",
"NextJS",
"NGINX",
"NintendoSwitch",
"NodeJS",
"Notion",
"npm",
"NuGet",
"Obsidian",
"Oracle",
"Outlook",
"Patreon",
"PayPal",
"Perl",
"Photoshop",
"PHP",
"PostgreSQL",
"Postman",
"Premiere",
"Prettier",
"Prisma",
"PyCharm",
"Python",
"R",
"RabbitMQ",
"RaspberryPI",
"React",
"ReactNative",
"Redux",
"Ruby",
"Rust",
"Sass",
"Scratch",
"Sequelize",
"Shell",
"SocketIO",
"SolidJS",
"Soundcloud",
"Sponsor",
"Spotify",
"SQLite",
"styled-components",
"Supabase",
"Svelte",
"Swift",
"Symfony",
"TailwindCSS",
"Trello",
"Twitch",
"Twitter",
"TypeORM",
"TypeScript",
"Ubuntu",
"Vercel",
"Vim",
"VisualStudio",
"VisualStudioCode",
"ViteJS",
"Vue",
"Webstorm",
"Windows",
"Xbox",
"Xcode",
"XD",
"Yarn",
"Zig"
]
}
14 changes: 14 additions & 0 deletions list_badges.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
from os import listdir, path
from json import load, dump

folder = './badges'

badge_list = [badge for badge in listdir(folder) if path.isdir(path.join(folder, badge))]

with open("badge_list.json", "r") as badge_list_json:
data = load(badge_list_json)

data["badge_list"] = badge_list

with open("badge_list.json", "w") as badge_list_json:
dump(data, badge_list_json, indent=4)

0 comments on commit ea73920

Please sign in to comment.