Dumb < Past You < Present You < Future You < Not Dumb
Commits are written by Present You, they will be usable to Future You, it's important to include as much context as possible to avoid Future You thinking of Past You as an idiot.
Fixes thing
Fix: User could not signup because button was gone
If a user tried to sign up on a mobile devices, the button would not
be displayed. This was caused by the `float: left` on the button
itself, by removing this it is working again on all platforms.
[fixes #123456]
Committed all the things
Committed all the things...
This is a big commit, sorry. The things that I've tried to do in this commit:
- Fix bug with the thingamajig
- Enhance the AI
- Turned off various logging things
Comments also make 'Past You' look way smarter than he actually was.
def word_list
return @word_list if @word_list
indexes = (1..6).to_a
.repeated_permutation(5).map(&:join)
.first(valid_words.length)
@word_list = Hash[indexes.zip(valid_words)]
@word_list
end
def word_list
return @word_list if @word_list
# The coolest line in this whole source.
#
# Get all permuations with `1,2,3,4,5,6` (e.g. from '11111' 66666')
# only take as many as we need.
indexes = (1..6).to_a.repeated_permutation(5)
.map(&:join).valid_words.length)
# Zip the permutations with the words
# So this creates a hash like:
#
# {'11111': 'first',
# ...
# '66665': 'another',
# '66666': 'last'}
@word_list = Hash[indexes.zip(valid_words)]
@word_list
end
Beste remedie tegen ‘goesting in pita’ is pita. Net gebeld. 🐣@atog