Skip to content

Instantly share code, notes, and snippets.

View marocchino's full-sized avatar
🏠
Working from home (7am~16pm JST)

marocchino

🏠
Working from home (7am~16pm JST)
View GitHub Profile
@marocchino
marocchino / test.rb
Last active December 17, 2015 07:39 — forked from anonymous/test.rb
module Yahoo
def say
"An"
end
end
class Base
include Yahoo
def say

루비 코드 리딩

뭔가 좀 자기소개가 길다. 6분지났는데 아직 본론도 안들어감

자기 경력 소개 컨퍼런스 다닌거 등등..

이 세션은 기술적인 이야기는 없을거다

  1. 왜 루비 코드를 읽어야 하는가?
import sys
import tweepy
import time
import urllib2
def send_to_twitter(msg):
CONSUMER_KEY = 'UvciBAguVW4UBYBkWeirKg'
CONSUMER_SECRET = 'eCPMIB4sMUDTfTExohS5PyzlIKMFGpWprMbgINqhU'
ACCESS_KEY = '196057523-d2RNDmy3YE5b5v0L59EKfYGIOS31Q9iEdLNdyE1u'
ACCESS_SECRET = 'Dvlg8M7HhS3DdJVjI13CBllFel1Ke9uhEv6VgbIoXg'
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 \
@marocchino
marocchino / Guardfile
Created October 31, 2013 05:24 — forked from thbar/Guardfile
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!