This PHP function tables a hexadecimal color code like “ff0000” and figures out what’s more color font text would be more readable, black or white.
The Python Sentiment API Project will allow you to implement Natural Language Processing sentiment analysis in any programming language. That is, passing a piece of
This one-liner function will turn a string into an array by its whitespace properly looking for full-width spaces and multi-byte whitespace characters.
If you need to skip to the next item inside of a PHP loop its simple with the continue; control keyword. You can also use
Found this old perl script in my scratch scripts to get the current CPU load on Linux. Perls been replaced with Python for most of
Using the built in PHP regex function preg_replace and property encoding the two strings you’re searching for with preg_quote you can remove all of the
Many times you’ll want to remove the meta data on user uploaded images to your website. The meta data automatically saved to the images can
We’ll be using the MySQL built-in function char_length to demonstrate how to filter and sort based on a size of a columns width in characters.