rem’s avatarrem’s Twitter Archive—№ 69,002

    1. I feel like I've overcomplicated the return statement. Any suggestions?
      oh my god twitter doesn’t include alt text from images in their API
  1. …in reply to @rem
    The corrected code (to get a slice of bits from a byte) is: const mask = 2 ** length - 1; const shift = 8 - (ptr + length); return (value & (mask << shift)) >> shift;