Giter Site home page Giter Site logo

elixir_aoc's Introduction

Elixir Advent of Code Skeleton

A simple starter app for Advent of Code.

Using a fork of this repo you can run:

mix aoc.gen DAY [--year YEAR]

Running mix aoc.gen 1 (at the start of the 2018 advent of code) will:

  • Generate a new module based on the title of the problem at lib/aoc/year_2018/day_01/problem_title.ex
  • Roughly parse the html description of the problem into @moduledoc markdown.
  • Use your session token to download your unique problem input into priv
  • Generate a test file ready to solve the examples and pull in the saved problem input with tags (so slow running, complex days can be skipped later on).

Installation

  • Fork this repo
  • Grab your browser's session key from Advent Of Code and set it as an environment variable. (Chrome Developer Tools > Application > Cookies > session)

Using this Skeleton

  • Run mix aoc.gen 1 to generate your content for the first day
  • Read the new module's docs, solve the first part of the problem with TDD ๐Ÿ˜„.
  • Run mix aoc.gen 1 again to append the second part of the problem to your moduledocs.
  • Get all the stars.

elixir_aoc's People

Contributors

staylorwr avatar

Stargazers

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