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
| gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 931FF8E79F0876134EDDBDCCA87FF9DF48BF1C90 | |
| yay -S spotify |
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
| def find_missing_letter(range) | |
| chars = range.chars | |
| max_char = chars.max | |
| min_char = chars.min | |
| missing_chars = (min_char..max_char).to_a - chars | |
| missing_chars.first | |
| end | |
| p find_missing_letter "abde" | |
| p find_missing_letter "abcdefgijk" |
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
| def diff_array(first_array, second_array) | |
| (first_array - second_array) + (second_array - first_array) | |
| end |
OlderNewer