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
| #!/usr/bin/env ruby | |
| require 'MeCab' | |
| require 'ostruct' | |
| # USAGE: | |
| # ruby extract_characters.rb < story.txt | |
| # SPEC: | |
| # 副詞可能は「今|今度|今日は」みたいなやつなので省いている | |
| # TODO: | |
| # each_two_sentences で照応を考慮する | |
| # 一人称っぽい言葉も登場人物としてカウントする |
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
| ~$ | |
| \.DS_Store$ |
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
| // ==UserScript== | |
| // @name AutoGhiblize | |
| // @namespace http://d.hatena.ne.jp/tily | |
| // @include http://faithrm-zero-zero.blog.so-net.ne.jp/archive/* | |
| // @require http://www.chasen.org/~taku/software/TinySegmenter/tiny_segmenter-0.1.js | |
| // ==/UserScript== | |
| //----[Markov]--------------------------------------- | |
| var Markov = function() { | |
| this.chain = {} |
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
| // ==UserScript== | |
| // @name hitodenize | |
| // @namespace http://polog.org/ | |
| // @include http://* | |
| // @require http://gist.github.com/3242.txt | |
| // ==/UserScript== | |
| // using $X http://gist.github.com/3242 by os0x | |
| // http://d.hatena.ne.jp/hitode909/20100418/1271583701 | |
| function init(doc){ |
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/sh | |
| ### BEGIN INIT INFO | |
| # Provides: mongodb | |
| # Required-Start: $all | |
| # Required-Stop: $all | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Short-Description: starts the mongodb data-store | |
| # Description: starts mongodb using start-stop-daemon |
NewerOlder