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 <chrono> | |
| #include <iostream> | |
| #include <string> | |
| class TimeIt { | |
| private: | |
| std::string m_name; | |
| std::chrono::time_point<std::chrono::high_resolution_clock> m_beg; | |
| public: |
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
| <launch> | |
| <node name="lanenet" pkg="lanenet" type="test_lanenet.py" | |
| launch-prefix="$(find lanenet)/launch/with_venv.sh $(find lanenet)"> | |
| </node> | |
| </launch> |
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
| from matplotlib.ticker import (AutoMinorLocator, MultipleLocator) | |
| ax.xaxis.set_major_locator(MultipleLocator(10)) | |
| ax.yaxis.set_major_locator(MultipleLocator(10)) | |
| ax.xaxis.set_minor_locator(AutoMinorLocator(5)) | |
| ax.yaxis.set_minor_locator(AutoMinorLocator(5)) | |
| ax.grid(which='major', color='#CCCCCC', linestyle='--') | |
| ax.grid(which='minor', color='#CCCCCC', linestyle=':') |
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/sh | |
| echo -e "import psutil\nwhile True: print('\\\\r{}%'.format(psutil.cpu_percent(interval=2)),end='');" | python3 |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!-- Using optional BOM (0xEF 0xBB 0xBF) --> | |
| <!-- From http://forum.openstreetmap.org/viewtopic.php?id=7186 --> | |
| <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" | |
| targetNamespace="http://openstreetmap.org/osm/0.6" | |
| xmlns="http://openstreetmap.org/osm/0.6"> | |
| <xs:element name="osm"> | |
| <xs:complexType> | |
| <xs:sequence> |
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
| IFS=$'\n'; for key in $(git config --global -l); do bash -c "git config --file=.gitconfig_new $(echo $key | tr '=' ' ')"; done | |
| # Chekc both files and replace .gitconfig if it looks good!. |
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
| sudo mkdir /usr/local/share/ca-certificates/cloudflare | |
| cd !$ | |
| sudo cp ~/Downloads/Cloudflare_CA.pem ./Cloudflare_CA_1.crt # Note that the extension has changed. | |
| sudo update-ca-certificates | |
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
| # python -m pip install rosbag rospkg pycryptodome gnupg | |
| import sys | |
| import Crypto | |
| sys.modules['Cryptodome'] = Crypto | |
| import rosbag |
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/python3 | |
| import sys | |
| from pathlib import Path | |
| import rosbag | |
| from tqdm import tqdm | |
| def main(): |
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/zsh | |
| set -euo pipefail | |
| # Arguments | |
| # -t | --tractor=TRACTOR_NAME | |
| # -r | --run=RUN_NAME | |
| DATA_HOME="${HOME}/kalibr_ws/sync_logs/" |