This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* global gapi */ | |
import React from "react"; | |
const useAuthenticateWithGoogle = (apiKey, clientId, scopes) => { | |
const [ loading, setLoading ] = React.useState(false); | |
const [ authenticated, setAuthenticated ] = React.useState(false); | |
const [ error, setError ] = React.useState(null); | |
React.useEffect(() => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <time.h> | |
#include <string.h> | |
/** | |
* This function returns a UTC epoch timestamp based on | |
* the supplied time information. | |
* | |
* @param [in] second Seconds [0-59] |