Skip to content

Instantly share code, notes, and snippets.

@GeeF
GeeF / damazon.py
Last active July 31, 2018 20:28 — forked from zakx/damazon.py
Updated for py3
#!/usr/bin/python3
# setup: pip install requests beautifulsoup4
from decimal import Decimal
import requests
from bs4 import BeautifulSoup
import sys
# Session setup
@GeeF
GeeF / router_dirty1.cpp
Last active August 29, 2015 14:11
Seidenstrasse arduino router dirty 1
#include <Bounce2.h>
#define RUNSTOP_DELAY 200 // Delay in ms, before runstops will be active after motor command
#define RUNSTOP_LEFT_PIN 12 // pull-up on 13 will not work
#define RUNSTOP_RIGHT_PIN 11
#define RUNSTOP_CENTER_PIN 10
#define BUTTON_RIGHT_PIN 9
#define BUTTON_LEFT_PIN 8
@GeeF
GeeF / gist:7545344
Created November 19, 2013 13:27
Zeitfresser
// Use cluster extraction to get rid of the outliers of the segmented table
pcl::search::KdTree<pcl::PointXYZRGB>::Ptr treeTable (new pcl::search::KdTree<pcl::PointXYZRGB>);
treeTable->setInputCloud (cloud_plane);
std::vector<pcl::PointIndices> table_cluster_indices;
pcl::EuclideanClusterExtraction<pcl::PointXYZRGB> ecTable;
ecTable.setClusterTolerance (ecClusterTolerance); // 2cm
ecTable.setMinClusterSize (ecMinClusterSize);
ecTable.setMaxClusterSize (ecMaxClusterSize);
ecTable.setSearchMethod (treeTable);
ecTable.setInputCloud (cloud_plane);