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
% cat nantoka.log | |
START TIME: 2011/03/17 12:00:22 | |
hoge | |
END TIME: 2011/3/17 13:00:43 | |
huga | |
START TIME: 2011/03/17 13:06:22 | |
hago | |
END TIME: 2011/3/17 13:30:43 | |
START TIME: 2011/03/17 14:01:22 | |
are |
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
$ i=0; while [ $i -le 80 ]; do s=$s'='; i=`expr $i + 1`; done;echo $s | |
$ echo `yes = | head -n 80` |sed 's/\s//g' | |
$ echo `yes = | head -n 80` |sed 's/ //g' | |
$ echo ''|dd cbs=80 conv=block |sed 's/ /=/g' | |
$ perl $ ruby -e "puts '='*80" | |
$ ruby -e "puts '='*80" |
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
% sudo aptitude install festival | |
% festival | |
festival> (SayText "Hago") | |
% echo Hago | text2wave -o hago.wav | |
% echo ShiniHago | text2wave -o shinihago.wav |
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
;;; Window制御 | |
(when window-system | |
(tool-bar-mode 0) | |
(menu-bar-mode 0) | |
(toggle-scroll-bar nil) | |
(server-start) | |
) | |
;;; グローバルキー | |
(global-set-key "\C-h" 'delete-backward-char) |
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
:user_name: YOUR NAME | |
:list_name: LIST NAME | |
:consumer_key: CONSUMER KEY | |
:consumer_secret: CONSUMER SECRET | |
:oauth_token: ACCESS TOKEN | |
:oauth_token_secret: ACCESS SECRET TOKEN |
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 'open-uri' | |
require 'json' | |
if ARGV.first.nil? | |
puts <<EOF | |
USAGE: export_atnd2twit.rb [ATND EVENT ID] | |
e.g. ruby export_atnd2twit.rb 24700 | |
# http://atnd.org/events/24700 |
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
class Display | |
attr_accessor :print | |
def initialize | |
@print = [] | |
end | |
def write(msg) | |
@print.push(msg) | |
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
M-: | |
(let((l(twittering-current-timeline-data)))(with-temp-file"~/a.txt"(mapc(lambda(tw)(insert"http://twitter.com/#!/"(cdr(assq'user-screen-name tw))"/status/"(cdr(assq'id tw))"\n"))l))) | |
で現在表示してるtimelineからデータを抜き出してtwitterのurlっぽいなにをファイルに保存する。 | |
フィルタかけたい。 |