Skip to content

Instantly share code, notes, and snippets.

View Meng-V's full-sized avatar
🎯
Focusing

Meng Meng-V

🎯
Focusing
View GitHub Profile

This is for "today" usage only.

Eveyday @7AM, a CRON job will retrieve past day events from DB. Make sure these events' dates are for today only. Everyday @12:01AM, an other CRON job will check and delete all expired events from DB and PatronGroup.

flowchart TD
    A([Start]) --> B[Email Server: Received a new email from reserve\@something.miamioh.edu]
    B --> C[Nodejs: fs. Read log and extract email for BookingID]
@Meng-V
Meng-V / crowd-index.js
Last active October 9, 2025 15:01
Crowd Index customized for Rec
async function getData() {
await axios
// For Rec, the endpoint is 'https://new.lib.miamioh.edu/crowdindex/recapi'
.get('https://new.lib.miamioh.edu/crowdindex/recapi', {
crossDomain: true
})
.then(res => {
var fetchRawData = parseInt(res.data.data.patrons);
var patronNumber = Math.abs(fetchRawData-20)/1.2;
<html>
<head>
<title>Sample PHP application for Wild Apricot API</title>
</head>
<body>
<p>
This application demonstrates how to use Wild Apricot API v2.
See http://help.wildapricot.com/display/DOC/API+Version+2 for detailed description of API.<br/>