Skip to content

Instantly share code, notes, and snippets.

Avatar

Sam L'ecuyer samlecuyer

  • Yahoo
  • Los Angeles
View GitHub Profile
@ImJasonH
ImJasonH / markdown.css
Last active Oct 19, 2020
Render Markdown as unrendered Markdown (see http://jsbin.com/huwosomawo)
View markdown.css
* {
font-size: 12pt;
font-family: monospace;
font-weight: normal;
font-style: normal;
text-decoration: none;
color: black;
cursor: default;
}
@JamieMason
JamieMason / get-new-execution-context.md
Last active May 9, 2019
Create a new JavaScript execution context, to safely extend hosts/natives for example.
View get-new-execution-context.md

Create a new JavaScript execution context

Source

const getNewExecutionContext = markup =>
  new Promise(resolve => {
    const iframe = document.createElement('iframe');
    iframe.style.display = 'none';
    iframe.setAttribute('src', 'about:blank');
You can’t perform that action at this time.