-
Shortened URL for this gist: https://git.io/v68XM
-
GitHub repository: ES6 in Motion
-
Arrow Functions
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 node | |
const { argv } = require('process'); | |
/** | |
Static http server implemented with NodeJS. | |
Features: | |
1. No external dependencies |
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
# Run this script from the maven module directory to start a jshell with | |
# all dependent class paths injected. | |
# Please never run it on the parent maven project directory. | |
# It depends on java9 or above | |
if [ ! -d "target" ]; then | |
echo "Please run it under a module directory. And make sure it's not parent module directory. And make a maven install first" | |
exit | |
fi |