運転が上手い人は、頭の中に「上空10mくらいから見下ろした自分と周辺のイメージ」が映っている。
自分の3台以上前の車から自分の3台以上後ろの車まで動きを把握している。
自分の目の前の信号機から2つ以上先の信号機を見て、前方の車がいつブレーキを踏むか想像できる。
縦列駐車や車庫入れでも「10m上空から見た姿勢」が基準で、その場合は前輪の傾き角度がボデイを透けて見えている。サイドミラーは確認の為に見ているだけ。
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
#インターネットショートカットファイル(*.url)からファイルを取り出して、これを取得しファイルにセーブする。 | |
import os | |
import glob | |
import urllib2 | |
from urlparse import urlparse | |
import ConfigParser | |
for file in glob.glob('*.url'): | |
try: |
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
tasuku@svn:~/groonga$ make coverage | |
lcov --compat-libtool --zerocounters --directory . \ | |
--output-file coverage.info | |
Deleting all .da files in . and subdirectories | |
Done. | |
Making check in lib | |
make[1]: ディレクトリ `/home/tasuku/groonga/lib' に入ります | |
make[1]: `check' に対して行うべき事はありません. | |
make[1]: ディレクトリ `/home/tasuku/groonga/lib' から出ます | |
Making check in src |
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
(gdb) bt | |
#0 rb_raise (exc=4303856840, fmt=0x1007a2825 "%s") at error.c:1574 | |
#1 0x000000010078f2f2 in rb_cairo_check_status (status=CAIRO_STATUS_NO_MEMORY) at rb_cairo_exception.c:78 | |
#2 0x000000010078bc07 in cr_show_page (self=4303641840) at rb_cairo_context.c:55 | |
#3 0x00000001001354e0 in call_cfunc (func=0x10078bb80 <cr_show_page>, recv=4303641840, len=33146726, argc=2111128, argv=0x100440050) at vm_insnhelper.c:320 | |
#4 0x000000010014028f in vm_call_cfunc [inlined] () at /Users/tasuku/.rvm/src/ruby-1.9.3-p327/vm_insnhelper.c:404 | |
#5 0x000000010014028f in vm_call_method (th=0x7fff5fbfecc0, cfp=0x7fff5fbfecc0, num=33146726, blockptr=0x7fff5fbfecc0, flag=140734799801536, id=4321910752, me=0x1019b1f90, recv=4303641840) at vm_insnhelper.c:534 | |
#6 0x000000010013bef5 in vm_exec_core (th=0x7fff5fbfeda0, initial=4300472056) at insns.def:1018 | |
#7 0x0000000100140bfe in vm_exec (th=0x100304000) at vm.c:1223 | |
#8 0x000000010014135e in rb_iseq_eval_main (iseqval=4328832920) at vm.c:1464 |
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
cpanm -L local --installdeps Text::Xslate |
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
use strict; | |
use warnings; | |
use Data::Dumper; | |
use Text::Xslate; | |
my $tx = Text::Xslate->new({ | |
syntax => 'TTerse', | |
function => { | |
gfx => sub { |
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
requires('Data::Dumper' => '== 2.139'); | |
requires('Test::Differences' => '== 0.61'); |
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
# -*- coding: utf-8 -*- | |
# 巨乳 | |
import urllib | |
import urllib2 | |
import codecs | |
import re | |
import smtplib | |
from email.MIMEText import MIMEText | |
from email.Utils import formatdate |
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
#!/usr/bin/env ruby | |
require 'date' | |
HDD_PATH = '/Volumes/HFS_disks_from_japan/mushu_avs' | |
while true do | |
d = DateTime.now | |
status = `drutil status` | |
if status =~ /^\s+Type: [-A-Z]+\s+Name: (.+)$/ |
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
#!/usr/bin/env python | |
# encoding: utf-8 | |
import json | |
import urllib | |
import urllib2 | |
token = 'xoxp-xxxxxxxx-xxxxxxxx-xxxxxxx-xxxxxx' | |
bot_name = 'gunyabot' | |
class SlackClient: |
OlderNewer