This file contains 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
user www-data; | |
worker_processes 1; | |
error_log /opt/log/nginx.log; | |
pid /opt/run/nginx.pid; | |
events { | |
worker_connections 1024; | |
use epoll; | |
} | |
http { |
This file contains 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
<script type="text/javascript" src="http://cache.boston.com/universal/js/date.js"></script> | |
<script type="text/javascript"> | |
function twitter_update(data){ | |
for (var i=0; i<data.length; i++) { | |
// Use Date.js to correctly parse Twitter dates, which are non-standard | |
var date = new Date(Date.parse(data[i].created_at).add({ hours: -4 })); | |
// prettyDate plugin returns "1 minute ago", "3 hours ago", etc. | |
var timestamp = prettyDate(date.toString("yyyy-MM-ddTHH:mm:ss")); | |
var re = /((http|https|ftp):\/\/[\w?=&.\/-;#~%-]+(?![\w\s?&.\/;#~%"=-]*>))/g; | |