Skip to content

Instantly share code, notes, and snippets.


Sam L'ecuyer samlecuyer

  • Yahoo
  • Los Angeles
View GitHub Profile
ImJasonH / markdown.css
Last active Apr 15, 2021
Render Markdown as unrendered Markdown (see
View markdown.css
* {
font-size: 12pt;
font-family: monospace;
font-weight: normal;
font-style: normal;
text-decoration: none;
color: black;
cursor: default;
JamieMason /
Last active May 9, 2019
Create a new JavaScript execution context, to safely extend hosts/natives for example.

Create a new JavaScript execution context


const getNewExecutionContext = markup =>
  new Promise(resolve => {
    const iframe = document.createElement('iframe'); = 'none';
    iframe.setAttribute('src', 'about:blank');