How to use it as a code?
** ***** ** ** ** ** ** ** ** **** ** ** ** ** *** ** ** ** ******************** ********************* Original solutions are welcome. The option with the most votes wins.
function getAnswers(questionId, answer_filter, page) { return jQuery.ajax({ url: '//api.stackexchange.com/2.2/questions/' + questionId + '/answers?page=' + page + '&pagesize=100&order=desc&sort=activity&site=ru.stackoverflow&filter=' + answer_filter, method: "get", dataType: "jsonp", crossDomain: true }).then(function(data) { if (data.has_more) { return getAnswers(questionId, answer_filter, page + 1).then(function(d) { return data.items.concat(d.items); }) } return data.items; }); } function getAuthorName(e) { return e.owner.display_name } function process(items) { return items.map(function(item) { var matched = item.body.match(/<h\d+>\s*(.+?)\s*<\/h/); if (matched) { return { lang: matched[1], count: item.score, link: item.share_link, author: getAuthorName(item) }; } else { return { lang: "N/A", count: "N/A", link: item.share_link, author: getAuthorName(item) } } }); } function sort(items) { return items.sort(function(a, b) { return b.count - a.count; }) } function fillTemplate(sortedItems) { $('#leadership').append(sortedItems.map(function(item, index) { return $('<tr>').append($('<td>').html(index + 1)) .append($('<td>').html(item.author)) .append($('<td>').html(item.lang)) .append($('<td>').html(item.count)) .append($('<td>').append($('<a>').attr('href', item.link).text('Link'))); })); return sortedItems; } var QUESTION_ID = 520257, ANSWER_FILTER = "!4*SyY(4Kifo3Mz*lT", startPage = 1; getAnswers(QUESTION_ID, ANSWER_FILTER, startPage) .then(process) .then(sort) .then(fillTemplate); #leadership { border-collapse: collapse; } #leadership td, #leadership th { padding: 5px; } #leadership th { text-align: center; } <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <h1>Таблица лидеров</h1> <table id="leadership"> <tr> <th></th> <th>Автор</th> <th>Язык</th> <th>Счет</th> <th></th> </tr> </table>
<?php echo '***...';can be considered use as a code ? )) And the converter "razmezdochek" in the brainfuck can be considered? And only a specific image can be used or the idea itself? - BOPOH