Skip to content

Instantly share code, notes, and snippets.

@mtomcal
mtomcal / HigherOrderComponents.jsx
Created September 14, 2017 22:13
Adapting HoC to RenderProps
////////////////////////////////////////////////////////////////////////////////
// Exercise:
//
// Make `withMouse` a "higher-order component" that sends the mouse position
// to the component as props.
//
// Hint: use `event.clientX` and `event.clientY`
//
// Got extra time?
//
@mtomcal
mtomcal / cloudSettings
Last active November 7, 2017 21:21
Visual Studio Code Settings Sync Gist
{"lastUpload":"2017-11-07T21:21:29.582Z","extensionVersion":"v2.8.5"}
@mtomcal
mtomcal / PYTHON_STRUCTURE.md
Last active November 6, 2025 13:37
Python Structure Prompt

Python Project Structure Template

This document describes a modern Python project structure with best practices for tooling, testing, and code quality. Use this as a template for generating any Python project.

Project Overview

Package Management: Poetry Python Version: 3.10+ Key Tools: pytest, ruff, mypy, poethepoet