This file contains 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
alias ll='ls -l' | |
alias la='ls -la' | |
alias vi='vim' | |
alias rm='rm -i' | |
alias gs='git status' | |
alias ga='git add' | |
alias gc='git commit' | |
alias gl='git log --color' | |
alias gd='git diff --color' |
This file contains 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
# Prefix | |
set-option -g prefix C-q | |
# デフォルトのPrefix(C-b)を解除 | |
unbind C-b | |
# www1.hoge.com→www1のみ表示。 | |
set-option -g set-titles-string "@#(hostname | sed 's/\\\\..*//')" | |
set-option -g set-titles on | |
set-option -g status on |
This file contains 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
# ログイン時にtmuxを自動起動 | |
if [ -z "$TMUX" -a -z "$STY" ]; then | |
if type tmuxx >/dev/null 2>&1; then | |
tmuxx | |
elif type tmux >/dev/null 2>&1; then | |
if tmux has-session && tmux list-sessions | /usr/bin/grep -qE '.*]$'; then | |
tmux attach && echo "tmux attached session " | |
else | |
tmux new-session && echo "tmux created new session" | |
fi |
This file contains 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
git checkout - | |
一つ前のブランチに移動 |
This file contains 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
# Description: | |
# Operate the air conditioning of office. | |
# | |
# Commands: | |
# irkit aircon on - Switch on the air conditioning in the office | |
# irkit aircon off - Switch off the air conditioning in the office | |
module.exports = (robot) -> | |
IRKIT_API_MESSAGES = "https://api.getirkit.com/1/messages" | |
CLIENT_KEY = "client_key" |
This file contains 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
android { | |
compileOptions { | |
encoding = "UTF-8" | |
sourceCompatibility JavaVersion.VERSION_1_7 | |
targetCompatibility JavaVersion.VERSION_1_7 | |
} | |
} |
This file contains 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
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:app="http://schemas.android.com/apk/res-auto" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:orientation="vertical" | |
android:paddingBottom="@dimen/activity_vertical_margin" | |
android:paddingLeft="@dimen/activity_horizontal_margin" | |
android:paddingRight="@dimen/activity_horizontal_margin" | |
android:paddingTop="@dimen/activity_vertical_margin"> |
This file contains 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
SLICE_SIZE = 100 | |
def get_all_friends(screen_name) | |
client = twitter_client | |
all_friends = [] | |
client.friend_ids(screen_name).each_slice(SLICE_SIZE).each do |slice| | |
client.users(slice).each do |friend| | |
all_friends << friend | |
end |
This file contains 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
export ANDROID_HOME="$HOME/android_sdk" | |
PATH="${ANDROID_HOME}/tools:${ANDROID_HOME}/platform-tools:${PATH}" |
This file contains 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
package jp.tsur.imageloaderlibrary; | |
import android.app.Activity; | |
import android.os.Bundle; | |
import android.view.Menu; | |
import android.view.MenuItem; | |
import android.widget.ImageView; | |
import com.android.volley.RequestQueue; | |
import com.android.volley.toolbox.NetworkImageView; |
OlderNewer