Giter Club home page Giter Club logo

deno-advent-2022's Introduction

Advent of Code 2022 - Deno

Hello! These are my Advent of Code (AoC) solutions using Deno and Typescript. Deno is a modern JavaScript runtime made by the creator of Node. Check out the installation intructions to get Deno set up on your platform.

I have created a rudimentary script, fetch_day.ts, to pull down the instructions and input for each day of the advent. It also creates a simple TypeScript solution file, with some of the boilerplate prepopulated. Run this script in your project directory using Deno,

deno run --allow-net --allow-read --allow-write fetch_day.ts DAY SESSION

Replace DAY with the day you want to fetch and SESSION with the session cookie value found in your web browser after signing in to the AoC website. For example,

deno run --allow-net --allow-read --allow-write fetch_day.ts 3 verylongalphanumericstringhere

PLEASE BE MINDFUL of how often you query the AoC website.

As you work on your solution, you can run it with a similar command,

deno run --allow-read day1.ts

Take the output, paste it into the answer box on the AoC website, and you are good to go.

Happy coding and merry Christmas! :)

deno-advent-2022's People

Watchers

Josh Yoerger 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.