Skip to content

Instantly share code, notes, and snippets.

The Unofficial 37signals/DHH Rails Style Guide

About This Document

This style guide was generated by Claude Code through deep analysis of the Fizzy codebase - 37signals' open-source project management tool.

Why Fizzy matters: While 37signals has long advocated for "vanilla Rails" and opinionated software design, their production codebases (Basecamp, HEY, etc.) have historically been closed source. Fizzy changes that. For the first time, developers can study a real 37signals/DHH-style Rails application - not just blog posts and conference talks, but actual production code with all its patterns, trade-offs, and deliberate omissions.

How this was created: Claude Code analyzed the entire codebase - routes, controllers, models, concerns, views, JavaScript, CSS, tests, and configuration. The goal was to extract not just what patterns are used, but why - inferring philosophy from implementation choices.

@erotte
erotte / ionic-app.sh
Last active July 30, 2016 02:38
Generates an Ionic base app with Sass, CoffeeScript, Jade support
#!/usr/bin/env bash
# you might need to install ionic and cordova
# npm install -g cordova ionic
USAGE="Usage: ionic-app [AppPath/]AndName [ionic starter template]"
APP_TEMPLATE='tabs'
@kinduff
kinduff / mexican_states_and_cities.rb
Last active March 25, 2016 00:16
Mexican States and Cities Hash Generator - Hash Base de Datos para Estados y Ciudades de México
# encoding: UTF-8
require 'httparty'
require 'json'
states_and_cities = {}
32.times do |i|
next if i == 0 # skip cus first is trash
url = "http://inegifacil.com/cities/#{i}"
@julitrows
julitrows / email.css
Last active March 19, 2018 07:07
HTML Email Boiler Plate in HAML with separated CSS
/* Based on The MailChimp Reset INLINE: Yes. */
/* Client-specific Styles */
#outlook a {padding:0;} /* Force Outlook to provide a "view in browser" menu link. */
body{width:100% !important; -webkit-text-size-adjust:100%; -ms-text-size-adjust:100%; margin:0; padding:0;}
/* Prevent Webkit and Windows Mobile platforms from changing default font sizes.*/
.ExternalClass {width:100%;} /* Force Hotmail to display emails at full width */
.ExternalClass, .ExternalClass p, .ExternalClass span, .ExternalClass font, .ExternalClass td, .ExternalClass div {line-height: 100%;}
/* Forces Hotmail to display normal line spacing. More on that: http://www.emailonacid.com/forum/viewthread/43/ */
#backgroundTable {margin:0; padding:0; width:100% !important; line-height: 100% !important;}
/* End reset */
@iamatypeofwalrus
iamatypeofwalrus / bootstrap_glyphs_in_rails.md
Last active November 30, 2024 00:22
Get Glyphicons up and running in Rails 3.2 without using a gem

Getting Glyphicons from Bootstrap 3.0 in Rails: the easy way

What

Bootstrap 3.0 gives you access to the awesome icon set icon set by these dudes but it's not obvious for a Rails newbie like myself to get it all working together nicely

How

  1. Download the bootstrap-glyphicons.css from here. Save that file to RAILS_ROOT/vendor/assets/stylesheet/bootstrap-glyphicons.css
  2. Save all the font files in /dist/fonts from the Bootstrap 3.0 download to a new folder in your Rails app RAILS_ROOT/vendor/assets/fonts
  3. Add this folder to the asset pipeline by appending config.assets.paths << Rails.root.join("vendor","assets", "fonts") to application.rb after the line that has class Application < Rails::Application.
  4. In bootstrap-glyphicons.css modify the the `url
@rhaseven7h
rhaseven7h / devise.es.yml
Created October 20, 2011 20:11
i18n Translation Spanish Mexican - Devise 1.4.8
# Additional translations at http://github.com/plataformatec/devise/wiki/I18n
es:
errors:
messages:
expired: "ha expirado, por favor pida uno nuevo"
not_found: "no encontrado"
already_confirmed: "ya está confirmada, por favor intente ingresar"
not_locked: "no está bloqueada"
not_saved: