Skip to content

Instantly share code, notes, and snippets.

Absolutely — let’s pull everything together into a clean, structured, detailed summary you can use to create tickets, plan your architecture, and start building. I’ll break it into four major sections:
## High‑Level System Summary
Your friend runs a weekly meal-prep business. Each week she creates a menu composed of meals, snacks, and other item categories. Customers receive a notification (email or SMS) when the weekly menu is published. They click a link, authenticate via a passwordless login (email or phone verification code), and submit their order quantities for each item.
The system needs:
- A passwordless login system for customers
- A separate admin login for your Jami
- Admin tools to create products, categories, and weekly menus
- Customer tools to view the weekly menu and submit orders
@thorbaert
thorbaert / say-numbers.js
Created February 18, 2024 22:36
saying number in english
/*
Hey Brandon your hint to try to use math with the number really opened the up the answers to this question.
Currently trillion is my upper limit although it is pretty easy to extend this as this is recursive.
*/
const onesMap = { [0]: '', [1]: 'One', [2]: 'Two', [3]: 'Three', [4]: 'Four', [5]: 'Five', [6]: 'Six', [7]: 'Seven', [8]: 'Eight', [9]: 'Nine' };
const exceptionsMap = { [10]: 'Ten', [11]: 'Eleven', [12]: 'Twelve', [13]: 'Thirteen', [14]: 'Fourteen', [15]: 'Fifteen', [16]: 'Sixteen', [17]: 'Seventeen', [18]: 'Eighteen', [19]: 'Nineteen' };
const tensMap = { [1]: 'Ten', [2]: 'Twenty', [3]: 'Thirty', [4]: 'Forty', [5]: 'Fifty', [6]: 'Sixty', [7]: 'Seventy', [8]: 'Eighty', [9]: 'Ninety' };
const trillion = 1000000000000;
constructor() {
super();
this.onCooldownMap = {}
//object containing the cooldown times for the commands. new commands would need a new property added here.
this.coodownTimes = {
'!home': 1000 * 60 * 15,
'!warp': 1000 * 60 * 15,
'Location teleporting': 1000 * 60 * 30
}
@thorbaert
thorbaert / gist:3ce260a4db614e01d5e2d31e18eebfba
Created April 27, 2017 15:51
Output from terminal from webpack
PS C:\Users\Jbgho\devmtn\angular2\angular4-node> npm run build
> angular4-node@0.0.0 build C:\Users\Jbgho\devmtn\angular2\angular4-node
> del-cli public/js/app && webpack --config webpack.config.dev.js --progress --profile --watch
0% compiling
Webpack is watching the files…
10% building
modules 0/1 modules 1 active ...lar2\angular4-node\assets\app\main.ts
[at-loader] Using typescript@2.2.2 from typescript and "tsconfig.json" from C:\Users\Jbgho\devmtn\angular2\angular4-node/tsconfig.json.
So here is the array I get that i was trying to nest...
```
[ '<DESCRIBE::>Walk Validator',
'<IT::>should return false if walk is too short',
'<PASSED::>Test Passed',
'<PASSED::>Test Passed',
'<COMPLETEDIN::>1',
'<IT::>should return false if walk is too long',
'<PASSED::>Test Passed',
'<PASSED::>Test Passed',