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

feat: add pig-latin exercise #140

Merged
merged 4 commits into from
Jan 8, 2025
Merged

feat: add pig-latin exercise #140

merged 4 commits into from
Jan 8, 2025

Conversation

vaeng
Copy link
Contributor

@vaeng vaeng commented Jan 8, 2025

No description provided.

@vaeng vaeng requested a review from ErikSchierboom January 8, 2025 18:05
Copy link
Contributor Author

@vaeng vaeng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The exercises in config.json are out of order. They should be sorted by difficulty then alphabet, right?i

@ErikSchierboom
Copy link
Member

The exercises in config.json are out of order. They should be sorted by difficulty then alphabet, right?i

🤷 It doesn't matter much really. Didnt' you have a script?

exercises/practice/pig-latin/pig-latin.ua Outdated Show resolved Hide resolved
@vaeng
Copy link
Contributor Author

vaeng commented Jan 8, 2025

The exercises in config.json are out of order. They should be sorted by difficulty then alphabet, right?

I sneaked it into this PR, I hope that's okay.

🤷 It doesn't matter much really. Didnt' you have a script?

Yes:

 jq '
  .exercises.practice |= (
    sort_by(.difficulty, .slug) 
    | ([.[] | select(.slug == "hello-world")] + [.[] | select(.slug != "hello-world")])
  )
' config.json > updated_config.json

@vaeng vaeng merged commit 53bae01 into main Jan 8, 2025
2 checks passed
@vaeng vaeng deleted the add-pig-latin-exercise branch January 8, 2025 20:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants