Here's an example of how to embed a Gist on GitHub Pages:
{% gist 5555251 %}
All you need to do is copy and paste the Gist's ID from the URL (here 5555251
), and add it to a gist
tag surrounded by {%
and %}
.
# Hey Emacs, this is a -*- makefile -*- | |
#---------------------------------------------------------------------------- | |
# WinAVR Makefile Template written by Eric B. Weddington, Jˆrg Wunsch, et al. | |
# | |
# Released to the Public Domain | |
# | |
# Additional material for this makefile was written by: | |
# Peter Fleury | |
# Tim Henigan | |
# Colin O'Flynn |
Here's an example of how to embed a Gist on GitHub Pages:
{% gist 5555251 %}
All you need to do is copy and paste the Gist's ID from the URL (here 5555251
), and add it to a gist
tag surrounded by {%
and %}
.
function transaction(delay) { | |
return new Promise((resolve, reject) => { | |
console.log(delay, "seconds"); | |
setTimeout(() => resolve(delay), delay * 1000); | |
}); | |
} | |
function main() { | |
return [5, 4, 3, 2, 1].reduce((prev, next) => prev.then(() => transaction(next)), Promise.resolve()); |