This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'tlsmail' | |
Net::SMTP.enable_tls(OpenSSL::SSL::VERIFY_NONE) | |
ActionMailer::Base.raise_delivery_errors = true | |
ActionMailer::Base.perform_deliveries = true | |
ActionMailer::Base.smtp_settings = { | |
:address => "smtp.gmail.com", | |
:port => 587, | |
:domain => "mydomain.co.uk", | |
:user_name => "e@mydomain.co.uk", | |
:password => "password", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def self.fetch_yams | |
config_path = File.join(RAILS_ROOT, 'config', 'yammer.yml') | |
yammer = Yammer::Client.new(:config => config_path) | |
# this is the ID of the main link hashtag (should be 402387) | |
link_tag_id = 0 | |
tags = yammer.tags | |
tags.each do |tag| | |
if( tag.name == "link") | |
link_tag_id = tag.id |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(".tweet_actions").each(function(ta){ | |
$(this).children().each(function(child){ | |
// cannot call this attach_actions function | |
attach_actions(this); | |
}); | |
}); | |
var attach_actions = function(){ | |
console.log("attached action"); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
raw_config = File.read(RAILS_ROOT + "/config/twitter_config.yml") | |
TWITTER_CONFIG = YAML.load(raw_config)[RAILS_ENV].symbolize_keys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>> feed.search_bundles | |
SyntaxError: /Users/eddy/Documents/Projects/Rails/buzzminotaur_0.3/app/models/search_bundle.rb:132: syntax error, unexpected $end, expecting kEND | |
from /Users/eddy/.gem/ruby/1.8/gems/activesupport-2.3.3/lib/active_support/dependencies.rb:380:in `load_without_new_constant_marking' | |
from /Users/eddy/.gem/ruby/1.8/gems/activesupport-2.3.3/lib/active_support/dependencies.rb:380:in `load_file' | |
from /Users/eddy/.gem/ruby/1.8/gems/activesupport-2.3.3/lib/active_support/dependencies.rb:521:in `new_constants_in' | |
from /Users/eddy/.gem/ruby/1.8/gems/activesupport-2.3.3/lib/active_support/dependencies.rb:379:in `load_file' | |
from /Users/eddy/.gem/ruby/1.8/gems/activesupport-2.3.3/lib/active_support/dependencies.rb:259:in `require_or_load' | |
from /Users/eddy/.gem/ruby/1.8/gems/activesupport-2.3.3/lib/active_support/dependencies.rb:425:in `load_missing_constant' | |
from /Users/eddy/.gem/ruby/1.8/gems/activesupport-2.3.3/lib/active_support/dependencies.rb |
NewerOlder