Make interoperability, not war.
Also at @ataustin@fosstodon.org
Anyway I hope that PM got the promotion 🤷♂️
Anyway I hope that PM got the promotion 🤷♂️
I loved the 12-day length. It felt achievable & this is the first year I finished. I did almost every puzzle without loading packages. Tell your friends next time they say R isn't a "real" programming language. 😝
Amazing job @was.tl and thanks for the joy!
I loved the 12-day length. It felt achievable & this is the first year I finished. I did almost every puzzle without loading packages. Tell your friends next time they say R isn't a "real" programming language. 😝
Amazing job @was.tl and thanks for the joy!
Link to code in the quote post.
#RStats
Need to rest so just posting part 1 for now. It's a literal interpretation: for integers with even number of digits, split in half and compare. This won't hold up in part 2, so maybe I'll dream the solution 😴
Code: github.com/ataustin/adv...
#RStats
Link to code in the quote post.
#RStats
Since we are asked to find the count of paths, we can use a matrix indicating connected devices. Multiplying the matrix by itself N times gives count of paths of length N between any nodes.
Code on GH: github.com/ataustin/adv...
#RStats
Since we are asked to find the count of paths, we can use a matrix indicating connected devices. Multiplying the matrix by itself N times gives count of paths of length N between any nodes.
Code on GH: github.com/ataustin/adv...
#RStats
After struggling with constrOptim(), I broke down and loaded my first pkg this season. lpSolve is *so much* easier, and handles equality and int constraints. It was wild to revisit linear programming after many years.
Code on GH: github.com/ataustin/adv...
#RStats
After struggling with constrOptim(), I broke down and loaded my first pkg this season. lpSolve is *so much* easier, and handles equality and int constraints. It was wild to revisit linear programming after many years.
Code on GH: github.com/ataustin/adv...
#RStats
Since we are dealing with on/off, we can treat each position as a bit. Convert button values and the target state into integers, and use the magic of bitwXor() to flip bits until the target is reached.
Code on GitHub: github.com/ataustin/adv...
#RStats
Since we are dealing with on/off, we can treat each position as a bit. Convert button values and the target state into integers, and use the magic of bitwXor() to flip bits until the target is reached.
Code on GitHub: github.com/ataustin/adv...
#RStats
Part 2 was tailor-made for all the data nerds (🙋♂️) who prefer to understand their problems through visualization. I'm sure the problem could be solved without a plot, but it definitely reduced the possibility space!
Code on GitHub: github.com/ataustin/adv...
#RStats
Part 2 was tailor-made for all the data nerds (🙋♂️) who prefer to understand their problems through visualization. I'm sure the problem could be solved without a plot, but it definitely reduced the possibility space!
Code on GitHub: github.com/ataustin/adv...
#RStats
I have to believe parts 1 and 2 can both be done with hclust() and cutree(). But I'm missing something obvious in part 1, so it's just some inefficient loops for now.
At any rate, I ❤️ R's built-in data tricks.
Code on GitHub: github.com/ataustin/adv...
#RStats
I have to believe parts 1 and 2 can both be done with hclust() and cutree(). But I'm missing something obvious in part 1, so it's just some inefficient loops for now.
At any rate, I ❤️ R's built-in data tricks.
Code on GitHub: github.com/ataustin/adv...
#RStats
So, which are you using more often: TypeScript or Python?
Part 2 had me stumped. Shout-out to @karstendick.bsky.social for posting an approach that I could implement, namely "the number of paths through a node is equal to the sum of paths through its parents."
#RStats
github.com/ataustin/adv...
Part 2 had me stumped. Shout-out to @karstendick.bsky.social for posting an approach that I could implement, namely "the number of paths through a node is equal to the sum of paths through its parents."
#RStats
github.com/ataustin/adv...
Combined with a small negative margin tweak, you can place facet labels inside each panel. A tiny trick that makes small multiples feel so much cleaner.
🔵 no manual coordinates
🔵 inherits theme styling
🔵 scales nicely when resizing
Combined with a small negative margin tweak, you can place facet labels inside each panel. A tiny trick that makes small multiples feel so much cleaner.
🔵 no manual coordinates
🔵 inherits theme styling
🔵 scales nicely when resizing