Skip to content

Instantly share code, notes, and snippets.

View sgbaird's full-sized avatar

Sterling G. Baird sgbaird

View GitHub Profile

Development Practices

  • Start with minimal, lean implementations focused on proof-of-concept
  • Avoid creating new files until asked
  • Avoid implementing things from scratch
  • Avoid defensive error handling for hypothetical situations For example, rather than using:
    ...
    try:
@sgbaird
sgbaird / claude-code-review.yml
Created June 30, 2026 21:57
Claude Code Review GitHub Actions - to be put in .github/workflows, based on instructions in https://code.claude.com/docs/en/github-actions, modified for myself
name: Claude Code Review
on:
pull_request:
types: [opened, ready_for_review, reopened]
# Optional: Only run on specific file changes
# paths:
# - "src/**/*.ts"
# - "src/**/*.tsx"
# - "src/**/*.js"
@sgbaird
sgbaird / claude.yml
Last active July 16, 2026 15:57
Claude Code GitHub Actions - to be put in .github/workflows, based on instructions in https://code.claude.com/docs/en/github-actions, modified for myself
name: Claude Code
on:
issue_comment:
types: [created]
pull_request_review_comment:
types: [created]
issues:
types: [opened, assigned]
pull_request_review:
@sgbaird
sgbaird / ficks_first_law_steady_state.py
Created February 20, 2026 20:23
Fick’s First Law: Diffusion to Steady State
import numpy as np, matplotlib
matplotlib.use("Agg")
import matplotlib.pyplot as plt, io, os, math
import PIL.Image as Image
import imageio.v2 as imageio
# Parameters
L = 1.0
D = 1.0
Nx = 201
@sgbaird
sgbaird / gripper_wellplate_move.py
Created November 28, 2025 00:16
context7 chat about demo'ing the gripper of the flex (https://chatgpt.com/share/6928e9af-ad14-8007-b5a6-a13577985a44)
from opentrons import protocol_api
metadata = {
"apiLevel": "2.16",
"protocolName": "Flex Gripper Wellplate Demo",
"description": "Demo showing how to move a wellplate using the Flex gripper"
}
def run(protocol: protocol_api.ProtocolContext):
# Load a 96-well plate in deck slot D1
@sgbaird
sgbaird / copilot-setup-steps.yml
Last active December 17, 2025 20:58
Minimal setup instructions for GitHub copilot coding agent. Place in .github/workflows/copilot-setup-steps.yml per documentation at https://docs.github.com/en/copilot/how-tos/use-copilot-agents/coding-agent/customize-the-agent-environment
name: "Copilot Setup Steps"
on:
workflow_dispatch:
push:
paths: [.github/workflows/copilot-setup-steps.yml]
pull_request:
paths: [.github/workflows/copilot-setup-steps.yml]
jobs:
copilot-setup-steps:
@sgbaird
sgbaird / firewall-list.csv
Created June 26, 2025 13:53
My running list of firewall allows, to be added to COPILOT_AGENT_FIREWALL_ALLOW_LIST as a copilot environment, environment variable (typically I've been assigning a first issue to copilot so it autocreates that environment). See https://docs.github.com/en/copilot/customizing-copilot/customizing-or-disabling-the-firewall-for-copilot-coding-agent
pishop.ca primecables.ca mcmaster.com pypi.org pypi.python.org www.shopperplus.ca www.raspberrypi.com doi.org github.com api.github.com install.python-poetry.org tailscale.com gh.io
@sgbaird
sgbaird / copilot-coding-agent-config.json
Last active October 24, 2025 20:35
My running attempt at creating an MCP config for GitHub Copilot Coding agent (note this is for ones to be adding to settings on a GitHub repo, see `https://github.com/<username>/<repository>/settings/copilot/coding_agent`). See github docs: https://docs.github.com/en/enterprise-cloud@latest/copilot/using-github-copilot/coding-agent/extending-cop…
{
"mcpServers": {
"Perplexity": {
"type": "local",
"command": "npx",
"args": [
"-y",
"server-perplexity-ask"
],
"env": {
@sgbaird
sgbaird / copilot-instructions.md
Last active July 6, 2026 22:42
My attempt at refining a customized .github/copilot-instructions.md and using it in conjunction with GitHub Coding Agent. See https://docs.github.com/en/enterprise-cloud@latest/copilot/using-github-copilot/coding-agent/best-practices-for-using-copilot-to-work-on-tasks for additional context on the intention of this file.

Development Practices

  • Start with minimal, lean implementations focused on proof-of-concept
  • Avoid creating new files until asked
  • Avoid implementing things from scratch
  • Avoid defensive error handling for hypothetical situations For example, rather than using:
    ...
    try:
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.