#test
This file contains 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
# Cargo Build Stage | |
#FROM rust:1.35 as build | |
FROM rust@sha256:9fcf1c9d04e10f1c882041da280e3466a5d6f57b27f4cfd8b1ff06f34419ed36 as build | |
RUN apt-get update | |
RUN apt-get install musl-tools -y | |
RUN rustup target add x86_64-unknown-linux-musl |
I hereby claim:
- I am jamesproud on github.
- I am jamesproud (https://keybase.io/jamesproud) on keybase.
- I have a public key ASCyBSZUeWebHmjvvkZh0CdFLWKm7y8ZbUNqoRXvkPb4Hwo
To claim this, I am signing this object:
This file contains 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 sys | |
reload(sys) | |
sys.setdefaultencoding('utf-8') |
This file contains 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
{ | |
"auto_complete_commit_on_tab": true, | |
"auto_complete_delay": 300, | |
"caret_style": "phase", | |
"close_windows_when_empty": false, | |
"color_scheme": "Packages/Color Scheme - Default/Sunburst.tmTheme", | |
"draw_white_space": "all", | |
"ensure_newline_at_eof_on_save": true, | |
"file_exclude_patterns": | |
[ |
This file contains 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 hmac | |
import base64 | |
import hashlib | |
# simplejson is available at: http://pypi.python.org/pypi/simplejson/ | |
import simplejson as json | |
class RequestSigner(object): | |
def verify_and_load_signed_request(self, signed_request, secret): | |
"""Verify the signature, and return decoded data from a signed_request value""" | |
try: |