Commits

takanao ENDOH committed b71dbf5 Draft

Update

  • Participants
  • Parent commits 4cc502a

Comments (0)

Files changed (3)

+call pathogen#runtime_append_all_bundles()
+
 syntax on
 
 set fileformats=unix,dos,mac
 
 "tab
 set tabstop=2
-set shiftwidth=4
+set shiftwidth=2
 set softtabstop=2
 set expandtab
 set smarttab
 
 set ambiwidth=double
 
-set encoding=utf8
-set fileencoding=utf8
+set encoding=utf-8
+set fileencoding=utf-8
 
-" 文字コードの自動認識
-if has('iconv')
-  let s:enc_euc = 'euc-jp'
-  let s:enc_jis = 'iso-2022-jp'
-  " iconvがeucJP-msに対応しているかをチェック
-  if iconv("\x87\x64\x87\x6a", 'cp932', 'eucjp-ms') ==# "\xad\xc5\xad\xcb"
-    let s:enc_euc = 'eucjp-ms'
-    let s:enc_jis = 'iso-2022-jp-3'
-  " iconvがJISX0213に対応しているかをチェック
-  elseif iconv("\x87\x64\x87\x6a", 'cp932', 'euc-jisx0213') ==# "\xad\xc5\xad\xcb"
-    let s:enc_euc = 'euc-jisx0213'
-    let s:enc_jis = 'iso-2022-jp-3'
-  endif
-  " fileencodingsを構築
-  if &encoding ==# 'utf-8'
-    let s:fileencodings_default = &fileencodings
-    let &fileencodings = s:enc_jis .','. s:enc_euc .',cp932'
-    let &fileencodings = &fileencodings .','. s:fileencodings_default
-    unlet s:fileencodings_default
-  else
-    let &fileencodings = &fileencodings .','. s:enc_jis
-    set fileencodings+=utf-8,ucs-2le,ucs-2
-    if &encoding =~# '^\(euc-jp\|euc-jisx0213\|eucjp-ms\)$'
-      set fileencodings+=cp932
-      set fileencodings-=euc-jp
-      set fileencodings-=euc-jisx0213
-      set fileencodings-=eucjp-ms
-      let &encoding = s:enc_euc
-      let &fileencoding = s:enc_euc
-    else
-      let &fileencodings = &fileencodings .','. s:enc_euc
-    endif
-  endif
-  " 定数を処分
-  unlet s:enc_euc
-  unlet s:enc_jis
-endif
-" 日本語を含まない場合は fileencoding に encoding を使うようにする
-if has('autocmd')
-  function! AU_ReCheck_FENC()
-    if &fileencoding =~# 'iso-2022-jp' && search("[^\x01-\x7e]", 'n') == 0
-      let &fileencoding=&encoding
-    endif
-  endfunction
-  autocmd BufReadPost * call AU_ReCheck_FENC()
-endif
+"" 文字コードの自動認識
+"if has('iconv')
+"  let s:enc_euc = 'euc-jp'
+"  let s:enc_jis = 'iso-2022-jp'
+"  " iconvがeucJP-msに対応しているかをチェック
+"  if iconv("\x87\x64\x87\x6a", 'cp932', 'eucjp-ms') ==# "\xad\xc5\xad\xcb"
+"    let s:enc_euc = 'eucjp-ms'
+"    let s:enc_jis = 'iso-2022-jp-3'
+"  " iconvがJISX0213に対応しているかをチェック
+"  elseif iconv("\x87\x64\x87\x6a", 'cp932', 'euc-jisx0213') ==# "\xad\xc5\xad\xcb"
+"    let s:enc_euc = 'euc-jisx0213'
+"    let s:enc_jis = 'iso-2022-jp-3'
+"  endif
+"  " fileencodingsを構築
+"  if &encoding ==# 'utf-8'
+"    let s:fileencodings_default = &fileencodings
+"    let &fileencodings = s:enc_jis .','. s:enc_euc .',cp932'
+"    let &fileencodings = &fileencodings .','. s:fileencodings_default
+"    unlet s:fileencodings_default
+"  else
+"    let &fileencodings = &fileencodings .','. s:enc_jis
+"    set fileencodings+=utf-8,ucs-2le,ucs-2
+"    if &encoding =~# '^\(euc-jp\|euc-jisx0213\|eucjp-ms\)$'
+"      set fileencodings+=cp932
+"      set fileencodings-=euc-jp
+"      set fileencodings-=euc-jisx0213
+"      set fileencodings-=eucjp-ms
+"      let &encoding = s:enc_euc
+"      let &fileencoding = s:enc_euc
+"    else
+"      let &fileencodings = &fileencodings .','. s:enc_euc
+"    endif
+"  endif
+"  " 定数を処分
+"  unlet s:enc_euc
+"  unlet s:enc_jis
+"endif
+"" 日本語を含まない場合は fileencoding に encoding を使うようにする
+"if has('autocmd')
+"  function! AU_ReCheck_FENC()
+"    if &fileencoding =~# 'iso-2022-jp' && search("[^\x01-\x7e]", 'n') == 0
+"      let &fileencoding=&encoding
+"    endif
+"  endfunction
+"  autocmd BufReadPost * call AU_ReCheck_FENC()
+"endif
 " 改行コードの自動認識
 set fileformats=unix,dos,mac
 " □とか○の文字があってもカーソル位置がずれないようにする
 
 " NERDTree
 let NERDTreeHighlightCursorline = 0
-let NERDTreeIgnore = ['\.swp$','\.pyc$','\.beam$']
+let NERDTreeIgnore = ['\.sw.$','\.pyc$','\.beam$']
 let NERDTreeShowHidden = 1
 nnoremap <F12> :NERDTreeToggle<CR>
 
 match WhitespaceEOL /\s\+$/
 
 function! s:Exec()
-    exe "!" . &ft . " %"
+    if &ft == "python"
+        exe "!" . "$VIRTUAL_ENV/bin/python %"
+    else
+        exe "!" . "/usr/bin/" . &ft . " %"
+    endif
 :endfunction
 command! Exec call <SID>Exec()
 map <silent> <C-P> :call <SID>Exec()<CR>
 fi
 export SHELL=/bin/zsh
 export EDITOR=vim
-export ERL_TOP=/Volumes/data/src/otp_src_R12B-3
+export ERL_TOP=~/Documents/src/otp_src_R14B03
 export PullYAML=/Volumes/data/works/my/conf/pull.yaml
 
 autoload -U compinit
 #for Django
 alias dip='./manage.py shell --classic -c "import readline; readline.parse_and_bind (\"bind ^I rl_complete\")"'
 #for VMware
-alias vm='grep ^lease /var/db/vmware/vmnet-dhcpd-vmnet?.leases |awk '\''{print $2}'\'' |sort -u |xargs -I @ ping -t 1 @ |grep -E '\''^(-|1)'\'' |paste - - |grep " 0% packet loss" |awk '\''{print $2}'\'
+alias vm='grep ^lease /var/db/vmware/vmnet-dhcpd-vmnet?.leases |awk '\''{print $2}'\'' |sort -u |xargs -I @ ping -t 1 @ |grep -E '\''^(-|1)'\'' |paste - - |grep -E " (0\.)?0% packet loss" |awk '\''{print $2}'\'
 
 setopt autopushd
 alias gd='dirs -v|head -n 10; echo -n "select number: "; read newdir; cd +"$newdir"'
   set-dabbrev-complete
 fi
 
+export VIRTUALENVWRAPPER=/usr/bin
+
 case `uname` in
 "SunOS")
   if [ $TERM = "xterm" ]; then
 "Darwin")
   export WORKS=/Volumes/data/works
   export PATH=/usr/local/texlive/2008/bin/universal-darwin:$PATH
-  export PATH=/Library/Frameworks/Python.framework/Versions/2.4/bin:$PATH
+  export PATH=/Library/Frameworks/Python.framework/Versions/2.7/bin:$PATH
   export PATH=/usr/local/lib/svn-perl:$PATH
   export PATH=/usr/local/lib/svn-python:$PATH
   export PATH=/Volumes/data/erlib/bin:$PATH
   export PATH=/Volumes/data/src/otp_src_R12B-3/lib/kernel/ebin:$PATH
+  export MACOSX_DEPLOYMENT_TARGET=10.7
   ;;
 esac
 
 export PATH=$HOME/bin:/usr/local/bin:$PATH:/usr/local/sbin:/usr/local/lib
-export PATH=/Library/Frameworks/Python.framework/Versions/2.6/bin:$PATH
+export PATH=/Library/Frameworks/Python.framework/Versions/2.7/bin:$PATH
+export PATH=~/.nave/installed/0.4.7/bin:$PATH #for node.js
+#export PATH=~/.nave/installed/0.4.12/bin:$PATH #for node.js
 
 #for virtualenv
 export WORKON_HOME=$HOME/.virtualenvs
-source $HOME/bin/virtualenvwrapper_bashrc
+export VIRTUALENVWRAPPER_LOG_DIR=$WORKON_HOME
+export VIRTUALENVWRAPPER_HOOK_DIR=$WORKON_HOME
+source /usr/local/bin/virtualenvwrapper.sh
+export PIP_RESPECT_VIRTUALENV=true
 
 src=$HOME/.zshrc.`hostname -s`; [ -f $src ] && source $src
 

site/michilu/media/index.html

-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-  <head>
-	<meta name="author" content="Takanao Endoh / MiCHiLU" />
-	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+<!DOCTYPE html>
+<html lang="ja">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+<meta name="author" content="ENDOH takanao / MiCHiLU" />
+    <title>MiCHiLU.com</title>
+<link  href="//fonts.googleapis.com/css?family=Orbitron:400,500,700,900" rel="stylesheet" type="text/css" >
+<style>
+.untitled{
+font-size:76px;
+font-family:Orbitron;
+letter-spacing:-0.05em;
+color:rgba(255,141,0,0.6);
+text-shadow:4px -4px 7px rgba(0,255,255,1);
+text-overflow:clip;
+white-space:nowrap;
+overflow:hidden;
+background:rgba(0,0,0,1);
+background:rgba(0,0,0,1);
+height:167px;
+line-height:167px;
+width:895px;
+border-radius:0px;
+-moz-border-radius:0px;
+-webkit-transform:rotate(-6deg) skew(-6deg);
+-moz-transform:rotate(-6deg) skew(-6deg);
+-webkit-box-shadow:7px 2px 7px rgba(100,100,100,1);
+-moz-box-shadow:7px 2px 7px rgba(100,100,100,1);
+}
+</style>
     <link rel="openid.server" href="http://www.myopenid.com/server" />
     <link rel="openid.delegate" href="http://MiCHiLU.myopenid.com/" />
     <link rel="stylesheet" type="text/css" href="./css/style.css" />
-    <title>MiCHiLU.com</title>
     <script src="http://www.google.com/jsapi?key=ABQIAAAA64dlrFiGJ6FEGny29sJB2RRT7mgSiQ7einhoFK9eKILAVOr7VhTLa5Ya8vsJgeztFinW7uFRYK6S4w"
       type="text/javascript"></script>
     <script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js" language="javascript" type="text/javascript"></script>
     <script src="./js/site.js" language="javascript" type="text/javascript"></script>
   </head>
-  <body>
+<body>
+<div style="width:100%;" align="center">
+<div class="untitled">MiCHiLU.com</div>
+</div>
     <div id="container">
         <div id="header">
             <h1><a href="/">MiCHiLU<span>.COM</span></a></h1>
                     Mercurial Queues</a></dt>
                     <dd>2009.03.12</dd>
                 </dl>
-                <h3>What's New?</h3>
-                <dl>
-                    <dt>2009.11.14</dt>
-                    <dd>Python Hack-a-thon #2</dd>
-                    <dt>2009.10.23-25</dt>
-                    <dd>PySpa - Spa-side Pythonista Assembly #6</dd>
-                    <dt>2009.09.25</dt>
-                    <dd>BP Study #25</dd>
-                    <dt>2009.09.20</dt>
-                    <dd>唐揚げの会 - Japan Fried Food Party #1</dd>
-                    <dt>2009.09.20</dt>
-                    <dd>Great Japan Beer Festival in YOKOHAMA 2009</dd>
-                    <dt>2009.09.12</dt>
-                    <dd>hbstudy #3</dd>
-                    <dt>2009.09.11-12</dt>
-                    <dd>Code Camp #4 in Harumi</dd>
-                    <dt>2009.09.10</dt>
-                    <dd>YAPC::Asia Tokyo 2009</dd>
-                    <dt>2009.09.09</dt>
-                    <dd>Yokohama.pm</dd>
-                    <dt>2009.08.28</dt>
-                    <dd>BP Study #24</dd>
-                    <dt>2009.08.22</dt>
-                    <dd>Python Hack-a-thon #1</dd>
-                    <dt>2009.08.12</dt>
-                    <dd>第一回html5-developers-jpオフ会@渋谷</dd>
-                    <dt>2009.08.08</dt>
-                    <dd>Kyoto GTUG</dd>
-                    <dt>2009.08.06</dt>
-                    <dd>ドキュメント勉強会</dd>
-                    <dt>2009.08.05</dt>
-                    <dd>Tokyo GTUG #1</dd>
-                    <dt>2009.08.01</dt>
-                    <dd>hbstudy #2</dd>
-                    <dt>2009.07.31</dt>
-                    <dd>BP Study #23</dd>
-                    <dt>2009.07.25</dt>
-                    <dd>Club BBQ #2</dd>
-                    <dt>2009.07.11</dt>
-                    <dd>hbstudy #1</dd>
-                    <dt>2009.07.03</dt>
-                    <dd>第3回 Erlang分散システム勉強会</dd>
-                    <dt>2009.06.26-28</dt>
-                    <dd>PySpa - Spa-side Pythonista Assembly #5</dd>
-                    <dt>2009.06.20</dt>
-                    <dd>Club BBQ #1</dd>
-                    <dt>2009.06.18</dt>
-                    <dd>Google APIs Hack-a-thon #2</dd>
-                    <dt>2009.05.28-06.12</dt>
-                    <dd>ShowNet - Interop Tokyo 2009</dd>
-                    <dt>2009.05.22</dt>
-                    <dd>BP Study #21</dd>
-                    <dt>2009.05.16</dt>
-                    <dd>BarCamp Tokyo 2009</dd>
-                    <dt>2009.05.15</dt>
-                    <dd>Google APIs Hack-a-thon #1</dd>
-                    <dt>2009.05.09</dt>
-                    <dd>xUnit Test Patterns読書会 第2回</dd>
-                    <dt>2009.04.27</dt>
-                    <dd>こばへんの変</dd>
-                    <dt>2009.04.25</dt>
-                    <dd>Django Hack-a-thon Disc.8</dd>
-                    <dt>2009.04.22</dt>
-                    <dd>Shibuya.pm #11</dd>
-                    <dt>2009.04.16</dt>
-                    <dd>Yokohama.pm #4</dd>
-                    <dt>2009.04.11</dt>
-                    <dd>Google App Engine Hack-a-thon Disc.3</dd>
-                    <dt>2009.03.28</dt>
-                    <dd>Tokyo OpenSolaris Study #4</dd>
-                    <dt>2009.03.27-28</dt>
-                    <dd>Python HOTEL #2</dd>
-                    <dt>2009.03.19</dt>
-                    <dd>BP Study #19</dd>
-                    <dt>2009.03.12</dt>
-                    <dd>Mercurial Study #1</dd>
-                    <dt>2009.02.22</dt>
-                    <dd>vim勉強会 ~BPStudy外伝~</dd>
-                    <dt>2009.02.20</dt>
-                    <dd>Key-Value Store Study</dd>
-                    <dt>2009.01.31</dt>
-                    <dd>Tokyo OpenSolaris Study #3</dd>
-                    <dt>2009.01.30-31</dt>
-                    <dd>Python HOTEL #1</dd>
-                    <dt>2009.01.23</dt>
-                    <dd>BP Study #17</dd>
-                    <dt>2009.01.16</dt>
-                    <dd>CodeRepos New Year's party 2009</dd>
-                    <dt>2009.01.15</dt>
-                    <dd>Django Study Disc.7</dd>
-                    <dt>2009.01.09</dt>
-                    <dd>OpenSolaris Night Seminar 9th</dd>
-                    <dt>2008.12.27</dt>
-                    <dd>Hacker's Cafe 忘年会</dd>
-                    <dt>2008.12.18</dt>
-                    <dd>Python 忘年会</dd>
-                    <dt>2008.12.13</dt>
-                    <dd>Google AppEngine Hackathon</dd>
-                    <dt>2008.12.06</dt>
-                    <dd>Python with Hardware</dd>
-                    <dt>2008.12.02</dt>
-                    <dd>Sun Tech Days 2008 in Tokyo</dd>
-                    <dt>2008.11.29-30</dt>
-                    <dd>Python HOTEL #0</dd>
-                    <dt>2008.11.22</dt>
-                    <dd>VimM #3</dd>
-                    <dt>2008.11.20</dt>
-                    <dd>Erlang 分散システム勉強会 #2</dd>
-                    <dt>2008.11.08</dt>
-                    <dd>Make: Tokyo Meeting 02</dd>
-                    <dt>2008.10.30-31</dt>
-                    <dd>MySQL ユーザコンファレンス 2008</dd>
-                    <dt>2008.10.24-26</dt>
-                    <dd>PySpa - Spa-side Pythonista Assembly #4</dd>
-                    <dt>2008.10.22</dt>
-                    <dd>Pyもつ鍋 at ほんじん銀座本店</dd>
-                </dl>
                 <h3>Resources</h3>
+                - Atnd
                 <dl class="resoueces">
-                    <dt>Messages</dt>
-                      <dd>
-                        <a href="http://twitter.com/MiCHiLU">
-                        twitter</a>
-                        <a href="http://twitter.com/statuses/user_timeline/4280461.atom"></a>
-                        <a href="http://michilu.com/feeds/others/twitter_replies.atom"></a>
-                        <a href="http://wassr.jp/user/michilu/">
-                        wassr</a>
-                        <a href="http://api.wassr.jp/user_timeline.rss?id=michilu"></a>
-                      </dd>
-                    <dt>Commits</dt>
-                      <dd>
-                        <a href="http://www.bitbucket.org/MiCHiLU/shell-doctest/">
-                        shell-doctest</a>
-                        <a href="http://www.bitbucket.org/MiCHiLU/django-doctest/">
-                        django-doctest</a>
-                        <a href="http://www.bitbucket.org/MiCHiLU/django-doctest/atom/"></a>
-                        <a href="http://www.bitbucket.org/MiCHiLU/jquery-readystate3/">
-                        jQuery.readyState3.js</a>
-                        <a href="http://www.bitbucket.org/MiCHiLU/jquery-readystate3/atom/"></a>
-                        <a href="http://www.bitbucket.org/MiCHiLU/my/">
-                        my</a>
-                        <a href="http://www.bitbucket.org/MiCHiLU/my/atom/"></a>
-                        <a href="http://code.google.com/p/michilu/">
-                        source</a>
-                        <a href="http://code.google.com/p/helpdoc/">
-                        helpdoc</a>
-                        <a href="http://code.google.com/p/pyhabu-plugins/">
-                        pyhabu-plugins</a>
-                        <a href="http://code.google.com/p/django-selenium/">
-                        django-selenium</a>
-                        <a href="http://code.google.com/p/python-hatena-api/">
-                        python-hatena-api</a>
-                        <a href="http://code.google.com/u/Takanao.Endoh/">
-                        Code Google</a>
-                        <a href="http://code.google.com/feeds/u/Takanao.Endoh/updates/user/basic"></a>
-                      </dd>
-                    <dt>Documents</dt>
-                      <dd>
-                        <a href="http://www.bitbucket.org/MiCHiLU/my/src/tip/doc/">
-                        My Documents</a>
-                        <a href="http://djangoproject.jp/doc/ja/1.0/">
-                        Django v1.0 dicumentation</a>
-                      </dd>
-                    <dt>Media</dt>
-                      <dd>
-                        <a href="http://delicious.com/MiCHiLU">
-                        delicious</a>
-                        <a href="http://feeds.delicious.com/v2/rss/MiCHiLU"></a>
-                        <a href="http://www.flickr.com/photos/michilu/">
-                        flickr</a>
-                        <a href="http://api.flickr.com/services/feeds/photos_public.gne?id=66294481@N00"></a>
-                        <a href="http://d.hatena.ne.jp/MiCHiLU/">
-                        Hatena::Dialy</a>
-                        <a href="http://d.hatena.ne.jp/MiCHiLU/rss2"></a>
-                        <a href="http://erlang.g.hatena.ne.jp/MiCHiLU/">
-                        Hatena::Groups::Erlang</a>
-                        <a href="http://erlang.g.hatena.ne.jp/MiCHiLU/rss2"></a>
-                        <a href="http://michilu.com/blog/posts/">
-                        Old Contents</a>
-                        <a href="http://feeds.feedburner.com/michilu"></a>
-                      </dd>
-                    <dt>Back Links</dt>
-                      <dd>
-                        <a href="http://blogsearch.google.com/blogsearch?q=michilu.com">
-                        Google Blog Search</a>
-                        <a href="http://blogsearch.google.com/blogsearch_feeds?q=www.flickr.com/photos/michilu"></a>
-                        <a href="http://blogsearch.google.com/blogsearch_feeds?q=d.hatena.ne.jp/MiCHiLU"></a>
-                        <a href="http://blogsearch.google.com/blogsearch_feeds?q=erlang.g.hatena.ne.jp/MiCHiLU"></a>
-                        <a href="http://blogsearch.google.com/blogsearch_feeds?q=link:michilu.com"></a>
-                        <a href="http://www.technorati.com/blogs/michilu.com">
-                        Technorati</a>
-                        <a href="http://feeds.technorati.com/search/http%3A%2F%2Fmichilu.com"></a>
-                      </dd>
-                </dl>
-            </div>
-            <div class="clear"></div>
-        </div>
+                    <dt>Socials</dt>
+                        - http://twitter.com/MiCHiLU
+                    <dt>Repoitories</dt>
+                        - http://github.com/MiCHiLU
+                        - http://www.bitbucket.org/MiCHiLU
+                        - http://code.google.com/u/michilu
+                        - http://code.google.com/u/Takanao.Endoh
         <div id="footer" class="credit">
-            <p>Copyright&copy; 2006-2009 Takanao Endoh / MiCHiLU All Rights Reserved.</p>
-            <p>Designed by <a rel="nofollow" href="http://monospace.jp/">monospace, Inc.</a></p>
+            <p>Copyright&copy; 2006-2011 ENDOH takanao / MiCHiLU All Rights Reserved.</p>
         </div>
         <div class="analytics">
         <!-- http://nakanohito.jp/ -->
         </script>
         </div>
     </div>
-  </body>
-</html>