Skip to content

Instantly share code, notes, and snippets.

@petru

petru/process.rb Secret

Created January 10, 2016 18:43
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 petru/f7fe745266fee3a3ecca to your computer and use it in GitHub Desktop.
Save petru/f7fe745266fee3a3ecca to your computer and use it in GitHub Desktop.
# encoding: UTF-8
require './bzmark'
files = Dir.entries("input/").select {|f| !File.directory? f}
files.each { |file|
img = Bzmark.new(file)
puts "Processing #{file}..."
}
puts "Done."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment