advent-of-code-ocr
advent-of-code
advent-of-code-ocr | advent-of-code | |
---|---|---|
4 | 28 | |
12 | 7 | |
- | - | |
10.0 | 0.0 | |
over 1 year ago | over 1 year ago | |
Python | Haskell | |
MIT License | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
advent-of-code-ocr
-
[2022 Day 10 (Part 2)] A helpful Python module (again!)
In past years, I’ve created Advent of Code OCR for Python to convert ASCII letter art from these problems into plain text you can copy and paste.
-
[2022 Day 10 (Part 2)] Today's puzzle not screenreader accessible
Python: advent-of-code-ocr module by /u/bsoyka (original post)
-
-🎄- 2022 Day 10 Solutions -🎄-
The OCR is based on the number of active pixels for each column. The letter "E" has 6 lit pixels in the first column, 3 pixels in the 2nd and 3rd column and 2 pixels in the last column. By looking at the character list (thanks bsoyka on github!) I could craft a lookup table. The four integers will be shifted and added together to get a single integer. The 6,3,3,2 is transformed to 6<<0 + 3<<2 + 3<<4 + 2<<6 = 194 (the bits overlap, I know, but there are no collisions). The index of 194 in this magic list is 4. By adding 65 (ascii value of 'A') I can get the actual character with chr().
advent-of-code
- -🎄- 2022 Day 16 Solutions -🎄-
- -🎄- 2022 Day 15 Solutions -🎄-
- -🎄- 2022 Day 14 Solutions -🎄-
- -🎄- 2022 Day 13 Solutions -🎄-
- -🎄- 2022 Day 12 Solutions -🎄-
- -🎄- 2022 Day 11 Solutions -🎄-
- -🎄- 2022 Day 10 Solutions -🎄-
- -🎄- 2022 Day 9 Solutions -🎄-
- -🎄- 2022 Day 8 Solutions -🎄-
- -🎄- 2022 Day 7 Solutions -🎄-
What are some alternatives?
adventofcode - my golang solution to adventofcode
aoc-2021 - AOC challenge in Haskell
LEARN__Coding-Practices-and-Datastructures - Daily Coding Practices, Data structures, otherwise testing and some stuff. (Some garbage/some stuff)
ghc - Mirror of the Glasgow Haskell Compiler. Please submit issues and patches to GHC's Gitlab instance (https://gitlab.haskell.org/ghc/ghc). First time contributors are encouraged to get started with the newcomers info (https://gitlab.haskell.org/ghc/ghc/wikis/contributing).
advent-of-code - Solutions to Advent of Code in Elixir, Ruby
advent-of-code-2022 - 🎄 My Advent of Code solutions in Rust. http://adventofcode.com/2022
adventofcode - Advent of Code
adventofcode - :christmas_tree: Advent of Code (2015-2023) in C#
Advent-of-Code-2022 - My solutions for the 2022 Advent of Code in a mix of MATLAB and Python3
advent-of-code-2022-rust
advent-of-code-2022
AdventOfCode2022 - Repository for advent of code code to find solutions. This year in Go.