tdo

Dicing the onion
git clone git@abtrout.com:tdo.git
Log | Files | Refs | README

README.md (1106B)


      1 My [Tom's Data Onion](https://www.tomdalling.com/toms-data-onion/) solutions.
      2 
      3 Each layer's solution is a separate binary in the `cmd` directory, which reads the previous layer's input from `stdin` and writes the next layer's output to `stdout`. Pipe all the layers together to solve the complete challenge!
      4 
      5 ```shell
      6 $ go build -o . ./cmd/...
      7 $ cat input.txt | \
      8   ./layer0 | \
      9   ./layer1 | \
     10   ./layer2 | \
     11   ./layer3 | \
     12   ./layer4 | \
     13   ./layer5 | \
     14   ./layer6 | \
     15   head -n13  # no spoilers
     16 ==[ The Core ]==============================================
     17 
     18  ___       __   ________  ________  _________  ___
     19 |\  \     |\  \|\   __  \|\   __  \|\___   ___\\  \
     20 \ \  \    \ \  \ \  \|\  \ \  \|\  \|___ \  \_\ \  \
     21  \ \  \  __\ \  \ \  \\\  \ \  \\\  \   \ \  \ \ \  \
     22   \ \  \|\__\_\  \ \  \\\  \ \  \\\  \   \ \  \ \ \__\
     23    \ \____________\ \_______\ \_______\   \ \__\ \|__|
     24     \|____________|\|_______|\|_______|    \|__|     ___
     25                                                     |\__\
     26                                                     \|__|
     27       Congratulations! You've DICED this onion up!
     28 ```