Skip to content

Instantly share code, notes, and snippets.

View mrflory's full-sized avatar

Florian Stallmann mrflory

View GitHub Profile
@mrflory
mrflory / update-all.sh
Created April 15, 2026 08:33
Script to update all packages on macOS (brew, node.js via nvm, npm, python via uv, uv tools)
#!/usr/bin/env bash
set -euo pipefail
confirm() {
local prompt="$1"
read -r -p "$prompt [y/N]: " answer
case "$answer" in
[Yy]|[Yy][Ee][Ss]) return 0 ;;
*) return 1 ;;
esac

Books on Design

General

Design is a Job (Mike Monteiro)
The Design of Everyday Things (Don Norman)
Emotional Design (Don Norman)
Universal Principles of Design: A Cross-Disciplinary Reference (William Lidwell)
Designed for Use (Lukas Mathis)
The Shape of Design (Frank Chimero)

@mrflory
mrflory / Builder.php
Created April 1, 2012 20:24
Twitter Bootstrap Twig Template for KnpMenuBundle in Symfony2
<?php
namespace Linkofy\CommonBundle\Menu;
use Knp\Menu\FactoryInterface;
use Symfony\Component\DependencyInjection\ContainerAware;
class Builder extends ContainerAware
{
public function mainMenu(FactoryInterface $factory, array $options)