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
app.get('/', (req, res) => { | |
var msg = req.session.message; | |
req.session.message = undefined; // you must do it before rendering, instead it will just not work | |
res.render('views/index.ejs', { | |
message: msg | |
}); | |
}) | |
.post('/connect', (req, res) => { |
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
<?php | |
/** | |
* Converts $n from Arabic digits to Roman digits. | |
* This is accurate from 1 to 4999 and only for integers, since the | |
* extensions to write the numbers greater than 4999 and the fractions are | |
* not implemented. | |
* Note that there is no way to write negative number ans zero, as they were | |
* not used by Roman. Plus, numbers are truncated to integers, so that 4.2 | |
* will be converted to IV. | |
* |