PHPnews.io

Overview for 'remysharp'

Indexing Outbound Blog Links [link]

Written by Remy Sharp / Original link on Sep. 24, 2020

I really like this idea and more power to those of us who have full control of our online identities....an idea struck me: what if I could see all the outbound links on my blog?I'm using markdown-it (where as Jim Nielsen is using marked) so I can definitely hook into the parser to generate all my…


Smarter throwing [blog]

Written by Remy Sharp / Original link on Sep. 24, 2020

With async/await becoming standard procedure for a lot of my code, I find myself wrapping blocks of code in try/catch to ensure I'm handling errors properly.As a result of this, I also try to make my errors a little more useful at the same that I want to show you in this mini post.The exampleI have…


About the LoRes layer 1,0 [spectrum] [blog]

Written by Remy Sharp / Original link on Sep. 18, 2020

For the most part I use layer 2 (L2) for my projects on the Spectrum Next, so when I wanted to start incorporating layer 1 (L1) there were some surprises waiting for me.Context: Layer 2Layer 2 is 256x192 pixels with 256 colour support and 2 palettes (with an available colour palette of 512 colours)…


Fast mod [til/computing]

Written by Remy Sharp / Original link on Sep. 10, 2020

In my work and side projects I make use of bit manipulation and maths. One function I use a great deal is the modulo operator, in JavaScript it's %, so if I wanted to know if an X coordinate on an 8x8 tiled grid is in a movable position, I would use if (x % 8 === 0), so when x is 192, the result is…


The Long Way to a Small, Angry Planet [book]

Written by Remy Sharp / Original link on Sep. 7, 2020

This is the first book, that I can remember, that has made me laugh (multiple times) out loud(!) and cry. The Long Way to a Small, Angry Planet has firmly earned itself a place in my top favourite books of all time.Having finished the book only a couple of days ago, I find myself missing the charac…