Skip to content

Commit

Permalink
Convert exercise metadata from yaml to toml (#1803)
Browse files Browse the repository at this point in the history
* Add TOML versions of all metadata.yml files

Used https://pypi.org/project/yaml2toml/

* Make docs refer to metadata.toml files

* Require TOML files, add TODO for blurb transfer script

* Remove empty source_url from robot-simulator metadata
  • Loading branch information
booniepepper authored Jun 9, 2021
1 parent f17f457 commit df6420b
Show file tree
Hide file tree
Showing 140 changed files with 356 additions and 8 deletions.
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ A problem must have a unique slug. This slug is used as

### In exercism/problem-specifications

* Create `exercises/<slug>/description.md` and `exercises/<slug>/metadata.yml`.
* Create `exercises/<slug>/description.md` and `exercises/<slug>/metadata.toml`.
* Bonus: `exercises/<slug>/canonical-data.json` with inputs/outputs for the test suite.
* Submit a pull request.

Expand All @@ -230,7 +230,7 @@ A problem must have a unique slug. This slug is used as
Reference the PR in problem-specifications.
It's suggested, but not required, to wait until the problem-specifications PR is merged before merging the track-specific PR, for the following reasons:
* If changes are suggested to the problem-specifications PR, it is likely that they will be applicable to the track-specific PR as well.
* Only applicable if the exercise needs a custom `title` in metadata.yml (as described in https://github.com/exercism/docs/blob/main/you-can-help/make-up-new-exercises.md#problem-specification): The title of the exercise as displayed on the website will use the default algorithm instead of the correct title until the problem-specifications PR is merged.
* Only applicable if the exercise needs a custom `title` in metadata.toml (as described in https://github.com/exercism/docs/blob/main/you-can-help/make-up-new-exercises.md#problem-specification): The title of the exercise as displayed on the website will use the default algorithm instead of the correct title until the problem-specifications PR is merged.
* Only applicable to tracks that have specific tools that depend on exercises being present in problem-specifications (see the track-specific documentation for whether any such tools exist): Such tools may operate unexpectedly if the exercise does not yet exist in problem-specifications. Try checking out the branch on a local copy of problem-specifications or rerunning the tool after the problem-specifications PR is merged if applicable.

## Track Anatomy
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,22 @@ Each exercise's metadata lives in a directory under `exercises/`.
exercises/
├── accumulate
│   ├── description.md
│   └── metadata.yml
│   └── metadata.toml
├── ...
├── minesweeper
│   ├── canonical-data.json
│   ├── description.md
│   └── metadata.yml
│   └── metadata.toml
├── ...
└── zipper
├── description.md
└── metadata.yml
└── metadata.toml
```

There are three metadata files per exercise:

- `description.md` - the basic problem description
- `metadata.yml` - additional information about the exercise, such as where it came from
- `metadata.toml` - additional information about the exercise, such as where it came from
- `canonical-data.json` (optional) - standardized test inputs and outputs that can be used to implement the exercise

## Test Data (canonical-data.json)
Expand Down
2 changes: 1 addition & 1 deletion bin/check_required_files_present
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function check_directory {
for exercise_directory in $directory/* ; do
show_progress
require_file "$exercise_directory/description.md"
require_file "$exercise_directory/metadata.yml"
require_file "$exercise_directory/metadata.toml"
done

}
Expand Down
1 change: 1 addition & 0 deletions bin/transfer_blurb_to_description.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def blurb
end

def metadata
# TODO: Update to parse TOML instead
metadata_filename = File.join(path, 'metadata.yml')
YAML.load_file(metadata_filename)
end
Expand Down
3 changes: 3 additions & 0 deletions exercises/accumulate/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
blurb = "Implement the `accumulate` operation, which, given a collection and an operation to perform on each element of the collection, returns a new collection containing the result of applying that operation to each element of the input collection."
source = "Conversation with James Edward Gray II"
source_url = "https://twitter.com/jeg2"
3 changes: 3 additions & 0 deletions exercises/acronym/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
blurb = "Convert a long phrase to its acronym."
source = "Julien Vanier"
source_url = "https://github.com/monkbroc"
3 changes: 3 additions & 0 deletions exercises/affine-cipher/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
blurb = "Create an implementation of the Affine cipher, an ancient encryption algorithm from the Middle East."
source = "Wikipedia"
source_url = "http://en.wikipedia.org/wiki/Affine_cipher"
1 change: 1 addition & 0 deletions exercises/all-your-base/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
blurb = "Convert a number, represented as a sequence of digits in one base, to any other base."
3 changes: 3 additions & 0 deletions exercises/allergies/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
blurb = "Given a person's allergy score, determine whether or not they're allergic to a given item, and their full list of allergies."
source = "Jumpstart Lab Warm-up"
source_url = "http://jumpstartlab.com"
1 change: 1 addition & 0 deletions exercises/alphametics/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
blurb = "Write a function to solve alphametics puzzles."
3 changes: 3 additions & 0 deletions exercises/anagram/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
blurb = "Given a word and a list of possible anagrams, select the correct sublist."
source = "Inspired by the Extreme Startup game"
source_url = "https://github.com/rchatley/extreme_startup"
3 changes: 3 additions & 0 deletions exercises/armstrong-numbers/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
blurb = "Determine if a number is an Armstrong number."
source = "Wikipedia"
source_url = "https://en.wikipedia.org/wiki/Narcissistic_number"
3 changes: 3 additions & 0 deletions exercises/atbash-cipher/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
blurb = "Create an implementation of the atbash cipher, an ancient encryption system created in the Middle East."
source = "Wikipedia"
source_url = "http://en.wikipedia.org/wiki/Atbash"
1 change: 1 addition & 0 deletions exercises/bank-account/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
blurb = "Simulate a bank account supporting opening/closing, withdraws, and deposits of money. Watch out for concurrent transactions!"
3 changes: 3 additions & 0 deletions exercises/beer-song/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
blurb = "Produce the lyrics to that beloved classic, that field-trip favorite: 99 Bottles of Beer on the Wall."
source = "Learn to Program by Chris Pine"
source_url = "http://pine.fm/LearnToProgram/?Chapter=06"
3 changes: 3 additions & 0 deletions exercises/binary-search-tree/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
blurb = "Insert and search for numbers in a binary tree."
source = "Josh Cheek"
source_url = "https://twitter.com/josh_cheek"
3 changes: 3 additions & 0 deletions exercises/binary-search/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
blurb = "Implement a binary search algorithm."
source = "Wikipedia"
source_url = "http://en.wikipedia.org/wiki/Binary_search_algorithm"
3 changes: 3 additions & 0 deletions exercises/binary/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
blurb = "Convert a binary number, represented as a string (e.g. '101010'), to its decimal equivalent using first principles."
source = "All of Computer Science"
source_url = "http://www.wolframalpha.com/input/?i=binary&a=*C.binary-_*MathWorld-"
3 changes: 3 additions & 0 deletions exercises/bob/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
blurb = "Bob is a lackadaisical teenager. In conversation, his responses are very limited."
source = "Inspired by the 'Deaf Grandma' exercise in Chris Pine's Learn to Program tutorial."
source_url = "http://pine.fm/LearnToProgram/?Chapter=06"
3 changes: 3 additions & 0 deletions exercises/book-store/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
blurb = "To try and encourage more sales of different books from a popular 5 book series, a bookshop has decided to offer discounts of multiple-book purchases."
source = "Inspired by the harry potter kata from Cyber-Dojo."
source_url = "http://cyber-dojo.org"
3 changes: 3 additions & 0 deletions exercises/bowling/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
blurb = "Score a bowling game."
source = "The Bowling Game Kata at but UncleBob"
source_url = "http://butunclebob.com/ArticleS.UncleBob.TheBowlingGameKata"
3 changes: 3 additions & 0 deletions exercises/change/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
blurb = "Correctly determine change to be given using the least number of coins."
source = "Software Craftsmanship - Coin Change Kata"
source_url = "https://web.archive.org/web/20130115115225/http://craftsmanship.sv.cmu.edu:80/exercises/coin-change-kata"
3 changes: 3 additions & 0 deletions exercises/circular-buffer/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
blurb = "A data structure that uses a single, fixed-size buffer as if it were connected end-to-end."
source = "Wikipedia"
source_url = "http://en.wikipedia.org/wiki/Circular_buffer"
3 changes: 3 additions & 0 deletions exercises/clock/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
blurb = "Implement a clock that handles times without dates."
source = "Pairing session with Erin Drummond"
source_url = "https://twitter.com/ebdrummond"
3 changes: 3 additions & 0 deletions exercises/collatz-conjecture/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
blurb = "Calculate the number of steps to reach 1 using the Collatz conjecture."
source = "An unsolved problem in mathematics named after mathematician Lothar Collatz"
source_url = "https://en.wikipedia.org/wiki/3x_%2B_1_problem"
3 changes: 3 additions & 0 deletions exercises/complex-numbers/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
blurb = "Implement complex numbers."
source = "Wikipedia"
source_url = "https://en.wikipedia.org/wiki/Complex_number"
1 change: 1 addition & 0 deletions exercises/connect/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
blurb = "Compute the result for a game of Hex / Polygon."
1 change: 1 addition & 0 deletions exercises/counter/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
blurb = "Design a test suite for a line/letter/character counter tool."
3 changes: 3 additions & 0 deletions exercises/crypto-square/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
blurb = "Implement the classic method for composing secret messages called a square code."
source = "J Dalbey's Programming Practice problems"
source_url = "http://users.csc.calpoly.edu/~jdalbey/103/Projects/ProgrammingPractice.html"
1 change: 1 addition & 0 deletions exercises/custom-set/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
blurb = "Create a custom set type."
2 changes: 2 additions & 0 deletions exercises/darts/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
blurb = "Write a function that returns the earned points in a single toss of a Darts game."
source = "Inspired by an exercise created by a professor Della Paolera in Argentina"
3 changes: 3 additions & 0 deletions exercises/diamond/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
blurb = "Given a letter, print a diamond starting with 'A' with the supplied letter at the widest point."
source = "Seb Rose"
source_url = "http://claysnow.co.uk/recycling-tests-in-tdd/"
3 changes: 3 additions & 0 deletions exercises/difference-of-squares/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
blurb = "Find the difference between the square of the sum and the sum of the squares of the first N natural numbers."
source = "Problem 6 at Project Euler"
source_url = "http://projecteuler.net/problem=6"
3 changes: 3 additions & 0 deletions exercises/diffie-hellman/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
blurb = "Diffie-Hellman key exchange."
source = "Wikipedia, 1024 bit key from www.cryptopp.com/wiki."
source_url = "http://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange"
4 changes: 4 additions & 0 deletions exercises/dnd-character/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
blurb = "Randomly generate Dungeons & Dragons characters."
source = "Simon Shine, Erik Schierboom"
source_url = "https://github.com/exercism/problem-specifications/issues/616#issuecomment-437358945"
title = "D&D Character"
1 change: 1 addition & 0 deletions exercises/dominoes/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
blurb = "Make a chain of dominoes."
4 changes: 4 additions & 0 deletions exercises/dot-dsl/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
title = "DOT DSL"
blurb = "Write a Domain Specific Language similar to the Graphviz dot language."
source = "Wikipedia"
source_url = "https://en.wikipedia.org/wiki/DOT_(graph_description_language)"
1 change: 1 addition & 0 deletions exercises/error-handling/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
blurb = "Implement various kinds of error handling and resource management."
4 changes: 4 additions & 0 deletions exercises/etl/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
title = "ETL"
blurb = "We are going to do the `Transform` step of an Extract-Transform-Load."
source = "The Jumpstart Lab team"
source_url = "http://jumpstartlab.com"
3 changes: 3 additions & 0 deletions exercises/flatten-array/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
blurb = "Take a nested list and return a single list with all values except nil/null."
source = "Interview Question"
source_url = "https://reference.wolfram.com/language/ref/Flatten.html"
3 changes: 3 additions & 0 deletions exercises/food-chain/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
blurb = "Generate the lyrics of the song 'I Know an Old Lady Who Swallowed a Fly'."
source = "Wikipedia"
source_url = "http://en.wikipedia.org/wiki/There_Was_an_Old_Lady_Who_Swallowed_a_Fly"
1 change: 1 addition & 0 deletions exercises/forth/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
blurb = "Implement an evaluator for a very simple subset of Forth."
3 changes: 3 additions & 0 deletions exercises/gigasecond/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
blurb = "Given a moment, determine the moment that would be after a gigasecond has passed."
source = "Chapter 9 in Chris Pine's online Learn to Program tutorial."
source_url = "http://pine.fm/LearnToProgram/?Chapter=09"
1 change: 1 addition & 0 deletions exercises/go-counting/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
blurb = "Count the scored points on a Go board."
3 changes: 3 additions & 0 deletions exercises/grade-school/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
blurb = "Given students' names along with the grade that they are in, create a roster for the school."
source = "A pairing session with Phil Battos at gSchool"
source_url = "http://gschool.it"
3 changes: 3 additions & 0 deletions exercises/grains/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
blurb = "Calculate the number of grains of wheat on a chessboard given that the number on each square doubles."
source = "JavaRanch Cattle Drive, exercise 6"
source_url = "http://www.javaranch.com/grains.jsp"
3 changes: 3 additions & 0 deletions exercises/grep/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
blurb = "Search a file for lines matching a regular expression pattern. Return the line number and contents of each matching line."
source = "Conversation with Nate Foster."
source_url = "http://www.cs.cornell.edu/Courses/cs3110/2014sp/hw/0/ps0.pdf"
3 changes: 3 additions & 0 deletions exercises/hamming/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
blurb = "Calculate the Hamming difference between two DNA strands."
source = "The Calculating Point Mutations problem at Rosalind"
source_url = "http://rosalind.info/problems/hamm/"
1 change: 1 addition & 0 deletions exercises/hangman/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
blurb = "Implement the logic of the hangman game using functional reactive programming."
3 changes: 3 additions & 0 deletions exercises/hello-world/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
blurb = "The classical introductory exercise. Just say \"Hello, World!\"."
source = "This is an exercise to introduce users to using Exercism"
source_url = "http://en.wikipedia.org/wiki/%22Hello,_world!%22_program"
3 changes: 3 additions & 0 deletions exercises/hexadecimal/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
blurb = "Convert a hexadecimal number, represented as a string (e.g. \"10af8c\"), to its decimal equivalent using first principles (i.e. no, you may not use built-in or external libraries to accomplish the conversion)."
source = "All of Computer Science"
source_url = "http://www.wolframalpha.com/examples/NumberBases.html"
2 changes: 2 additions & 0 deletions exercises/high-scores/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
blurb = "Manage a player's High Score list."
source = "Tribute to the eighties' arcade game Frogger"
3 changes: 3 additions & 0 deletions exercises/house/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
blurb = "Output the nursery rhyme 'This is the House that Jack Built'."
source = "British nursery rhyme"
source_url = "http://en.wikipedia.org/wiki/This_Is_The_House_That_Jack_Built"
4 changes: 4 additions & 0 deletions exercises/isbn-verifier/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
title = "ISBN Verifier"
blurb = "Check if a given string is a valid ISBN-10 number."
source = "Converting a string into a number and some basic processing utilizing a relatable real world example."
source_url = "https://en.wikipedia.org/wiki/International_Standard_Book_Number#ISBN-10_check_digit_calculation"
3 changes: 3 additions & 0 deletions exercises/isogram/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
blurb = "Determine if a word or phrase is an isogram."
source = "Wikipedia"
source_url = "https://en.wikipedia.org/wiki/Isogram"
3 changes: 3 additions & 0 deletions exercises/kindergarten-garden/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
blurb = "Given a diagram, determine which plants each child in the kindergarten class is responsible for."
source = "Random musings during airplane trip."
source_url = "http://jumpstartlab.com"
3 changes: 3 additions & 0 deletions exercises/knapsack/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
blurb = "Given a knapsack that can only carry a certain weight, determine which items to put in the knapsack in order to maximize their combined value."
source = "Wikipedia"
source_url = "https://en.wikipedia.org/wiki/Knapsack_problem"
3 changes: 3 additions & 0 deletions exercises/largest-series-product/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
blurb = "Given a string of digits, calculate the largest product for a contiguous substring of digits of length n."
source = "A variation on Problem 8 at Project Euler"
source_url = "http://projecteuler.net/problem=8"
3 changes: 3 additions & 0 deletions exercises/leap/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
blurb = "Given a year, report if it is a leap year."
source = "JavaRanch Cattle Drive, exercise 3"
source_url = "http://www.javaranch.com/leap.jsp"
1 change: 1 addition & 0 deletions exercises/ledger/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
blurb = "Refactor a ledger printer."
1 change: 1 addition & 0 deletions exercises/lens-person/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
blurb = "Use lenses to update nested records (specific to languages with immutable data)."
2 changes: 2 additions & 0 deletions exercises/linked-list/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
blurb = "Implement a doubly linked list."
source = "Classic computer science topic"
1 change: 1 addition & 0 deletions exercises/list-ops/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
blurb = "Implement basic list operations."
3 changes: 3 additions & 0 deletions exercises/luhn/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
blurb = "Given a number determine whether or not it is valid per the Luhn formula."
source = "The Luhn Algorithm on Wikipedia"
source_url = "http://en.wikipedia.org/wiki/Luhn_algorithm"
1 change: 1 addition & 0 deletions exercises/markdown/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
blurb = "Refactor a Markdown parser."
2 changes: 2 additions & 0 deletions exercises/matching-brackets/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
blurb = "Make sure the brackets and braces all match."
source = "Ginna Baker"
3 changes: 3 additions & 0 deletions exercises/matrix/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
blurb = "Given a string representing a matrix of numbers, return the rows and columns of that matrix."
source = "Warmup to the `saddle-points` warmup."
source_url = "http://jumpstartlab.com"
3 changes: 3 additions & 0 deletions exercises/meetup/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
blurb = "Calculate the date of meetups."
source = "Jeremy Hinegardner mentioned a Boulder meetup that happens on the Wednesteenth of every month"
source_url = "https://twitter.com/copiousfreetime"
2 changes: 2 additions & 0 deletions exercises/micro-blog/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
title = "Micro Blog"
blurb = "Given an input string, truncate it to 5 characters."
1 change: 1 addition & 0 deletions exercises/minesweeper/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
blurb = "Add the numbers to a minesweeper board."
3 changes: 3 additions & 0 deletions exercises/nth-prime/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
blurb = "Given a number n, determine what the nth prime is."
source = "A variation on Problem 7 at Project Euler"
source_url = "http://projecteuler.net/problem=7"
1 change: 1 addition & 0 deletions exercises/nucleotide-codons/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
blurb = "Write a function that returns the name of an amino acid a particular codon, possibly using shorthand, encodes for."
3 changes: 3 additions & 0 deletions exercises/nucleotide-count/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
blurb = "Given a DNA string, compute how many times each nucleotide occurs in the string."
source = "The Calculating DNA Nucleotides_problem at Rosalind"
source_url = "http://rosalind.info/problems/dna/"
4 changes: 4 additions & 0 deletions exercises/ocr-numbers/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
title = "OCR Numbers"
blurb = "Given a 3 x 4 grid of pipes, underscores, and spaces, determine which number is represented, or whether it is garbled."
source = "Inspired by the Bank OCR kata"
source_url = "http://codingdojo.org/cgi-bin/wiki.pl?KataBankOCR"
3 changes: 3 additions & 0 deletions exercises/octal/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
blurb = "Convert a octal number, represented as a string (e.g. '1735263'), to its decimal equivalent using first principles (i.e. no, you may not use built-in or external libraries to accomplish the conversion)."
source = "All of Computer Science"
source_url = "http://www.wolframalpha.com/input/?i=base+8"
4 changes: 4 additions & 0 deletions exercises/paasio/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
title = "PaaS I/O"
blurb = "Report network IO statistics."
source = "Brian Matsuo"
source_url = "https://github.com/bmatsuo"
3 changes: 3 additions & 0 deletions exercises/palindrome-products/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
blurb = "Detect palindrome products in a given range."
source = "Problem 4 at Project Euler"
source_url = "http://projecteuler.net/problem=4"
3 changes: 3 additions & 0 deletions exercises/pangram/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
blurb = "Determine if a sentence is a pangram."
source = "Wikipedia"
source_url = "https://en.wikipedia.org/wiki/Pangram"
1 change: 1 addition & 0 deletions exercises/parallel-letter-frequency/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
blurb = "Count the frequency of letters in texts using parallel computation."
4 changes: 4 additions & 0 deletions exercises/pascals-triangle/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
title = "Pascal's Triangle"
blurb = "Compute Pascal's triangle up to a given number of rows."
source = "Pascal's Triangle at Wolfram Math World"
source_url = "http://mathworld.wolfram.com/PascalsTriangle.html"
3 changes: 3 additions & 0 deletions exercises/perfect-numbers/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
blurb = "Determine if a number is perfect, abundant, or deficient based on Nicomachus' (60 - 120 CE) classification scheme for positive integers."
source = "Taken from Chapter 2 of Functional Thinking by Neal Ford."
source_url = "http://shop.oreilly.com/product/0636920029687.do"
3 changes: 3 additions & 0 deletions exercises/phone-number/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
blurb = "Clean up user-entered phone numbers so that they can be sent SMS messages."
source = "Event Manager by JumpstartLab"
source_url = "http://tutorials.jumpstartlab.com/projects/eventmanager.html"
3 changes: 3 additions & 0 deletions exercises/pig-latin/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
blurb = "Implement a program that translates from English to Pig Latin."
source = "The Pig Latin exercise at Test First Teaching by Ultrasaurus"
source_url = "https://github.com/ultrasaurus/test-first-teaching/blob/master/learn_ruby/pig_latin/"
3 changes: 3 additions & 0 deletions exercises/point-mutations/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
blurb = "Calculate the Hamming difference between two DNA strands."
source = "The Calculating Point Mutations problem at Rosalind"
source_url = "http://rosalind.info/problems/hamm/"
3 changes: 3 additions & 0 deletions exercises/poker/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
blurb = "Pick the best hand(s) from a list of poker hands."
source = "Inspired by the training course from Udacity."
source_url = "https://www.udacity.com/course/viewer#!/c-cs212/"
4 changes: 4 additions & 0 deletions exercises/pov/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
title = "POV"
blurb = "Reparent a graph on a selected node."
source = "Adaptation of exercise from 4clojure"
source_url = "https://www.4clojure.com/"
3 changes: 3 additions & 0 deletions exercises/prime-factors/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
blurb = "Compute the prime factors of a given natural number."
source = "The Prime Factors Kata by Uncle Bob"
source_url = "http://butunclebob.com/ArticleS.UncleBob.ThePrimeFactorsKata"
2 changes: 2 additions & 0 deletions exercises/protein-translation/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
blurb = "Translate RNA sequences into proteins."
source = "Tyler Long"
3 changes: 3 additions & 0 deletions exercises/proverb/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
blurb = "For want of a horseshoe nail, a kingdom was lost, or so the saying goes. Output the full text of this proverbial rhyme."
source = "Wikipedia"
source_url = "http://en.wikipedia.org/wiki/For_Want_of_a_Nail"
3 changes: 3 additions & 0 deletions exercises/pythagorean-triplet/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
blurb = "There exists exactly one Pythagorean triplet for which a + b + c = 1000. Find the product a * b * c."
source = "Problem 9 at Project Euler"
source_url = "http://projecteuler.net/problem=9"
3 changes: 3 additions & 0 deletions exercises/queen-attack/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
blurb = "Given the position of two queens on a chess board, indicate whether or not they are positioned so that they can attack each other."
source = "J Dalbey's Programming Practice problems"
source_url = "http://users.csc.calpoly.edu/~jdalbey/103/Projects/ProgrammingPractice.html"
3 changes: 3 additions & 0 deletions exercises/rail-fence-cipher/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
blurb = "Implement encoding and decoding for the rail fence cipher."
source = "Wikipedia"
source_url = "https://en.wikipedia.org/wiki/Transposition_cipher#Rail_Fence_cipher"
3 changes: 3 additions & 0 deletions exercises/raindrops/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
blurb = "Convert a number to a string, the content of which depends on the number's factors."
source = "A variation on FizzBuzz, a famous technical interview question that is intended to weed out potential candidates. That question is itself derived from Fizz Buzz, a popular children's game for teaching division."
source_url = "https://en.wikipedia.org/wiki/Fizz_buzz"
3 changes: 3 additions & 0 deletions exercises/rational-numbers/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
blurb = "Implement rational numbers."
source = "Wikipedia"
source_url = "https://en.wikipedia.org/wiki/Rational_number"
1 change: 1 addition & 0 deletions exercises/react/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
blurb = "Implement a basic reactive system."
1 change: 1 addition & 0 deletions exercises/rectangles/metadata.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
blurb = "Count the rectangles in an ASCII diagram."
Loading

0 comments on commit df6420b

Please sign in to comment.