Skip to content

Instantly share code, notes, and snippets.

@jkhaui
jkhaui / gist:70b47c7634bed4542ec595adfe193937
Created April 16, 2022 00:14 — forked from unruthless/gist:11383824
HTML Email Template guidelines

General guidelines for designing HTML email templates.

Questions and comments welcome anytime – thanks for reading!

KEY TAKEAWAY:

  • Coding for HTML emails is like coding for Internet browsers from 10 years ago. (It’s the email clients’ — Outlook, etc. — fault.)
  • Picture a website from a decade ago: that’s the level of design complexity we can reasonably shoot for.

WIDTH:

@jkhaui
jkhaui / python-es6-comparison.md
Created September 17, 2019 07:02 — forked from revolunet/python-es6-comparison.md
# Python VS ES6 syntax comparison

Python VS ES6 syntax comparison

Python syntax here : 2.7 - online REPL

Javascript ES6 via Babel transpilation - online REPL

Imports

import math
@jkhaui
jkhaui / [1] convert_to_html.js
Created March 29, 2019 10:47 — forked from nathansmith/[1] convertToMarkup.js
Handy utilities for dealing with `<div contenteditable="true">` areas.
/*
You would call this when receiving a plain text
value back from an API, and before inserting the
text into the `contenteditable` area on a page.
*/
define(function(require) {
'use strict';
/*
Used to convert text with line breaks