Install it first:
sudo apt-get update
sudo apt-get install pax
''' | |
Simple way to get valid integer raw_input in Python 2.7 | |
''' | |
def earn(): | |
try: | |
userInput = int(raw_input("Enter your earnings:")) | |
print "you earn: " + str(userInput) | |
except ValueError: | |
print "Please reenter an integer" | |
earn() |
https://twitter.com/nasa/ - 15.9 M | |
https://twitter.com/neiltyson - 5.14 M | |
https://twitter.com/elonmusk - 3.87 M | |
https://twitter.com/BillNye - 2.87 M | |
https://twitter.com/ProfBrianCox - 1.71 M | |
https://twitter.com/Cmdr_Hadfield - 1.58 M | |
https://twitter.com/ScienceChannel - 1.49 M | |
https://twitter.com/NSF - 802 K | |
https://twitter.com/science - 761 K | |
https://twitter.com/CassiniSaturn - 656 K |
import Algorithmia | |
client = Algorithmia.client("YOUR_API_KEY_GOES_HERE") | |
# this is an example image dataURL you get from: https://algorithmia.com/algorithms/deeplearning/DeepFilter | |
imageDataUrl = "data://.algo/deeplearning/DeepFilter/temp/filtered_image.jpg" | |
# this is the file handler for the image | |
fileHandler = client.file(imageDataUrl).getFile() |
import Algorithmia | |
client = Algorithmia.client("YOUR_API_KEY") | |
# We're going to use the deeplearning/ColorfulImageColorization algorithm as an Example | |
example_image_url = "https://en.wikipedia.org/wiki/Abraham_Lincoln#/media/File:A%26TLincoln.jpg" | |
algo_input = { | |
"image": example_image_url |