splagoon

Professional goon

Software engineer, gamer, vtuber enjoyer


Once beat Metroid Dread in 1:22:58


Vtuber Appreciation Zone

  • Mint πŸ‘»βœ¨
  • Dokibird πŸ†
  • Pomu πŸ§šπŸ‚
  • Selen πŸ†
  • Chia 🌻🐹

pfp by: https://twitter.com/BridgeOfFaust

posts from @splagoon tagged #elixir

also:

splagoon
@splagoon

I thought it'd be easy to determine if a date is a holiday in code (w/o an external API), but some holidays are easier than others


splagoon
@splagoon

After falling down this rabbit hole I learned that there is an algorithm for determining the date of Easter, so naturally I felt compelled to turn it into an Elixir package:


splagoon
@splagoon
iex> with today <- Date.utc_today(),
...>      {:ok, easter} <- Easter.get_date(today.year),
...>      do: today == easter
true


splagoon
@splagoon

I thought it'd be easy to determine if a date is a holiday in code (w/o an external API), but some holidays are easier than others


splagoon
@splagoon

After falling down this rabbit hole I learned that there is an algorithm for determining the date of Easter, so naturally I felt compelled to turn it into an Elixir package:


Β