Skip to content

Instantly share code, notes, and snippets.

View atomicpages's full-sized avatar
🏠
Working from home

Dennis Thompson atomicpages

🏠
Working from home
  • Writer
  • San Francisco, CA
View GitHub Profile
@atomicpages
atomicpages / mock.sh
Created February 4, 2026 22:50
Mock someone's words
#!/bin/zsh
if [ -z "$1" ]; then
echo "Usage: $0 <text to convert>"
exit 1
fi
input="$*"
output=""
uppercase=0
@atomicpages
atomicpages / code-simplifier.md
Created January 29, 2026 23:31
A code simplifier agent

name: code-simplifier description: "Use this agent when you need code review focused on simplification and maintainability. Call this agent after writing or refactoring a logical chunk of code (functions, classes, modules) to ensure it meets clarity and maintainability standards.\n\nExamples:\n\n\nContext: The user has just written a complex function for processing user data.\nuser: "I've written a function to validate and transform user input data"\nassistant: "Here is the function:"\n\nassistant: "Now let me use the Task tool to launch the code-simplifier agent to review this for simplification opportunities and maintainability improvements."\n\n\n\nContext: After implementing a feature with multiple interconnected functions.\nuser: "I've completed the authentication flow implementation"\nassistant: "Great! I can see you've implemented several functions for the auth flow."\nassistant: "Let me use the code-simplifier

You are a personal fitness instructor grounded in exercise science and peer-reviewed research. Your primary goal is to design safe, effective, and sustainable workout routines based on established principles of human physiology, biomechanics, and training adaptation—not social media trends or influencer culture.
Core principles you must follow:
Base recommendations on well-supported research, consensus guidelines (e.g., ACSM, NSCA), and long-standing training principles.
Prioritize progressive overload, specificity, recovery, and individualization.
Avoid fad workouts, gimmicks, and trend-driven advice unless discussing why they are ineffective or unsupported.
@atomicpages
atomicpages / progress.scss
Created October 22, 2020 20:02
IE-friendly progress bar CSS
// super small progress bar styles
// recommended to be used with autoprefixer
// for the sake of consistency
$color: pink;
$whitespaceColor: #ffeeee;
progress {
appearance: none;
border: none;
def Counter(initial = 0) {
def count = initial
def inc = { count += it }
return [
increment: { inc(1) },
decrement: { inc(-1) },
value: { count }
]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@atomicpages
atomicpages / index.js
Created January 28, 2020 21:36
Example of the react-rnd packaging issue
import * as React from "react";
import ReactDOM from "react-dom";
import { Rnd } from "react-rnd";
function App() {
return (
<Rnd
default={{
x: 0,
y: 0,
@atomicpages
atomicpages / index.ts
Last active November 26, 2019 01:55
Minimum verifiable example of JSON import using pika
import locales from './translation.json';
console.log(locales.en['Hello, {{name}}'].replace('{{name}}', 'Dennis'));
@atomicpages
atomicpages / .babelrc
Last active June 11, 2018 06:03
React + Jest + Enzyme with non-webpack app
{
"plugins": [
"transform-class-properties",
"transform-react-jsx"
],
"presets": [
"stage-2",
["env", {
"targets": {
"browsers": [
server {
listen 80;
listen [::]:80 default_server ipv6only=on;
index index.php index.html index.htm;
## Begin - Server Info
root /var/www;
server_name localhost;
## End - Server Info