This file contains hidden or 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
| #!/bin/env ruby | |
| # encoding: utf-8 | |
| # Author: kimoto | |
| require 'youtube_it' | |
| def all_fetch_favorite_videos(username, password, dev_key) | |
| client = YouTubeIt::Client.new( | |
| :username => username, | |
| :password => password, | |
| :dev_key => dev_key |
This file contains hidden or 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
| #!/bin/env ruby | |
| # encoding: utf-8 | |
| # Author: kimoto | |
| require 'MeCab' | |
| require 'kconv' | |
| require 'romankana' | |
| require 'moji' | |
| def nihongo_to_roma(japanese, join_word="_") | |
| m = MeCab::Tagger.new("-Ochasen") |
This file contains hidden or 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
| #include <stdio.h> | |
| void unko(i){ | |
| printf("unko now!: %d\n", i); | |
| } | |
| int main(){ | |
| int kazuho = 0; | |
| unko(kazuho++); | |
| // => 0 |
This file contains hidden or 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
| 家電店から商品を窃盗する方法とそれに対抗する店側の戦略についての提案 | |
| 商品を窃盗する方法、電波により守られたゲートを通過する方法 | |
| ・商品についている発音デバイスを銀紙で包むことにより、電波を通過不能にし、ゲートを通過する。 | |
| それに対する店側の戦略 | |
| ・商品側から店側のどこかの装置と通信できなくなった際に警報音を鳴らす |
This file contains hidden or 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
| #!/bin/env ruby | |
| # encoding: utf-8 | |
| # Author: kimoto | |
| require 'mizuho_bank' | |
| require 'logger' | |
| require 'kconv' | |
| require 'yaml' | |
| require 'im-kayac' | |
| class Pit::ImKayac |
This file contains hidden or 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
| #!/bin/env ruby | |
| # encoding: utf-8 | |
| # Author: kimoto | |
| require 'uc_card' | |
| require 'yaml' | |
| require 'im-kayac' | |
| class Pit::ImKayac | |
| def self.post(message, pit_key = "im.kayac.com") | |
| config = Pit.get(pit_key, :require => { |
This file contains hidden or 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
| #!/bin/env ruby | |
| # encoding: utf-8 | |
| # Author: kimoto | |
| require 'term/ansicolor' | |
| require 'matchdata-highlight' | |
| include Term::ANSIColor | |
| def should_be_true(regexp, string) | |
| if (regexp =~ string) | |
| puts Regexp.last_match.highlight |
This file contains hidden or 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
| 似たような感じの文章多いデータ(yellow page)でやった | |
| 0 = 32.5KB | |
| 1 = 10.3KB | |
| 2 = 10.2KB | |
| 3 = 10.0KB | |
| 4 = 9.8KB | |
| 5 = 9.6KB | |
| 6 = 9.5KB | |
| 7 = 9.5KB |
This file contains hidden or 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
| 自分よりも格上の人間に勝つための方法 | |
| Author: KIMOTO | |
| 同時手番ゲーム、すなわち相手と同時に行動するゲームでは、究極的に分析すれば最終的には読み合いという | |
| 名の運ゲームに行き着く。相手と順番に行動するゲーム、将棋やチェスなどでは順番に行動するわけであるか | |
| らそこに読み合いというものは発生しない。同時に行動する、ということは結局のところ運なのだ。相手の行 | |
| 動がわからない。相手がグーを出したときにたまたまパーが出たときに自分が勝てる。たとえば格闘ゲームは | |
| じゃんけんを繰り返すようなゲームシステムであり、もちろんコマンド入力の大変さという部分での実力差は | |
| 現れるが、それはレベルの低い戦いにおいてのみである、上級者の間ではそれは全くの問題でなく、彼らの間 | |
| では常に読み合いと言う名の運ゲが繰り広げられている。しかし驚くべきことに完全に運とは思えない結果が |