This file contains hidden or 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
| __author__ = 'keshavagrawal' | |
| import math | |
| import timeit | |
| def this_one_must_be_fast(sin=math.sin, cos=math.cos): | |
| for i in xrange(10000): | |
| sin(5) | |
| cos(5) |
This file contains hidden or 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 plivo | |
| import datetime | |
| cloud = plivo.RestAPI(auth_id='MAOGM1MMQXODBJNZE1ZD', auth_token='ZjI1YWI0NzJlODM3NmJkNTMwNjJmZDE5MTgyMDU3') | |
| print "Triggering now: %s" % datetime.datetime.now() | |
| print "Response" + str(cloud.make_call({'from':'1234567890','to':'16503364782','answer_url':'https://dl.dropboxusercontent.com/u/54579287/conference.xml','callback_url':'http://some_url/', 'callback_method':'GET'})) | |
| print "Triggered %s" % str(datetime.datetime.now()) | |
| print "------------" |