- 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
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
config.after_initialize do | |
Bullet.enable = true | |
Bullet.bullet_logger = true | |
Bullet.rails_logger = true | |
Bullet.disable_browser_cache = true | |
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
# 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 |
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
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) { |
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'
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(fibonacci). | |
-export([fib/1]). | |
fib(0) -> 0; | |
fib(1) -> 1; | |
fib(N) -> fib(N-1) + fib(N-2). |
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.
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
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}" |
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
{ | |
"type": "Regular", | |
"price": "6.66", | |
"date": "1 day ago", | |
"via": "myGasFeed Dev" | |
} |
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
<div class="box scrollme animateme" data-when="view" data-from="0.01" data-to="0.7" data-scale="3" data-translatex="0" data-translatey="100"></div> | |
<div class="image scrollme animateme" data-when="enter" data-from="0" data-to="0.6" data-crop="false" data-opacity="0" data-scale="0.5" data-translatey="-100" ></div> |