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
<form class="button_to" method="post" action="/users/sign_out"> | |
<input type="hidden" name="_method" value="delete"> | |
<input type="submit" value="ログアウト"> | |
<input type="hidden" name="authenticity_token" value="(省略)"> | |
</form> |
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
<% require 'pry'; binding.pry %> |
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
location.href = 'http://example.com'; |
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
$ 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 | |
... |
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
$ anyenv install erlenv | |
$ exec $SHELL -l | |
$ brew install unixodbc wxmac fop | |
$ wget http://www.erlang.org/download/otp_src_19.1.tar.gz | |
$ tar zxf otp_src_19.1.tar.gz | |
$ cd otp_src_19.1 | |
$ ./configure --prefix=$HOME/.anyenv/envs/erlenv/releases/19.1 --enable-dynamic-ssl-lib --with-ssl=/usr/local/opt/openssl | |
$ make -j 4 | |
$ make install | |
$ erlenv global 19.1 |
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
LCM = \frac{a \times b}{GCD} |
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 MyList do | |
def sum([]), do: 0 | |
def sum([ head | tail ]), do: head + sum(tail) | |
end |
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
node_modules/ | |
test/ |
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
$ brew install [email protected] | |
$ brew link --force qt55 |
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
# See https://help.github.com/articles/ignoring-files for more about ignoring files. | |
# | |
# If you find yourself ignoring temporary files generated by your text editor | |
# or operating system, you probably want to add a global ignore instead: | |
# git config --global core.excludesfile '~/.gitignore_global' | |
# Ignore bundler config. | |
/.bundle | |
# Ignore all logfiles and tempfiles. |
OlderNewer