Skip to content

Instantly share code, notes, and snippets.

View jwuphysics's full-sized avatar
💭
🌌

John F. Wu jwuphysics

💭
🌌
View GitHub Profile
@jwuphysics
jwuphysics / jwst-image-similarity.ipynb
Created July 18, 2022 14:07
JWST - Image similarity.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import astropy.units as u
from astropy.io import fits
from astropy.coordinates import SkyCoord
from astropy.modeling.fitting import LevMarLSQFitter
from astropy.stats import gaussian_sigma_to_fwhm
from astropy.table import Table
import boto3
import io
from photutils.background import MADStdBackgroundRMS, MMMBackground
from photutils.detection import IRAFStarFinder
@jwuphysics
jwuphysics / start-blog-post.sh
Created April 25, 2025 15:33
script to start a new blog post based on a title, using llms to initiate the front matter
#!/usr/bin/env bash
LLM_COMMAND="llm"
MODEL_NAME="gemma3:27b-it-qat"
POSTS_DIR="."
# handle arguments
if [ "$#" -ne 1 ]; then
echo "Usage: $0 \"Post Title\""
echo "Example: $0 \"My Awesome New Blog Post\""