Skip to content

Instantly share code, notes, and snippets.

@logankoester
Created April 8, 2009 01:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save logankoester/91564 to your computer and use it in GitHub Desktop.
Save logankoester/91564 to your computer and use it in GitHub Desktop.
The saddest code I wrote today
User.each do |user|
user.friends.each do |friend|
t = Twitter::Client.new(:login => user.screen_name, :password => user.password)
t.defriend(friend.friend_id)
friend.destroy
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment