- Go here: http://www.oracle.com/technetwork/topics/intel-macsoft-096467.html
- Download the 64bit versions of instantclient-sqlplus, instantclient-sdk, instantclient-basic - the 32bit versions do not work with OSX 10.9
- Create directories at /opt/oracle
- Unzip instantclient-basic first, move to /opt/oracle (should add a folder - something like /opt/oracle/instantclient_11_2/)
- Unzip instantclient-sdk and move its contents to /opt/oracle/instantclient_11_2/
- Unzip instantclient-sqlplus and move its contents /opt/oracle/instantclient_11_2/
- Open Terminal (if you haven't already) and type...
- DYLD_LIBRARY_PATH=/opt/oracle/instantclient_11_2 export DYLD_LIBRARY_PATH
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
GET http://localhost:3000/fb/fb_code | |
RESPONSE | |
{"redirect_url":"https://www.facebook.com/dialog/oauth?client_id=893637180663238\u0026redirect_uri=http%3A%2F%2Flocalhost%3A3000%2Ffb%2Fcallback"} | |
---- | |
redirect to https://www.facebook.com/dialog/oauth?client_id=893637180663238\u0026redirect_uri=http%3A%2F%2Flocalhost%3A3000%2Ffb%2Fcallback | |
redirect to callback_url | |
GET http://localhost:3000/fb/callback?code=FB_AUTH_CODE | |
RESPONSE | |
{"access_token":"FB_ACCESS_TOKEN"} |
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
# backported from rails 4 to use inside rails 3 | |
# if you're using rails 4, you do not actually need this. | |
module ActiveSupport | |
class Logger < ::Logger | |
# extend ActiveSupport::TaggedLogging | |
# Broadcasts logs to multiple loggers. Returns a module to be | |
# `extended`'ed into other logger instances. | |
def self.broadcast(logger) | |
Module.new do | |
define_method(:add) do |*args, &block| |
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
-module (dispatcher). | |
-export ([dispatch/2, convert_method_to_action/1]). | |
dispatch(_,[]) -> none; | |
dispatch(Req, [{Regexp, Handler}|T]) -> | |
"/" ++ Path = Req:get(path), | |
Method = Req:get(method), |
NewerOlder