Skip to content

Instantly share code, notes, and snippets.

@aqab
aqab / animation_prompt.rb
Created July 17, 2009 19:10 — forked from avdi/countdown_prompt.rb
command-line animation
# Forked from gist: 148765
#
# Removed question and default value
# Renamed main method
# Put the 'ensure' clause within its own begin/end block
# Added a constant
#
# TO DO: increase animation speed
require 'rubygems'
# Rack middleware example
require 'rubygems'
require 'rack'
class MyRackMiddleware
def initialize(app)
@app = app
end