Skip to content

Instantly share code, notes, and snippets.

View ptomasroos's full-sized avatar

Tomas Roos ptomasroos

View GitHub Profile
@tinabeans
tinabeans / template.html
Last active May 10, 2025 11:01
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 {
@drunkcod
drunkcod / gist:4488313
Last active December 10, 2015 20:28
a rough but workable way to "inject" contract tests into a NUnit fixture
using NUnit.Framework;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
namespace NUnitBehavesLike
{
public interface IThingamabob
{
@haf
haf / gist:4423968
Last active December 10, 2015 10:49
A pre-draft, happy-new-year, proposal for Inconsistency Roboustness 2014
Inconsistency Roboustness in Software Systems of the Future
It is a known fundamental problem to the people who do programming
for a living, that languages do not match the nature of the universe in which
those languages compute. Computer languages are based a rather romantic notion
of sequential processing that is not in line with how the real world operates;
the real world operates in a continuoum of space-time with multiple concurrent
threads of reality always ongoing, being acted upon by actors.
As such we must strive to model our information systems and programming
@SteveSongMIT
SteveSongMIT / captainflint.dtl
Created March 20, 2012 22:50
Simple Cowboy web server + ErlyDTL
<html>
<body>
GET squawk:<br />
{{ squawk_get }}<br /><br />
POST squawk:<br />
{{ squawk_post }}<br /><br />