This walkthrough uses our group project as an example; we will be creating an upvote/downvote system.
Install Redis and the Redis gem (in terminal).
$ brew install redis
$ ln -sfv /usr/local/opt/redis/*.plist ~/Library/LaunchAgents| $ brew doctor | |
| Your system is ready to brew. | |
| $ brew config | |
| HOMEBREW_VERSION: 1.6.1-18-g714bf51 | |
| ORIGIN: https://github.com/Homebrew/brew.git | |
| HEAD: 714bf51524eb9c56b189d0d4f5a7a1cfe8b9d6d3 | |
| Last commit: 11 hours ago |
| #include <algorithm> | |
| #include <array> | |
| #include <chrono> | |
| #include <cstddef> | |
| #include <cstdint> | |
| #include <iostream> | |
| #include <iterator> | |
| #include <random> | |
| #if !defined(__GNUC__) && !defined(__attribute__) |
| /* https://wandbox.org/permlink/69aE7gIqBcWonJB0 */ | |
| constexpr auto operator""_times(unsigned long long i) noexcept | |
| { | |
| return [i](auto &&f) { | |
| for (auto n{i}; --n; f()); | |
| return f(); | |
| }; | |
| } |
| #!/usr/bin/python | |
| # | |
| # Version 2 | |
| # 9 July 2013 | |
| # | |
| # Modified to use xml format output from timegenie instead of text file | |
| # | |
| # Version 3 | |
| # 7 March 2014 | |
| # |
| ░▒▓▓▓▒░ | |
| ░░▒▓▓▓▓▓▓▓▓▓▓▓▒░░ | |
| ░▒▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▒░ | |
| ░▒▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▒░ | |
| ░▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░▓▓▓▓▓▓▓▓▓▓▓▓▓▓░ | |
| ░▓▓▓▓▓▓▓▓▓▓▓▓░░░░▓░░░░▓▓▓▓▓▓▓▓▓▓▓▓░ dd | |
| ░▓▓▓▓▓▓▓▓▒░░░▓▓▓▓▓▓▓▓▓░░░▒▓▓▓▓▓▓▓▓░ 88 | |
| ░▓▓▓▓▓░░░░░░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░ 8b,dPPYba, MM88MMM ,adPPYba, | |
| ░▓▓░░░▒▒▒▒▒▒░░░░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░ 88P' "8a 88 a8" "" | |
| ░░▒▒▒▒▒▒▒▒▒▒▒▒▒░░░▓▓▓▓▓▓▓▓▓▓▓▓▓░░ 88 d8 88 8b |
| #!/usr/bin/python | |
| # | |
| # Version 2 | |
| # 9 July 2013 | |
| # | |
| # Modified to use xml format output from timegenie instead of text file | |
| # | |
| # Version 3 | |
| # 7 March 2014 | |
| # |
| #ifndef SLURP_H | |
| #define SLURP_H | |
| class Slurp { | |
| void *begin_{ nullptr }; | |
| void *end_; | |
| public: | |
| Slurp() = delete; | |
| Slurp(const Slurp &) = delete; | |
| Slurp &operator=(Slurp) = delete; |
| throw new Error("The sky is falling!"); |