Hides extra menubar icons in submenu
Makes the notch less visible
Hides extra menubar icons in submenu
Makes the notch less visible
const express = require('express') | |
const app = express() | |
app.get('/', function (req, res) { | |
res.send('Hello World!') | |
}) | |
// 👉👉 ADD YOUR ROUTE HERE! 👈👈 | |
const functions = require("firebase-functions"); | |
const admin = require("firebase-admin"); | |
const {nanoid} = require('nanoid'); | |
admin.initializeApp(); | |
exports.withLock = functions.pubsub | |
.schedule("0 * * * *") | |
.onRun((context) => { | |
const { eventId, timestamp } = context; |
sudo apt remove fonts-noto-color-emoji
sudo apt install fonts-noto-color-emoji
R.pipeWith(R.then, [getUserFromDatabase, replyOk, sendMessageToUser])(ctx); |
const R = require('ramda'); | |
const ctx = { | |
// ... | |
}; | |
R.pipeWith(R.then, [getUserFromDatabase, sendMessageToUser, replyOk])(ctx); |
async function getUserFromDatabase(ctx) { | |
const { | |
req: { | |
headers: {Authorization: userCred}, | |
}, | |
} = ctx; | |
const user = await db.getUserByCredential(userCred); | |
return { | |
...ctx, | |
user, |
await sendMessageToUser(ctx); | |
await replyOk(ctx); |