Skip to content

Instantly share code, notes, and snippets.

View kirisaki's full-sized avatar
〉λ=

Akihito KIRISAKI kirisaki

〉λ=
View GitHub Profile
@kirisaki
kirisaki / file0.txt
Created December 20, 2017 13:08
Elmでカルーセル(スライドショー)を作る ref: https://qiita.com/A_kirisaki/items/f0386925f7d8c74d607b
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)
@kirisaki
kirisaki / mission2.ex
Created February 20, 2018 01:49
Gumimaze Solution
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)
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