Skip to content

Instantly share code, notes, and snippets.

@lufeihaidao
Created April 13, 2014 15:40
Show Gist options
  • Save lufeihaidao/10589129 to your computer and use it in GitHub Desktop.
Save lufeihaidao/10589129 to your computer and use it in GitHub Desktop.
Q7 of python challenge
require "RMagick"
Magick::ImageList.new("oxygen.png").get_pixels(0,45,629,1).map.with_index
{|p,i| (p.red/255).chr if i%7==0)}.join.scan(/\d+/){|c| print c.to_i.chr }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment