Mix.install([
{:briefly, "~> 0.4.1"},
{:req, "~> 0.3.10"},
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
## 1. connecting to MongooseIM from Elixir with escalus hex package | |
user_spec = [ | |
username: @username, | |
password: @password | |
] | |
config = [] | |
config = :escalus_cleaner.start(config) | |
# this connects to MIM and returns a client you |
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 TTTMap do | |
def win?(%{s1: x, s2: x, s3: x}) when not is_nil(x), do: true | |
def win?(%{s4: x, s5: x, s6: x}) when not is_nil(x), do: true | |
def win?(%{s7: x, s8: x, s9: x}) when not is_nil(x), do: true | |
def win?(%{s1: x, s4: x, s7: x}) when not is_nil(x), do: true | |
def win?(%{s2: x, s5: x, s8: x}) when not is_nil(x), do: true | |
def win?(%{s3: x, s6: x, s9: x}) when not is_nil(x), do: true | |
def win?(%{s1: x, s5: x, s9: x}) when not is_nil(x), do: true | |
def win?(%{s3: x, s5: x, s7: x}) when not is_nil(x), do: true | |
def win?(_), do: false |
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 RemShell do | |
import IO.ANSI, only: [underline: 0, bright: 0, reset: 0] | |
@moduledoc """ | |
Outputs commands to run a remote shell | |
from your machine to a remote host. | |
""" | |
# TODO replace with real values | |
@app :kebab |