Skip to content

Instantly share code, notes, and snippets.

View tmcallister's full-sized avatar

Jagasreni tmcallister

  • Ready to go
  • Portland, OR
View GitHub Profile
@tmcallister
tmcallister / Methods_unit1_section7
Created June 19, 2014 15:17
Methods. unit 1, section 7
# Example 1
def add_two(some_integer)
result = some_integer + 2
return result
end
# Example 2
def add_two(some_integer)
result_integer = some_integer + 1
@tmcallister
tmcallister / faye.rb
Created May 23, 2012 23:52
Faye with nginx config
FAYE_TOKEN = 'secretToken'
if defined? Rails
if Rails.env == 'development'
FAYE_URI = "http://#{APP_CONFIG[:nameremoved_service][:host]}:9292/faye"
else
FAYE_URI = "https://#{APP_CONFIG[:nameremoved_service][:host]}/faye"
end