Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View julianalucena's full-sized avatar

Juliana Lucena julianalucena

  • Incognia
  • Recife, Pernambuco, Brazil
View GitHub Profile
{
"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}"

Descrição de Projeto: encapsuladores

Projeto 1

Este projeto consiste na criação do encapsulador para a API REST do Mural do Redu.

O que é um encapsulador?

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).
@julianalucena
julianalucena / README.md
Created December 13, 2012 17:23
Untied Consumer Sync readme

Untied Consumer Sync

Process the messages comming from your Untied::Publisher and syncs it directly to the database.

Instalation

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) {
@julianalucena
julianalucena / gist:3706606
Created September 12, 2012 13:30
Mocha setup
# 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
@julianalucena
julianalucena / gist:3501788
Created August 28, 2012 18:29
bullet config
config.after_initialize do
Bullet.enable = true
Bullet.bullet_logger = true
Bullet.rails_logger = true
Bullet.disable_browser_cache = true
end
@julianalucena
julianalucena / gist:1604350
Created January 13, 2012 02:58
Kind of dojo about Git

Kind of dojo about Git

  • Create a repository and push it to Github
  • Change some files and commit it
  • Create two files and edit an existent file, add all to the index and make a commit only with one of the new files
  • Create another branch (cool) and change files
  • (Stash here we go!)
  • Go to master branch and push the modifications
  • Go back to cool branch, commit and push
  • Put the commits on cool branch on master branch doing a merge

Task

  • X should be removed (from UI)
  • should be passed between stories and states
  • should be rendered when creating
  • X should rerender when updating
  • should have story_id
  • should bind to dragstop

Story