Skip to content
View diegopitt's full-sized avatar
  • Oakland, CA

Block or report diegopitt

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. Handling onAuthStateChanged and disp... Handling onAuthStateChanged and dispatching redux
    1
    import firebase from '@firebase/app';
    2
    import '@firebase/auth';
    3
    import '@firebase/database';
    4
    import { store } from '../store.js';
    5
    import { setUser, setUserDetails } from '../actions/user.js';
  2. cloud function with geoquery cloud function with geoquery
    1
    function FindNearbyTalents(jobowner, jobid, lat, lng, cat){
    2
      return new Promise((resolve, reject) => {
    3
        const geoQueryTalents = geoFireTalents.query({center: [lat, lng], radius: 5 });
    4
        const promises = [];
    5
        geoQueryTalents.on("key_entered", (key, location, distance) => {
  3. React & Material design React & Material design
    1
    /* eslint-disable no-script-url */
    2
    
                  
    3
    import React from 'react';
    4
    import Link from '@material-ui/core/Link';
    5
    import { makeStyles } from '@material-ui/core/styles';
  4. Observe firebase node contracts Observe firebase node contracts
    1
    exports.ObserveContract = functions.database.ref("/contracts/{id}").onWrite((change, context) => {
    2
      const sa = change.after.val();
    3
      const id = context.params.id;
    4
      const contractor = sa.contractor || change.before.val().contractor;
    5
      const talent = sa.talent || change.before.val().talent;
  5. Functional component with useEffect ... Functional component with useEffect and useState hooks handling asynchronous task
    1
    import React, { useEffect, useState } from 'react';
    2
    import { getNotifications } from '../Notifications/data.js';
    3
    
                  
    4
    const Dashboard = () => {
    5
      const [open, setOpen] = useState(false);
  6. AuthContext and React.createContext ... AuthContext and React.createContext - Making authentication variables global
    1
    import React from "react";
    2
    
                  
    3
    export const AuthContext = React.createContext({
    4
        isAuthenticated: false, 
    5
        webToken: null,