Skip to content

Instantly share code, notes, and snippets.

View kirisaki's full-sized avatar
〉λ=

Akihito KIRISAKI kirisaki

〉λ=
View GitHub Profile
@kirisaki
kirisaki / list.md
Last active November 27, 2024 01:40
Unbuildable famous package list on wasm32-wasi-ghc

Unbuildable famous package list on wasm32-wasi-ghc

  • ghc-9.13.20241116
  • Cabal 3.14

If you want me to research packages and leave a comment here, reddit or my X account.

The method to build

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 [email protected] requires a peer of [email protected] but none is installed. You must install peer dependencies yourself.
+ [email protected]
updated 1 package and audited 1061 packages in 8.612s
@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)
@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)