Skip to content

Instantly share code, notes, and snippets.

View d-neri's full-sized avatar

Danielle Neri d-neri

  • Stealth
View GitHub Profile
@d-neri
d-neri / Code.gs
Last active May 26, 2024 07:05
Google Apps Script - Gmail count emails by sender
// Execute the "run" function below after setting up the appropriate APIs
// Original credit: https://stackoverflow.com/a/59222719/501042
function sender_list_paged(token) {
var dt = new Date().getTime();
var ss = SpreadsheetApp.create('Gmail count emails by sender ' + dt);
var sh = ss.getActiveSheet()
sh.clear();
sh.appendRow(['Email Address', 'Count']);
var token = token || null;
var query = "in:inbox is:unread";
@d-neri
d-neri / gist:bee112e16ef907a47c758756b112c58e
Created May 22, 2018 04:00
FeathersJS/Express/Swagger
const feathers = require('@feathersjs/feathers');
const express = require('@feathersjs/express');
const swagger = require('feathers-swagger');
const app = express(feathers());
// Turn on JSON body parsing for REST services
app.use(express.json())
// Turn on URL-encoded body parsing for REST services
app.use(express.urlencoded({ extended: true }));
// Set up REST transport using Express