Este projeto consiste na criação do encapsulador para a API REST do Mural do Redu.
Encapsularoes (para APIs REST), também conhecidos como wrappers, são bibliotecas que abstraem detalhes de rede na comunicação com serviços terceiros.
{ | |
"type": "Regular", | |
"price": "6.66", | |
"date": "1 day ago", | |
"via": "myGasFeed Dev" | |
} |
require 'koala' | |
app_id = "xxx" | |
app_secret = "xxx" | |
callback_url = "http://0.0.0.0:3000/callback/" | |
oauth = Koala::Facebook::OAuth.new(app_id, app_secret, callback_url) | |
url = oauth.url_for_oauth_code(permissions: ["email", "user_likes"]) | |
puts "Redirecione o usuário para o Facebook: #{url}" |
Este projeto consiste na criação do encapsulador para a API REST do Mural do Redu.
Encapsularoes (para APIs REST), também conhecidos como wrappers, são bibliotecas que abstraem detalhes de rede na comunicação com serviços terceiros.
-module(fibonacci). | |
-export([fib/1]). | |
fib(0) -> 0; | |
fib(1) -> 1; | |
fib(N) -> fib(N-1) + fib(N-2). |
Process the messages comming from your Untied::Publisher and syncs it directly to the database.
Add this line to your Gemfile:
gem 'untied-consumer-sync'
console.log(Ember.TEMPLATES['application']) | |
function (context, options) { | |
options = options || {}; | |
return templateSpec.call(container, Handlebars, context, options.helpers, options.partials, options.data); | |
} | |
console.dir(Ember.TEMPLATES); | |
Object | |
- application: function (context, options) { |
# Install nodejs | |
$ brew install nodejs | |
# Install npm | |
$ curl http://npmjs.org/install.sh | sh | |
# If it does not work, try it | |
$ curl https://npmjs.org/install.sh | sh | |
# Still does not work? Try it |
config.after_initialize do | |
Bullet.enable = true | |
Bullet.bullet_logger = true | |
Bullet.rails_logger = true | |
Bullet.disable_browser_cache = true | |
end |