type below:
brew update
brew install redis
To have launchd start redis now and restart at login:
brew services start redis
| # | |
| # CORS header support | |
| # | |
| # One way to use this is by placing it into a file called "cors_support" | |
| # under your Nginx configuration directory and placing the following | |
| # statement inside your **location** block(s): | |
| # | |
| # include cors_support; | |
| # | |
| # As of Nginx 1.7.5, add_header supports an "always" parameter which |
type below:
brew update
brew install redis
To have launchd start redis now and restart at login:
brew services start redis
| # Create a fork and workout the solution. do not capture solution here | |
| def find_embedded_word(arr, random_string) | |
| arr.detect do |word| | |
| return word if random_string.include?(word) | |
| random_substring = random_string.scan(/[#{word}]/).join('') | |
| word.split('').all? { |letter| random_substring.slice!(letter) } | |
| end |