Skip to content

Instantly share code, notes, and snippets.

View OTL's full-sized avatar

Takashi Ogura OTL

View GitHub Profile
@OTL
OTL / starship.toml
Created June 25, 2021 03:23
starship config (~/.config/starship.toml)
add_newline = false
[directory]
truncate_to_repo = false
@OTL
OTL / .bashrc
Created December 24, 2020 02:26
.bashrc for git
if [ -f /etc/bash_completion.d/git-prompt ]; then
export PS1='\[\033[01;32m\]\u@\h\[\033[01;33m\] \w$(__git_ps1) \n\[\033[01;34m\]\$\[\033[00m\] '
else
export PS1='\[\033[01;32m\]\u@\h\[\033[01;33m\] \w \n\[\033[01;34m\]\$\[\033[00m\] '
fi
@OTL
OTL / test.cpp
Last active July 2, 2018 11:08
c++は難しい
#include <iostream>
class Widget {
public:
explicit Widget(int a, int b) : m_a(a), m_b(b) {
std::cout << "construct" << std::endl;
}
void echo() const {
std::cout << m_a << std::endl;
}
@OTL
OTL / mkmarkers.sh
Last active August 29, 2015 14:12
ArUco用マーカーを一斉に作る ref: http://qiita.com/OTL/items/798e21ba54c57693eab8
#!/bin/bash
# create aruco markers in one jpeg file
# requirement: imagemagick, aruco
INITIAL_MARKER_ID=100
MARKER_NUM=20
MARKER_PIXEL_SIZE=100
OUTPUT_FILE=output.jpg
MARKER_BORDER=50
OUTPUT_DIR=/tmp/aruco_tpm
#!/usr/bin/env python
import time
import rospy
from hrpsys_ros_bridge.srv import *
import math
from uarm.msg import Joints
from std_msgs.msg import Bool
http://www.ubuntuupdates.org/ppa/getdeb_games?dist=precise
wget -q -O - http://archive.getdeb.net/getdeb-archive.key | sudo apt-key add -
sudo sh -c 'echo "deb http://archive.getdeb.net/ubuntu precise-getdeb games" >> /etc/apt/sources.list.d/getdeb.list'
sudo apt-get install autoconf-archive libglfw-dev libsoil-dev libglm-dev libbullet-dev libglew1.6-dev libtool
autoreconf -i
失敗しても
autoreconf -i
./configure
@OTL
OTL / .tmux.conf
Last active May 13, 2021 01:43
my .tmux.conf
#set-window-option -g utf8 on
set-window-option -g mode-keys emacs
#set-option -g mouse-select-pane on
set-option -g prefix C-z
set-option -g status-bg magenta
set-option -g status-fg white
set-option -g set-titles on
#set-option -g set-titles-string '#H:#S.#I.#P #W #T' # window number,program name,active (or not)
set-option -g set-titles-string '#H:#W #T' # window number,program name,active (or not)
set-option -g pane-active-border-fg cyan