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
#!/bin/bash | |
# wget -O - https://gist.githubusercontent.com/danidask/4ac330977444b6c0edcbd99a3991cb83/raw | bash | |
set -e | |
echo 'Choose version:' | |
echo '1 - Desktop (Recommended): ROS, RViz, demos, tutorials.' | |
echo '2 - Base (Bare Bones): No GUI tools.' | |
read VERSION |
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
Installing Python 3.6 on Raspbian | |
================================= | |
As of January 2018, Raspbian does not yet include the latest Python release, Python 3.6. This means we will have to build | |
it ourselves, and here is how to do it. There is also an ansible role attached that automates it all for you. | |
1. Install the required build-tools (some might already be installed on your system). | |
.. code-block:: bash |
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
# https://xantorohara.github.io/led-matrix-editor/#003f0c0c0c0c0e0c|003f33061c30331e|001e33301c30331e|0078307f33363c38|001e3330301f033f|001e33331f03061c|000c0c0c1830333f|001e33331e33331e|000e18303e33331e|003e676f7b73633e | |
caracteres= [ | |
[0,0,0,0,0,0,0,0,], | |
[0,0,0,1,1,0,0,0,], | |
[0,0,0,1,1,0,0,0,], | |
[0,0,1,1,1,0,0,0,], | |
[0,0,0,1,1,0,0,0,], | |
[0,0,0,1,1,0,0,0,], | |
[0,0,0,1,1,0,0,0,], |
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
from flask import Flask, send_from_directory | |
from flask_restful import reqparse, abort, Api, Resource | |
import werkzeug | |
api = Api(app) | |
class AddImage(Resource): | |
def post(self): | |
parse = reqparse.RequestParser() | |
parse.add_argument('userfile', type=werkzeug.datastructures.FileStorage, location='files') |