1 comments

  • stanmancan 3 hours ago ago

    It’s always a hassle trying to find a time for our friend group to hang out, it can seemingly go on for hours. Everyone shares what days they’re available, someone suggests a time, it works for all but one, and the process starts again. That works! Makes the process way easier: when you set your availability it highlights time blocks that works for everyone.

    It was a fun use of bitmasks; all availability is stored in 30 minute blocks (0001110000 would represent 1.5 hours available in 5 hours total) and then I use the AND operator across them all to find matching slots.