Last active
December 15, 2023 15:42
Revisions
-
guibranco revised this gist
Sep 2, 2023 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -2,7 +2,7 @@ const jsonData = pm.response.json(); const divPattern = "<div style=\"margin-top: 10px;\">"; const imageUrl = (item) => `https://github-readme-stats-guibranco.vercel.app/api/pin/?username=${item.organization.login}&repo=${item.name}&theme=dark&bg_color=222222&show_owner=true&show_forks=false&show_issues=true`; const link = (item) => `<a href="${item.url}" target="_blank">${image(item)}</a>`; const image = (item) => `<img style="min-height: 100px; padding-right: 10px;" src="${imageUrl(item)}" alt="${item.full_name}" />`; var html = divPattern; for(let i = 0; i < jsonData.length; i++){ -
guibranco created this gist
May 26, 2023 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,19 @@ const jsonData = pm.response.json(); const divPattern = "<div style=\"margin-top: 10px;\">"; const imageUrl = (item) => `https://github-readme-stats-guibranco.vercel.app/api/pin/?username=${item.organization.login}&repo=${item.name}&theme=dark&bg_color=222222&show_owner=true&show_forks=false&show_issues=true`; const link = (item) => `<a href="${item.url}" target="_blank">${image(item)}</a>`; const image = (item) => `<img style="min-height: 150px; padding-right: 10px;" src="${imageUrl(item)}" alt="${item.full_name}" />`; var html = divPattern; for(let i = 0; i < jsonData.length; i++){ html += link(jsonData[i]); if(i % 2 !== 0){ html += "</div>" + divPattern; } } html += "</div>"; console.log(html);