- Go to Digital Ocean
- Create new droplet
- London
- Ubuntu
- No apps
- Add SSH keys
This file contains 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
Creation of an opposite macro | |
We want opposite 1 + 1 | |
to return to 0 or essentially run 1 - 1 | |
opposite 1 + 1 | |
Transforms 1 + 1 into an AST | |
opposite({:+, [], [1,1]} | |
Our macro would then transform that AST (Abstract syntax tree) |
This file contains 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
defmodule HelloPhoenix.Memcached.Supervisor do | |
use Supervisor | |
def start_link do | |
Supervisor.start_link(__MODULE__, []) | |
end | |
def init([]) do | |
pool_options = [ | |
name: {:local, :memcached_pool}, |
NewerOlder