chrisfleming / masscatering Goto Github PK
View Code? Open in Web Editor NEWAn assistant for working out big shops
An assistant for working out big shops
Argument Parsing for Verbose or minimal terminal output
Allow for food.yaml to refine units to present ingredients in the shopping list, but maintain the original units in the recipe.
This issue is to discuss the proposal of a new YAML file structure, to facilitate
The current example menu YAML file structure is:
recipe_1:
day_1: num_people
day_2: num_people
recipe_2:
day_1: num_people
day_2: num_people
...
New proposed example structure
day_1:
meal_1:
recipe_1: num_people
notes: Note to show at bottom of markdown recipe file
recipe_2: num_people
recipe_3: num_people
no_print: True
meal_2:
recipe_1: num_people
notes: Note to show at bottom of markdown recipe file
recipe_4: num_people
notes: Note to show at bottom of markdown recipe file
recipe_5: num_people
...
The ability to add notes to a specific recipe will increase the flexibility for one-off recipe changes (ie. Make mash potato vegan) rather than having to create many copies of very similar recipes.
The no-print value is not required, but may save producing a .md file for generic items ie. generic hostel list, or per-person per day items.
Thoughts and opinions welcome
Things that were needed
pint expression parsing will parse strings, extract the units and values, and perform the unit combinations itself
This is instead of using "amount_units" function - as expect the pint project regex to be more effective than a small function written here
Think we did 7ish kg in the end?
Direct menu item names currently collide with recipe names, and cause crash.
eg. in menu
rice: 1kg
This will cause crash as line 150 -153 will cause it to read recipe, rather than parse as ingredient directly.
Move unit registry to separate definition file,
Using
>>> ureg.load_definitions('/your/path/to/my_def.txt')
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.