This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const symbol = Zone["__symbol__"]("setTimeout") | |
const plainTimeout = window[symbol]; | |
export const runOutsideZone = | |
(fn, delay) => plainTimeout(fn, delay); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const express = require('express'); | |
const bodyParser = require('body-parser'); | |
const app = express(); | |
const port = 7569; | |
app.use(bodyParser.urlencoded({ extended: false })); | |
app.post('/', (req, res) => { | |
const { fileName, contentType, base64 } = req.body; | |
const content = Buffer.from(base64, 'base64'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<button onclick="copyMarkup()">Copy source!</button> | |
<script> | |
function copyMarkup() { | |
const box = document.createElement('textarea'); | |
box.style.position = 'absolute'; | |
box.style.left = '-10000px'; | |
box.setAttribute('cols', '1000'); | |
document.body.appendChild(box); | |
box.value = document.documentElement.innerHTML; |
OlderNewer