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
export PATH=/opt/local/lib/postgresql83/bin/:${PATH} | |
env ARCHFLAGS="-arch x86_64" gem install pg |
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
// | |
// FileUpload.j | |
// Editor | |
// | |
// Created by Francisco Tolmasky on 03/04/08. | |
// Copyright 2005 - 2008, 280 North, Inc. All rights reserved. | |
// | |
import <Foundation/CPObject.j> | |
import <Foundation/CPValue.j> |
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
if Rails.env == 'cucumber' | |
prepend_before_filter :stub_current_user | |
before_filter :cucumber_amf | |
def stub_current_user | |
if cookies[:stub_user_id] | |
user = User.find(cookies[:stub_user_id]) | |
sign_in(user) | |
end | |
end |
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
function FindProxyForURL(url, host) | |
{ | |
var domain_list = [ | |
"wikipedia.org", | |
"wordpress.com", | |
//"flickr.com", | |
"blogspot.com", | |
"groups.google.com", | |
"feedburner.com", | |
".vox.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
网页错误详细信息 | |
用户代理: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; QQPinyinSetup 614) | |
时间戳: Sat, 9 Jan 2010 16:42:09 UTC | |
消息: 例外被抛出且未被接住 | |
行: 1496 | |
字符: 5 | |
代码: 0 |
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
if Rails.env != 'production' | |
logger = Logger.new(Rails.root.join('log', 'mongodb.log')) | |
MongoMapper.connection = Mongo::Connection.new('127.0.0.1', 27017, :logger => logger) | |
end |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<services-config> | |
<services> | |
<service id="amfora-flashremoting-service" | |
class="flex.messaging.services.RemotingService" | |
messageTypes="flex.messaging.messages.RemotingMessage"> | |
<destination id="amfora"> | |
<channels> | |
<channel ref="amfora"/> | |
</channels> |
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
<?xml version="1.0" encoding="utf-8"?> | |
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" | |
layout="absolute" | |
xmlns:views="views.*" > | |
<mx:Script> | |
<![CDATA[ | |
import mx.rpc.events.FaultEvent; | |
import mx.rpc.events.ResultEvent; | |
import mx.controls.*; |
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
class EchoController < ApplicationController | |
def call | |
data = params[:amf] | |
render :amf => {:message => "You said: #{data}"} | |
end | |
end |
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
plugin 'amfora-rails', :git => "git://github.com/hui/amfora-rails.git" | |
plugin 'amfora-plugin', :git => "git://github.com/hui/amfora-plugin.git" | |
run "touch tmp/.gitignore log/.gitignore vendor/.gitignore" | |
run %{find . -type d -empty | grep -v "vendor" | grep -v ".git" | grep -v "tmp" | xargs -I xxx touch xxx/.gitignore} | |
file '.gitignore', <<-ENDEND | |
.DS_Store | |
log/*.log | |
tmp/**/* | |
config/database.yml |