Skip to content

Instantly share code, notes, and snippets.

@apropos-cast
Last active December 5, 2019 20:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save apropos-cast/3e2d9cde0a249e456acad252c3f4556a to your computer and use it in GitHub Desktop.
Save apropos-cast/3e2d9cde0a249e456acad252c3f4556a to your computer and use it in GitHub Desktop.
December 05, 2019

Show date: December 05, 2019

YouTube URL: https://www.youtube.com/watch?v=parkWOdl8RU

Topics

REPL exercise

Given a 16 bit number I want to generate the bytes associated with its little-endian representation. Maybe that's too easy if you delve into some hosty API, but it also seems like one that you could pull off in a REPL session.

Example: for 96503 generate the sequence of bytes 0xf7 0x78 0x01 0x00

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment