Skip to content

Instantly share code, notes, and snippets.

@tiffany-taylor
Last active December 28, 2017 21:30
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 tiffany-taylor/7bf123f3d8b388cb6b571760dc099754 to your computer and use it in GitHub Desktop.
Save tiffany-taylor/7bf123f3d8b388cb6b571760dc099754 to your computer and use it in GitHub Desktop.
- read about mappers, entities and services when approaching model
- https://stackoverflow.com/questions/5863870/how-should-a-model-be-structured-in-mvc/5864000#5864000
- https://stackoverflow.com/questions/16356420/mvc-for-advanced-php-developers/16356866#16356866
- practice creating routers
- read about big endian and little endian
https://www.cs.umd.edu/class/sum2003/cmsc311/Notes/Data/endian.html
- read about 8 byte strings and 64-bit integer, signed and unsigned, blah blah blah
http://users.ece.utexas.edu/~valvano/embed/chap3/chap3.htm
- (challenge) OK here's a fun task for you lovely people... I have a 32-bit PHP installation. I also have an 8 byte string representing
a little-endian signed 64-bit integer. This integer is a unix timestamp with nanosecond granularity (and no, I did not choose this).
I want a routine to convert it to a DateTimeImmutable with microseconds. I also want a routine to convert in the opposite direction.
https://chat.stackoverflow.com/transcript/11?m=40596165#40596165
https://3v4l.org/ECHmZ
- figure out how to ssh into dev box using rsa key instead of password
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment