Skip to content

Instantly share code, notes, and snippets.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
from math import sin, cos, pi
l = list()
for alpha in np.linspace(0,90,90):
alpha = alpha*pi/180 # plane angle in radians
R = np.matrix([ [cos(alpha) , 0, sin(alpha)],
[0 , 1, 0],
[-sin(alpha), 0, cos(alpha)] ])
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
------ Begin Next Fly'm ------
"Begin Fly'm (Mon Mar 03 18:15:46 2014)"
"Ion N","Events","TOF","Mass","Charge","X","Y","Z","Vt","B","Bx","By","Bz"
1,4,8.66971,99,1,69.2607,92.6018,1840,279.259,0.10056,-0.00732981,-0.0916362,-0.0407612
2,4,8.67301,99,1,69.7009,91.0858,1840,279.173,0.0992598,-0.00733109,-0.0902476,-0.040671
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2014-01-22T19:14:49.158429+00:00 heroku[web.1]: State changed from down to starting
2014-01-22T19:14:49.158064+00:00 heroku[web.1]: Unidling
2014-01-22T19:14:54.256439+00:00 heroku[web.1]: Starting process with command `gunicorn app:app`
2014-01-22T19:14:57.002691+00:00 app[web.1]: 2014-01-22 19:14:57 [2] [INFO] Starting gunicorn 18.0
2014-01-22T19:14:57.012043+00:00 app[web.1]: 2014-01-22 19:14:57 [2] [INFO] Listening at: http://0.0.0.0:28673 (2)
2014-01-22T19:14:57.017659+00:00 app[web.1]: 2014-01-22 19:14:57 [2] [INFO] Using worker: sync
2014-01-22T19:14:57.030090+00:00 app[web.1]: 2014-01-22 19:14:57 [7] [INFO] Booting worker with pid: 7
2014-01-22T19:14:57.421472+00:00 heroku[web.1]: State changed from starting to up
2014-01-22T19:14:58.176808+00:00 app[web.1]: Cubaofertas started
2014-01-22T19:14:58.503286+00:00 heroku[router]: at=info method=GET path=/favicon.ico host=cubaofertas.herokuapp.com request_id=ab0523ee-2bff-4ec4-af95-01bf3332715c fwd="62.89.170.19" dyno=web.1 connect=2ms service=38ms status=
hangup_static_xml = """
<Response>
<Hangup reason="rejected"/>
</Response>
"""
@app.route('/incoming_call', methods=['POST'])
def handle_call():
app.logger.info("Received request: {}".format(request))
2014-01-19T20:30:21.647337+00:00 app[web.1]: Received request: <Request 'http://cubaofertas.herokuapp.com/incoming_call' [POST]>
2014-01-19T20:30:21.647911+00:00 app[web.1]: Received call from: 5352844172
2014-01-19T20:30:21.755428+00:00 app[web.1]: Sending message *Comen 2 y paga 1*,Le Chansonnier,J # 257 e/ 13 y 15 Vedado | *70% descuento*,Rio Mar,3ra y Final # 11 La Puntilla Playa to: 5352844172
2014-01-19T20:30:21.795734+00:00 app[web.1]: Message response: {u'messages': [{u'status': u'0', u'remaining-balance': u'17.89800000', u'message-price': u'0.03400000', u'message-id': u'030000003087C099', u'network': u'36801', u'to': u'5352844172'}], u'message-count': u'1'}
2014-01-19T20:30:21.982893+00:00 heroku[router]: at=info method=POST path=/incoming_call host=cubaofertas.herokuapp.com request_id=0c0a2ef2-a5f9-49e8-a887-946cbdb520ff fwd="54.219.106.107" dyno=web.1 connect=3ms service=332ms status=200 bytes=52
2014-01-19T20:30:36.081406+00:00 app[web.1]: SMS Delivery Receipt: <Request 'http://cubaofertas.herokua
2014-01-19T19:31:15.749945+00:00 heroku[router]: at=info method=GET path=/ host=cubaofertas.herokuapp.com request_id=d2d7be18-94f6-49ef-af70-936643243397 fwd="98.248.237.110" dyno=web.1 connect=20ms service=16ms status=200 bytes=17
2014-01-19T19:34:39.907278+00:00 heroku[router]: at=info method=GET path=/ host=cubaofertas.herokuapp.com request_id=7c79e16d-ae62-4368-95e0-dbdf48646239 fwd="98.248.237.110" dyno=web.1 connect=8ms service=17ms status=200 bytes=17
2014-01-19T19:37:58.567302+00:00 app[web.1]: Received request: <Request 'http://cubaofertas.herokuapp.com/incoming_call' [POST]>
2014-01-19T19:37:58.567795+00:00 app[web.1]: Received call from: 185215890000
2014-01-19T19:37:58.698903+00:00 app[web.1]: Sending message *Comen 2 y paga 1*,Le Chansonnier,J # 257 e/ 13 y 15 Vedado | *70% descuento*,Rio Mar,3ra y Final # 11 La Puntilla Playa to: 185215890000
2014-01-19T19:37:58.750858+00:00 app[web.1]: Message response: {u'messages': [{u'error-text': u'Illegal Sender Address - rejected', u'network': u'US-FIXED'
@elyase
elyase / gui_installs.sh
Last active January 2, 2016 01:39
Script for automatic installation of GUIS in OSX
brew cask install copy spectacle keka google-chrome sublime-text3 flash skype xscope silverlight transmission mailbox tunnelblick vagrant virtualbox forklift