Skip to content

Commit 293b27d

Browse files
committed
2023 day 2, both solutions
1 parent fe42921 commit 293b27d

File tree

5 files changed

+260
-21
lines changed

5 files changed

+260
-21
lines changed

.github/workflows/badges.yml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ jobs:
2020
session: ${{ secrets.AOC_SESSION }} # secret containing session code, see setup on how to obtain
2121
year: 2023 # The year for which stats should be retrieved
2222
file: 'README.md' # The file that contains the badges
23-
starsRegex: '(?<=https:\/\/img\.shields\.io\/badge\/stars%20⭐-)[0-9]+(?=-yellow&year=2023)' # Regular expression that finds the content of the stars badge iun your file.
24-
daysCompletedRegex: '(?<=https:\/\/img\.shields\.io\/badge\/days%20completed-)[0-9]+(?=-red&year=2023)' # Regular expression that finds the content of the days completed badge iun your file.
23+
starsRegex: '(?<=https:\/\/img\.shields\.io\/badge\/stars%20⭐-)[0-9]+(?=-yellow&year=2023)' # Regular expression that finds the content of the stars badge in your file.
24+
daysCompletedRegex: '(?<=https:\/\/img\.shields\.io\/badge\/days%20completed-)[0-9]+(?=-red&year=2023)' # Regular expression that finds the content of the days completed badge in your file.
2525

2626

2727
- uses: joblo2213/aoc-badges-action@v3
@@ -30,8 +30,8 @@ jobs:
3030
session: ${{ secrets.AOC_SESSION }} # secret containing session code, see setup on how to obtain
3131
year: 2022 # The year for which stats should be retrieved
3232
file: 'README.md' # The file that contains the badges
33-
starsRegex: '(?<=https:\/\/img\.shields\.io\/badge\/stars%20⭐-)[0-9]+(?=-yellow&year=2022)' # Regular expression that finds the content of the stars badge iun your file.
34-
daysCompletedRegex: '(?<=https:\/\/img\.shields\.io\/badge\/days%20completed-)[0-9]+(?=-red&year=2022)' # Regular expression that finds the content of the days completed badge iun your file.
33+
starsRegex: '(?<=https:\/\/img\.shields\.io\/badge\/stars%20⭐-)[0-9]+(?=-yellow&year=2022)' # Regular expression that finds the content of the stars badge in your file.
34+
daysCompletedRegex: '(?<=https:\/\/img\.shields\.io\/badge\/days%20completed-)[0-9]+(?=-red&year=2022)' # Regular expression that finds the content of the days completed badge in your file.
3535

3636

3737
- uses: joblo2213/aoc-badges-action@v3
@@ -40,62 +40,62 @@ jobs:
4040
session: ${{ secrets.AOC_SESSION }} # secret containing session code, see setup on how to obtain
4141
year: 2021 # The year for which stats should be retrieved
4242
file: 'README.md' # The file that contains the badges
43-
starsRegex: '(?<=https:\/\/img\.shields\.io\/badge\/stars%20⭐-)[0-9]+(?=-yellow&year=2021)' # Regular expression that finds the content of the stars badge iun your file.
44-
daysCompletedRegex: '(?<=https:\/\/img\.shields\.io\/badge\/days%20completed-)[0-9]+(?=-red&year=2021)' # Regular expression that finds the content of the days completed badge iun your file.
43+
starsRegex: '(?<=https:\/\/img\.shields\.io\/badge\/stars%20⭐-)[0-9]+(?=-yellow&year=2021)' # Regular expression that finds the content of the stars badge in your file.
44+
daysCompletedRegex: '(?<=https:\/\/img\.shields\.io\/badge\/days%20completed-)[0-9]+(?=-red&year=2021)' # Regular expression that finds the content of the days completed badge in your file.
4545

4646
- uses: joblo2213/aoc-badges-action@v3
4747
with:
4848
userid: 23810 # your user id, see setup on how to obtain
4949
session: ${{ secrets.AOC_SESSION }} # secret containing session code, see setup on how to obtain
5050
year: 2020 # The year for which stats should be retrieved
5151
file: 'README.md' # The file that contains the badges
52-
starsRegex: '(?<=https:\/\/img\.shields\.io\/badge\/stars%20⭐-)[0-9]+(?=-yellow&year=2020)' # Regular expression that finds the content of the stars badge iun your file.
53-
daysCompletedRegex: '(?<=https:\/\/img\.shields\.io\/badge\/days%20completed-)[0-9]+(?=-red&year=2020)' # Regular expression that finds the content of the days completed badge iun your file.
52+
starsRegex: '(?<=https:\/\/img\.shields\.io\/badge\/stars%20⭐-)[0-9]+(?=-yellow&year=2020)' # Regular expression that finds the content of the stars badge in your file.
53+
daysCompletedRegex: '(?<=https:\/\/img\.shields\.io\/badge\/days%20completed-)[0-9]+(?=-red&year=2020)' # Regular expression that finds the content of the days completed badge in your file.
5454

5555
- uses: joblo2213/aoc-badges-action@v3
5656
with:
5757
userid: 23810 # your user id, see setup on how to obtain
5858
session: ${{ secrets.AOC_SESSION }} # secret containing session code, see setup on how to obtain
5959
year: 2019 # The year for which stats should be retrieved
6060
file: 'README.md' # The file that contains the badges
61-
starsRegex: '(?<=https:\/\/img\.shields\.io\/badge\/stars%20⭐-)[0-9]+(?=-yellow&year=2019)' # Regular expression that finds the content of the stars badge iun your file.
62-
daysCompletedRegex: '(?<=https:\/\/img\.shields\.io\/badge\/days%20completed-)[0-9]+(?=-red&year=2019)' # Regular expression that finds the content of the days completed badge iun your file.
61+
starsRegex: '(?<=https:\/\/img\.shields\.io\/badge\/stars%20⭐-)[0-9]+(?=-yellow&year=2019)' # Regular expression that finds the content of the stars badge in your file.
62+
daysCompletedRegex: '(?<=https:\/\/img\.shields\.io\/badge\/days%20completed-)[0-9]+(?=-red&year=2019)' # Regular expression that finds the content of the days completed badge in your file.
6363

6464
- uses: joblo2213/aoc-badges-action@v3
6565
with:
6666
userid: 23810 # your user id, see setup on how to obtain
6767
session: ${{ secrets.AOC_SESSION }} # secret containing session code, see setup on how to obtain
6868
year: 2018 # The year for which stats should be retrieved
6969
file: 'README.md' # The file that contains the badges
70-
starsRegex: '(?<=https:\/\/img\.shields\.io\/badge\/stars%20⭐-)[0-9]+(?=-yellow&year=2018)' # Regular expression that finds the content of the stars badge iun your file.
71-
daysCompletedRegex: '(?<=https:\/\/img\.shields\.io\/badge\/days%20completed-)[0-9]+(?=-red&year=2018)' # Regular expression that finds the content of the days completed badge iun your file.
70+
starsRegex: '(?<=https:\/\/img\.shields\.io\/badge\/stars%20⭐-)[0-9]+(?=-yellow&year=2018)' # Regular expression that finds the content of the stars badge in your file.
71+
daysCompletedRegex: '(?<=https:\/\/img\.shields\.io\/badge\/days%20completed-)[0-9]+(?=-red&year=2018)' # Regular expression that finds the content of the days completed badge in your file.
7272

7373
- uses: joblo2213/aoc-badges-action@v3
7474
with:
7575
userid: 23810 # your user id, see setup on how to obtain
7676
session: ${{ secrets.AOC_SESSION }} # secret containing session code, see setup on how to obtain
7777
year: 2017 # The year for which stats should be retrieved
7878
file: 'README.md' # The file that contains the badges
79-
starsRegex: '(?<=https:\/\/img\.shields\.io\/badge\/stars%20⭐-)[0-9]+(?=-yellow&year=2017)' # Regular expression that finds the content of the stars badge iun your file.
80-
daysCompletedRegex: '(?<=https:\/\/img\.shields\.io\/badge\/days%20completed-)[0-9]+(?=-red&year=2017)' # Regular expression that finds the content of the days completed badge iun your file.
79+
starsRegex: '(?<=https:\/\/img\.shields\.io\/badge\/stars%20⭐-)[0-9]+(?=-yellow&year=2017)' # Regular expression that finds the content of the stars badge in your file.
80+
daysCompletedRegex: '(?<=https:\/\/img\.shields\.io\/badge\/days%20completed-)[0-9]+(?=-red&year=2017)' # Regular expression that finds the content of the days completed badge in your file.
8181

8282
- uses: joblo2213/aoc-badges-action@v3
8383
with:
8484
userid: 23810 # your user id, see setup on how to obtain
8585
session: ${{ secrets.AOC_SESSION }} # secret containing session code, see setup on how to obtain
8686
year: 2016 # The year for which stats should be retrieved
8787
file: 'README.md' # The file that contains the badges
88-
starsRegex: '(?<=https:\/\/img\.shields\.io\/badge\/stars%20⭐-)[0-9]+(?=-yellow&year=2016)' # Regular expression that finds the content of the stars badge iun your file.
89-
daysCompletedRegex: '(?<=https:\/\/img\.shields\.io\/badge\/days%20completed-)[0-9]+(?=-red&year=2016)' # Regular expression that finds the content of the days completed badge iun your file.
88+
starsRegex: '(?<=https:\/\/img\.shields\.io\/badge\/stars%20⭐-)[0-9]+(?=-yellow&year=2016)' # Regular expression that finds the content of the stars badge in your file.
89+
daysCompletedRegex: '(?<=https:\/\/img\.shields\.io\/badge\/days%20completed-)[0-9]+(?=-red&year=2016)' # Regular expression that finds the content of the days completed badge in your file.
9090

9191
- uses: joblo2213/aoc-badges-action@v3
9292
with:
9393
userid: 23810 # your user id, see setup on how to obtain
9494
session: ${{ secrets.AOC_SESSION }} # secret containing session code, see setup on how to obtain
9595
year: 2015 # The year for which stats should be retrieved
9696
file: 'README.md' # The file that contains the badges
97-
starsRegex: '(?<=https:\/\/img\.shields\.io\/badge\/stars%20⭐-)[0-9]+(?=-yellow&year=2015)' # Regular expression that finds the content of the stars badge iun your file.
98-
daysCompletedRegex: '(?<=https:\/\/img\.shields\.io\/badge\/days%20completed-)[0-9]+(?=-red&year=2015)' # Regular expression that finds the content of the days completed badge iun your file.
97+
starsRegex: '(?<=https:\/\/img\.shields\.io\/badge\/stars%20⭐-)[0-9]+(?=-yellow&year=2015)' # Regular expression that finds the content of the stars badge in your file.
98+
daysCompletedRegex: '(?<=https:\/\/img\.shields\.io\/badge\/days%20completed-)[0-9]+(?=-red&year=2015)' # Regular expression that finds the content of the days completed badge in your file.
9999

100100
- uses: stefanzweifel/git-auto-commit-action@v4 # Step that pushes these local changes back to your github repo
101101
with:

2018/data/05.txt

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)