Skip to content

Instantly share code, notes, and snippets.

View eldrego's full-sized avatar

Mark Edomwande eldrego

  • Lagos, Nigeria
View GitHub Profile
@eldrego
eldrego / ImageUploader.js
Created December 30, 2018 05:18
Snippet showing how to upload an image to firebase and retrieve the image url for storage in my data base. This is a component on its own.
import React, { Component } from 'react';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import PropTypes from 'prop-types';
import FileUploader from 'react-firebase-file-uploader';
import firebase from '../../utils/firebase';
class ImageUploader extends Component {
constructor(props) {
super(props);
@eldrego
eldrego / Clear cache
Created October 16, 2017 12:11
Clear git cache and fix git ignore
git rm -r --cached .
git add .
git commit -m "cached cleared. fix for .gitignore"