Skip to content

Instantly share code, notes, and snippets.

@youpy
Created August 10, 2009 15:19
Show Gist options
  • Save youpy/165238 to your computer and use it in GitHub Desktop.
Save youpy/165238 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'scissor'
n = 10
infile, outfile = ARGV
s = Scissor(infile) / n
result = Scissor()
target = (0 .. n - 1).to_a.sort_by { rand }
target.sort! do |a, b|
target.each do |v|
result += s[v]
end
a <=> b
end
target.each do |v|
result += s[v]
end
result >> outfile
@drug-man-69
Copy link

hi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment