Skip to content

Instantly share code, notes, and snippets.

@redheli
redheli / docker
Created March 31, 2024 08:04 — forked from michalpelka/docker
KISS-ICP Docker
# docker build -t kiss-icp -f Dockerfile .
# rocker --x11 --nvidia kiss-icp --volume /home/michal/Downloads/:/data/
# kiss_icp_pipeline --visualize --topic /os1_cloud_node/points /data/rooster_2020-03-10-10-36-30_0-006.bag
ARG ROS_DISTRO=noetic
FROM ros:$ROS_DISTRO-ros-core
SHELL ["/bin/bash", "-c"]
RUN apt-get update && apt-get install -y \
@redheli
redheli / featuresAt-mapbox-gl-js.md
Created May 8, 2016 14:08 — forked from hallahan/featuresAt-mapbox-gl-js.md
I'm going through the code execution of `featuresAt` in Mapbox GL JS. This is to take notes and understand how all of this works.

How FeaturesAt Works in MapboxGL JS

I'm going through the code execution of featuresAt in Mapbox GL JS. This is to take notes and understand how all of this works.

Initiating the feature search based on the example on Mapbox GL API Docs...

map.on('click', function(e) {
@redheli
redheli / osgeo_compile.sh
Created November 13, 2015 04:01 — forked from robinkraft/osgeo_compile.sh
compile and install GEOS, PROJ4 and GDAL from source on Ubuntu 12.0.4
# Compile/install GEOS. Taken from:
# http://grasswiki.osgeo.org/wiki/Compile_and_Install_Ubuntu#GEOS_2
cd /tmp
wget http://download.osgeo.org/geos/geos-3.4.2.tar.bz2
bunzip2 geos-3.4.2.tar.bz2
tar xvf geos-3.4.2.tar
cd geos-3.4.2
@redheli
redheli / togeo.py
Created July 24, 2014 14:57 — forked from tmcw/togeo.py
import subprocess
import sys, re
MERC = '+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs'
infile = sys.argv[1]
info_output = subprocess.Popen(['gdalinfo', infile], stdout=subprocess.PIPE).communicate()[0]
size_is_re = re.compile('Size is (?P<width>\d+), (?P<height>\d+)')
size_is = filter(lambda x: x, map(lambda x: size_is_re.match(x), info_output.split('\n')))