ChatGPT as a data source

If you're not familiar with ChatGPT, it's a powerful language model designed to generate human-like text. Whether you need to draft an article or discuss the newest tech developments, this tool has you covered. It can even generate mock data for app testing.How It WorksThe key to effectively using…

PHP CS Fixer Hints in PhpStorm

An article a while back on freek.dev about Tools to automatically format PHP, JavaScript and CSS files instructed you to make a .php_cs file in your project. This file defines the rules for how PHP CS Fixer should behave when run.<?php $finder = Symfony\Component\Finder\Finder:…

Change icon with loadGeoJson

You may have come across the need to load in map features with the Google Maps API into a map. If you're wanting to change the icon for each point type marker, it may take a while to find how.Here's a snippet of code to do exactly that. I'm…

Canvas Isometry

Heavily inspired by the game rymdkapsel, I set out to make an isometric game with javascript and the canvas element.The demo features an in-progress game manager which includes a state machine, renderer, and event driven entity framework. The grid is randomly generated on each load. The people walking around…

Canvas Cell Simulation

I wrote a small cell life simulator which features cell birth, duplication, and death. There are no specific rules and this was just an experiment with canvas.The counter at the top right shows the number of cells, and the green dots are food (not implemented).…