📝 Added sandbox (code sketchbook)
This commit is contained in:
parent
b475595f7f
commit
b5daf18b1a
142 changed files with 100702 additions and 0 deletions
18
sandbox/testing_dap/server.js
Normal file
18
sandbox/testing_dap/server.js
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
// simple file for testing out nvim-dap
|
||||
// see: https://github.com/mfussenegger/nvim-dap
|
||||
// https://github.com/mfussenegger/nvim-dap/wiki/Debug-Adapter-installation#Javascript
|
||||
|
||||
const http = require("http");
|
||||
|
||||
const hostname = "localhost";
|
||||
const port = 3000;
|
||||
|
||||
const server = http.createServer((req, res) => {
|
||||
res.statusCode = 200;
|
||||
res.setHeader("Content-Type", "text/plain");
|
||||
res.end("Hello World");
|
||||
});
|
||||
|
||||
server.listen(port, hostname, () => {
|
||||
console.log(`Server running at http://${hostname}:${port}/`);
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue