This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
-- Function to retrieve console output | |
-- | |
local shell={} | |
function shell.capture(cmd) | |
local handle = assert(io.popen(cmd, 'r')) | |
local output = assert(handle:read('*a')) | |
handle:close() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
include_once("./secrets.php"); | |
$quantity_units = [ | |
"Cup" => [ | |
"name" => "Cup", | |
"description" => "", | |
"name_plural" => "Cups" | |
], | |
"Gallon" => [ | |
"name" => "Gallon", |