Created
December 10, 2012 09:24
-
-
Save igul222/4249569 to your computer and use it in GitHub Desktop.
bloo.tk
This file contains hidden or 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
| # totally untested bloo.tk in 5 lines, one of which is a comment ;) | |
| require 'json', 'sinatra' | |
| get '/*' do | |
| redirect JSON.parse(`curl http://api.duckduckgo.com/?q=#{params[:splat].join(' ')}&format=json`)['Results']['FirstURL'] | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment