This file contains hidden or 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
| rails _4.2.3_ new testapp --skip-test-unit --database=mysql | |
| rails _4.2.4_ new testapp --skip-test-unit --database=mysql | |
| 変更なし |
This file contains hidden or 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
| rails _4.2.2_ new testapp --skip-test-unit --database=mysql | |
| rails _4.2.3_ new testapp --skip-test-unit --database=mysql | |
| 変更なし |
This file contains hidden or 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
| rails _4.2.1_ new testapp --skip-test-unit --database=mysql | |
| rails _4.2.2_ new testapp --skip-test-unit --database=mysql | |
| 変化なし |
This file contains hidden or 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
| rails _4.2.0_ new testapp --skip-test-unit --database=mysql | |
| rails _4.2.1_ new testapp --skip-test-unit --database=mysql | |
| diff --git a/testapp/app/assets/javascripts/application.js b/testapp/app/assets/javascripts/application.js | |
| index 4a2ae1d..e07c5a8 100644 | |
| --- a/testapp/app/assets/javascripts/application.js | |
| +++ b/testapp/app/assets/javascripts/application.js | |
| @@ -7,7 +7,7 @@ | |
| // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the | |
| // compiled file. |
This file contains hidden or 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
| // 何も考えずに変数定義するとグローバル変数が作られる | |
| // グローバルに変数を使ってしまうとページを表示している間はずっと生存し続ける キモーイ | |
| // スコープを意識し始めると使わざるを得ない・・・よね | |
| // 関数はスコープを分断する | |
| // 通常の関数は再利用する時に使用 | |
| // 即時関数は再利用するわけでもない時に使用・・少なくとも。 | |
| // 例 | |
| // id : グローバルにずっと保持し続けたい変数 (更に即時関数でラップすることでこいつもグローバルに出さない事も可能、ていうかそうすべき) | |
| // tmp : 一時的に使うだけの変数、グローバルにずっと存在する必要はない、外から参照出来る必要もない |
This file contains hidden or 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
| //each | |
| _.each([1, new Date, "a"], function(a) { console.log(a); }); | |
| _([1, new Date, "a"]).each(function(a) { console.log(a); }); | |
| //times | |
| _.times(5, function(a) { console.log(a); }); | |
| _(5).times(function(a) { console.log(a); }); | |
| //map | |
| _.map([1, 2, 3], function(a) { return a * 2; }); |
This file contains hidden or 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
| diff --git a/testapp/.gitignore b/testapp/.gitignore | |
| index 6a502e9..5b61ab0 100644 | |
| --- a/testapp/.gitignore | |
| +++ b/testapp/.gitignore | |
| @@ -7,10 +7,7 @@ |
This file contains hidden or 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
| 変更なし |
This file contains hidden or 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
| 変更なし |
This file contains hidden or 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
| namespace :moko do | |
| desc 'all' | |
| task :aho => [:'aho:moko1', :'aho:moko2'] | |
| namespace :aho do | |
| desc 'moko1' | |
| task :moko1 do | |
| puts 'moko1' | |
| end |