뭔가 좀 자기소개가 길다. 6분지났는데 아직 본론도 안들어감
자기 경력 소개 컨퍼런스 다닌거 등등..
이 세션은 기술적인 이야기는 없을거다
- 왜 루비 코드를 읽어야 하는가?
def some_method | |
return false if aaaaaaaaaaaa && bbbbbbbbbbbb | |
return false if cccccccccccc || dddddddddddd | |
return false if eeeeeeeeeeee && ffffffffffff | |
do_something | |
end |
def some_method | |
return false if aaaaaaaaaaaa && bbbbbbbbbbbb | |
return false if cccccccccccc || dddddddddddd | |
return false if eeeeeeeeeeee && ffffffffffff | |
do_something | |
end |
banners = [ | |
priority:10 | |
, | |
priority:10 | |
, | |
priority:20 | |
, | |
priority:30 | |
, | |
priority:40 |
someQuery(variables, { commit }) { | |
client.query(query, variables, { commit }) | |
} |
namespace :db do | |
namespace :schema do | |
# desc 'Dump all database schema' | |
task :dump_all => [:environment, :load_config] do | |
ActiveRecord::Base.configurations.keys.grep(/_development$/).map{|o|o.sub "_development", ""}.each do |name| | |
begin | |
filename = "#{Rails.root}/db/#{name}_schema.rb" | |
File.open(filename, 'w:utf-8') do |file| | |
ActiveRecord::Base.establish_connection("#{name}_#{Rails.env}") |
-- ref -- | |
-- http://superuser.com/questions/296421/google-translate-client-for-os-x | |
-- https://gist.github.com/mayoff/1138816 | |
on run argv | |
tell application "Google Chrome" | |
activate | |
set theUrl to "http://translate.google.com/#en|ko|" & item 1 of argv | |
if (count every window) = 0 then |
이 글은 2015년의 루비 코리아 대림달력을 위해 작성되었습니다.
루비 코리아의 대림 달력도 벌써 4일째입니다. 오늘은 루비 이야기는 아니긴 합니다만, 레일스와 관련있는 이야기를 해볼까 합니다.
require 'childprocess' | |
guard 'shell' do | |
watch %r{^app/(.+)\.rb$} do |m| | |
`killall rake` | |
# Why this: | |
# - spawn a child process to avoid locking Guard | |
# - make sure that the child process has stdout and stdin otherwise it crashes | |
# - bonus point: get REPL access in the simulator! |
if [[ $BUILD_STATUS == "success" ]] | |
then | |
export STATUS="success" | |
else | |
export STATUS="failure" | |
fi | |
curl "https://api.github.com/repos/justincampbell/my_repo/statuses/$GIT_COMMIT?access_token=abc123" \ | |
-H "Content-Type: application/json" \ | |
-X POST \ |