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 |
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
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
<?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
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
import requests | |
from flask import Flask | |
from flask import request, send_from_directory | |
from twilio import twiml | |
from martianify import martianify | |
UPLOAD_FOLDER = '/Users/sagnew/Test/Martian/' | |
# App declaration and configuration |
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
npm WARN package.json gameboy@0.1.0 No repository field. | |
npm WARN package.json gameboy@0.1.0 No license field. | |
| | |
> canvas@1.3.1 install /Users/sagnew/Test/IPM/gameboy/node_modules/canvas | |
> node-gyp rebuild | |
SOLINK_MODULE(target) Release/canvas-postbuild.node | |
ld: library not found for -lgcc_s.10.5 | |
clang: error: linker command failed with exit code 1 (use -v to see invocation) | |
make: *** [Release/canvas-postbuild.node] Error 1 |
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
// We will be using jQuery to manipulate DOM elements for the chat. | |
var $ = require('jquery'); | |
// Manages the state of our access token we got from the server | |
var accessManager; | |
// Our interface to the IP Messaging service | |
var messagingClient; | |
// The object we are going to export as this module |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Yay Video</title> | |
</head> | |
<body> | |
<div id="eddie"></div> | |
<div id="sam"></div> | |
<script src="https://media.twiliocdn.com/sdk/js/common/v0.1/twilio-common.min.js"></script> |
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 flask import Flask, request | |
from twilio import twiml | |
app = Flask(__name__) | |
@app.route('/sms', methods=['POST']) | |
def sms(): | |
number = request.form['From'] |
OlderNewer