Skip to content

Instantly share code, notes, and snippets.

View kvann's full-sized avatar
🎯
Focusing

Kosal Vann kvann

🎯
Focusing
View GitHub Profile
@kvann
kvann / responsive-email-template.html
Last active June 16, 2017 15:40
Simple email template for Gmail app, iPhone, Android, Outlook desktop and other popular email services.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en" style="margin: 0; outline: none; padding: 0;">
<head>
<!--[if !mso]><meta http-equiv="X-UA-Compatible" content="IE=edge"><!--<![endif]-->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Content-Language" content="en-us">
<style data-ac-keep="true">
.ExternalClass {
width: 100%;
@kvann
kvann / gmail-optimization.html
Last active April 11, 2016 21:15
This sample code will display your email in a more readable format in the Gmail app for Android and iOS. This layout will not trigger the grey optimization message in the iOS Gmail app. Also added fix for center alignment in Outlook desktop client.
<!--[if (gte mso 9)|(IE)]>
<div style="margin: 0px;outline: none;padding: 0px;width: 100%;background-color: #EFEFEF;background: #EFEFEF;font-family:arial,sans;font-size:15px;color:#555555;text-align: center;">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody>
<tr>
<td align="center" valign="top" width="100%" style="font-family:arial,sans;font-size:15px;color:#555555;">
<table border="0" cellpadding="0" cellspacing="0" width="650" bgcolor="#EFEFEF" style="min-width: 650px;font-family:arial,sans;font-size:15px;color:#555555;">
<tbody>
<tr>
<td valign="top" align="left" style="background-color: #ffffff;font-family:arial,sans;font-size:15px;color:#555555;text-align:left;line-height:150px;line-height:1.5;">
@clouddueling
clouddueling / .htaccess
Created October 7, 2013 23:50
Auto version js and css
<IfModule mod_rewrite.c>
RewriteRule ^(.*)\.[\d]{10}\.(css|js)$ $1.$2 [L]
</IfModule>
@loonies
loonies / 1_phpunit-api.md
Last active August 16, 2024 17:45
PHPUnit Cheat Sheet

PHPUnit API reference

  • version 3.6

TODO

Check those constraints:

$this-&gt;anything()