These instructions are based on Mistobaan's gist but expanded and updated to work with the latest tensorflow OSX CUDA PR.
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
| #!/bin/bash | |
| openssl x509 -in "development.cer" -inform der -outform pem -out "development.cert.pem" | |
| cat "development.cert.pem" "development.key.pem" > "development.pem" | |
| openssl x509 -in "staging.cer" -inform der -outform pem -out "staging.cert.pem" | |
| cat "staging.cert.pem" "staging.key.pem" > "staging.pem" | |
| openssl x509 -in "production.cer" -inform der -outform pem -out "production.cert.pem" | |
| cat "production.cert.pem" "production.key.pem" > "production.pem" |
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
| # Copyright 2015-present Scikit Flow Authors. All Rights Reserved. | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 | |
| # | |
| # Unless required by applicable law or agreed to in writing, software | |
| # distributed under the License is distributed on an "AS IS" BASIS, |
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
| syntax = "proto3"; | |
| option java_package = "com.ivanfoong.grpc.examples"; | |
| package auth; | |
| service Authentication { | |
| rpc Login(LoginRequest) returns (LoginResponse) {} | |
| } |
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
| FROM alpine:3.3 | |
| RUN apk add --update ca-certificates | |
| ADD search /bin/tweet-search | |
| ENTRYPOINT ["/bin/tweet-search"] | |
| CMD ["vonze21"] |
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
| FROM alpine:3.3 | |
| RUN apk add --update ca-certificates | |
| ADD stream /bin/tweet-stream | |
| ENTRYPOINT ["/bin/tweet-stream"] |
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
| #!/bin/bash | |
| mkdir /workspace | |
| docker run -it --rm=true -v /workspace:/notebooks -p 8888:8888 b.gcr.io/tensorflow/tensorflow /run_jupyter.sh /notebooks |
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 urllib | |
| import json | |
| class Barcher(object): | |
| """ | |
| A simple client library for the Clash of Clans API in python | |
| """ | |
| def __init__(self, token): | |
| import requests | |
| self.requests = requests |
Testing Documentations https://stripe.com/docs/testing
Visa number for testing: 4242424242424242
Create customer using stripe token https://stripe.com/docs/api/python#create_customer
import stripe
stripe.api_key = "sk_test_BQokikJOvBiI2HlWgH4olfQ2"
token = "tok_17VTUj2eZvKYlo2Cuy1YdGXL"
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 matplotlib.pyplot as pyplot | |
| import numpy as np | |
| import matplotlib.image as mpimg | |
| import urllib2 | |
| %matplotlib inline | |
| img_url = 'http://matplotlib.org/_images/stinkbug.png' | |
| img = mpimg.imread(urllib2.urlopen(img_url)) |