Skip to content

Instantly share code, notes, and snippets.

View tacahiroy's full-sized avatar
🐑

Takahiro Yoshihara tacahiroy

🐑
  • Karabiner Software
  • Tokyo, JAPAN
  • 23:22 (UTC +09:00)
  • X @tacahiroy
View GitHub Profile
@tacahiroy
tacahiroy / 18m10ja04
Created July 27, 2011 09:06
subtitles: Yukihiro “Matz” Matsumoto [18M10] Pendulum, PG, and the hundred year language(15:00-20:00)
毎度ありがとうございます
いっぱい売れました
はい、えーと。
いっぱいサインもしました
あの、まだ、買ったけど、まだサイン貰ってないって人はですね
@tacahiroy
tacahiroy / 18m10ja06
Created July 28, 2011 18:20
subtitles: Yukihiro “Matz” Matsumoto [18M10] Pendulum, PG, and the hundred year language(25:00-30:00)
あっちいったり、こっちいったりしてるのをみる
で、この先だけみてると、どっちがいいのか分からないんですけど
でも、冷静に考えてみると、その
振り子の先だけみてると、全体がどっちいくかわからないですよね
で、たとえば集中と分散でも、
@tacahiroy
tacahiroy / 18m10ja07
Created July 29, 2011 20:31
subtitles: Yukihiro “Matz” Matsumoto [18M10] Pendulum, PG, and the hundred year language(30:00 - 35:00)
LISPっぽい、言語っぽい言語。。。を創ったんですね
そしたら、なんか非常に人気が出てですね
練馬文化会舘に何百人も集まるような、非常に優れた言語として評価が高いんですけども
あれ?もしかしたら、言語デザイナとしては、Paul Grahamより上じゃね?とか
まぁ、思ったりもしてですね
@tacahiroy
tacahiroy / 18m10ja08
Created July 29, 2011 20:36
subtitles: Yukihiro “Matz” Matsumoto [18M10] Pendulum, PG, and the hundred year language(35:00 - 40:00)
使ってて気分がいいと
プログラミング言語が、プログラムを書いてるあなたを、
Welcom = 歓迎 しているように感じる言語
そういう言語がですね、生き延びる余地がですね
今後、100年にもあるんじゃないかなぁと、いう風に思います
@tacahiroy
tacahiroy / omegat2loga.rb
Created January 30, 2012 21:33
OmegaT glossary file -> logaling's
#! /usr/bin/env ruby
# coding: utf-8
require "yaml"
unless ARGV.size == 2
puts "USAGE: #$0 OMEGAT LOGA"
exit
end
@tacahiroy
tacahiroy / orttm.vim
Created March 12, 2012 17:54
How to fold lines are not interested in?
function! s:Oritatami(pat)
redir => ilist
execute ':silent! global/' . a:pat . '/:echo line(".")'
redir END
let lnums = map(split(ilist, '\n'), 'str2nr(v:val)')
if empty(lnums)
echomsg printf('pattern "%s" is not found.', a:pat)
return
endif
@tacahiroy
tacahiroy / upload_cookbook.vim
Created May 28, 2012 16:59
upload current editing Chef cookbook
if executable('knife')
function! s:upload_cookbook(...) abort
let path = expand('%:p')
if path !~# '/cookbooks/[^/]\+/.\+'
return
endif
let cookbooks = [get(a:, 1, '')]
let m = matchlist(path, '^\(.\+/cookbooks/[^/]\+\)/\([^/]\+\)/')
let cb_path = m[1]
@tacahiroy
tacahiroy / tm_kill_other_windows.sh
Created July 11, 2012 13:56
kill tmux windows except active window (zsh, bash)
function tm_kill_other_windows() {
local pat=$1
local windows="`tmux list-windows -F '#{window_index}:#{window_name}-#{window_active}'`"
[ `echo "${windows}" | wc -l | tr -d ' ' | grep '^1$'` ] && return
local cur_win_nbr=`echo "${windows}" | grep '\-1$' | grep -o '^[0-9]\+'`
windows=`echo "${windows}" | grep -v "^${cur_win_nbr}:"`
windows=`echo "${windows}" | grep "^[0-9]\+:.*${pat}.*-[01]$"`
@tacahiroy
tacahiroy / tm_kill_other_windows.ksh.sh
Created July 12, 2012 01:21
kill tmux windows except active window (ksh)
function tm_kill_other_windows {
pat=$1
windows="`tmux list-windows -F '#{window_index}:#{window_name}-#{window_active}'`"
[ `echo "${windows}" | wc -l | tr -d ' ' | grep '^1$'` ] && return
cur_win_nbr=`echo "${windows}" | grep '\-1$' | grep -o '^[0-9]\+'`
windows=`echo "${windows}" | grep -v "^${cur_win_nbr}:"`
windows=`echo "${windows}" | grep "^[0-9]\+:.*${pat}.*-[01]$"`
@tacahiroy
tacahiroy / ez_tmux.vim
Created August 2, 2012 22:07
Vim easy tmux integration
" tmux: just send keys against tmux
let s:tmux = {}
let s:tmux.last_cmd = ''
function! s:tmux.is_installed()
call system('which tmux')
return v:shell_error == 0
endfunction
function! s:tmux.is_running()