Skip to content

Instantly share code, notes, and snippets.

View lit-af's full-sized avatar

Alexandre Francoeur lit-af

  • Montreal, Canada
View GitHub Profile
xinput set-button-map "PixArt Dell MS116 USB Optical Mouse" 1 0 3 4 5 6 7
#include <armadillo>
using namespace arma {
vec v_twist = vec6({twist.linear.x, twist.linear.y, twist.linear.z, twist.angular.x, twist.angular.y, twist.angular.z});
// hasDuplicate
vec tmp = unique(v_twist);
if(size(tmp) != size(v_twist))
{
v_twist.zeros();
@lit-af
lit-af / gmail_signature.html
Created September 14, 2019 22:23
Capra's Gmail Signature
<table>
<tbody>
<tr>
<td><img src="https://www.etsmtl.ca/getmedia/48e82f0a-4f4e-4481-9114-c85faca1ffa7/capra-ets?width=160&amp;height=160&amp;ext=.jpg)" alt="capra-logo" width="160" height="160" /></td>
<td>
<table>
<tbody>
<tr>
<td><strong>Alexandre Francoeur | Capitaine</strong></td>
</tr>
@lit-af
lit-af / set_local_time.sh
Created August 26, 2019 17:34
Set local time linux
#!/usr/bin/env bash
timedatectl set-local-rtc 1
@lit-af
lit-af / .zshrc
Last active January 23, 2020 19:15
.zshrc addition to ease use of ROS
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/home/alex/.oh-my-zsh"
# Path to CLion
# alias CLion="/home/alex/Apps/clion-2018.3.4/bin/clion.sh"
# Set name of the theme to load --- if set to "random", it will