Geek's Code Corner

Diy

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
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
Diy Programming

How to Upgrade Your Nintendo 3DS with USB-C Charging

Are you tired of fumbling with your Nintendo 3DS charging cable? Do you wish you could use a modern, reversible USB Type-C connector instead? With a few common tools and a little know-how, you can add a USB Type-C port to your Nintendo 3DS charging cradle in no time! In Read more…

By Luke Anderson, 2 yearsDecember 5, 2022 ago
Diy Programming

Setting up a Google Cloud Function

With Google’s Cloud Functions you can make simple microservices that can perform a task on Google’s infrastructure. This allows some functionality of an app to be moved to the cloud. This can be useful in a number of cases; for instance the Dashboard from a previous post. When running scripts Read more…

By Luke Anderson, 3 yearsSeptember 22, 2022 ago
Diy Programming

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

With the Agent Based Model (ABM) from the previous post we can simulate any number of Gwent players, with known skill and play rate, playing throughout a season. Using this model we’ll try to get a firmer grasp on the ladder system and test whether this rewards skill or grinding Read more…

By Luke Anderson, 3 yearsSeptember 20, 2022 ago
Diy Programming

Plotting post hoc tests with Python

When three or more groups of samples are compared (e.g. Using ANOVA/Tukey HSD or Kruskal-Wallis/Dunn), you often see results shown as a boxplot, with lines highlighting which groups are significantly different. In Python there is no single package to do this quickly, though by combining scikit-posthocs with statannotations similar plots Read more…

By Luke Anderson, 3 yearsAugust 21, 2022 ago
Diy Programming

Gwent: Pro Ladder Analysis and National Rankings

Data for on players in Pro Ladder is released on playgwent.com, but it is limited. You get the rank, the score, the country of origin and the number of matches played. Using some fairly basic data analysis tricks there must be more we can do with these data! Using python Read more…

By Luke Anderson, 3 yearsAugust 2, 2022 ago