Skip to content

Instantly share code, notes, and snippets.

View bionicpill's full-sized avatar

Jesse Brown bionicpill

View GitHub Profile
require "delegate"
class BankAccount
def number
123456
end
end
class SimpleDelegatorBankAccount < SimpleDelegator
end
@bionicpill
bionicpill / email.html
Last active August 29, 2015 13:57 — forked from anonymous/-
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<meta content="width=device-width" name="viewport">
<style data-immutable="true">
@media only screen and (max-width: 600px) {
table[class="body"] img {
width: auto !important;
def default_image_size
320
end
def image_style
"margin: 0;padding: 0;border: 0; max-width: 560px; height: auto;line-height: 100%;outline: none;text-decoration: none;"
end
def fallback_image_tag
content_tag(:img,