Skip to content

Instantly share code, notes, and snippets.

Florian Golemo fgolemo

View GitHub Profile
fgolemo /
Last active Feb 7, 2019
RGB speed test for the Intel RealSense d435i
import time
import numpy as np
import pyrealsense2 as rs
pipeline = rs.pipeline()
config = rs.config()
config.enable_stream(, 640, 480, rs.format.rgb8, 60)
tests = 100
fgolemo /
Created Mar 7, 2018
How to install PyTorch v0.3.1 on RaspberryPi 3B - Tutorial

How to install PyTorch v0.3.1 on RaspberryPi 3B


Important I'd recommend you use at least a 16GB sd card. I tried it with an 8GB card and it baaaaarely fits. I had to uninstall a lot of packages and regularly clean up.

Go to and download the Raspbian Stretch image (either one).

Use Etcher (from to "burn" the image onto the SD card.

fgolemo /
Created Jan 29, 2018
How to enable OCaml support in Atom text editor

How to install OCaml support for Atom editor on Debian/Ubuntu systems

Install Atom (obviously).

Assuming you are on a Debian/Ubuntu system install these system packages:

sudo apt-get install ocaml-core opam ocp-indent

Then install merlin and initialize it: (no sudo here)

fgolemo /
Created Oct 12, 2017
Installing/compiling PyTorch on Duckiebot - tutorial v1

How to install PyTorch on the Duckiebot

PyTorch is a Python deep learning library that's currently gaining a lot of traction, because it's a lot easier to debug and prototype (compared to TensorFlow / Theano).

To install PyTorch on the Duckietbot you have to compile it from source, because there is no pro-compiled binary for ARMv7 / ARMhf available. This guid will walk you through the required steps.

Step 1: install dependencies and clone repository

First you need to install some additional packages. You might already have installed. If you do, that's not a problem.

fgolemo /
Created Sep 30, 2017
pygame play sample on keypress
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import time
import pygame
You can’t perform that action at this time.