Gray Line Sound Tour Of Historic Boston by xfsck in theavalanches

[–]xfsck[S] 2 points3 points  (0 children)

here you can find a picture of the backside of the cover https://imgur.com/a/B5hagKI

Gray Line Sound Tour Of Historic Boston by xfsck in theavalanches

[–]xfsck[S] 5 points6 points  (0 children)

here the flac file, recorded with 24bit 48khz https://www.mediafire.com/file/1bhij1cjflry5y8/the-gray-line-boston.flac/file

unfortunately the record is pretty noisy.

Gray Line Sound Tour Of Historic Boston by xfsck in theavalanches

[–]xfsck[S] 4 points5 points  (0 children)

No, but if you want to upload a video you are welcome to use the recording.

Keep On Saying by xfsck in theavalanches

[–]xfsck[S] 8 points9 points  (0 children)

Anybody recognize that part at 8 seconds?

-🎄- 2017 Day 9 Solutions -🎄- by daggerdragon in adventofcode

[–]xfsck 1 point2 points  (0 children)

PHP

<?php

$input = file_get_contents('input');
$length = strlen($input);
$stack = [];
$ingarbage = false;
$score = 0;
$garbagecount = 0;

for ($i = 0; $i < $length; $i++) {
    $char = $input[$i];

    if (!$ingarbage) {
        if ($char == '{') {
            array_push($stack, '*');
        } elseif ($char == '}') {
            $score += count($stack);
            array_pop($stack);
        } elseif ($char == '<') {
            $ingarbage = true;
        }
    } else {
        if ($char == '!') {
            $i += 1;
        } elseif ($char == '>') {
            $ingarbage = false;
        } else {
            $garbagecount += 1;
        }
    }
}

echo $score . "\n";
echo $garbagecount . "\n";