- GitHub Staff
- @[email protected]
This file contains hidden or 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
class Range | |
def overlap(other) | |
[self.begin, other.begin].max .. [self.end, other.end].min | |
end | |
end | |
def musical_era_alive_in(start_life, end_life) | |
[ | |
['Medieval', 476..1400], | |
['Renaissance', 1400..1600], |
This file contains hidden or 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
## | |
# Program to help you hack terminals in Fallout | |
# | |
# Usage: | |
# | |
# Run this program with a '/' separated list of possible words, and | |
# (once you've made a guess) another '/' separated list of words and | |
# scores where the word and score are separated by a ':' | |
# | |
# In this example, the words shown in my terminal were: |