Created
February 25, 2018 05:03
-
-
Save rch850/1adf7c5727fbbcb81301e5c21f985418 to your computer and use it in GitHub Desktop.
curling
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
var express = require('express'); | |
var router = express.Router(); | |
const AA = `| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| ------- | | |
| --◯ -- | | |
| - - | | |
| - ◉ - | | |
| - ◉ - | | |
| - - | | |
| - ◯ - | | |
| -- -- | | |
| ------- | | |
| | | |
| 銅メダルおめでとう! | | |
| |` | |
/* GET home page. */ | |
router.get('/', function(req, res, next) { | |
let lines = AA.split('\n') | |
const i = setInterval(() => { | |
if (lines.length > 0) { | |
res.write(lines.shift() + '\n') | |
} else { | |
res.end() | |
clearInterval(i) | |
} | |
}, 200) | |
}); | |
module.exports = router; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment