Edd Parris empika

View gist:5826901

Context

Certain conferences have adapted a "Code of Conduct", all derived from the same text. e.g. http://jsconf.com/codeofconduct.html e.g. https://us.pycon.org/2013/about/code-of-conduct/

While I agree with the intent, I strongly object to the particularly wording, for the following reasons:

  • The only thing it's concerned with is harassment, setting a very negative tone. It suggests that unless warned, monitored and policed, many conference attendees will intimidate, insult, grope and stalk each other. It presumes the worst and treats exceptions as the norm. This does not match the actual experience of attendees at events.
View Heroku + Apigee - Local development set up.rb
1 2 3 4 5 6 7 8 9 10
# How to set up your local development machine to use the Apigee Heroku addon
 
if ENV['APIGEE_TWITTER_API_ENDPOINT']
@@twitter_api = ENV['APIGEE_TWITTER_API_ENDPOINT']
else
# Get this value from Heroku.
# Once you have enabled the addon, boot up the 'heroku console' and run the following:
# puts ENV['APIGEE_TWITTER_API_ENDPOINT']
# this will spit out your correct api endpoint
@@twitter_api = "twitter-api.appXYZABC.apigee.com"
View gist:415156
1 2 3 4 5 6 7 8 9 10
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",
View gist:413670
1 2 3 4 5 6 7 8 9 10
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
View JS scope
1 2 3 4 5 6 7 8 9 10
$(".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");
}
View twitter config loader
1 2
raw_config = File.read(RAILS_ROOT + "/config/twitter_config.yml")
TWITTER_CONFIG = YAML.load(raw_config)[RAILS_ENV].symbolize_keys
View gist:179420
1 2 3 4 5 6 7 8 9
>> 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
Something went wrong with that request. Please try again.