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
| sudo apt-get install ruby1.9.1-dev zlib1g-dev build-essential openssl libssl-dev libyaml-dev libv8-dev sqlite3 libsqlite3-dev imagemagick | |
| gem install rails | |
| gem install execjs |
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
| # | |
| # Sets Prezto options. | |
| # | |
| # Authors: | |
| # Sorin Ionescu <sorin.ionescu@gmail.com> | |
| # | |
| # | |
| # General | |
| # |
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
| error: | |
| /Users/rodrigo/.rvm/scripts/initialize:42: __rvm_cleanse_variables: function definition file not found | |
| /Users/rodrigo/.rvm/scripts/initialize:44: command not found: rvm_error | |
| soluction: | |
| rm -f ~/.zcompdump |
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
| cd ~ | |
| curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh | |
| zsh | |
| git clone --recursive https://github.com/sorin-ionescu/prezto.git "${ZDOTDIR:-$HOME}/.zprezto" | |
| setopt EXTENDED_GLOB | |
| for rcfile in "${ZDOTDIR:-$HOME}"/.zprezto/runcoms/^README.md(.N); do | |
| ln -s "$rcfile" "${ZDOTDIR:-$HOME}/.${rcfile:t}" | |
| done | |
| chsh -s /bin/zsh | |
| open .zpreztorc |
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
| Problema: | |
| mysql2.rb:8:in `require': dlopen(/Users/rodrigo/.rvm/gems/ruby-1.9.3-p0@atlas/gems/mysql2-0.3.13/lib/mysql2/mysql2.bundle, 9): Library not loaded: libmysqlclient.18.dylib (LoadError) | |
| Referenced from: /Users/rodrigo/.rvm/gems/ruby-1.9.3-p0@atlas/gems/mysql2-0.3.13/lib/mysql2/mysql2.bundle | |
| Reason: image not found - /Users/rodrigo/.rvm/gems/ruby-1.9.3-p0@atlas/gems/mysql2-0.3.13/lib/mysql2/mysql2.bundle | |
| Solução: | |
| http://stackoverflow.com/questions/10557507/rails-mysql-on-osx-library-not-loaded-libmysqlclient-18-dylib | |
| no meu, resolveu isso aqui: | |
| MYSQL=/usr/local/mysql/bin |
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
| # encoding: UTF-8 | |
| class ActionController::Base | |
| @@comportamento = nil | |
| @@metodos_anotados = {} | |
| before_filter do |controller_instance| | |
| invoca_metodos_da_anotation(controller_instance) | |
| 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
| http://stackoverflow.com/questions/6596303/rubymine-3-2-failing-to-find-libmysqlclient-18-dylib-on-macos-lion |
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
| código de retorno != 200 | |
| quebras de linha | |
| caracteres especiais | |
| escape de " e ', melhor substituir pelo código html |
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
| INSERT INTO CUS (CODIGO, CAST) VALUES ('20121100210', 'Vers.o: 1.43.65.1 Desenvolvimento em 26/11/12: Como o usu.rio poder. alterar a empresa de emiss.o do manifesto, as cr.ticas dever.o continuar existindo para a empresa selecionada. Hoje a empresa que . definida como empresa de emiss.o . a empresa de coleta que . informada na tela que filtra os conhecimentos a serem selecionados para o manifesto.'); | |
| INSERT INTO CUS (CODIGO, CAST) VALUES ('20121000221', ''); | |
| INSERT INTO CUS (CODIGO, CAST) VALUES ('20121000281', 'Desenvolvimento em 24/10/2012: O perfil que habilita ou n.o o campo ter. preced.ncia sobre o perfil: Incluir registro com Data Retroativa. Solicita..o coletada pelo Lima em visita.'); | |
| INSERT INTO CUS (CODIGO, CAST) VALUES ('20111000287', ''); | |
| INSERT INTO CUS (CODIGO, CAST) VALUES ('20110800188', ''); | |
| INSERT INTO CUS (CODIGO, CAST) VALUES ('20130600215', ''); | |
| INSERT INTO CUS (CODIGO, CAST) VALUES ('20120700077', ''); | |
| INSERT INTO CUS (CODIGO, CAST) VALUES ('20110800253', ''); | |
| INSERT INTO CUS (C |
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
| [[20121100210,'273114',1], | |
| [20121000221,'272291',2], | |
| [20121000281,'273114',1], | |
| [20111000287,'200838',2], | |
| [20110800188,'200838',2], | |
| [20130600215,'272291',2], | |
| [20120700077,'000436',2], | |
| [20110800253,'000104',1], | |
| [20130200037,'000104',2], | |
| [20120700110,'002755',1], |