-
Scout Monitoring
Rennaisance engineers rejoice! 1 gem 5 min to app monitoring. 5-minute onboarding. No sales team. Devs in the support channels. No DevOps team required. Get the free app insights every engineer deserves with Scout Monitoring.
-
Puts Debuggerer
Ruby library for improved puts debugging, automatically displaying bonus useful information such as source line number and source code.
elements on the page. $('article.Box-row').each(function () { const article = $(this); // Extract data. const name = article.find('h2.h3 a').text().trim(); const url = 'https://github.com' + article.find('h2.h3 a').attr('href'); const author = article.find('span.text-normal').text().trim().replace(' /', ''); const stars = article.find('a[href*="/stargazers"]').last().text().trim().replace(/,/g, ''); // Remove commas from numbers. const todayStarsText = article.find('.d-inline-block.float-sm-right').text().trim(); const todayStarsMatch = todayStarsText.match(/(\d+)/); const todayStars = todayStarsMatch ? parseInt(todayStarsMatch[0], 10) : 0; const language = article.find('[itemprop="programmingLanguage"]').text().trim(); const description = article.find('p.color-fg-muted').text().trim(); Extract repo description repositoriesInfo.push({ description, language, name, url, author, stars, todayStars }); }); return repositoriesInfo; } catch (error) { console.error('Error fetching data:', error); } return []; } Call the searchTrending function in the handler: typescript /** * Search the GitHub trending repos */ export async function handler({ input, logger }: Args): Promise { const projects = await searchTrending(input); return { projects, }; }