Skip to content

Instantly share code, notes, and snippets.

{% assign emails = case.emails %}
{% assign threadlength = emails.size|minus:1 %}
{% for email in emails reversed %}
{% if forloop.first %}
{{email.new_html}}
{% if email.agent %}
{% if email.agent.signature %}
<div style="margin-top:10px;"> {{email.agent.signature | newline_to_br}}</div>
{% else %}
<p>
@jmijdam
jmijdam / mailchimp-html-output.html
Created May 3, 2012 13:25
Mailchimp Template HTML
<!-- This is how the HTML looks like in the actual email (client = Gmail) that is being sent. Note that the img tag has no ID or class anymore -->
<table border="0" cellpadding="0" cellspacing="0" width="630">
<tbody><tr>
<td style="border-collapse:collapse">
<div style="text-align:none"><img src="http://gallery.mailchimp.com/3062e101948bbd6014a7f3b0b/images/istanbul.launch.jpg" alt="" border="0" width="630" height="233"></div>
</td>
</tr>
</tbody></table>
@jmijdam
jmijdam / template-example.py
Created May 3, 2012 12:29
Django Template example
{% extends "base_generic.html" %}
{% block title %}{{ section.title }}{% endblock %}
{% block content %}
<h1>{{ section.title }}</h1>
{% for story in story_list %}
<h2>
<a href="{{ story.get_absolute_url }}">
@jmijdam
jmijdam / project.scala
Created April 10, 2012 14:37
Some Android config for Gist test
// Source:
// https://gist.github.com/1087819
// sbt 0.7.x
import sbt._
trait Defaults extends BaseAndroidProject {
def androidPlatformName = "android-7"
// no proguarded needed!
override def skipProguard = true
@jmijdam
jmijdam / hello_world.js
Created April 3, 2012 09:18
Hello World
alert("Hello World!");