Skip to content

Commit

Permalink
2023 day 2, both solutions
Browse files Browse the repository at this point in the history
  • Loading branch information
BioGeek committed Dec 3, 2023
1 parent fe42921 commit 293b27d
Show file tree
Hide file tree
Showing 5 changed files with 260 additions and 21 deletions.
36 changes: 18 additions & 18 deletions .github/workflows/badges.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ jobs:
session: ${{ secrets.AOC_SESSION }} # secret containing session code, see setup on how to obtain
year: 2023 # The year for which stats should be retrieved
file: 'README.md' # The file that contains the badges
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.
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.
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.
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.


- uses: joblo2213/aoc-badges-action@v3
Expand All @@ -30,8 +30,8 @@ jobs:
session: ${{ secrets.AOC_SESSION }} # secret containing session code, see setup on how to obtain
year: 2022 # The year for which stats should be retrieved
file: 'README.md' # The file that contains the badges
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.
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.
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.
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.


- uses: joblo2213/aoc-badges-action@v3
Expand All @@ -40,62 +40,62 @@ jobs:
session: ${{ secrets.AOC_SESSION }} # secret containing session code, see setup on how to obtain
year: 2021 # The year for which stats should be retrieved
file: 'README.md' # The file that contains the badges
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.
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.
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.
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.

- uses: joblo2213/aoc-badges-action@v3
with:
userid: 23810 # your user id, see setup on how to obtain
session: ${{ secrets.AOC_SESSION }} # secret containing session code, see setup on how to obtain
year: 2020 # The year for which stats should be retrieved
file: 'README.md' # The file that contains the badges
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.
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.
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.
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.

- uses: joblo2213/aoc-badges-action@v3
with:
userid: 23810 # your user id, see setup on how to obtain
session: ${{ secrets.AOC_SESSION }} # secret containing session code, see setup on how to obtain
year: 2019 # The year for which stats should be retrieved
file: 'README.md' # The file that contains the badges
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.
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.
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.
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.

- uses: joblo2213/aoc-badges-action@v3
with:
userid: 23810 # your user id, see setup on how to obtain
session: ${{ secrets.AOC_SESSION }} # secret containing session code, see setup on how to obtain
year: 2018 # The year for which stats should be retrieved
file: 'README.md' # The file that contains the badges
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.
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.
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.
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.

- uses: joblo2213/aoc-badges-action@v3
with:
userid: 23810 # your user id, see setup on how to obtain
session: ${{ secrets.AOC_SESSION }} # secret containing session code, see setup on how to obtain
year: 2017 # The year for which stats should be retrieved
file: 'README.md' # The file that contains the badges
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.
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.
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.
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.

- uses: joblo2213/aoc-badges-action@v3
with:
userid: 23810 # your user id, see setup on how to obtain
session: ${{ secrets.AOC_SESSION }} # secret containing session code, see setup on how to obtain
year: 2016 # The year for which stats should be retrieved
file: 'README.md' # The file that contains the badges
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.
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.
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.
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.

- uses: joblo2213/aoc-badges-action@v3
with:
userid: 23810 # your user id, see setup on how to obtain
session: ${{ secrets.AOC_SESSION }} # secret containing session code, see setup on how to obtain
year: 2015 # The year for which stats should be retrieved
file: 'README.md' # The file that contains the badges
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.
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.
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.
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.

- uses: stefanzweifel/git-auto-commit-action@v4 # Step that pushes these local changes back to your github repo
with:
Expand Down
2 changes: 1 addition & 1 deletion 2018/data/05.txt

Large diffs are not rendered by default.

Loading

0 comments on commit 293b27d

Please sign in to comment.