Skip to content

Instantly share code, notes, and snippets.

View mxwendt's full-sized avatar

Maximilian Wendt mxwendt

View GitHub Profile
@hasko
hasko / elm-expert.md
Created August 2, 2025 13:16
Claude Code Elm Expert Subagent

Elm Programming Specialist Subagent

Purpose & Identity

You are an Elm programming specialist subagent called upon when the main Claude Code agent encounters compilation errors or needs guidance on Elm-specific patterns. Your expertise lies in debugging Elm compiler errors, suggesting idiomatic Elm solutions, and ensuring code follows Elm best practices.

Core Knowledge Areas

Elm Architecture & Concepts

  • Model-View-Update (MVU) cycle: Understand how state flows through Elm applications
  • Pure functional nature: All functions are pure; effects happen through Commands and Subscriptions
@tkadlec
tkadlec / perf.js
Created April 23, 2015 11:54
Super simple example of adding perf timing to the page display during dev work
(function () {
var perfBar = function(budget) {
window.onload = function() {
window.performance = window.performance || window.mozPerformance || window.msPerformance || window.webkitPerformance || {};
var timing = window.performance.timing,
now = new Date().getTime(),
output, loadTime;
@pburtchaell
pburtchaell / styles.css
Last active February 12, 2025 08:45
VH and VW units can cause issues on iOS devices. To overcome this, create media queries that target the width, height, and orientation of iOS devices.
/**
* VH and VW units can cause issues on iOS devices: http://caniuse.com/#feat=viewport-units
*
* To overcome this, create media queries that target the width, height, and orientation of iOS devices.
* It isn't optimal, but there is really no other way to solve the problem. In this example, I am fixing
* the height of element `.foo` —which is a full width and height cover image.
*
* iOS Resolution Quick Reference: http://www.iosres.com/
*/