Skip to content

Instantly share code, notes, and snippets.

@surajRathi
surajRathi / pc_publisher.h
Created October 23, 2023 11:06 — forked from srathi-monarch/pc_publisher.h
Point Cloud Publishing with sensor_msgs::PointCloudIterator
#include <memory>
#include <tuple>
#include <ros/ros.h>
#include <sensor_msgs/PointCloud2.h>
#include <sensor_msgs/point_cloud2_iterator.h>
template <bool RGB = false> class PCPublisher {
@surajRathi
surajRathi / time_it.hpp
Created October 23, 2023 11:06 — forked from srathi-monarch/time_it.hpp
Simple scope based code execution time printer.
#include <chrono>
#include <iostream>
#include <string>
class TimeIt {
private:
std::string m_name;
std::chrono::time_point<std::chrono::high_resolution_clock> m_beg;
public:
@surajRathi
surajRathi / time_it.hpp
Created October 23, 2023 11:06 — forked from srathi-monarch/time_it.hpp
Simple scope based code execution time printer.
#include <chrono>
#include <iostream>
#include <string>
class TimeIt {
private:
std::string m_name;
std::chrono::time_point<std::chrono::high_resolution_clock> m_beg;
public:
@surajRathi
surajRathi / .zshrc.local
Last active July 14, 2023 20:17 — forked from srathi-monarch/.zshrc.local.zsh
Zsh config to be used on top of GRML zsh config. Includes ros, fzf.
export PATH="${PATH}:${HOME}/.local/bin:${HOME}/.cargo/bin"
# export PATH=/usr/local/cuda-11.7/bin${PATH:+:${PATH}}
# export LD_LIBRARY_PATH=/usr/local/cuda-11.7/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
# HISTFILE="$HOME/.zsh_history"
HISTSIZE=10000000
SAVEHIST=10000000
# setopt BANG_HIST # Treat the '!' character specially during expansion.
setopt EXTENDED_HISTORY # Write the history file in the ":start:elapsed;command" format.
setopt INC_APPEND_HISTORY # Write to the history file immediately, not when the shell exits.