// simple express server for HTML pages!
// ES6 style
const express = require('express');
This file contains 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
<h1>Flutter in DartPad live app</h1> | |
<div> | |
<canvas id="canvas" width="300" height="300"></canvas> | |
</div> |
auto template
<a
href="mailto:[email protected][email protected]&subject=Newsletter%20subscription&body=Please%20subscribe%20me%20to%20your%20newsletter!">
[email protected]
This file contains 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 promise = new Promise( | |
(resolve, reject) => { | |
// do a thing, possibly async, then… | |
if (/* everything turned out fine */) { | |
resolve("Stuff worked!"); | |
} | |
else { | |
reject(Error("It broke")); | |
} | |
} |
This file contains 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 promise = new Promise( | |
(resolve, reject) => { | |
// do a thing, possibly async, then… | |
if (/* everything turned out fine */) { | |
resolve("Stuff worked!"); | |
} | |
else { | |
reject(Error("It broke")); | |
} | |
} |
https://marketplace.visualstudio.com/items?itemName=TimonVS.ReactSnippetsStandard
Snippets
Below is a list of all available snippets and the triggers of each one. The ⇥ means the TAB key.
NewerOlder