Skip to content

Instantly share code, notes, and snippets.

View mokoaki's full-sized avatar
💭
死にかけ

mokoaki mokoaki

💭
死にかけ
View GitHub Profile
@mokoaki
mokoaki / gist:ebffdf439d7949214cce
Created November 26, 2015 12:13
Rails4.2.3 => 4.2.44.2.3_4.2.4.txt
rails _4.2.3_ new testapp --skip-test-unit --database=mysql
rails _4.2.4_ new testapp --skip-test-unit --database=mysql
変更なし
@mokoaki
mokoaki / 4.2.2_4.2.3.txt
Created November 26, 2015 12:11
Rails4.2.2 => 4.2.3
rails _4.2.2_ new testapp --skip-test-unit --database=mysql
rails _4.2.3_ new testapp --skip-test-unit --database=mysql
変更なし
@mokoaki
mokoaki / 4.2.1_4.2.2.txt
Created November 26, 2015 12:09
Rails4.2.1 => 4.2.2
rails _4.2.1_ new testapp --skip-test-unit --database=mysql
rails _4.2.2_ new testapp --skip-test-unit --database=mysql
変化なし
@mokoaki
mokoaki / 4.2.0_4.2.1.txt
Created November 26, 2015 12:05
Rails4.2.0 => 4.2.1
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.
@mokoaki
mokoaki / sokuji.js
Last active August 29, 2015 14:15
即時関数
// 何も考えずに変数定義するとグローバル変数が作られる
// グローバルに変数を使ってしまうとページを表示している間はずっと生存し続ける キモーイ
// スコープを意識し始めると使わざるを得ない・・・よね
// 関数はスコープを分断する
// 通常の関数は再利用する時に使用
// 即時関数は再利用するわけでもない時に使用・・少なくとも。
// 例
// id : グローバルにずっと保持し続けたい変数 (更に即時関数でラップすることでこいつもグローバルに出さない事も可能、ていうかそうすべき)
// tmp : 一時的に使うだけの変数、グローバルにずっと存在する必要はない、外から参照出来る必要もない
@mokoaki
mokoaki / ruby_unser.js
Last active August 29, 2015 14:14
ruby使いがunderscore.js 触ったらどうなるメモ
//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; });
diff --git a/testapp/.gitignore b/testapp/.gitignore
index 6a502e9..5b61ab0 100644
--- a/testapp/.gitignore
+++ b/testapp/.gitignore
@@ -7,10 +7,7 @@
@mokoaki
mokoaki / Rails 4.1.7 => 4.1.8
Created November 23, 2014 11:02
Rails 4.1.7 => 4.1.8
変更なし
@mokoaki
mokoaki / Rails 4.1.6 => 4.1.7
Created November 23, 2014 10:57
Rails 4.1.6 => 4.1.7
変更なし
namespace :moko do
desc 'all'
task :aho => [:'aho:moko1', :'aho:moko2']
namespace :aho do
desc 'moko1'
task :moko1 do
puts 'moko1'
end