Skip to content

Instantly share code, notes, and snippets.


Saad saadbinakhlaq

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='
get_digits.addSpeak(body='Press one for sales, press two for support')
return Response(str(res), mimetype='text/xml')
elif digits == '1':
View gist:8062345
<GetDigits action="" method="GET">
<Speak>Please enter your 4-digit pin number, followed by the hash key</Speak>
<Speak>Input not received. Thank you</Speak>
View gist:6443879
>>> class Parent(object):
... def __init__(self, name, age):
... = name
... self.age = age
... def rep(self):
... print
... print self.age
>>> class Child(Parent):
You can’t perform that action at this time.