Code Buckets

Buckets of code

Tim Brown

Windows Subsystem for Linux Blue Screen of Death

Quick word of warning. A few days ago, I installed Windows Subsystem for Linux on my Windows 10 box. I was working on a React application that was written originally on a non-windows environment. The plan was to run the…

Is there any reason not to use TypeScript?

I’ve written a lot of code for side projects and for this blog, and a lot of it has been JavaScript. I’m really wondering now why I didn’t write it all in TypeScript instead. It’s easy to learn, improves your…

Getting Random Letters with the Correct Frequency Using TypeScript

The Task It’s pretty easy to get a random letter using TypeScript. Using lodash and returning upper case letters, it would be You don’t even need to use lodash – it’s a convenience. The problem with this code is that…

Changing configuration when deploying to different environments: comparing Node and React

I’m getting into Node a bit more and I wanted to look at how you would swap config settings when deploying into different test and production environments. In this post I’m going to compare Node to React – not so…

Infinite Buddha Quotes

Just moving on from the Pali Canon API that I published recently – I’ve published a web app which consumes the API. It randomly displays a quote from the Buddha, fades it out and displays the next with a suitably…

Why I’m using Digital Ocean

I’ve been writing bits and pieces of code and side projects for years now – it’s the fun side to professional development. Recently I’ve tidied up some of the projects and got them published to live where they can roam…

Buddhist Texts API: Dhammapada

A while ago I was looking for an API which provided Buddhists Texts and I couldn’t finda good one – so I’ve created one myself and published it. I’ve started with the Dhammapada which is pretty much the most well-known…

Where’s Kitty

After many months of intensive research, user testing and damn clever coding I have produced the ground-breaking gaming experience of Where’s Kitty – available online. Click here to play. Rules 20 Kittys have hidden themselves under the grid. It’s your…

Deploying Asp.Net Core and MySQL into Linux Docker Containers – and Populating the Database

I’ve written an .Net Core API that I want to deploy out. I want to use all open-source software so it’s going to be using a MySQL database and be hosted on a Linux box somewhere. The Task I want…

Cellular Automata with React

Here is a fun thing – above is cellular automation coded (by me) in React. Specifically, it is Conway’s Game of Life Rules The rules are Any live cell with two or three live neighbours survives. Any dead cell with…