Skip to content

Instantly share code, notes, and snippets.

Stefan Fabian StefanFabian

Block or report user

Report or block StefanFabian

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@StefanFabian
StefanFabian / CPP Code.cpp
Last active Apr 26, 2019
doT C++ Code file template for the VSCode extension File Template Manager
View CPP Code.cpp
{{
let date = new Date($.DATE);
let date_string = date.getDate().toString().padStart(2, '0') + '.' + (date.getMonth() + 1).toString().padStart(2, '0') + '.' + date.getFullYear();
let paths = $.DIR.split('/');
let index = paths.lastIndexOf('src');
let has_ns = index > 0 && index < paths.length;
let ns = "";
if (has_ns) {
ns = paths[index - 1];
}
@StefanFabian
StefanFabian / CPP Header.h
Last active Apr 26, 2019
doT C++ Header file template for the VSCode extension File Template Manager
View CPP Header.h
{{
let date = new Date($.DATE);
let date_string = date.getDate().toString().padStart(2, '0') + '.' + (date.getMonth() + 1).toString().padStart(2, '0') + '.' + date.getFullYear();
let paths = $.DIR.split('/');
let index = paths.lastIndexOf('include');
let has_ns = index >= 0 && index < paths.length;
let ns = "";
let include_guard = $.NAME.toUpperCase() + '_H';
if (has_ns) {
ns = paths[index + 1];
@StefanFabian
StefanFabian / .anaconda_with_ros_wrapper.bash
Last active Nov 8, 2019
Bash script to use Anaconda with ROS
View .anaconda_with_ros_wrapper.bash
### This script wraps all executables in the anaconda bin folder so that they can be used without adding Anaconda
### to the path which would break some functionality of ROS (Robot Operating System)
###
### The commands e.g. jupyter notebook will cause the script to add anaconda to the path, start jupyter notebook
### and after jupyter notebook terminated remove anaconda from the path again
###
### Notable commands:
### * release-the-snake Adds conda to the path and removes all aliases defined by this script
### Conda will stay in the PATH until the end of the session (terminal is closed) or
### until "cage-the-snake" is called
You can’t perform that action at this time.