Skip to content

Instantly share code, notes, and snippets.

View fanda's full-sized avatar

Pavel Novotný fanda

View GitHub Profile
@fanda
fanda / pingWebsite.js
Last active August 29, 2015 14:13 — forked from Marak/isTheWebsiteDown.js
Checks to see if a website is down
var http = require('http');
module['exports'] = function pingWebsite (hook) {
var sites = [
'http://trikoko.herokuapp.com',
'http://www.fitcor.cz',
'http://www.vystavuj.cz'
];
for(url in sites) {
http.get(url, function(res){