This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /usr/bin/env python3 | |
| from sys import argv | |
| import rospy | |
| def cb(msg, cb_args): | |
| counters, i = cb_args | |
| counters[i] += 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <ros/ros.h> | |
| #include <rosgraph_msgs/Clock.h> | |
| template <typename T> auto to_ros(const T &t) { | |
| auto dur = std::chrono::duration_cast<std::chrono::nanoseconds>(t); | |
| return std::make_pair(int32_t(std::chrono::duration_cast<std::chrono::seconds>(dur).count()), | |
| int32_t(dur.count() % 1000000000UL)); | |
| } | |
| int main(int argc, char **argv) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> | |
| <xs:simpleType name="SubstitutionType"> | |
| <xs:restriction base="xs:string"> | |
| <xs:pattern value="$\(anon .*|$\(arg .*|$\(dirname .*|$\(env .*|$\(eval .*|$\(find .*|$\(optenv .*"/> | |
| </xs:restriction> | |
| </xs:simpleType> | |
| <xs:simpleType name="BoolType"> | |
| <xs:union memberTypes="SubstitutionType"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Generated from CLion C/C++ Code Style settings | |
| BasedOnStyle: LLVM | |
| AccessModifierOffset: -4 | |
| AlignAfterOpenBracket: Align | |
| AlignConsecutiveAssignments: None | |
| AlignOperands: Align | |
| AllowAllArgumentsOnNextLine: false | |
| AllowAllConstructorInitializersOnNextLine: false | |
| AllowAllParametersOfDeclarationOnNextLine: false | |
| AllowShortBlocksOnASingleLine: Always |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| xmodmap -e "keysym Print = Menu" 2> /dev/null | |
| # Setup Paths | |
| 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}} | |
| # export LD_LIBRARY_PATH=/usr/local/cuda-11.7/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}:${HOME}/.local/opt/glibc/glibc232/lib | |
| export PATH=$PATH:/home/srathi/.spicetify | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| alias ros='touch ~/.roscomp && zsh ; exit' | |
| export FZF_DEFAULT_OPTS="--reverse" | |
| source /usr/share/doc/fzf/examples/key-bindings.zsh | |
| source /usr/share/doc/fzf/examples/completion.zsh | |
| if [ ! -f ~/.roscomp ] ; then | |
| source /home/srathi/.local/share/fzf-zsh-completion.sh # Breaks ROS Completion | |
| else | |
| rm ~/.roscomp | |
| fi |
NewerOlder