Skip to content

Instantly share code, notes, and snippets.

@cedatif
cedatif / async-await.js
Created January 3, 2020 12:46 — forked from wesbos/async-await.js
Simple Async/Await Example
// 🔥 Node 7.6 has async/await! Here is a quick run down on how async/await works
const axios = require('axios'); // promised based requests - like fetch()
function getCoffee() {
return new Promise(resolve => {
setTimeout(() => resolve('☕'), 2000); // it takes 2 seconds to make coffee
});
}
@cedatif
cedatif / install.sh
Created August 28, 2017 11:27
install
#Common install
# install Brew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# Web dev tools
#node
brew install node