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
if [[ "$PATH" == *"/usr/local/mips-2012.09/bin"* ]]; then | |
echo codesourcery toolchain path is already in PATH var | |
else | |
export PATH="/usr/local/mips-2012.09/bin:$PATH" | |
echo added codesourcery toolchain path to PATH var | |
fi | |
export AR=mips-linux-gnu-ar | |
export CC='mips-linux-gnu-gcc -EL' | |
export CXX='mips-linux-gnu-g++ -EL' |
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
app.get('/help', function(req, res){ | |
res.send('some help'); | |
}); | |
app.get('/search/:query/p:page', function(req, res){ | |
var query = req.params.query | |
, page = req.params.page; | |
res.send('search "' + query + '", page ' + (page || 1)); | |
}); |