Skip to content

Instantly share code, notes, and snippets.

@Daylon
Daylon / postrender.js
Created September 26, 2016 14:13
MJML postrender fix
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var removeCDATA = exports.removeCDATA = function removeCDATA(str) {
return str.replace(/(?:<!-{0,2}\[CDATA\[){1,2}([^]*?)(?:\]\]-{0,2}>?){1,2}/gm, '$1');
};
var fixLegacyAttrs = exports.fixLegacyAttrs = function fixLegacyAttrs($) {
@Daylon
Daylon / onerror.js
Last active June 29, 2016 16:23
Simple error to Mixpanel tracker
'use strict'
import Mixpanel from 'mixpanel'
let init = () => (window.onerror = catchError)
, trackerFeedback = () => console.info( 'This error has been reported!')
, throwError = function( msg, source, linenumber ){
if(
typeof msg === 'string'
&& typeof source === 'string'

Keybase proof

I hereby claim:

  • I am daylon on github.
  • I am daylon (https://keybase.io/daylon) on keybase.
  • I have a public key whose fingerprint is 305D 86DB 2DEC 8E11 4C30 3BF0 DDE3 0F0E 6AA9 4220

To claim this, I am signing this object:

@Daylon
Daylon / gist:10499720
Last active August 29, 2015 13:59
keybase.md
### Keybase proof
I hereby claim:
* I am daylon on github.
* I am daylon (https://keybase.io/daylon) on keybase.
* I have a public key whose fingerprint is BD27 0B95 5B2E 05F2 5BBF CBCF 2EF9 0630 7C2F 2026
To claim this, I am signing this object: