##CoffeeScriptまとめ
###コメント
複数行のコメント。たぶん、ライセンス
##GitHubとHerokuに両対応させるには
herokuでapp:create
$ heroku apps:create p120902-jishiha-search
Creating p120905-rss-process-test... done, stack is cedar
http://p120905-rss-process-test.herokuapp.com/ | [email protected]:p120905-rss-process-test.git
$ git clone https://github.com/weed/p120902-jishiha-search.git
作業
# herokuでmongolabを使う時のはまりどころ | |
# 最初にUTF8宣言 | |
#encoding: utf-8 | |
# .... | |
Mongoid.configure do |conf| | |
# db名は決まっているものを使う(最後の2フレーズは同じになる) | |
conf.master = Mongo::Connection.from_uri('mongodb://heroku_app6978307:[email protected]:37447/heroku_app6978307').db('heroku_app6978307') |
require './app' | |
# run Sinatra::Application | |
# include would include the module in Object | |
# extend only extends the `main` object | |
extend Sinatra::Delegator |
- (void)netServiceBrowser:(NSNetServiceBrowser *)aNetServiceBrowser | |
didFindService:(NSNetService *)aNetService | |
moreComing:(BOOL)moreComing | |
{ | |
// HTTPサービスのうちCocoaHTTPServerという名前のサービスだけを探す | |
if (!_desktopServer && [aNetService.name isEqualToString:@"CocoaHTTPServer"]) { | |
_desktopServer = [[NSNetService alloc] initWithDomain:[aNetService domain] | |
type:[aNetService type] | |
name:[aNetService name]]; | |
[_desktopServer resolveWithTimeout:30]; |
Snow Leopardにrbenvを入れてRuby 1.8を入れようとするとエラーが出る
下記アドレスからgccをダウンロードしてインストールするとエラーを回避できる。
#はじめに
###登録
###得点のしくみ