Qiita
You are not logged in to any team
Log in to Qiita Team...
Community
List of all organizatioins
Advent Calendar
Qiita Jobs
Qiitadon (β)
Qiita Zine
Community Guideline
How to write good articles
Release note
Signup
Login
LGTM items
Followees
Comment history
Edit request history
Issue report
Help us understand the problem. What is going on with this user?
It's illegal (copyright infringement, privacy infringement, libel, etc.)
It's socially inappropriate (offensive to public order and morals)
It's advertising
It's spam
Other than the above, but not suitable for the Qiita community (violation of guidelines)
Hitoshi Hayakawa
@hykw
16
Posts
175
Contributions
19
Followers
Follow
Following tags
kintone
AtCoder
競技プログラミング
Docker
Elasticsearch
Elm
Go
関数型言語
Erlang
Slack
Phoenix
Elixir
Django
Vim
Organizations
Comments
Elixirで速度を追い求めるときのプログラミングスタイル PartⅡ,Pelemayの近況もあるよ
commented
++の実装は最終的に :lists.reverse/1 を呼んでませんか? 昔 Enum.concat の実装を読んだときはそうだったので、きっと ++ も最終的に同じ事をやっているのではないかと。
約1年の Elixir での開発を振り返ってみた
commented
Map は atom だけ特別と考えるとわかりやすいかもしれません。キーは文字列に限定されるわけじゃなく、例えば Integer でもいけます 例: ```elixir > x = %{1 => ...
WordPressをEC2+ELB構成に移行したらハマった(上司が)
commented
いやつまり、HTTPでアクセスが来ても Wordpress は SSL でアクセスしてると思っちゃうので、リダイレクトしてくれないですよ。先のコメントのようにHTTPSの時だけONにすれば、WP_HO...
WordPressをEC2+ELB構成に移行したらハマった(上司が)
commented
``` if ($_SERVER['X-Forwarded-Proto'] == 'on') $_SERVER['HTTPS'] = 'on'; ``` とかにしないと、HTTP でのアクセスも ...
ホワイトハウスのWordPressをチェック
commented
https://www.whitehouse.gov/wp-content/themes/whitehouse/style.css がアクセスできるので、WPなのは間違いないでしょうね。 テーマファ...
Elixirでランダムな文字列を作る
commented
https://github.com/patricksrobertson/secure_random.ex とかも便利ですよ。
mix.exs の中の version の値を外部ファイルに外出し
commented
:application って Application で抽象化されてたんですね。 Application.spec/2 版の方がイケてるので、その書き方にすることにします。ありがとうございます。 ...
mix.exs の中の version の値を外部ファイルに外出し
commented
結局、VERSION ファイルも mix.exs での黒魔術も必要ではなくて、こう書けばいいだけでした。。。 ```elixir defmodule Foo.util do def versi...
mix.exs の中の version の値を外部ファイルに外出し
commented
何か、類似の話がありますね。。。 http://stackoverflow.com/questions/32968253/access-project-version-within-elixir-ap...
プログラミングにおけるアキュムレータとは何か?
commented
アキュムレーターは末尾最適させるために使ってるかと。再起の階層が浅い時はそんなこと考えなくてもいいでしょうが。
ElixirのEnum.reverse() の実態は :lists.reverse/1 なので速い
commented
ほんとは、 ``` a = [1|[]]. b = [2|a]. c = [3|b]. lists:reverse(c). ``` のように書きたかったんですが、unbound してないにもかかわ...
Elixir のプロセスを使ってフェイルセーフなアプリケーションを作る ─ 失敗は恐れず泥水にダイブ
commented
subsupervisor無しで直接workerをぶる下げちゃうと、worker再起動時にstashidを渡せないからでは無いでしょうか(間に入れたsubsupervisorのstateとして、sta...
Timexのよくある罠
commented
applications で tzdata を起動しておかないと Date.local がこけるという罠を踏みました。他にハマる人がいるかもしれないので、ここでコメントしておきます(c.f. http...
Phoenix で OAuth 認証をする
commented
github.ex の GitHub.new/0 は、`OAuth2.new([` じゃなくて `OAuth2.Client.new([` じゃないでしょうか?
[Elixir] PhoenixでPlugの自作
commented
pipe_through は、 ``` Every time pipe_through/1 is called, the new pipelines are appended to the ones...
演算の並列実行でCPUコアを使い切るかどうかを測定
commented
コメントありがとうございます。HiPE 環境でのテストはできていませんが、それ以外の教えていただいたものは同一環境でベンチして、追記・修正しました。Elixir でも1秒、切っちゃいましたね。。。
PhoenixのControllerのパラメータについて
commented
atomは有限数なので、http://example.com/?foo みたいなアクセスがあった時に自動的に :foo を作ってしまうと、?foo1, ?foo2, ... みたいに延々とアクセスする...
1 / 1