Skip to content

Instantly share code, notes, and snippets.

🕴
up

Saad saadbinakhlaq

🕴
up
Block or report user

Report or block saadbinakhlaq

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:9885664
#from beetle_simulation import *
import random
import csv
import numpy as np
def make_array(n, m):
'''(int, int) -> list of NoneType
Creates and returns an n by m list, filled with None.'''
array = [0] * n
View gist:8062371
app.route('/get_digits/', methods=['GET'])
def get_digits():
if not digits:
res = plivo.Response()
get_digits = plivo.GetDigits(action='http://162.209.56.40:5006/get_digits_test/
method='GET')
get_digits.addSpeak(body='Press one for sales, press two for support')
res.add(get_digits)
return Response(str(res), mimetype='text/xml')
elif digits == '1':
View gist:8062345
<Response>
<GetDigits action="http://example.com/get_digits_test/" method="GET">
<Speak>Please enter your 4-digit pin number, followed by the hash key</Speak>
</GetDigits>
<Speak>Input not received. Thank you</Speak>
</Response>
View gist:6443879
>>> class Parent(object):
... def __init__(self, name, age):
... self.name = name
... self.age = age
... def rep(self):
... print self.name
... print self.age
>>> class Child(Parent):
You can’t perform that action at this time.