I’ve compiled a guide on generating options
tags using options_for_select
.
Environment
- Ruby 2.2.3
- Rails 4.2.5
I’ve compiled a guide on generating options
tags using options_for_select
.
How to write for
loop in CoffeeScript.
In Ruby, it is written as items.each
.
1 2 3 4 |
arr = ['a', 'b', 'c'] for item in arr alert item |
In Ruby, it is written as items.each_with_index
.
1 2 3 4 5 |
arr = ['a', 'b', 'c'] for item, index in arr alert index alert item |
Irrational numbers ( a ) , ( b ) exist that make ( a^b ) rational.
Prove with law of excluded middle and without fixing what ( a ) and ( b ) are.
Supporse ( x = sqrt{2} ^ sqrt{2} ) .
( sqrt{2} ) is irrational, so ( a = b = sqrt{2} ) make ( a^b ) rational. ( ( sqrt{2} ) が無理数であることの証明は 証明: ( sqrt{2} ) は無理数 をご覧ください。)
Then, ( a = x = sqrt{2}^sqrt{2} ) and ( b = sqrt{2} ) are irrational and make ( a^b ) rational.
Above all, there are irrational numbers ( a ) and ( b ) that make ( a^b ) rational.
We can use the command rhc setup
with OpenShift server. I tried it, and wrote what the command do.