Skip to content

Instantly share code, notes, and snippets.

View rmcfadzean's full-sized avatar
:accessibility:
#RemoteOnly

Rob rmcfadzean

:accessibility:
#RemoteOnly
View GitHub Profile
{
"name": "Epomaker680Gasket",
"vendorId": "0xFEED",
"productId": "0x6060",
"lighting": "none",
"matrix": {"rows": 5,"cols": 15},
@rmcfadzean
rmcfadzean / readme.md
Last active June 11, 2023 03:51
We CAN dance if we want to. Or: How to use Klipper with CanBoot on an SKR Mini e3 v3.0 and other CAN bus bites.

Foreword

"Just use USB, you idiot"

- Paraphrased from a blog post by RatRig, who now have a controller board by BTT called the SKRat which has CAN bus on it

I have nothing hate toward RatRig or the USB industrial complex; I just think I'm funny.

Table of Contents

; acceleration_enabled = {acceleration_enabled}
; acceleration_infill = {acceleration_infill}
; acceleration_ironing = {acceleration_ironing}
; acceleration_layer_0 = {acceleration_layer_0}
; acceleration_prime_tower = {acceleration_prime_tower}
; acceleration_print = {acceleration_print}
; acceleration_print_layer_0 = {acceleration_print_layer_0}
; acceleration_roofing = {acceleration_roofing}
; acceleration_skirt_brim = {acceleration_skirt_brim}
; acceleration_support = {acceleration_support}
<?
/**
* Takes a date, returns the meteorological season of that date, by month. Not equinox/solstice.
* Only works for the northern hemisphere.
*
* @link https://en.wikipedia.org/wiki/Season#Meteorological
* @param string $date
* @return string
**/
@rmcfadzean
rmcfadzean / input.ts
Last active July 2, 2021 20:41
Playing around with xstate & Copilot
import { createMachine } from 'xstate';
interface Booking {
id: string;
flight: Flight;
paid: boolean;
}
interface Passenger {
name: string;
@rmcfadzean
rmcfadzean / headless-cms-archive.json
Created August 31, 2020 18:36
HEADLESSCMS.ORG DATA ARCHIVE
{"timestamp":1598899009480,"data":{"abecms":[{"timestamp":1598899009480,"stars":148,"forks":27,"issues":34}],"acoustic-content":[{"timestamp":1598899009480}],"agility-cms":[{"timestamp":1598899009480,"followers":1939}],"any-json-cms":[{"timestamp":1598899009480,"stars":56,"forks":3,"issues":0}],"appernetic":[{"timestamp":1598899009480,"followers":2659}],"b2evolution-cms":[{"timestamp":1598899009480,"followers":1031,"stars":139,"forks":61,"issues":3}],"bloomreach":[{"timestamp":1598899009480,"followers":11472}],"bowtie":[{"timestamp":1598899009480,"followers":9}],"builderio":[{"timestamp":1598899009480,"followers":38,"stars":645,"forks":109,"issues":12}],"butter-cms":[{"timestamp":1598899009480,"followers":596}],"canner":[{"timestamp":1598899009480,"stars":2485,"forks":144,"issues":41}],"cloudcannon":[{"timestamp":1598899009480,"followers":1059}],"cloud-cms":[{"timestamp":1598899009480,"followers":267}],"cockpit":[{"timestamp":1598899009480,"followers":1094,"stars":4674,"forks":460,"issues":205}],"coisas":[{"t
<html>
<head>
<meta charset="UTF-8" />
</head>
<body>
<div id="safe-area">
<div id="message">
<span class="accent">Ami Wang,</aspan>
<br /><br />
@rmcfadzean
rmcfadzean / slickdealsfilter.txt
Created April 5, 2019 18:10
Block Slickdeals' credit card/banking ads
slickdeals.net##.dealitem:has-text(/Advertiser/)
#!/bin/bash
# Install
# This script need a API key from TinyPNG. See this page: https://tinypng.com/developers
# It also need jq library, which can be install thanks to: `brew install jq`
# Usage
# cd to your folder. This script will compress all PNG or JPG files recursively.
API_KEY="CHANGE_ME"

Useful snippet for setting all language definition of JS files under the src directory to be javascriptreact in VS Code.

Some extensions you may only want to run when the language is javascriptreact.

I place it in ${workspace}/.vscode/settings.json for each project.