Skip to content

Instantly share code, notes, and snippets.

View ArionHardison's full-sized avatar
🏠
Working from home

HIM ArionHardison

🏠
Working from home
  • Hardison Co.
  • Los Angeles, CA
  • 13:37 (UTC -12:00)
View GitHub Profile
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.79 Safari/537.4" setatimetotalk.com
2012-10-09T23:18:36+00:00 app[worker.2]: 2012-10-09T23:18:36Z 2 TID-1800ds ContactsWorker MSG-18xd2s INFO: fail: 0.86 sec
2012-10-09T23:18:36+00:00 app[worker.2]: 2012-10-09T23:18:36Z 2 TID-1800ds WARN: {"retry"=>false, "queue"=>"default", "class"=>"ContactsWorker", "args"=>[1, "linkedin"], "jid"=>"35aff49ceae15a24256e6fce"}
2012-10-09T23:18:36+00:00 app[worker.2]: 2012-10-09T23:18:36Z 2 TID-1800ds WARN: undefined method `token' for nil:NilClass
2012-10-09T23:18:36+00:00 app[worker.2]: 2012-10-09T23:18:36Z 2 TID-1800ds WARN: /app/app/models/user.rb:184:in `import'
2012-10-09T23:18:36+00:00 app[worker.2]: /app/app/workers/contacts_worker.rb:6:in `perform'
2012-10-09T23:18:36+00:00 app[worker.2]: /app/vendor/bundle/ruby/1.9.1/gems/sidekiq-2.3.3/lib/sidekiq/processor.rb:42:in `block (3 levels) in process'
2012-10-09T23:18:36+00:00 app[worker.2]: /app/vendor/bundle/ruby/1.9.1/
2012-10-04T14:35:25+00:00 heroku[router]: GET setatimetotalk.com/assets/ppal-6a69e21a034df3b1cffe15d9681b2cf7.png dyno=web.1 queue=0 wait=0ms service=12ms status=200 bytes=2042
2012-10-04T14:35:29+00:00 app[postgres]: [5-1] u2vfij0o0adjok [IVORY] LOG: duration: 60.287 ms statement: SELECT "contacts".* FROM "contacts" WHERE "contacts"."phone_book_id" = 3 AND "contacts"."user_id" = 3 LIMIT 1
2012-10-04T14:35:29+00:00 app[worker.1]: 2012-10-04T14:35:29Z 2 TID-11qet4 WARN: {"retry"=>false, "queue"=>"default", "class"=>"ContactsWorker", "args"=>[3, "google"], "jid"=>"080dda372c63e65cac1565ee"}
2012-10-04T14:35:29+00:00 app[worker.1]: 2012-10-04T14:35:29Z 2 TID-11qet4 ContactsWorker MSG-11p8go INFO: fail: 5.26 sec
2012-10-04T14:35:29+00:00 app[worker.1]: /app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_adapter.rb:275:in `log'
2012-10-04T14:35:29+00:00 app[worker.1]: /app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/connection_adapters/pos
namespace :get_menu do
desc "Scraping restaurant/menu data from wwww.menupages.com"
task :menu_pages => :environment do
require 'mechanize'
agent = Mechanize.new
agent.get("http://www.menupages.com/")
# click on link dependent on type of cousine
- if current_user
%div{:id => "user_notes" , :class => :user_notes}
.notes_top
= image_tag("icons/white/[email protected]" , :height => 35 , :id => "note" , :style => "margin-top: 8.5px; opacity: 1.0;")
.notes_icn
.notes
.section_title{:style => "background-color: #fc7a6c; border-left: 1px solid #fff; border-right: 1px solid #fff; border-top: 1px solid #fff; text-align: left; padding-left: 10px; font-size: 12px; padding-top: 7px; font-weight: bold; height: 30px;"}
= "Notes for: #{current_user.name}"
- if current_user.received_notes.size > 0
.the_notes
namespace :meal_plan do
desc "this job runs each morning and gives all the users their meals on their meal plans"
task :setup => :environment do
User.all.each do |u|
mp = u.meal_plans.first
mp.expires_at = DateTime.now.midnight
mp.save
mp.meal_times.each do |meal_time|
meal_time.meals.create
end
LinkedIn.configure do |config|
config.token = OauthProviders[:linkedin][:app_id]
config.secret = OauthProviders[:linkedin][:app_secret]
end
# in oauth.rb should be
LinkedIn.configure do |config|
config.token = OauthProviders[:linked_in][:app_id]