System: Debian/Ubuntu/Fedora. Might work for others as well.
As mentioned here, to update a go version you will first need to uninstall the original version.
To uninstall, delete the /usr/local/go
directory by:
const admin = require('firebase-admin'); | |
// expects the environment variable GOOGLE_APPLICATION_CREDENTIALS | |
const serviceAccount = require(process.env.GOOGLE_APPLICATION_CREDENTIALS); | |
const credential = admin.credential.cert(serviceAccount); | |
const PROJECT_ID = '<FIREBASE_PROJECT_ID>'; | |
const app = admin.initializeApp({ | |
credential: credential |
System: Debian/Ubuntu/Fedora. Might work for others as well.
As mentioned here, to update a go version you will first need to uninstall the original version.
To uninstall, delete the /usr/local/go
directory by:
function displayTime() { | |
var time = moment().format('HH:mm:ss'); | |
$('#clock').html(time); | |
setTimeout(displayTime, 1000); | |
} | |
$(document).ready(function() { | |
displayTime(); | |
}); |