Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@hughc
hughc / Mini-TFT-RGB.ino
Created August 13, 2020 12:46
simple Arduino test script for no-name 80x160 RGB TFT screen
#include <Adafruit_GFX.h> // Core graphics library
#include <Adafruit_ST7735.h> // Hardware-specific library
#include <SPI.h>
float p = 3.1415926;
@hughc
hughc / gutenberg-audit.php
Created April 20, 2020 10:36
Gutenberg Audit for WordPress
<?php
/*
Plugin Name: Gutenberg Audit
Plugin URI: http://highbrow.com.au/plugins/gutenberg-audit
description: What blocks is your site using?
Version: 0.1
Author: Hugh Campbell
Author URI: http://highbrow.com.au/
License: GPL2
*/
@hughc
hughc / settings.json
Created January 30, 2024 21:21
VsCode workspace settings - distinguish between multiple VSCode windows by colour coding their title and status bars
{
"workbench.colorCustomizations": {
"titleBar.activeBackground": "#cacabc",
"titleBar.activeForeground": "#000",
"titleBar.inactiveBackground": "#cacabc",
"titleBar.inactiveForeground": "#cacabc",
"statusBar.foreground": "#222",
"statusBar.background": "#cacabc",
}
}
const { exec } = require("child_process");
const scadSetting = {};
//this should be the same as the spacing of LEDS on your strip
scadSetting.Width_and_depth_of_a_single_cell = 532 / 32;
// grid height
scadSetting.Height_of_grid = 10.2;