Skip to content

Instantly share code, notes, and snippets.

@keshavagrawal89
keshavagrawal89 / timeit.py
Created August 28, 2014 15:09
local rebinding fun ;)
__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)
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 "------------"