Skip to content

Instantly share code, notes, and snippets.

@squarism
Created October 25, 2012 17:09
Show Gist options
  • Save squarism/3954079 to your computer and use it in GitHub Desktop.
Save squarism/3954079 to your computer and use it in GitHub Desktop.
This is what Ruby looks like to Python dudes
list = [1,2,3] # we're cool here, but it's called a list, not an array
list.each.do.what.in.the.hell{}||{} do each ||is all||| this magic that goes right?
# do something in one line, i don't know what a multi-line lambda is, that's crazy
end end end end end endendendend
eend end
end
end
from yaml require 'psych' # what do you mean i can't do this
module class Foo
module module Confused
end end end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment