ph0bie

56651768?v=4

ph0bie
: ph0bie

About me

Nothing here yet. Update your profile at /profiles/ph0bie.adoc

Day 00: php

Hello World

This solution is written in PHP.

First Star

The solution is quite simple. Just run "php -f solution.php". If you wanna listen to some great music search the output on google/youtube ;-)

<?php
$file = file_get_contents("input.txt");
echo "Hallo ".$file;
Second Star

There is no second star.

Day 00: go

Hello World

This solution is written in GO.

First Star

The solution is quite a simple copy & paste from https://gobyexample.com/ as I never did anything in/with GO. So let’s see :-)

You can execute it with "go run hello-world.go" or "./hello-world"

package main
import "fmt"
func main() {
    fmt.Println("hello world, let's GO!")
}
Second Star

There is no second star.

Day 00: tcl

Hello World

This solution is written in tcl (hail to tcl).

First Star

The solution is as simple as possible. Execute it with >tclsh helloworld.tcl

puts "Hello, and welcome to the world of TCL!"

Day 01: php

Day01

This solution is written in PHP. It is the solution for the first day of AoC: The Tyranny of the Rocket Equation

First Star

The calculation to get the required fuel per module is straight forward and done in day01-1.php

include::day01-1.php
Second Star

There was a beautiful christmas market in our little town…​…​…​but now I did it :-)

Took me hours to find good variable names…​.well, just "php -f day01-2.php" to see the result all of you still moght know.

include::day01-2.php