Skip to content

Instantly share code, notes, and snippets.

@danidask
danidask / ros2_foxy.sh
Last active September 26, 2022 08:28
Install ROS2 Foxy in ubuntu 20
#!/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
@danidask
danidask / 3.6.5
Last active January 26, 2019 20:13 — forked from dschep/raspbian-python3.6.rst
Installing Python 3.6 on Raspbian
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
@danidask
danidask / rotar.py
Created July 14, 2018 19:45
Rotar imagenes para matriz de leds
# 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,],
@danidask
danidask / app.py
Created January 4, 2018 13:52
phonk temp sever
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')