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
% 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
$ 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
% 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
1.times do |t| | |
2.times do |h| | |
3.times do |a| | |
4.times do |n| | |
5.times do |k| | |
6.times do |s| | |
puts 'thanks!' | |
end | |
end | |
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
ruby -e "(7**5).times {|r| puts format('%05d', r.to_s(7)).unpack('aaaaa').join(' ')}" | |
0 0 0 0 0 | |
0 0 0 0 1 | |
0 0 0 0 2 | |
0 0 0 0 3 | |
0 0 0 0 4 | |
0 0 0 0 5 | |
0 0 0 0 6 | |
0 0 0 1 0 |
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
print("Hello,World") |
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 | |
end |