2 hours ago Posted

.gitmodule, .git/configから直接削除らしい

そんで

$ git rm --cached path-to-submodule
% git commit

参考

10 hours ago Posted

alt+clickを送るという感じらしい. すげぇ

参考

function dispatchMouseEvents(opt) {
  var evt = document.createEvent('MouseEvents');
  evt.initMouseEvent(opt.type, opt.canBubble||true, opt.cancelable||true, opt.view||window, 
                     opt.detail||0, opt.screenX||0, opt.screenY||0, opt.clientX||0, opt.clientY||0, 
                     opt.ctrlKey||false, opt.altKey||false, opt.shiftKey||false, opt.metaKey||false, 
                     opt.button||0, opt.relatedTarget||null);
  opt.target.dispatchEvent(evt);
  return evt;
}
Array.prototype.slice.call(document.querySelectorAll(
            'a[href$="' + target + '"]')).some(function(e) {
              dispatchMouseEvents({ type:'click', altKey:true, target:e, button:0 });
              ++COUNTER;
            });
1 day ago Posted

参考

.tmux.confに

set-window-option -g mode-mouse on
set -g terminal-overrides 'xterm*:smcup@:rmcup@'

そしてmousetermをいれる.

1 day ago Posted

git-issue
コマンドラインからgithubのissueをイジイジするツール.

$ gem install git-issue
$ git config issue.type github
$ git config issue.repo awesomerepo
$ git config issue.user garaemon
$ EDITOR=vi pit set github

pitでは以下のようなものを用意

user: garaemon
password: hogehogeo

これで

$ git issue list -a

とかやるとリストが見れます. やったね

redmineだとまた使い方がチョット変わるようです

1 day ago Posted
1 note
  • do 動作がちょっと重い. タスク一覧が少し見にくい. 複数の人にassignできない.
  • ToDous iPhone対応してない… ブラウザで見ろって感じか? それ以外は良い感じ.
  • flow 高い($10/m). ちょっと硬いUI.
  • ChatWork UIが微妙. 広告スペースが致命的に毎日使うには鬱陶しい.
  • wunderlist シンプルで素晴らしい. が, シンプルすぎる?
  • doit.im チームでどうやって使う? タスクの共有ができない? iPhone, iPadアプリ有り. 日本語はなかなか残念.
  • producteev チームで使うには$20/m.高い
  • nozbe 付き$15/m, up to 5 users. 高くない?
  • things 高い高い (4,300円とか)
  • toodledo 高機能すぎる
  • aipo チャットに重みが置かれている.
  • Todo.ly かなり良い感じ. 共有機能はが$3/month.
  • lino 付箋共有サービス. 実はこれが一番いいんじゃないか?

そのうちまた追記します

3 days ago Posted

zshをツンデレにする

local GREEN=$'%{\e[1;32m%}'
local YELLOW=$'%{\e[1;33m%}'
local BLUE=$'%{\e[1;34m%}'
local LIGHT_BLUE=$'%{\e[1;36m%}'
local DEFAULT=$'%{\e[1;0m%}'
if [ "$TERM" = "emacs" ] ; then
    PROMPT="${LIGHT_BLUE}Yes, Master${DEFAULT}@${GREEN}${HOST}?${DEFAULT} [${BLUE}%~/${DEFAULT}]%% "
else
    PROMPT="${LIGHT_BLUE}Yes, Master${DEFAULT}@${GREEN}${HOST}?${DEFAULT} [${BLUE}%~/${DEFAULT}]%% "
fi

PROMPT2="%_%% "
SPROMPT="%r? べ, 別にあんたのために修正したんじゃないからね! [n,y,a,e]:"

こんな感じ

Yes, Master@gma2.local? [~/]% sl
ls? べ, 別にあんたのために修正したんじゃないからね! [n,y,a,e]:
3 days ago Posted
1 note

Safariだとdatetimeを使うと日付と時刻の選択ができる.

<input type="datetime" id="datetime" />

文字列が入ってるので, iso8601.js
を利用すると楽.

var date = isodate.parse($("#dateteime").val());
3 days ago Posted
1 note
<a href="tel:012345677">hoge</a>

って感じでtel: というURIを利用する.

ちなみにSafariから開くと電話確認のalertが出る.

3 days ago Posted

cssで

width: 320px;

とかやってもページが小さく写っちゃう時は以下のメタタグをくっつける.

<meta name="viewport" content="width=320, user-scalable=no" />
3 days ago Posted

set-option -g prefix C-t
set-option -g history-limit 10000
set-option -g status-utf8 on
set-option -g status-interval 5
set-option -g status-left ""
set-option -g status-right "#(cat /proc/loadavg)"
set-option -g status-bg white
set-option -g status-bg black
set-window-option -g automatic-rename off
set-window-option -g window-status-attr "underscore"
set-window-option -g window-status-bg blue
set-window-option -g window-status-fg green
set-window-option -g window-status-current-attr "bold"
set-window-option -g window-status-current-fg white
set-window-option -g window-status-current-bg cyan
bind 2 split-window
bind 3 split-window -h
bind 1 break-pane
bind @ copy-mode