- mitsuruog
- ダッシュボード
- 何も考えずに各モデルをカウントするのでレコード件数増えるとえらいことになる。
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
# rubocop v0.35.0 から inherit_gem という機能が増えたので gem にしました | |
# https://github.com/onk/onkcop | |
inherit_gem: | |
onkcop: "config/rubocop.yml" |
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
class Guardable | |
def initialize(obj) | |
@obj = obj | |
end | |
def method_missing(method_name, *args, &block) | |
return @obj if @obj.nil? | |
@obj.send(method_name, *args, &block) | |
end |
tl;dr IdotabaのGemfileは"全プレ"になりました。ご笑納ください。→ Gemfile
rebuild.fmのep36でお知らせさせていただきました、Idobataの最新版Gemfileプレゼントをお届けいたします。 過日はIdobata会議01への多数のご参加ありがとうございました。おかげさまで盛況なミートアップとなりました。 (当日会場を提供いただいたEngine Yardさまのブログにて、Idobata会議01当日の様子がまとめられています。ありがとうございます!)
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
package sample.poi; | |
import java.io.FileOutputStream; | |
import java.io.OutputStream; | |
import org.apache.poi.openxml4j.opc.OPCPackage; | |
import org.apache.poi.poifs.crypt.EncryptionInfo; | |
import org.apache.poi.poifs.crypt.EncryptionMode; | |
import org.apache.poi.poifs.crypt.Encryptor; | |
import org.apache.poi.poifs.filesystem.POIFSFileSystem; |
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
source "https://rubygems.org" | |
gem "jruby-poi", github: "kameeoze/jruby-poi", require: "poi" | |
gem "spoon_daemon" | |
gem "pry" | |
gem "bundler", require: ['drb/drb', 'stringio'] |
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
#!/bin/bash | |
# | |
# login in the jenkins server with: | |
# | |
# heroku login | |
# heroku keys:add | |
# | |
# Doing so, jenkins will have permission to deploy to | |
# the heroku remote. | |
# |
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
class ActiveRecord::Base | |
# Usage: | |
# | |
# > puts User.first.to_factory_girl | |
# FactoryGirl.define do | |
# factory :user do | |
# ... | |
# end | |
# end | |
# # Usage: FactoryGirl.create(:user, ...) |
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
#!/var/lib/jenkins/.rvm/bin/rvm-shell ruby-1.9.3-p194@sqale | |
export RAILS_ENV=test | |
bundle install --without production | |
git checkout -b feature/bundle-update-`date +%Y%m%d` | |
bundle update | |
git add Gemfile Gemfile.lock | |
git commit -m 'bundle update' | |
git push origin feature/bundle-update-`date +%Y%m%d` |
NewerOlder