Skip to content

Instantly share code, notes, and snippets.

View ChristianOrtiz's full-sized avatar
🎯
Focusing

Christian Ortiz ChristianOrtiz

🎯
Focusing
View GitHub Profile
@ChristianOrtiz
ChristianOrtiz / protips.js
Created February 22, 2018 00:42 — forked from nolanlawson/protips.js
Promise protips - stuff I wish I had known when I started with Promises
// Promise.all is good for executing many promises at once
Promise.all([
promise1,
promise2
]);
// Promise.resolve is good for wrapping synchronous code
Promise.resolve().then(function () {
if (somethingIsNotRight()) {
throw new Error("I will be rejected asynchronously!");
@ChristianOrtiz
ChristianOrtiz / frontendDevlopmentBookmarks.md
Created September 3, 2017 16:21 — forked from dypsilon/frontendDevlopmentBookmarks.md
A badass list of frontend development resources I collected over time.