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
from twilio.rest import TwilioRestClient | |
client = TwilioRestClient() | |
for msg in client.messages.iter(to='74310', date_sent='2015-09-04'): | |
client.calls.create(to=msg.from_, from_='+16103475323', | |
url='http://gnarly.io/pennappsvoice.xml') |
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 | |
$client = new Services_Twilio($AccountSid, $AuthToken); | |
$messageSIDs = array("Insert", "Array of", "Message SIDs", "here"); | |
foreach ($messageSIDs as $sid) { | |
$msg = $client->account->messages->get($sid); | |
if ($msg->status == "undelivered") { |
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
candy = 'snickers' | |
right = True | |
while right: | |
answer = (raw_input('whats your favorite candy? ')) | |
if answer == candy: | |
print 'yes' | |
right = False | |
elif answer == 'chocolate' or answer == 'food': | |
print 'close. try again' |
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
$(document).ready(function(){ | |
var total = $("div[id^='0']").length; | |
var count = 0; | |
var click_array = []; | |
var run = function(){ | |
$('td>div').each(function() { | |
$(this).one( "click", function() { | |
$( this ).css( "background-color", "blue" ); | |
click_array.push(this); |
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
User Friendliness: | |
Display more restaurants if only 2 or 3 have different cuisine | |
Display order number when order is placed, and total price. | |
Display prices of meals when displaying meals | |
Display top 5 matches | |
Bugs: | |
Bot gets killed for unknown reasons |
NewerOlder