Calculate A Random Integer from 0 to n in Javascript

The solution for those of you who want me to cut the crap and need to calculate a random integer from 0 to n in Javascript. My Setup macOS Node v12.10.0 The Problem I was writing a React-Native game where I had multiple cards that would be presented to the player. To spice up the … Read moreCalculate A Random Integer from 0 to n in Javascript

Unconverted Data Remains Error While Using strptime in Python

python

To start off, screw the unconverted data remains error while using strptime in Python 2.x or 3.x. Of the many Python errors I’ve gotten this has to be one of the more vague ones. That being said, I do hate working with times and dates. Regardless, here’s your solution. My Setup Python 3.xmacOS Recreating the … Read moreUnconverted Data Remains Error While Using strptime in Python

Dropping Duplicates From A Pandas DataFrame

python

Dropping duplicates from a Pandas DataFrame came into my purview when I noticed a script which contained a ton of networking was sloooooooow. Unfortunately, the endpoint didn’t support asynchronous API calls, so I was stuck getting the job done the ol’ fashioned way. My Setup Python 3.xmacOS The Problem I had tons of data in … Read moreDropping Duplicates From A Pandas DataFrame

Making a Python Wrapper for your REST API

python

Need help making a Python Wrapper for your REST API? Python is my personal favorite programming language. So when somebody approaches me with a problem that involves a REST API, I immediately go to Python. That being said, calling REST API’s can unfortunately be a little ugly in the language. I’ll show you how to … Read moreMaking a Python Wrapper for your REST API

‘python’ is not recognized as an internal or external command, operable program or batch file

python

So you got the ‘PYTHON’ IS NOT RECOGNIZED AS AN INTERNAL OR EXTERNAL COMMAND, OPERABLE PROGRAM OR BATCH FILE error on your windows machine when trying to set up a new workstation? Maybe you’re new to Python and this is your first error ever? Regardless, it’s cutting into valuable procrastination time so let’s get er’ … Read more‘python’ is not recognized as an internal or external command, operable program or batch file