Skip to content

Instantly share code, notes, and snippets.

View laurence-myers's full-sized avatar

Laurence Dougal Myers laurence-myers

View GitHub Profile
@laurence-myers
laurence-myers / code-review-emoji-legend.md
Last active December 15, 2023 05:56
Code review emoji legend

I use emojis as a shorthand to categorise my code review comments. These will help you prioritise requested changes, respond to discussions, or otherwise use your judgement to action (or not).

Emoji Description
⛏️ Nitpick. Things to keep the code tidy, or fit with conventions.
🙏 Please make a change.
🐛 Bug. Must be fixed.
💬 Discussion. No action required.
Question. Educate me! (Might lead to a change request.)
👍 Nice work! (No action required.)

Force RGB Color on M1 Mac

How to Force RGB Color Output instead of YPbPr on your M1 Apple Silicon Mac for an External Monitor.

This step-by-step video tutorial will guide you through the procedure of forcing RGB color output on your M1 Mac.

Force RGB Color on M1 Mac

Here is the direct link to the video tutorial: https://www.youtube.com/watch?v=Z1EqH3fd0V4

The video also has Closed Captions (Subtitles) that you can enable, to make it easier to follow if needed.

@laurence-myers
laurence-myers / JokeboatSetup.jet
Created September 20, 2020 09:59
The Jackbox Party Pack 6 Joke Boat file format (JSON)
{
"episodeid": 1397, // Don't change this
"content": [
{
"punchline": "<BLANK>", // Use placeholder "<BLANK>". Can have text before/after.
"decoys": [ // Default topics and "Joke for me" options. Each entry seperates topics/punchlines with " | "
"lasagna | Lasagna has layers.",
"pizza | Pizza is less cheesy.",
"raw tuna | One stinks of fish, the other is sushi."
],
@laurence-myers
laurence-myers / bulkdecaf.bat
Created August 22, 2018 02:47
Bulk decaffeinate batch script for Windows
FOR /f "delims=" %%i IN ('npm bin') DO SET DECAF=%%i
SET DECAF="%DECAF%\decaffeinate"
echo %decaf%
cd app
for /R %%f in (*.coffee) do (
echo "%%f"
%decaf% %%f
)
cd ..
@laurence-myers
laurence-myers / example.ts
Created April 10, 2018 07:15
Result: success/failure type union
interface IFoo {
bar : string;
}
function validateSomething(obj : IFoo) : Result<string, IFoo> {
if (obj.bar.length === 0) {
return resultFailure("You must provide at least one object");
} else {
return resultSuccess(obj);
}