Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Alexa, ask me about PHP

Alexa, ask me about PHP

Omni Adams

July 11, 2017
Tweet

More Decks by Omni Adams

Other Decks in How-to & DIY

Transcript

  1. if($extractType == ‘LME') { $extract = 38; } elseif ($extractType

    == ‘DME') { $extract = 45; } elseif (is_numeric($extractType)) { $extract = $extractType; } if (is_numeric($target_gu) && is_numeric($total_gu) && is_numeric($extract)) { return ($target_gu - $total_gu) / $extract; } else { return null; }
  2. how much DME to go from ten sixty to ten

    ninety {“intents”: [{ “slots”: [ {“name”: “extract”, “type”: “LIST_OF_EXTRACT_TYPES”}, {“name”: “expected”, “type”: “AMAZON.FOUR_DIGIT_NUMBER”}, {“name”: “actual”, “type”: “AMAZON.FOUR_DIGIT_NUMBER”} ], “intent”: “BrewCalcIntent” }]}