Skip to content

Commit 22820cb

Browse files
feat: changed back to python
1 parent 402305b commit 22820cb

File tree

5 files changed

+67
-73
lines changed

5 files changed

+67
-73
lines changed

.github/workflows/build.yml

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: update README
22

33
env:
4-
JULIA_NUM_THREADS: 2
4+
PYTHONUNBUFFERED: 1
55

66
on:
77
push:
@@ -17,14 +17,16 @@ jobs:
1717
- name: Github checkout
1818
uses: actions/checkout@v2
1919

20-
- name: Install julia
21-
uses: julia-actions/setup-julia@latest
20+
- name: Install Python
21+
uses: actions/setup-python@v4
22+
with:
23+
python-version: '3.x'
2224

2325
- name: Generate README.md
24-
run: julia main.jl
26+
run: python main.py
2527

2628
- name: Commit
2729
uses: stefanzweifel/git-auto-commit-action@v5
2830
with:
2931
commit_message: Automated commit
30-
branch: main
32+
branch: main

.zed/tasks.json

-11
This file was deleted.

README.md

+8-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
<!--- 2024-12-02T08:44:52.907 --->
2-
1+
<!--- 2025-03-25 11:10:31.562897 --->
32
```shell
43
> cat user.json
54
```
@@ -18,12 +17,16 @@
1817
"age": 21,
1918
"location": "France",
2019
"activities": [
21-
"web developper",
20+
"web developer",
2221
"student"
2322
]
2423
}
2524
}
2625
```
2726

28-
<a href="https://gael-lopes-da-silva.github.io/portfolio/"><kbd><br>&nbsp;<b>Portfolio</b>&nbsp;<br><br></kbd></a>
29-
<img align="right" style="width: 37px;" title="Behold the yellow dancing man. Do not question him!" alt="Alas, he went..." src="./assets/yellow_man.gif">
27+
<a href="https://gael-lopes-da-silva.github.io/portfolio/">
28+
<kbd>
29+
<br>&nbsp;<b>Portfolio</b>&nbsp;<br><br>
30+
</kbd>
31+
</a>
32+
<img align="right" style="width: 37px;" title="Behold the yellow dancing man!" alt="Too bad, he gone..." src="./assets/yellow_man.gif">

main.jl

-52
This file was deleted.

main.py

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# @author: Gael Lopes Da Silva
2+
# @project: gael-lopes-da-silva
3+
# @github: https://github.com/Gael-Lopes-Da-Silva/gael-lopes-da-silva
4+
5+
from datetime import date, datetime
6+
7+
def get_age():
8+
birth_date = date(2003, 6, 19)
9+
current_date = date.today()
10+
age = current_date.year - birth_date.year - ((current_date.month, current_date.day) < (birth_date.month, birth_date.day))
11+
return str(age)
12+
13+
def main():
14+
text = f"""<!--- {datetime.now()} --->
15+
```shell
16+
> cat user.json
17+
```
18+
19+
```json
20+
{{
21+
"message": {{
22+
"icon": "🙌",
23+
"content": "Welcome to my GitHub profile page"
24+
}},
25+
"informations": {{
26+
"name": {{
27+
"firstname": "Gaël",
28+
"lastname": "Lopes Da Silva"
29+
}},
30+
"age": {get_age()},
31+
"location": "France",
32+
"activities": [
33+
"web developer",
34+
"student"
35+
]
36+
}}
37+
}}
38+
```
39+
40+
<a href="https://gael-lopes-da-silva.github.io/portfolio/">
41+
<kbd>
42+
<br>&nbsp;<b>Portfolio</b>&nbsp;<br><br>
43+
</kbd>
44+
</a>
45+
<img align="right" style="width: 37px;" title="Behold the yellow dancing man!" alt="Too bad, he gone..." src="./assets/yellow_man.gif">
46+
"""
47+
48+
with open("README.md", "w") as file:
49+
file.write(text)
50+
51+
if __name__ == "__main__":
52+
main()

0 commit comments

Comments
 (0)