Giter Site home page Giter Site logo

advent-of-code-2017's Introduction

Advent of Code 2017

Introduction

This repository contains solutions for Advent of Code 2017.

All solutions are implemented in Kotlin with RxJava 2

Assignment data is cached within the project. The Framework either retrieves the local data (if available) or otherwise retrieves the data from the server. If you want to use the framework for your own assignments, make sure to delete all contents of the data/ folder after forking.

Running the application

To start fetching assignments for your project, you need to get a session token to authenticate.

To do this, use your the developer tools of your web browser:

  • Go to AdventOfCode.com
  • Login
  • Open the developer tools of your browser (on Safari and Firefox for macOS you can press CMD + Alt + I.)
  • Switch to the networking tab of the developer tools
  • Reload the page
  • Find the session key in the headers from one of the requests

Commandline

Building the jar file:

./gradlew jar

Running the jar file:

java -jar build/libs/AdventOfCode.jar [sessionToken] [day]

A session token can be fetched by logging in on your browser and debugging the browser request.

IntelliJ IDEA

Create a new run configuration and enter the following data:

screenshot

Creating solutions

The bootstrap template only contains the classes to start with day 1.

To add a new day, you need to create a new Solution class and append it to the Application.solutions array field.

advent-of-code-2017's People

Contributors

kenvanhoeylandt 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.