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
add_newline = false | |
[directory] | |
truncate_to_repo = false |
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
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 |
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 <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; | |
} |
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
#!/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 |
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
#!/bin/sh | |
echo "165" > /sys/class/gpio/export | |
echo "out" > /sys/class/gpio/gpio165/direction | |
while : ; do | |
echo "1" > /sys/class/gpio/gpio165/value | |
sleep 1 | |
echo "0" > /sys/class/gpio/gpio165/value | |
sleep 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
#!/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 | |
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
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 |
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
#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 |