Geek's Code Corner

Programming

Recent Posts

  • Correlation Heatmaps with Significance in Python
  • My Frustrating Experience with Ghost’s Blog Editor
  • Hardening SSH
  • Bayesian analysis of sales data, using PyMC3
  • Putting Benford’s Law to the Test

Archives

  • December 2023
  • November 2023
  • September 2023
  • July 2023
  • June 2023
  • April 2023
  • March 2023
  • January 2023
  • December 2022
  • September 2022
  • August 2022
  • July 2022
  • February 2022
  • January 2022
  • December 2021
  • October 2021
  • August 2021
  • June 2021
  • May 2021
  • April 2021
  • February 2021
  • December 2020
  • October 2020
  • September 2020
  • August 2020
  • July 2020
  • June 2020
  • April 2020
  • March 2020
  • January 2020
  • December 2019
  • September 2019
  • August 2019
  • June 2019
  • May 2019
  • April 2019
  • March 2019
  • February 2019
  • January 2019
  • December 2018
  • November 2018
  • September 2018
  • August 2018
  • July 2018
  • June 2018
  • May 2018
  • March 2018
  • December 2017
  • November 2017
  • August 2017
  • May 2017
  • April 2017

Categories

  • Diy
  • Games
  • General
  • IoT
  • Programming
Programming

Correlation Heatmaps with Significance in Python

While Pandas and Seaborn offer very quick ways to calculate correlations and show them in a heatmap. Whether those correlations are statistically significant or not is omitted from those plots. Over the years I collected bits and pieces of code, like this, that turn out to be quite useful. Though Read more…

By Luke Anderson, 1 yearDecember 17, 2023 ago
Programming

Bayesian analysis of sales data, using PyMC3

Bayesian analysis and probabilistic programming is fairly different from ‘regular’ analysis. So here I’ll take you through my first attempt at using PyMC3 to analyse sales data of KeyForge decks and explore the effects of COVID-19 restrictions and releasing new content. PyMC3 takes some getting used to, but at the Read more…

By Luke Anderson, 2 years ago
Programming

Putting Benford’s Law to the Test

After seeing the Episode on Benford’s Law in Latif Nasser’s Connected (currently on Netflix), I had to test if this is true and if I could find a few datasets where it applies. And … I did! But before we get into details, let’s first explain what Benford’s Law is. Read more…

By Luke Anderson, 2 yearsSeptember 10, 2023 ago
Programming

An Agent Based Model to look at Gwent Pro Ladder (code)

In an article I contributed to Team Bandit Gang’s website, data is shown about the number of games Pro Ranked players play at different ranks. Tough with the data that can be pulled from Gwent Masters assessing whether or not playing more will result in a higher ranking is difficult. Read more…

By Luke Anderson, 2 years ago
Programming

Better Raspberry Pi Pico MIDI controller

To expand the number of notes/chords my RP2040 based MIDI controller can play we’ll turn two keys into modifiers. This way the other 7 buttons can actually each be assigned 4 different notes/chords (a default, pressed with modifier one, pressed with modifier two and pressed with both modifiers active). So Read more…

By Luke Anderson, 2 yearsJuly 11, 2023 ago
Programming

XIAO-RP2040: A tiny RPi Pico alternative

Doing an electronics project where space comes at a premium? A regular rpi pico is to large? Have a look at the XIAO-RP2040 from Seeed Studio. Seeed Studio provided me a XIAO-RP2040 to review so let鈥檚 have a look at this nifty little board. The microchip is identical, though as Read more…

By Luke Anderson, 2 yearsJune 27, 2023 ago
Programming

Making Stickers

Sticker paper is easy to find, but without post-processing the stickers aren very durable. A bit of moisture and the ink starts to run. Let test if a few coats of varnish can make them more resistant. If you aren blessed with good penmanship, printing stickers is an easy out Read more…

By Luke Anderson, 2 yearsJune 5, 2023 ago
Programming

DeckLock part 2: Magic the Gathering

DeckLock, a static-website generator to generate overviews of KeyForge decks, will be expanded to support Magic: the Gathering. To find more about DeckLock and how it is designed look at the previous post. Magic: the Gathering is a very different game compared to KeyForge. There is a large pool of Read more…

By Luke Anderson, 2 years ago
Diy Programming

Getting a script’s path in R

Recently I found myself using R scripts from others and having to deploy my own R code on other machines. The majority of these had a hard coded path to either the script or the input data somewhere in the code. This becomes an issue when code needs to run Read more…

By Luke Anderson, 2 yearsMarch 18, 2023 ago
Diy Programming

Adding Aqara Sensors to Home Assistant

Home Assistant is running great! It is time to add some more devices to my setup, and since all groundwork to add Zigbee devices using Zigbee2MQTT was done previously (check out this post) it makes sense to add more devices that support this protocol. For this post I picked up Read more…

By Luke Anderson, 2 yearsJanuary 31, 2023 ago

Posts pagination

1 2 … 6 Next