diff --git a/gen_routes.rb b/gen_routes.rb new file mode 100644 index 0000000..ff3f048 --- /dev/null +++ b/gen_routes.rb @@ -0,0 +1,6 @@ +#!/usr/bin/env ruby +arr = ["foo", "bar", "baz", "qux", "quux", "corge", "grault", "garply"] +paths = arr.permutation(3).map { |a| "/#{a.join '/'}" } +paths.each do |path| + puts "rtree_insert_path(n, \"#{path}\", NULL);" +end