Skip to content

Instantly share code, notes, and snippets.

@PatheticMustan
Created October 28, 2023 19:24
Show Gist options
  • Save PatheticMustan/4804dcf60a7004bbc90e70ee44677c86 to your computer and use it in GitHub Desktop.
Save PatheticMustan/4804dcf60a7004bbc90e70ee44677c86 to your computer and use it in GitHub Desktop.
fetch("https://apply.vandyhacks.org/api/leaderboard")
.then(v => v.json())
.then(v => {
x = v;
console.log("TEAM CODES:\n\n" + Array.from(new Set(v.map(v => [v.team?.name, v.team?.joinCode].join(": ")))).filter(v => v !== ": ").join("\n"));
console.log("EMAILS:\n\n" + Array.from(new Set(v.map(v => v.email))).filter(v => v).join("\n"))
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment