Skip to content

Instantly share code, notes, and snippets.

@tinabeans
tinabeans / template.html
Last active February 13, 2024 09:18
A super-barebones single-column responsive email template, assuming a max-width of 540px. Read about it on the Fog Creek blog.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Single-Column Responsive Email Template</title>
<style>
@media only screen and (min-device-width: 541px) {
.content {
@jdevalk
jdevalk / .htaccess
Last active November 28, 2023 20:28
These three files together form an affiliate link redirect script.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^index\.php$ - [L]
RewriteRule (.*) ./index.php?id=$1 [L]
</IfModule>
@supersym
supersym / mike.md
Last active December 16, 2015 11:49
CoffeeScript collection of snippets, samples and short solutions for common problems or meant to inspire somehow

Credits

I found these examples scattered throughout the web and included the original links where I found them. The authors or persons who published them on these sites are referenced over there so follow the links for them or message me if you want your name explicit here.

Quick-list syntax and jargon

  • or= Or equals-operator as used e.g. hash or= {}
  • ?= Existential-operator as used e.g. hash ?= {}
  • for..of Object/hash-comprehension e.g. log val for key,val of store
  • for..in Array-comprehension e.g. log item for item in [1,2,3,4,5]
@balupton
balupton / README.md
Last active October 11, 2015 18:08
DocPad: Minify your assets with Grunt

DocPad: Minify your assets with Grunt

The following will minify your assets with grunt each time a generation write completes.

Installation

  1. Install Dependencies