I hereby claim:
- I am lingz on github.
- I am lingz (https://keybase.io/lingz) on keybase.
- I have a public key whose fingerprint is 3251 207D 8C86 37FA FE2B 1417 839B 60DA D77F 4BD7
To claim this, I am signing this object:
var Fs = require('fs') | |
var nodeModules = {} | |
Fs.readdirSync('node_modules').forEach(function (module) { | |
if (module !== '.bin') { | |
nodeModules[module] = true | |
} | |
}) | |
var nodeModulesTransform = function(context, request, callback) { | |
// search for a '/' indicating a nested module | |
var slashIndex = request.indexOf("/"); |
public boolean hostAvailable(String host, int port) { | |
try (Socket socket = new Socket()) { | |
socket.connect(new InetSocketAddress(host, port), 2000); | |
return true; | |
} catch (IOException e) { | |
// Either we have a timeout or unreachable host or failed DNS lookup | |
System.out.println(e); | |
return false; | |
} | |
} |
I hereby claim:
To claim this, I am signing this object: