forked from code-golf/code-golf
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move trophies out of the routes namespace
- Loading branch information
Showing
6 changed files
with
100 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
package trophy | ||
|
||
import "html/template" | ||
|
||
type Trophy struct { | ||
Emoji, ID, Name string | ||
Description template.HTML | ||
} | ||
|
||
var ByID = map[string]Trophy{} | ||
|
||
func init() { | ||
for _, trophy := range List { | ||
ByID[trophy.ID] = trophy | ||
} | ||
} | ||
|
||
var List = []Trophy{ | ||
{ | ||
"☕", "caffeinated", "Caffeinated", | ||
"Solve the same hole in both Java and JavaScript.", | ||
}, | ||
{ | ||
"🐘", "elephpant-in-the-room", "ElePHPant in the Room", | ||
"Solve any hole in PHP.", | ||
}, | ||
{ | ||
"🎂", "happy-birthday-code-golf", "Happy Birthday, Code Golf", | ||
"Solve any hole in any language on <a href=//github.com/code-golf/code-golf/commit/4b44>2 Oct</a>.", | ||
}, | ||
{ | ||
"👋", "hello-world", "Hello, World!", | ||
"Solve any hole in any language.", | ||
}, | ||
{ | ||
"🧠", "inception", "Inception", | ||
"Solve <a href=/brainfuck#brainfuck>Brainfuck in Brainfuck</a>.", | ||
}, | ||
{ | ||
"💼", "interview-ready", "Interview Ready", | ||
"Solve <a href=/fizz-buzz>Fizz Buzz</a> in any language.", | ||
}, | ||
{ | ||
"🐉", "its-over-9000", "It’s Over 9000!", | ||
"Earn over 9,000 points.", | ||
}, | ||
{ | ||
"⭐", "my-god-its-full-of-stars", "My God, It’s Full of Stars", | ||
"Star <a href=//github.com/code-golf/code-golf>the Code Golf repository</a>.", | ||
}, | ||
{ | ||
"🐍", "ouroboros", "Ouroboros", | ||
"Solve <a href=/quine#python>Quine in Python</a>.", | ||
}, | ||
{ | ||
"💾", "patches-welcome", "Patches Welcome", | ||
"Contribute a merged PR to <a href=//github.com/code-golf/code-golf>the Code Golf repository</a>.", | ||
}, | ||
{ | ||
"🔣", "polyglot", "Polyglot", | ||
"Solve at least one hole in every language.", | ||
}, | ||
{ | ||
"🦥", "slowcoach", "Slowcoach", | ||
"Fail an attempt by exceeding the time limit.", | ||
}, | ||
{ | ||
"🐪", "tim-toady", "Tim Toady", | ||
"Solve the same hole in both Perl and Raku.", | ||
}, | ||
{ | ||
"🍺", "the-watering-hole", "The Watering Hole", | ||
"Solve your nineteenth hole.", | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters