06 Jul '13, 3am

How do I write a simple bot in #Ruby?

require 'rest-client' require 'json' require 'mail' module Forecast class Extract # Default API endpoint DEFAULT_FORECAST_IO_API_ENDPOINT = 'https://api.forecast.io' Mail.defaults do delivery_method :smtp, { :port => 587, :address => "smtp.sendgrid.net", :user_name => ENV['SENDGRID_USERNAME'], # has been set on Heroku :password => ENV['SENDGRID_PASSWORD'], # has been set on Heroku :domain => 'heroku.com', :authentication => :plain, :enable_starttls_auto => true } end def initialize # ENV['API_KEY'] has been set on Heroku # ENV['LATITUDE'] has been set on Heroku # ENV['LONGITUDE'] has been set on Heroku @forecast_url = "#{DEFAULT_FORECAST_IO_API_ENDPOINT}/forecast/#{ENV['API_KEY']}/#{ENV['LATITUDE']},#{ENV['LONGITUDE']}" end def get_weather_forecast parsed = JSON.parse(RestClient.get(URI.encode(@forecast_url))) msg = "The current weather summary = #{parsed["currently"]["sum...

Full article: http://rubylearning.com/blog/how-do-i-write-a-simple-bot-...

Tweets

Simple Moments of Happiness

Simple Moments of Happiness

care2.com 06 Jul '13, 2pm

Happiness is still a mystery to most of us, but glimpses of it are to be found in simple moments like these… A fresh-from-...

Do you know how to create a bot in Ruby?

Do you know how to create a bot in Ruby?

rubylearning.com 08 Jul '13, 10pm

Do you know how to create a bot in Ruby? This guest post is by Apoorv Saxena. He’s a Ruby Enthusiast, and has been coding ...

Change template & logo on Ruby app by Liink

freelancer.com 04 Jul '13, 3pm

Need a quick change of my ruby app template and also add new logo. This is a quickie task, I have ready coded css template...

Cool to see Indy.rb friends @RailsThemes in Rub...

rubyweekly.com 04 Jul '13, 6pm

The Ruby Core Team Officially 'Retires' 1.8.7 As planned , the Ruby core team has now stopped all maintenance on Ruby 1.8....

Post: Building a simple digital light meter using Arduino and BH1750FVI sensor #arduino

Post: Building a simple digital light meter usi...

electronics-lab.com 05 Jul '13, 11pm

A light meter is a device that measures the intensity of light. It finds applications in schools, hospitals, production ar...

Experience real summer and join our great team in Barcelona as a Ruby on Rails developer! @XING_de

Experience real summer and join our great team ...

careers.stackoverflow.com 04 Jul '13, 2pm

XING.com is the place to be for online business networking. Millions of members use the platform every day to do business ...

国内初 COBOLer 向け Ruby on Rails トレーニングコースが登場 #COBO...

japan.internet.com 06 Jul '13, 1am

は、Ruby 未経験の COBOLer を対象としたトレーニングコース「COBOL to Rails!2日間 〜MOGOKでこんなに簡単!〜」(2日間、40万円/10名)と「COBOL to Rails!5日間 〜Rails 技術者認定試ブロン...

Please take a moment to fill out our Ruby on Rails survey! #rubyonrails

Please take a moment to fill out our Ruby on Ra...

surveymonkey.com 05 Jul '13, 12pm

Ruby on Rails is one of the fastest growing languages and rapidly entering the corporate mainstream. To date, there is lit...

New job available: Ruby on Rails Developer at 1...

cooldesignjobs.com 05 Jul '13, 1pm

We’re 12 Spokes, full-service web and mobile development shop, based in Salt Lake City, Utah, with team members spanning t...

How To Hack Your Career And Life With Simple Daily Challenges by @stevejlock

How To Hack Your Career And Life With Simple Da...

searchenginejournal.com 06 Jul '13, 11am

With adopting Inbox Zero (something I know is really not easy, I tried quite a few times before!) the technique that worke...