#AdventOfCode 2022 Day 9. Really struggled to code the logic for the "move" function but then realized can use the Euclidean distances to get the revised position for the tail!
#Python
@JulienMouchnino I think there is this "match" construct which seems to mimic case_when: https://t.co/07EZSb3eRl
although I have never used it before and seems like it was only introduced in python 3.10
I just completed "No Space Left On Device" - Day 7 - Advent of Code 2022 #AdventOfCode Really struggled with this one but finally happy that I finally managed to complete it (albeit a little help from reddit ๐)
Day 4 - Advent of Code 2022 https://t.co/Dw9RAiBrZs #AdventOfCode Made use of python sets to solve this puzzle.
Code also on github: https://t.co/kdPXt3HbC4
Day 3 of #AdventOfCode. Learned about the Counter object from the collections package. Found it to be quite versatile!
Link to code on Github: https://t.co/a9deuNDpNL
I just completed "Rock Paper Scissors" - Day 2 - Advent of Code 2022 https://t.co/vVfIJGFupP #AdventOfCode
Code also on github: https://t.co/xcqFmqMNRE
Good practice with python dictionaries ๐ช
I've completed "Calorie Counting" - Day 1 - Advent of Code 2022 https://t.co/8KmBlOXFUY #AdventOfCode
Planning to use these puzzles to practice python this year! Publishing my solutions on github as well: https://t.co/Slczg4qNUE
Fantastic recreation in R + ggplot2, @tanya_shapiro ๐๐๐ฏ
Had to figure out a way to add gradient to the bars - took a while but finally figured out ๐
In the end all I had to do was use geom_col() for the bars and add a linearGradient() from the {grid} package!
Oh my goodness, oh my goodness, oh my goodness!๐
{gt}๐ฆv0.7.0 is on CRAN and includes support for WORD OUTPUT---WORD! ๐บ๐ชฉ๐บ
Thank you @riannone & @ellis_hughes โค๏ธ
#RStats
https://t.co/t2gKOfni1O
#TidyTuesday week 33: tried my hands with #QuartoPub using this week's data-set.
Created "card" style bar-(code)-plots for Lotr characters
Plots inspired by this week's submission by @nrennie35 and @danoehm - links to their plots in the thread below ๐
#RStats#DataViz
@_ansgar@nrennie35 @danoehm Thanks! First thought of using small rects but then went with using geom_vline() as that turned out to be easier and gave the same aesthetic effect I was going for ๐