久々にカテゴリ増やした気がする(怠慢
環境
- Elixir 1.6
コード
Elixirの教科書本ことプログラミングElixirの演習問題でわからなかったのでメモ
Tuple.to_list({1234, 5678}) # => [1234, 5678]
よって演習問題の答えは以下のようになる
pair_tuple_to_list = fn(a) -> Tuple.to_list(a) end pair_tuple_to_list.( {1234, 5678} )
readline入れろ
brew install readline
が、残念ながらこれだけだとライブラリのパスがruby-buildから見えないので、
RUBY_CONFIGURE_OPTS="--with-readline-dir=$(brew --prefix readline)" rbenv install 3.0.0
する必要がある。
~/.zshrcとかに
export RUBY_CONFIGURE_OPTS="--with-readline-dir=$(brew --prefix readline)"
しておけばよい
rbenv でRubyをインストールしたものの、 pry
とかirb
が以下のようなエラーが表示され、起動できない。
$ pry Sorry, you can't use Pry without Readline or a compatible library. Possible solutions: * Rebuild Ruby with Readline support using `--with-readline` * Use the rb-readline gem, which is a pure-Ruby port of Readline * Use the pry-coolline gem, a pure-ruby alternative to Readline
インストール時になかったらエラーになれよ、、、と思うがこれで解決した。やったね
タイトルのママ
以下のときにこまった
docker pull ghcr.io/thr3a/imagick
.github/workflows/action.ymlを用意
name: Build and Publish Docker on: push: branches: - master jobs: build_and_push: runs-on: ubuntu-20.04 env: IMAGE_NAME: imagick steps: - name: checkout uses: actions/checkout@v2 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v1 - name: Login to GitHub Container Registry uses: docker/login-action@v1 with: registry: ghcr.io username: ${{ github.repository_owner }} password: ${{ secrets.DOCKER_REGISTRY_TOKEN }} - name: Build and push uses: docker/build-push-action@v2 with: context: . push: true tags: | ghcr.io/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}:latest ghcr.io/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}:1.0.0
vue create --preset kocal/vue-web-extension