Posts Tagged “Code Snippet”
The tl;dr is this:
You can fix the problem by replacing number with ReturnType
Similarly you can replace number with ReturnType if you are seeing the problem with setInterval.
If you want to know more about it, read on.
I've run into this problem a number…
Read More / Comment »
I have been playing with WebAssembly since Go added support for it in 2017.
For a very long time now, I've been wanting to be able to accept files from an end user and process them with Go on their local machine. Basically I just want to read files from file inputs. I knew it had to be possible, b…
Read More / Comment »
So yesterday I was bored and asked my friend what I should do. She replied "I don't know, draw ASCII art or something!" and sitting there with the terminal open I kind of wondered what it would take to write one of those image to ASCII scripts.
20 minutes later I had the following PHP Shell Script…
Read More / Comment »
When I switched from an older MacBook Pro to a MacBook Air the backup from my old MacBook Pro was corrupted and unmountable. However, I had preserved a backup of my Photo Booth Photos and wanted the Photo Booth application to recognize them. This is just a matter of creating a Recents.plist, an orde…
Read More / Comment »
Today I decided to spruce up a VB.Net application I wrote in
college and still use almost daily. In the process of converting it
from .Net 2 to .Net 4 I wanted to add a splash of Windows 7 goodness; there were some
very simple operations I wanted to add to JumpLists. The problem I ran into with…
Read More / Comment »
Several months ago I was wondering to myself if you could detect patterns in a list of words and then use those patterns to generate a new list of fake “words”. A kind of a flavored Lorem Ipsum generator, where I could change the feel of the sentences by switching out the data set. I’m sure thousan…
Read More / Comment »
In my work, I deal with a lot of very similar codebases - and often if I fix something in one project I'll want to fix it in many others. For a long time this has meant popping open Beyond Compare, which works, but isn't the simplest solution.
I use git on my projects - but they're not similar eno…
Read More / Comment »