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
var sourceMap = require('source-map'); | |
var https = require('https'); | |
var fs = require('fs'); | |
var args = process.argv.slice(2); | |
if(args.length === 0) { | |
console.log("Usage: node index.js https://url.to/script.js:<line>:<column>"); | |
return; | |
} |
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
const http = require('http') | |
const port = 3000 | |
var fs = require('fs'); | |
const requestHandler = (request, response) => { | |
console.log("Connected") | |
response.setHeader("Access-Control-Allow-Origin", "*") | |
response.setHeader("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept") |
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
function hash(string) { | |
let index = 0; | |
for(let i = 0; i < string.length; i++) { | |
index += string.charCodeAt(i) * i; | |
} | |
return index % _size; | |
} |
OlderNewer