Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
var sessions = [].map.call($$('tr[dir]'), function(row, i) {
if (i < 6) {
return;
}
row = [].map.call(row.children, function(td) {
return td.textContent;
});
var s = [{},{}];
s[0].time = row[1]
s[0].speaker = row[5]
s[0].talk = row[6]
s[1].time = row[8]
s[1].speaker = row[12]
s[1].talk = row[13]
return s;
});
sessions = sessions.filter(function(s) {
return s != undefined;
});
sessions.map(function(s) {
var back = s[0];
var side = s[1];
return 'back track ' + back.time + '\n' +
back.talk + '\n' +
back.speaker + (side.speaker ? ('\n\n' +
'side track ' + side.time + '\n' +
side.talk + '\n' +
side.speaker) : '')
}).join('\n\n\n');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.