Skip to content

Instantly share code, notes, and snippets.

View KK7NZY's full-sized avatar

John Santiago Jr. KK7NZY

View GitHub Profile
@KK7NZY
KK7NZY / promise-sequence.js
Created October 11, 2018 03:16
Promise Sequence Example
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());
@KK7NZY
KK7NZY / gist.md
Created December 25, 2016 22:03 — forked from benbalter/gist.md
Example of how to embed a Gist on GitHub Pages using Jekyll.

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 %}.

@KK7NZY
KK7NZY / Makefile
Last active November 22, 2016 21:09
Makefile generated by WinAVR
# 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