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
#!/usr/bin/env perl | |
use v5.10; | |
use warnings FATAL => "all"; | |
use Dancer; | |
use URI::Escape qw(uri_escape_utf8); | |
# This is all the search engine does | |
get '/search' => sub { | |
given (param("q")) { | |
when (/^(?:!(?:ducky)?\s+|\\)(.*)/) { redirect 'http://www.google.com/search?btnI=1&q=' . uri_escape_utf8 $1 } |
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
/* | |
* OSQA theme style.css | |
* Modified the default OSQA style, removing a lot of backgrounds and drop shadows. | |
* | |
* Replace the file at osqa-server/forum/skins/default/media/style/style.css | |
* | |
* Original source from OSQA v0.9 beta2 | |
* Last modified: Feb 23, 2011 | |
*/ |