A couple email configuration items have changed.
replace:
config :coherence,| defmodule UcxChat.ChannelRouter do | |
| use ChannelRouter | |
| @module __MODULE__ | |
| def match(:post, socket, ["typing"], params) do | |
| # module and action are build by the post macro | |
| apply(UcxChat.TypingChannelController, :create, [socket, params]) | |
| end |
| # Refer to https://www.hackerrank.com/challenges/the-tree-of-life for the problem description | |
| defmodule Life do | |
| use Bitwise | |
| def run do | |
| rule = read_int | |
| initial_state = IO.gets("") |> String.trim | |
| for _ <- 1..read_int() do | |
| [i, node] = IO.gets("") |> String.trim |> String.split(" ") |
| > Increment data pointer so that it points to next location in memory. | |
| < Decrement data pointer so that it points to previous locaion in memory. | |
| + Increment the byte pointed by data pointer by 1. If it is already at its maximum value, 255, then new value will be 0. | |
| - Decrement the byte pointed by data pointer by 1. If it is at its minimum value, 0, then new value will be 255. | |
| . Output the character represented by the byte at the data pointer. |
| {"lastUpload":"2020-03-08T20:15:59.345Z","extensionVersion":"v3.4.3"} |
| iex(13)> :leex.file('list_lexer.xrl') ; c("list_lexer.erl") | |
| [:list_lexer] | |
| iex(14)> source = "[one: 1, two: 2, :three, 4]" | |
| "[one: 1, two: 2, :three, 4]" | |
| iex(15)> {:ok, tokens, _} = source |> String.to_char_list |> :list_lexer.string | |
| {:ok, | |
| [{:"[", 1}, {:key, 1, :one}, {:int, 1, 1}, {:",", 1}, {:key, 1, :two}, | |
| {:int, 1, 2}, {:",", 1}, {:atom, 1, :three}, {:",", 1}, {:int, 1, 4}, | |
| {:"]", 1}], 1} | |
| iex(16)> c("helpers.ex") |
| # Provide documentation for cfg.settings.login_defaults here. | |
| cfg.settings.login_defaults = {/orange,[email protected]}, {/orange/monitor,[email protected]} |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <meta name="description" content=""> | |
| <meta name="author" content=""> | |
| <title>Hello Phoenix!</title> |
| defmodule ExForm do | |
| @moduledoc """ | |
| Prototype for a helpers to generate html forms. Usable with Phoenix. | |
| """ | |
| @doc """ | |
| Generates a html form. | |
| ## Syntax: | |
| 1. pass model name atom and use input_field |