3 ms·
What I love about this is the way half loaves are found, simple but really clever. Search for "bread" with the correct category, and then filter out all result
by freeCandy 5y ago
What I love about this is the way half loaves are found, simple but really clever.
Search for "bread" with the correct category, and then filter out all results that are greater than 300 grams. It works out because all the artisanal bread are excluded with a regex.
https://github.com/prashantbaid/halfloaf/blob/master/lambda/halfloaves.js https://github.com/prashantbaid/halfloaf/blob/master/lambda/...
- vishnugupta 4y agoThanks :-D. So we now have an (albeit Lambda) API over an API!! This keeps getting better. https://brc5og74x0.execute-api.ap-south-1.amazonaws.com/prod/findhalfloaves?lat=12.9715987&lng=77.5945627 https://brc5og74x0.execute-api.ap-south-1.amazonaws.com/prod...