Skip to content

Instantly share code, notes, and snippets.

View pmark's full-sized avatar

P. Mark Anderson pmark

View GitHub Profile
@pmark
pmark / parallax-scrolling-grid.tsx
Created August 30, 2024 06:55
Parallax Grid with React and Tailwind
import React, { useState, useEffect, useRef } from 'react';
const ParallaxScrolling = () => {
const [scrollY, setScrollY] = useState(0);
const [contentHeight, setContentHeight] = useState(0);
const containerRef = useRef(null);
const contentRef = useRef(null);
useEffect(() => {
const container = containerRef.current;
@pmark
pmark / action-over-words.md
Created June 2, 2025 20:01
Forget being right

On Accepting Unfairness Temporarily:

"Sometimes you have to give up being right to get what you want." - Unknown

"The person who cares least about the relationship has the most power in it. The person who cares most has to do the heavy lifting." - Relationship reality

"You can be right, or you can be married." - Common marriage wisdom

"Fairness is a luxury that stable relationships can afford. Unstable relationships require triage." - Adapted from therapy wisdom