Skip to content

Instantly share code, notes, and snippets.

@mheadd
Created January 14, 2011 16:03
Show Gist options
  • Select an option

  • Save mheadd/779793 to your computer and use it in GitHub Desktop.

Select an option

Save mheadd/779793 to your computer and use it in GitHub Desktop.
PennApps Mobile Demo Applications
if(currentCall.channel == 'VOICE') {
say('Hello there Penn Apps participants and guests.');
say('Even though I use the ' + currentCall.network + ' network, I can still get jiggy.', {voice: 'simon'});
say('Have fun at Penn Apps mobile.', {voice: 'kate'});
say('Adiós amigos.', {voice: 'carlos'});
}
else if(currentCall.channel == 'TEXT') {
say('You sent "' + currentCall.initialText + '" on the '+ currentCall.network + ' network.');
}
<?php
$places = array(
'Old City' => 'The Plow and the Stars',
'South Street' => 'South Street Diner',
'University City' => 'Abners',
'Penns Landing' => 'Buddakan'
);
say("Hello there.");
$response = ask("Where do you want to go tonight?",
array("choices" => "Old City, South Street, University City, Penns Landing")
);
say("Sweet. I'll see you at {$places[$response->value]} at 6pm.");
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment