- Integrando com o PagSeguro
Integrando com o MoipIntegrando com o Paypal- Executando background jobs no Ruby on Rails
- Organizando o CSS com Sass
- Deployment com Capistrano, NGINX e Unicorn
- Autenticando com OAuth pelo Twitter, Facebook e Github
- Entendendo os protocolos do Rails
- Começando com Ember.js
Nandificando o Sinatra (Fazer uma implementação do Sinatra à partir do Rack)
This file contains hidden or 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 vendor/normalize | |
*= require_tree ./vendor | |
*/ | |
@import "bourbon"; | |
@import "core/settings"; | |
@import "core/base"; | |
@import "core/**/*"; |
This file contains hidden or 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
Autotest.add_hook :initialize do |at| | |
%w[.git vendor db log tmp .DS_store Gemfile.lock coverage].each do |exception| | |
at.add_exception(exception) | |
end | |
end |
This file contains hidden or 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
#!/usr/bin/env bash | |
if [[ ! -f "$1" ]]; then | |
echo "=> Movie file not found" | |
exit 1 | |
fi | |
tempfile=/tmp/output.gif | |
rm -f $tempfile |
This file contains hidden or 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
# Classic syntax | |
some_object | |
.should_receive(:some_method) | |
.with(:a, :b, :c) | |
.and_return(:d) | |
# expect syntax | |
expect(some_object).to receive(:some_method).with(:a, :b, :c).and_return(:d) |
This file contains hidden or 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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
config.vm.box = "hellobits" | |
config.vm.box_url = "http://hellobits.com/vagrant/hellobits.box" | |
config.vm.synced_folder ".", "/Projects", id: "vagrant-root" | |
# config.vm.network :private_network, ip: "192.168.50.2" | |
forward_port = ->(guest, host = guest) do |
This file contains hidden or 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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
config.vm.box = "hellobits" | |
config.vm.box_url = "http://hellobits.com/vagrant/hellobits.box" | |
config.vm.synced_folder ".", "/Projects", id: "vagrant-root" | |
# config.vm.network :private_network, ip: "192.168.50.2" | |
forward_port = ->(guest, host = guest) do |
This file contains hidden or 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
Show hidden characters
{ | |
"cmd": ["C:/Program Files/nodejs/node.exe", "$file"], | |
"selector": "source.js" | |
} |
This file contains hidden or 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.exports = function(grunt) { | |
var config = {}; | |
// Concat ================================ | |
config.concat = { | |
options: { | |
separator: ";" | |
}, | |
dist: { | |
src: [ |
This file contains hidden or 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
Autotest.add_hook :initialize do |at| | |
%w[.git vendor db log tmp .DS_store Gemfile.lock coverage].each do |exception| | |
at.add_exception(exception) | |
end | |
end |