最近的一次嘗試是修改 iOS 上的 Final Fantasy II,這遊戲應該是我剛上國中的時候玩的吧,忘了因為什麼原因沒有把它破關,一直是心裡的一個遺憾,畢竟我是從 Final Fantasy I 就開始玩的老玩家了。所以如今 Square Enix 在 iOS 上把它重製,但我已經沒有那個閒功夫再重頭從等級 1 慢慢練了,所以最快的方法就是破解作弊啦。
desc"Watch the site and regenerate when it changes"task:watchdoraise"### You haven't set anything up yet. First run `rake install` to set up an Octopress theme."unlessFile.directory?(source_dir)puts"Starting to watch source with Jekyll and Compass."system"compass compile --css-dir #{source_dir}/stylesheets"unlessFile.exist?("#{source_dir}/stylesheets/screen.css")jekyllPid=Process.spawn("jekyll --auto")compassPid=Process.spawn("compass watch")guardPid=Process.spawn("guard")trap("INT"){[jekyllPid,compassPid,guardPid].each{|pid|Process.kill(9,pid)rescueErrno::ESRCH}exit0}[jekyllPid,compassPid,guardPid].each{|pid|Process.wait(pid)}end
然後執行:
1
$ rake watch
應該可以看到類似下面的訊息回應:
Starting to watch source with Jekyll and Compass.
Please install growl_notify or growl gem for Mac OS X notification support and add it to your Gemfile
Guard is now watching at '/Users/patrick/src/simplypatrick.heroku.com'
LiveReload 1.6 is waiting for a browser to connect.
Configuration from /Users/patrick/src/simplypatrick.heroku.com/_config.yml
Auto-regenerating enabled: source -> public
[2011-12-03 22:53:07] regeneration: 118 files changed
>>> Compass is watching for changes. Press Ctrl-C to Stop.