Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/totetmatt/aoc_2022_rs
https://github.com/totetmatt/aoc_2022_rs
Last synced: 7 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/totetmatt/aoc_2022_rs
- Owner: totetmatt
- Created: 2022-11-28T10:33:33.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2022-12-15T15:03:27.000Z (about 2 years ago)
- Last Synced: 2023-03-23T02:47:39.906Z (almost 2 years ago)
- Language: Rust
- Size: 3.31 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Advent of Code 2022 - Rust
As every year, getting into the advent of code challenge.
As very year, I might not go through the end.
# How to Run
```bash
cargo run --bin day_01
```Hey Folks, I'm designing a Schema for our Python based service with Strawberry-graphql.
So far so good it's quite simple to use it. Now I'm having trouble with the dynamic generation of class. I feel I'm hitting a wall so I'm wondering if someone might have something . Let me explain with a simple example.
Let's assume this structure.```python
@strawberry.type
class Query:
@strawberry.field
def reporting() -> Reporting:
return Reporting()@strawberry.type
class Reporting:
@strawberry.field
def reportingA(filterA:List[str],filterB:List[str]) -> ReportingA:
# Some processing
return ReportingA(...)@strawberry.field
def reportingB(filterB:List[str]) -> ReportingB:
# Some processing
return ReportingB(...)
```