slopjong/OpenSpaceLint — Issue #9: Add a space handler for Maschinenraum
Author: slopjong
Created: 2012-03-04 00:27:07+00:00
State: open

The following (very experimental, broken and messed up) code was the attempt to crawl Maschinenraum's twitter feed and extract the required information:

name: "Maschinenraum",
url: "http://twitter.com/statuses/user_timeline.json?screen_name=mr_door_status&count=1&callback=?",
type: "json",
handler: function(data){
//var tweet = data[0].text;
alert("test");

/// process links and reply
//tweet = tweet.replace(/(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig, function(url) {
// return ''+url+'';
//}).replace(/B@([_a-z0-9]+)/ig, function(reply) {
// return reply.charAt(0)+''+reply.substring(1)+'';
//});

// output the result
//$("#tweet").html(tweet);
}

Since I unify some spaceapi jsons server-side this must be turned into some php code.