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 / setup_steps.md
Created July 29, 2018 20:51
Debugging cloud functions steps

This guide will use the Cloud functions Node.js emulators (since this allows the use of attaching to a debugger) From what I can tell, neither firebase serve nor cloud functions shell allow this functionality.

Install the Cloud functions Node.js emulator following this guide https://cloud.google.com/functions/docs/emulator

start the emulator

functions start
@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.