Articles
Cashless payment system
A company I worked for had a coffee machine for which employees could purchase coffee. However, the payment was done by putting coins in a jar. Not only did this present the obvious risk of theft, this system was also impractical for people not carrying spare change at all time. I decided to solve this issue by designing this cashless payment system.
Divide container in equally sized divs
Let's imagine a container with three divs as content:
Python virtual environments
When working on multiple python projects, dependencies might conflict. For example, a project might use version 1.5 of Tensorflow while another uses version 2.1.
Tensorflow 1.X basics
Here are the basics steps necessary to write TensorFlow code.
Force IE to use its latest version
Depending on the settings, Internet Explorer can decide to render webpages using a lower version, which can result in compatibility issues.
Swift basics
Here are some of the basis of the Swift programming language
Some C concepts
C is widely considered to be a difficult programming language. Here are various code snippets to help make some sense of it.
Python list slicing
Here are a few useful features of Python when dealing with lists (Arrays):
Express authorization middleware
Many applications require some form of authorization mechanism to prevent users from accessing restricted content. Authenticated users are commonly in possession of a cookie containing identification data. With the authentication microservice that I designed, this cookie contains a JWT that contains the user's username. This JWT is sent in the authorization header of HTTP requests. Thus, authorization can be performed easily within each application by simply decoding the JWT. To do so, I designed this simple middleware for ExpressJS.
LINE Bot
<p>LINE offers an API to developers looking into creating chat bots. I created my own so that I could send myself notifications.</p>