News for hackers. Stuff that matters.
Re:Advent of Code – solve a puzzle every day by Beltiras on Saturday December 05, 2015 @09:39AM (#10681974)
Lovely puzzles. Solved day 5 without resorting to regexes (which was kinda fun). Only gripe I have is that I can't use requests to get at the data.
Re:Advent of Code – solve a puzzle every day by aaronem on Saturday December 05, 2015 @09:52AM (#10682021)
I'm having the same problem. Getting the session token from a request made via browser, and using that token in my programmatic requests, does work, but that feels like cheating. What I really want to do is authenticate to Advent of Code programmatically via Github, but I haven't found a way to get my code to authenticate to Github itself; I keep getting redirects to github.com/login.
Re:Advent of Code – solve a puzzle every day by jschulenklopper on Saturday December 12, 2015 @05:11AM (#10722301)
> Only gripe I have is that I can't use requests to get at the data.

The input.txt files, or the code to be used as input/starting point? I just download the file (or save the code) instead of re-downloading it over and over. (Is also handy if you're coding in the train or another place without internet connection.)

Re:Advent of Code – solve a puzzle every day by maxerickson on Saturday December 05, 2015 @10:21AM (#10682114)
Anybody have a Python 3 approach to problem 4 that doesn't end up with the delightful:

    secret+str(n).encode()
In it? That's plenty fast enough for the problem at hand, but it's somehow annoying.