Skip to content

Instantly share code, notes, and snippets.

@jonelf
Created August 15, 2012 09:50
Show Gist options
  • Save jonelf/3358287 to your computer and use it in GitHub Desktop.
Save jonelf/3358287 to your computer and use it in GitHub Desktop.
Silly interpolation of two strings.
arr = ["imer".split(//), "mare".split(//)].transpose
0.upto(arr.length**2-1) {|n| print "De"; 0.upto(arr.length-1) {|m| print arr[m][n>>m & 1] }; puts "t"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment