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
start_time = Time.now | |
files = {} | |
SAMPLE_INTERVAL = 2 | |
def record_filesize(fds, sizes) | |
loop do | |
fds.each do |file| | |
unless sizes[file] | |
sizes[file] = [] | |
end |
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 http = require("http"), | |
url = require("url"), | |
path = require("path"), | |
fs = require("fs"), | |
port = parseInt( process.argv[2] ) || 8888; | |
http.createServer(function(request, response) { | |
var uri = url.parse(request.url).pathname, | |
filename = path.join(process.cwd(), uri); |
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
(?:(?:\"[^\"]+\"|[^@,\"]+)\\s+<(?=[^>]+>))?([a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,4})(?:>)? |