twitter_client ||= TwitterOAuth::Client.new
%w(appsterdamrs fngtps thijs alloy).each do |user|
  if attributes = twitter_client.show(user)
    Member.create_with_twitter_user_attributes(attributes)
  end
end
def add_work_type(member, type)
  types = member.work_types || []
  types << type
  member.work_types = types
end

Dir.glob(Rails.root + 'db/seeds/*.json').each do |file|
  list_name = File.basename(file, '.json').split('-').first
  list = JSON.parse(File.read(file))
  users = list['users']
  users.each do |attributes|
    member = Member.find_by_twitter_id(attributes['id']) ||
               Member.create_with_twitter_user_attributes(attributes)
    case list_name
    when 'companies'
      member.entity = 'company'
    when 'students'
      member.entity = 'student'
    when 'collectives'
      member.entity = 'group'
    when 'available'
      unless member.entity == 'company'
        # NOTE this doesn't need to be true, but just trying to get some dev data right now
        member.entity = 'individual'
        member.available_for_hire = true
      end
    when 'hiring'
      member.entity = 'company'
      member.job_offers_url = attributes['url']
    when /appsterdammers/
      member.work_location = case attributes['location']
      when /appsterdam/i, /amsterdam/i
        'appsterdam'
      when /nederland/i, /netherlands/i, /holland/i
        'applander'
      else
        'appbroader'
      end
    when 'designers'
      add_work_type(member, 'designer')
    when 'developers'
      add_work_type(member, 'developer')
    when 'founders'
      add_work_type(member, 'management-executive')
    when 'marketeers'
      add_work_type(member, 'marketing')
    end
  end
end

Use the actual members data for the db:seed task.
Use the actual members data for the db:seed task.
