This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am khy on github. | |
* I am khy (https://keybase.io/khy) on keybase. | |
* I have a public key whose fingerprint is 05B8 43B1 B00D A11E 8D8D 9F1C 186B 138A 6F44 A7E0 | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
object Middleware { | |
def stack[A](middlewares: Middleware[A]*) = { | |
middlewares.toSeq.reduceLeft[Action[A]] { (result, middleware) | |
middleware(result) | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'mini_magick' | |
require 'exifr' | |
module Useless | |
class StreetArt | |
class Image | |
def initialize(raw_io) | |
@raw_io = raw_io | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Useless | |
# Useless::Base is the Rack endpoint for useless.io proper. It has two | |
# responsibilties: show documentation, and serve file from Useless::FS. | |
class Base | |
autoload :Files, 'useless/base/files' | |
def call(env) | |
# Show platform documentation at root | |
app = Rack::URLMap.new '/' => Doc.new('index'), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source :rubygems | |
gem 'rack' | |
gem 'mongo' | |
gem 'bson' | |
gem 'bson_ext' | |
group :test do | |
gem 'rspec' | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source :rubygems | |
gem 'rack' | |
group :test do | |
gem 'rspec' | |
end | |
group :development do | |
gem 'heroku' |