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
t = tagger.parse('テスト').map{|m| m.surface}.join(" | ") | |
TypeError: can't convert String into Integer | |
from /Users/masuidrive/.rvm/gems/ruby-1.9.2-p180/gems/igo-ruby-0.1.3/lib/igo/dictionary.rb:40:in `[]' | |
from /Users/masuidrive/.rvm/gems/ruby-1.9.2-p180/gems/igo-ruby-0.1.3/lib/igo/dictionary.rb:40:in `compatible?' | |
from /Users/masuidrive/.rvm/gems/ruby-1.9.2-p180/gems/igo-ruby-0.1.3/lib/igo/dictionary.rb:122:in `block in search' | |
from /Users/masuidrive/.rvm/gems/ruby-1.9.2-p180/gems/igo-ruby-0.1.3/lib/igo/dictionary.rb:119:in `each' | |
from /Users/masuidrive/.rvm/gems/ruby-1.9.2-p180/gems/igo-ruby-0.1.3/lib/igo/dictionary.rb:119:in `search' | |
from /Users/masuidrive/.rvm/gems/ruby-1.9.2-p180/gems/igo-ruby-0.1.3/lib/igo/tagger.rb:90:in `block in impl' | |
from /Users/masuidrive/.rvm/gems/ruby-1.9.2-p180/gems/igo-ruby-0.1.3/lib/igo/tagger.rb:85:in `each' | |
from /Users/masuidrive/.rvm/gems/ruby-1.9.2-p180/gems/igo-ruby-0.1.3/lib/igo/tagger.rb:85:in `impl' |
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 -*- | |
require 'rubygems';require 'igo-ruby';tagger = Igo::Tagger.new('lib/ipadic');nil | |
p tagger.parse('テスト') | |
p tagger.parse('テスト').map{|m| m.surface}.join(" | ") |
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
送り先: masuiあっとmasuidrive.jp | |
UDID: 833666a205eca1273d2f5f267a65d67dac621f90 (iPhone4) | |
3G回線経由の接続が必要な場合、9d94e6878ceaeb8471e3986394d4ee5640f95577 (3GS)宛に送って頂けますか? | |
http://testflightapp.com 経由だと助かります。 |
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
javascript:var loc=document.evaluate('//link[@rel="canonical"]', document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null).snapshotItem(0).href;document.body.innerHTML%20=%20"<textarea%20cols='100'%20rows='5'><p%20class=\"eyecatch_photo\"><a href=\""+loc+"\"><img%20src=\""+F.config.flickr.photo.sizes.s.url+"\" width=\""+F.config.flickr.photo.sizes.s.width+"\" height=\""+F.config.flickr.photo.sizes.s.height+"\"/></a><span%20class=\"photo_by\">"+document.evaluate('//strong[@class="username"]', document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null).snapshotItem(0).innerHTML+"</span></p></textarea><br/><img src=\""+F.config.flickr.photo.sizes.s.url+"\"/></br><hr/><textarea%20cols='100'%20rows='5'><p%20class=\"\"><a href=\""+loc+"\"><img%20src=\""+F.config.flickr.photo.sizes.m.url+"\" width=\""+F.config.flickr.photo.sizes.m.width+"\" height=\""+F.config.flickr.photo.sizes.m.height+"\"/></a></p>" |
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 | |
unless ARGV.length == 3 | |
puts "Usage: ruby #{__FILE__} \"Provisioning Profile\" \"Apple ID\" \"Password\"" | |
puts "Require Mechanize gem. plz run \"sudo gem install mechanize\"" | |
exit 1 | |
end | |
require 'rubygems' | |
require 'mechanize' |
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
--- builder.py 2011-09-12 01:12:00.000000000 +0900 | |
+++ builder.py.modified 2011-09-12 01:17:30.000000000 +0900 | |
@@ -1330,7 +1330,7 @@ | |
# file in itunes | |
cmd = "open -b com.apple.itunes \"%s\"" % ipa | |
o.write("+ Executing the command: %s\n" % cmd) | |
- os.system(cmd) | |
+ os.getenv("NO_INSTALL") or os.system(cmd) | |
o.write("+ After executing the command: %s\n" % cmd) | |
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
#! /bin/sh | |
### BEGIN INIT INFO | |
# Provides: redis-server | |
# Required-Start: $syslog | |
# Required-Stop: $syslog | |
# Should-Start: $local_fs | |
# Should-Stop: $local_fs | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: redis-server - Persistent key-value db |
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
# Redis configuration file example | |
# Note on units: when memory size is needed, it is possible to specifiy | |
# it in the usual form of 1k 5GB 4M and so forth: | |
# | |
# 1k => 1000 bytes | |
# 1kb => 1024 bytes | |
# 1m => 1000000 bytes | |
# 1mb => 1024*1024 bytes | |
# 1g => 1000000000 bytes |
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
[titanium] | |
api_token=自分のAPI Token | |
team_token=Team Token | |
distribution_list=配布先のDistribution list名 |
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 | |
# | |
# Tokenizer for http://wiki.apache.org/thrift/ThriftIDL | |
# | |
require 'strscan' | |
def tokenize(str) | |
s = StringScanner.new(str+"\n") | |
result = [] | |
while !s.eos? |