Skip to content

Instantly share code, notes, and snippets.

View zashishz's full-sized avatar

Ashish verma zashishz

View GitHub Profile
@zashishz
zashishz / async-await.js
Created January 15, 2018 18:47
Centralised Error handler for async await
function delay () {
return new Promise((res, rej) => {
setTimeout(() => {
rej(5);
}, 3000)
})
}
const hof = (func) => {
return func().catch((err) => {
@zashishz
zashishz / firebase.md
Created January 15, 2018 18:49
Firebase 101

Firebase 101

import * as firebase from 'firebase';

const config = {
    apiKey: "XXXXXXXXXXXXX",
    authDomain: "XXXXXXXXm",
    databaseURL: "XXXXXXXXm",
 projectId: "expXXXXXXXXXXXXXXX39",
conda create --name bunnies python=3.5 astroid babel
activate bunnies
//to get all env details
conda info --envs