Comments (3)
Should be quite easy to implement, and we already open a browser tab for criterion results, so it should be possible to open the puzzle page after submission.
from cargo-aoc.
I think that might not even be necessary. When I tried to implement this, I figured it would be easier to store the result of cargo aoc
in a file, and submit that value in a POST. We'd then parse the returned HTML to let the user if they got it right or not.
let post_data = format!{"{{\"answer\": {}, \"level\": {}}}", solution, part.as_u8()};
let mut response = client
.post(&date.submit_url()) // "https://adventofcode.com/{}/day/{}/answer",
.body(post_data)
.header(COOKIE, formated_token)
.send()?;
I noticed the repo is undergoing some refactoring. Is that complete?
from cargo-aoc.
Sorry if the previous comments weren't clear about this - I'm happy to implement this feature.
from cargo-aoc.
Related Issues (20)
- Unexpected error occurs when running `cargo aoc` without any subcommands HOT 1
- Running `Cargo aoc -g` doesn't generate new file HOT 3
- cargo aoc fails to compile solution HOT 2
- [feat request] cargo-aoc test
- Naming a type `Box` produces crazy errors
- Cannot install cargo-aoc HOT 1
- Unexpected type argument? HOT 1
- The solving functions cannot receive a mutable reference HOT 2
- How do I debug with cargo-aoc HOT 3
- Lifetime error with `#[aoc...` HOT 1
- Allow overriding criterion configs
- Feature request: cargo aoc init
- Cannot download input from 2020: error 400 (credentials are set) HOT 1
- rust-analyzer macro-error everywhere HOT 2
- What are 'named solutions' in aoc_generate
- aoc_generator(day, part) seems broken HOT 3
- Can't get minimal example to work HOT 3
- Include contact info in user agent HOT 2
- Add a way to run in release mode with `cargo aoc --release` HOT 2
- Update docs
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cargo-aoc.