Skip to content

Instantly share code, notes, and snippets.

View ac130kz's full-sized avatar
🎯
Focusing

Mikhail Krassavin ac130kz

🎯
Focusing
  • Astana, Kazakhstan
View GitHub Profile
-- DateDiff function that returns the difference between two timestamps in the given date_part (weeks, months, etc) as an integer
-- This behaves like the DateDiff function in warehouses like Redshift and Snowflake, which count the boundaries between date_parts
CREATE OR REPLACE FUNCTION datediff (date_part VARCHAR(30), start_t TIMESTAMP, end_t TIMESTAMP)
RETURNS INT AS $diff$
DECLARE
years INT = 0;
days INT = 0;
hours INT = 0;
minutes INT = 0;
@ac130kz
ac130kz / AdList.txt
Last active July 8, 2020 18:08 — forked from slmingol/AdList.txt
Ad Block List
https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
https://mirror1.malwaredomains.com/files/justdomains
https://sysctl.org/cameleon/hosts
https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt
https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt
https://hosts-file.net/ad_servers.txt
https://mirror1.malwaredomains.com/files/justdomains
https://easylist.to/easylist/easylist.txt
https://easylist.to/easylist/easyprivacy.txt
https://easylist.to/easylist/fanboy-annoyance.txt
@ac130kz
ac130kz / IntelliJ_IDEA__Perf_Tuning.txt
Last active May 6, 2020 11:22 — forked from P7h/IntelliJ_IDEA__Perf_Tuning.txt
Performance tuning parameters for IntelliJ IDEA. Add these params in idea64.exe.vmoptions or idea.exe.vmoptions file in IntelliJ IDEA. If you are using JDK 8.x, please knock off PermSize and MaxPermSize parameters from the tuning configuration.
# proper AA fonts
-Dawt.useSystemAAFontSettings=on
-Dswing.aatext=true
# from master
-server
-Xms2048m
-Xmx3096m
-XX:NewSize=512m
-XX:MaxNewSize=512m

The document provides description on calibration of three Kinect for Microsoft sensors connected to one computer with several usb controllers. Three cameras setup is shown below:

Figure 1

Intrinsic, extrinsic, and Kinect2Kinect calibration is performed to know the position of each sensor in the space. Our setup is ROS Indigo within Ubuntu 14.04.

ROS Indigo

sudo apt update && sudo apt install software-properties-common python-software-properties usbutils git cmake build-essential -y
sudo add-apt-repository main