-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
249 additions
and
17 deletions.
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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
import re | ||
|
||
|
||
active = [ | ||
( | ||
"Eduardo Madeira", | ||
"https://conf.researchr.org/getProfileImage/eduardomadeira/42073539-cbf3-4609-b04b-0a63287afd82/small.jpg", | ||
), | ||
( | ||
"Alexander Bai", | ||
"https://conf.researchr.org/getProfileImage/alexanderbai/dc1a164a-690d-4c08-926d-de8f9ab476d5/small.jpg", | ||
), | ||
( | ||
"Jessica Foster", | ||
"https://icfp24.sigplan.org/getProfileImage/jessicafoster/447e864c-9571-4c54-9f51-0e78d5d07ea4/small.jpg", | ||
), | ||
( | ||
"Ethan Range", | ||
"https://conf.researchr.org/getProfileImage/ethanrange/a82e09a2-116a-4794-a499-13496f915d0a/small.jpg", | ||
), | ||
( | ||
"Chris Lam", | ||
"https://conf.researchr.org/getProfileImage/christopherlam1/00386a60-bf17-48da-8942-0d2815d7fa08/small.jpg", | ||
), | ||
( | ||
"Jan-Paul Ramos", | ||
"https://conf.researchr.org/getProfileImage/janpaulramosdavila/156687da-3cdb-4157-b31e-636bb71b31dc/small.jpg", | ||
), | ||
( | ||
"Max Sun", | ||
"https://conf.researchr.org/getProfileImage/maxsun/7f927b55-626c-4c5c-9ac8-e10beb3d0b76/small.jpg", | ||
), | ||
( | ||
"John Hui", | ||
"https://conf.researchr.org/getProfileImage/johnhui/54a9a819-59d8-4b2c-96f8-76f813666876/small.jpg", | ||
), | ||
( | ||
"Zixian Cai", | ||
"https://conf.researchr.org/getProfileImage/zixiancai/22d210bf-85c3-49e6-8278-4ea50f3290dd/small.jpg", | ||
), | ||
( | ||
"Guilherme Espada", | ||
"https://conf.researchr.org/getProfileImage/guilhermeespada/221aa9ee-6215-4712-b6df-a5a09d269e04/small.jpg", | ||
), | ||
( | ||
"Apoorv Ingle", | ||
"https://conf.researchr.org/getProfileImage/apoorvingle/76632b78-6d6b-4f2e-9c36-af0a9e1a5fdb/small.jpg", | ||
), | ||
] | ||
|
||
emeritus = [ | ||
( | ||
"Bhakti Shah", | ||
"https://conf.researchr.org/getProfileImage/bhaktishah/624a5a4c-260a-43c9-b37a-eff79a3654f5/small.jpg?1719354125000", | ||
), | ||
( | ||
"Leif Andersen", | ||
"https://conf.researchr.org/getProfileImage/leifandersen/022e7f05-2a9a-4e3d-8be9-418b798e00c0/small.jpg?1711494677000", | ||
), | ||
( | ||
"Benjamin Chung", | ||
"https://conf.researchr.org/getProfileImage/benjaminchung/30978af0-bcee-4c1e-9dd1-f2588ea14f38/small.jpg?1719395332000", | ||
), | ||
] | ||
|
||
ID_MATCHER = re.compile(r"getProfileImage/(\w+)/") | ||
|
||
|
||
def extractUserId(url: str) -> str: | ||
return ID_MATCHER.search(url).group(1) | ||
|
||
|
||
def makeHTML(members: list[(str, str)], section: str): | ||
with open(f"generated/{section}.html", "w") as f: | ||
f.write( | ||
'<div style="display: flex; flex-wrap: wrap; justify-content: space-around; gap: 20px;">' | ||
) | ||
for name, img in members: | ||
uid = extractUserId(img) | ||
f.write( | ||
f'<a href="https://conf.researchr.org/profile/conf/{uid}" style="display: block; text-align: center; width: 180px;"><span style="display: block; height: 180px; width: 180px; overflow: hidden;"><img style="max-width: 100%;" src="{img}" alt="{name}"></span><span style="display: block;">{name}</span></a>' | ||
) | ||
f.write("</div>") | ||
|
||
|
||
if __name__ == "__main__": | ||
makeHTML(active, "active") | ||
makeHTML(emeritus, "emeritus") |
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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
<div | ||
style=" | ||
display: flex; | ||
flex-wrap: wrap; | ||
justify-content: space-around; | ||
gap: 20px; | ||
" | ||
> | ||
<a | ||
href="https://conf.researchr.org/profile/conf/eduardomadeira" | ||
style="display: block; text-align: center; width: 180px" | ||
><span style="display: block; height: 180px; width: 180px; overflow: hidden" | ||
><img | ||
style="max-width: 100%" | ||
src="https://conf.researchr.org/getProfileImage/eduardomadeira/42073539-cbf3-4609-b04b-0a63287afd82/small.jpg" | ||
alt="Eduardo Madeira" /></span | ||
><span style="display: block">Eduardo Madeira</span></a | ||
><a | ||
href="https://conf.researchr.org/profile/conf/alexanderbai" | ||
style="display: block; text-align: center; width: 180px" | ||
><span style="display: block; height: 180px; width: 180px; overflow: hidden" | ||
><img | ||
style="max-width: 100%" | ||
src="https://conf.researchr.org/getProfileImage/alexanderbai/dc1a164a-690d-4c08-926d-de8f9ab476d5/small.jpg" | ||
alt="Alexander Bai" /></span | ||
><span style="display: block">Alexander Bai</span></a | ||
><a | ||
href="https://conf.researchr.org/profile/conf/jessicafoster" | ||
style="display: block; text-align: center; width: 180px" | ||
><span style="display: block; height: 180px; width: 180px; overflow: hidden" | ||
><img | ||
style="max-width: 100%" | ||
src="https://icfp24.sigplan.org/getProfileImage/jessicafoster/447e864c-9571-4c54-9f51-0e78d5d07ea4/small.jpg" | ||
alt="Jessica Foster" /></span | ||
><span style="display: block">Jessica Foster</span></a | ||
><a | ||
href="https://conf.researchr.org/profile/conf/ethanrange" | ||
style="display: block; text-align: center; width: 180px" | ||
><span style="display: block; height: 180px; width: 180px; overflow: hidden" | ||
><img | ||
style="max-width: 100%" | ||
src="https://conf.researchr.org/getProfileImage/ethanrange/a82e09a2-116a-4794-a499-13496f915d0a/small.jpg" | ||
alt="Ethan Range" /></span | ||
><span style="display: block">Ethan Range</span></a | ||
><a | ||
href="https://conf.researchr.org/profile/conf/christopherlam1" | ||
style="display: block; text-align: center; width: 180px" | ||
><span style="display: block; height: 180px; width: 180px; overflow: hidden" | ||
><img | ||
style="max-width: 100%" | ||
src="https://conf.researchr.org/getProfileImage/christopherlam1/00386a60-bf17-48da-8942-0d2815d7fa08/small.jpg" | ||
alt="Chris Lam" /></span | ||
><span style="display: block">Chris Lam</span></a | ||
><a | ||
href="https://conf.researchr.org/profile/conf/janpaulramosdavila" | ||
style="display: block; text-align: center; width: 180px" | ||
><span style="display: block; height: 180px; width: 180px; overflow: hidden" | ||
><img | ||
style="max-width: 100%" | ||
src="https://conf.researchr.org/getProfileImage/janpaulramosdavila/156687da-3cdb-4157-b31e-636bb71b31dc/small.jpg" | ||
alt="Jan-Paul Ramos" /></span | ||
><span style="display: block">Jan-Paul Ramos</span></a | ||
><a | ||
href="https://conf.researchr.org/profile/conf/maxsun" | ||
style="display: block; text-align: center; width: 180px" | ||
><span style="display: block; height: 180px; width: 180px; overflow: hidden" | ||
><img | ||
style="max-width: 100%" | ||
src="https://conf.researchr.org/getProfileImage/maxsun/7f927b55-626c-4c5c-9ac8-e10beb3d0b76/small.jpg" | ||
alt="Max Sun" /></span | ||
><span style="display: block">Max Sun</span></a | ||
><a | ||
href="https://conf.researchr.org/profile/conf/johnhui" | ||
style="display: block; text-align: center; width: 180px" | ||
><span style="display: block; height: 180px; width: 180px; overflow: hidden" | ||
><img | ||
style="max-width: 100%" | ||
src="https://conf.researchr.org/getProfileImage/johnhui/54a9a819-59d8-4b2c-96f8-76f813666876/small.jpg" | ||
alt="John Hui" /></span | ||
><span style="display: block">John Hui</span></a | ||
><a | ||
href="https://conf.researchr.org/profile/conf/zixiancai" | ||
style="display: block; text-align: center; width: 180px" | ||
><span style="display: block; height: 180px; width: 180px; overflow: hidden" | ||
><img | ||
style="max-width: 100%" | ||
src="https://conf.researchr.org/getProfileImage/zixiancai/22d210bf-85c3-49e6-8278-4ea50f3290dd/small.jpg" | ||
alt="Zixian Cai" /></span | ||
><span style="display: block">Zixian Cai</span></a | ||
><a | ||
href="https://conf.researchr.org/profile/conf/guilhermeespada" | ||
style="display: block; text-align: center; width: 180px" | ||
><span style="display: block; height: 180px; width: 180px; overflow: hidden" | ||
><img | ||
style="max-width: 100%" | ||
src="https://conf.researchr.org/getProfileImage/guilhermeespada/221aa9ee-6215-4712-b6df-a5a09d269e04/small.jpg" | ||
alt="Guilherme Espada" /></span | ||
><span style="display: block">Guilherme Espada</span></a | ||
><a | ||
href="https://conf.researchr.org/profile/conf/apoorvingle" | ||
style="display: block; text-align: center; width: 180px" | ||
><span style="display: block; height: 180px; width: 180px; overflow: hidden" | ||
><img | ||
style="max-width: 100%" | ||
src="https://conf.researchr.org/getProfileImage/apoorvingle/76632b78-6d6b-4f2e-9c36-af0a9e1a5fdb/small.jpg" | ||
alt="Apoorv Ingle" /></span | ||
><span style="display: block">Apoorv Ingle</span></a | ||
> | ||
</div> |
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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<div | ||
style=" | ||
display: flex; | ||
flex-wrap: wrap; | ||
justify-content: space-around; | ||
gap: 20px; | ||
" | ||
> | ||
<a | ||
href="https://conf.researchr.org/profile/conf/bhaktishah" | ||
style="display: block; text-align: center; width: 180px" | ||
><span style="display: block; height: 180px; width: 180px; overflow: hidden" | ||
><img | ||
style="max-width: 100%" | ||
src="https://conf.researchr.org/getProfileImage/bhaktishah/624a5a4c-260a-43c9-b37a-eff79a3654f5/small.jpg?1719354125000" | ||
alt="Bhakti Shah" /></span | ||
><span style="display: block">Bhakti Shah</span></a | ||
><a | ||
href="https://conf.researchr.org/profile/conf/leifandersen" | ||
style="display: block; text-align: center; width: 180px" | ||
><span style="display: block; height: 180px; width: 180px; overflow: hidden" | ||
><img | ||
style="max-width: 100%" | ||
src="https://conf.researchr.org/getProfileImage/leifandersen/022e7f05-2a9a-4e3d-8be9-418b798e00c0/small.jpg?1711494677000" | ||
alt="Leif Andersen" /></span | ||
><span style="display: block">Leif Andersen</span></a | ||
><a | ||
href="https://conf.researchr.org/profile/conf/benjaminchung" | ||
style="display: block; text-align: center; width: 180px" | ||
><span style="display: block; height: 180px; width: 180px; overflow: hidden" | ||
><img | ||
style="max-width: 100%" | ||
src="https://conf.researchr.org/getProfileImage/benjaminchung/30978af0-bcee-4c1e-9dd1-f2588ea14f38/small.jpg?1719395332000" | ||
alt="Benjamin Chung" /></span | ||
><span style="display: block">Benjamin Chung</span></a | ||
> | ||
</div> |
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 characters
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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
set -euo pipefail | ||
IFS=$'\n\t' | ||
|
||
|
||
|
||
ruff format | ||
ruff check --fix-only | ||
python generateMembersHTML.py | ||
prettier generated/*.html -w |
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 characters