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
module Main exposing (..) | |
import Css exposing (..) | |
import Html | |
import Html.Styled exposing (..) | |
import Html.Styled.Attributes exposing (..) | |
import Html.Styled.Events exposing (onClick) | |
import Random | |
import Time exposing (Time, second, millisecond) |
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 Gumimaze do | |
def read() do | |
lines = "maze.txt" |> File.read!() |> String.trim() |> String.split("\n") | |
for {line, y} <- Enum.with_index(lines), {c, x} <- Enum.with_index(String.to_charlist(line)), into: %{} do | |
{{x, y}, c} | |
end | |
end | |
def solve(maze) do | |
{x, y} = elem(Enum.find(maze, fn {_, v} -> v == ?S end), 0) |
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
One CLI for webpack must be installed. These are recommended choices, delivered as separate packages: | |
- webpack-cli (https://github.com/webpack/webpack-cli) | |
The original webpack full-featured CLI. | |
We will use "npm" to install the CLI via "npm install -D". | |
Do you want to install 'webpack-cli' (yes/no): yes | |
Installing 'webpack-cli' (running 'npm install -D webpack-cli')... | |
npm WARN webpack-cli@3.3.10 requires a peer of webpack@4.x.x but none is installed. You must install peer dependencies yourself. | |
+ webpack-cli@3.3.10 | |
updated 1 package and audited 1061 packages in 8.612s |