Skip to content

Instantly share code, notes, and snippets.

@nisshiee
Created March 9, 2016 09:39
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 nisshiee/eb1bc78e039f26404e12 to your computer and use it in GitHub Desktop.
Save nisshiee/eb1bc78e039f26404e12 to your computer and use it in GitHub Desktop.
a=readlines.map(&:strip).map(&:each_char).map(&:to_a)
a[0]+=([nil]*100)
puts a[0].zip(*a[1..-1]).flatten.join
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment