Skip to content

Instantly share code, notes, and snippets.

@wvl
Created October 28, 2009 19:34
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 wvl/220749 to your computer and use it in GitHub Desktop.
Save wvl/220749 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'redis'
redis = Redis.new(:host => '127.0.0.1', :port => 6379, :thread_safe => true)
(32..126).each do |c|
redis.sadd("chars", c.chr)
end
puts redis.sort("chars", :order => "ALPHA").join("")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment