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
| class Validate(tornado.web.RequestHandler): | |
| @tornado.web.asynchronous | |
| def get(self): | |
| signature = self.request.headers.get('X-Twilio-Signature') | |
| AUTH_TOKEN = 'xxxxxxxxxxxxxxxxxxxxxxxxxxx' | |
| validator = RequestValidator(AUTH_TOKEN) | |
| url = self.request.uri | |
| var = self.request.arguments | |
| for x in var: | |
| var[x] = ''.join(var[x]) |
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 os | |
| import tornado.httpserver | |
| import tornado.ioloop | |
| import tornado.web | |
| from twilio import twiml | |
| from oauth2client.client import SignedJwtAssertionCredentials | |
| from twilio.util import RequestValidator | |
| class ValidateHandler(tornado.web.RequestHandler): |
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
| #!/usr/bin/env python | |
| import tornado.httpserver | |
| import tornado.websocket | |
| import tornado.ioloop | |
| import tornado.web | |
| from datetime import datetime | |
| import sched, time | |
| class WSHandler(tornado.websocket.WebSocketHandler): |
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 dropbox | |
| import tinys3 | |
| import tempfile | |
| from string import Template | |
| import random | |
| import string | |
| S3_ACCESS_KEY = "" | |
| S3_SECRET_KEY= "" |
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
| GET /plus/v2whitelisted/people/lookup?includePeople=1&includeGal=1&type=phone&fields=kind,items(id,metadata(objectType,plusPageType,attributions),names,phoneNumbers(value,type,formattedType,canonicalizedForm),addresses(value,type,formattedType),images(url,metadata(container)),urls(value),placeDetails)&includePlaces=1&callType=outgoing&id=%2B441934834343 HTTP/1.1 | |
| Authorization: Bearer xxxxxxxxxREDACTEDxxxxxxxxxxxxx | |
| User-Agent: Dalvik/2.1.0 (Linux; U; Android 6.0.1; Nexus 6 Build/MMB29S) | |
| Host: www.googleapis.com | |
| Connection: Keep-Alive | |
| Accept-Encoding: gzip | |
| HTTP/1.1 200 OK | |
| Expires: Fri, 29 Jan 2016 12:47:28 GMT |
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
| wget http://ports.ubuntu.com/pool/universe/c/chromium-browser/chromium-browser-l10n_48.0.2564.82-0ubuntu1.1222_all.deb | |
| wget http://ports.ubuntu.com/pool/universe/c/chromium-browser/chromium-browser_48.0.2564.82-0ubuntu1.1222_armhf.deb | |
| wget http://ports.ubuntu.com/pool/universe/c/chromium-browser/chromium-codecs-ffmpeg-extra_48.0.2564.82-0ubuntu1.1222_armhf.deb | |
| sudo dpkg -i chromium-codecs-ffmpeg-extra_48.0.2564.82-0ubuntu1.1222_armhf.deb | |
| sudo dpkg -i chromium-browser-l10n_48.0.2564.82-0ubuntu1.1222_all.deb chromium-browser_48.0.2564.82-0ubuntu1.1222_armhf.deb |
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
| # 1900x1200 at 32bit depth, DMT mode | |
| disable_overscan=1 | |
| framebuffer_width=1900 | |
| framebuffer_height=1200 | |
| framebuffer_depth=32 | |
| framebuffer_ignore_alpha=1 | |
| hdmi_pixel_encoding=1 | |
| hdmi_group=2 |
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
| curl "https://rest.nexmo.com/sms/json?api_key=XXXXXXXX&api_secret=XXXXXXX&to=447700900900&from=Demo&type=unicode&text=Nexmo+can+send+emoji🙌" |
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
| { | |
| "test": "test" | |
| } |
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
| [{ | |
| "timestamp": "28/07/16 22:35", | |
| "rating": -1 | |
| }, { | |
| "timestamp": "28/07/16 22:19", | |
| "rating": 0 | |
| }, { | |
| "timestamp": "28/07/16 22:34", | |
| "rating": 0 | |
| }, { |