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
#/bin/bash | |
# | |
# now, you must be edit you ~/.bashrc or ~/.bash_profile and add the command: | |
# alias rm="/path/to/rm_to_from_bahia.sh" | |
# | |
# Now you're safe! | |
echo "ARE YOU SURE YOU WANT TO DELETE ALL THIS SHIT?" | |
read RESP |
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
# RSpec 2.0 syntax Cheet Sheet by http://ApproachE.com | |
# defining spec within a module will automatically pick Player::MovieList as a 'subject' (see below) | |
module Player | |
describe MovieList, "with optional description" do | |
it "is pending example, so that you can write ones quickly" | |
it "is already working example that we want to suspend from failing temporarily" do | |
pending("working on another feature that temporarily breaks this one") |
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
#http://dojopuzzles.com/problemas/exibe/palavras-primas/ | |
class PalavraPrima | |
attr_accessor :phrase | |
def initialize | |
@@letters =[] | |
"a".upto("z") { |l| @@letters << l } | |
"A".upto("Z") { |l| @@letters << l } | |
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
# coding: utf-8 | |
class Autor | |
attr_accessor :nomes | |
def initialize(nomes=[]) | |
@nomes = nomes | |
@nomes_especiais = ["Neto", "Filho", "Sobrinho", "Neta", "Filha", "Sobrinha", "Junior"] | |
@preposicoes = ["da", "de", "do", "das", "dos"] | |
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
# Integração com o Bundler | |
require "bundler/capistrano" | |
# Integração com RVM | |
# mais informações: http://beginrescueend.com/integration/capistrano/ | |
$:.unshift(File.expand_path('./lib', ENV['rvm_path'])) # Add RVM's lib directory to the load path. | |
require "rvm/capistrano" | |
set :rvm_ruby_string, '1.9.2' | |
# Nome da aplicação |
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
################ CODIGO TWITTER | |
/* |
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
# Em Gemfile | |
gem 'delayed_job' | |
# Após isto estou executando o comando: ./script/rails generate delayed_job | |
# que retorna um erro: | |
m3nd3s [adena] 1.9.2 (DJ) $ ./script/rails generate delayed_job | |
/Users/m3nd3s/.rvm/gems/ruby-1.9.2-p136@adena/gems/mysql2-0.2.6/lib/active_record/connection_adapters/mysql2_adapter.rb:312:in `query': Table 'adena_development.delayed_jobs' doesn't exist (Mysql2::Error) | |
from /Users/m3nd3s/.rvm/gems/ruby-1.9.2-p136@adena/gems/mysql2-0.2.6/lib/active_record/connection_adapters/mysql2_adapter.rb:312:in `execute' | |
from /Users/m3nd3s/.rvm/gems/ruby-1.9.2-p136@adena/gems/mysql2-0.2.6/lib/active_record/connection_adapters/mysql2_adapter.rb:462:in `columns' | |
from /Users/m3nd3s/.rvm/gems/ruby-1.9.2-p136@adena/gems/activerecord-3.0.10/lib/active_record/base.rb:685:in `columns' |
As palestras estão separadas por palestrantes já existem várias do mesmo palestrante.
SEO da wine, trabalho com search e desenvolvimento web. @daniel2marcos / fb.com/daniel2marcos Iniciei meus trabalhos como webdesigner, mas vi que nao tinha muito talento pra coisa, então me achei como programador, e convivi juntos aos algoritmos durante 4anos. E como queria mudar para novos ares, hoje trabalho com search.
It's important for programmers to challenge themselves.
Creative and technical stagnation is the only alternative.
In the spirit of the new year, I've compiled twelve month-sized resolutions.
Each month is an annually renewable technical or personal challenge:
- Go analog.
- Stay healthy.
OlderNewer