Skip to content

janusqa/advent-of-code-2024

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Advent of Code 2024

Language: PHP

Description

Advent of Code is an Advent calendar of small programming puzzles for a variety of skill sets and skill levels that can be solved in any programming language you like. People use them as a speed contest, interview prep, company training, university coursework, practice problems, or to challenge each other.

You don't need a computer science background to participate - just a little programming knowledge and some problem solving skills will get you pretty far. Nor do you need a fancy computer; every problem has a solution that completes in at most 15 seconds on ten-year-old hardware.
Source: Advent of Code Github Topic

Day 01
Day 02
Day 03
Day 04
Day 05
Day 06
Day 07
Day 08
Day 09
Day 10
Day 11
Day 12
Day 13
Day 14
Day 15
Day 16
Day 17
Day 18
Day 19
Day 20
Day 21
Day 22
Day 23
Day 24
Day 25

Keywords: aoc adventofcode

Install Composer

  • We will download it to a temporary place and install it there
    • $ php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
    • $ php -r "if (hash_file('sha384', 'composer-setup.php') 'dac665fdc30fdd8ec78b38b9800061b4150413ff2e3b6f88543c636f7cd84f6db9189d43a81e5503cda447da73c7e5b6') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
    • $ php composer-setup.php
    • $ php -r "unlink('composer-setup.php');"
  • mv composer.phar /usr/local/bin/composer
  • Now run "composer" in order to run Composer instead of "php composer.phar".
  • sudo composer self-update // to update

setup in a project

  • cd to project directory
  • composer init
  • adjust vendor/autoload.php to your liking

Install a package with Composer

  • $php composer.phar require htmlburger/carbon-fields

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages