Git Product home page Git Product logo

adventofcode's Introduction

Advent of Code

This is just a repo for my solutions to the Advent of Code programming contest. It also contains a small utility to make grabbing the day's test data and feeding it to the day-specific code a little easier. Right now it just for Python; maybe at some point I'll make other languages an option.

usage: aoc.py [-h] [--data DATA] [--nocache] [--config CONFIG]
              [--loglevel LOGLEVEL]
              YEAR DAY [PART]

Run/test Advent of Code solution

positional arguments:
  YEAR
  DAY
  PART

optional arguments:
  -h, --help           show this help message and exit
  --data DATA          File with data for part
  --nocache            Ignore cache and force (re)download of data
  --config CONFIG      Config file to use
  --loglevel LOGLEVEL  Set log level

By default, the utility downloads the data from the Advent of Code website. This depends on having your session key from an authenticated web session. This can be provided through a file called config.txt in the main directory with the very simple format:

sessionid=YOUR_SESSION_ID_HERE

Solutions

They are what they are. For some of them I strove for some level of elegance. Others, not so much. If some of the data handling seems rococo, the first few solutions were written without this framework and I just did the minimal amount of work to make them fit.

A Personal Note

I'm looking for a job. Most of my work experience has been in education, but I have a degree in CS and I've been programming forever. If you know of something please contact me.

adventofcode's People

Contributors

gaufqwi avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.