Skip to content

Instantly share code, notes, and snippets.

View inakiarroyo's full-sized avatar
🤪

Iñaki Arroyo inakiarroyo

🤪
View GitHub Profile
@inakiarroyo
inakiarroyo / protips.js
Created September 25, 2016 10:11 — 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!");
@inakiarroyo
inakiarroyo / git.css
Last active June 23, 2016 21:21 — forked from neilgee/git.css
Git Command Line Reference - Notes and reminders on set up and commands
/*
* Set up your Git configuration
*/
git config --global user.email "you@yourdomain.com"
git config --global user.name "Your Name"
git config --global core.editor "nano"