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 proposto: | |
| https://codility.com/demo/results/demoSBAPTX-M95/ | |
| Solução do DOJO: | |
| def solution(*a) | |
| curr = 1 | |
| great = [] | |
| a.combination(3) do |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
| 1) Crie um arquivo na home do seu usuário | |
| $ nano ~/.bash_proxy | |
| e adicione as configurações de proxy no mesmo | |
| export http_proxy="http://USUARIO:SENHA@proxy.seseg.rj.gov.br:8080" | |
| export https_proxy="https://USUARIO:SENHA@proxy.seseg.rj.gov.br:8080" | |
| 2) Remova as configurações de proxy do .bashrc e adicione um link para o novo arquivo |
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
| cautela: | |
| PaperTrail::Version: Serve para guardar as versões das cautelas | |
| id: integer | |
| item_type: string | |
| item_id: integer | |
| event: string | |
| whodunnit: string | |
| object: text | |
| created_at: datetime |
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
| Badge | |
| :id => :integer, | |
| :name => :string, | |
| :created_at => :datetime, | |
| :updated_at => :datetime | |
| Visitor | |
| :id => :integer, | |
| :name => :string, | |
| :social_security_number => :string, |
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
| Started GET "/sentinel/sign_in" for 10.233.4.26 at 2014-07-15 13:10:46 -0300 | |
| Processing by Sentinel::SessionsController#sign_in as HTML | |
| Rendered /home/boss/.bundler/ruby/2.0.0/sentinel-0a0ba9f834e6/app/views/sentinel/sessions/sign_in.html.haml within layouts/sentinel/application (3.2ms) | |
| StaticPage Load (0.7ms) SELECT "pages".* FROM "pages" WHERE "pages"."visible" = 't' ORDER BY "pages"."name" | |
| Rendered /home/boss/.bundler/ruby/2.0.0/intranet-core-923258530cd0/app/views/layouts/core-application.haml (279.6ms) | |
| Rendered /home/boss/.bundler/ruby/2.0.0/intranet-core-923258530cd0/app/views/layouts/core-default.haml (281.3ms) | |
| Completed 500 Internal Server Error in 292ms | |
| ActionView::Template::Error (Permission denied - /home/boss/pessoal-staging/tmp/cache/assets/sprockets%2F2ec2c08b7780b76240fe371eb8d370fe20140715-23919-1wb03ux): | |
| 8: Intranet |
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
| $(".main").constructor | |
| function ( selector, context ) { | |
| // The jQuery object is actually just the init constructor 'enhanced' | |
| return new jQuery.fn.init( selector, context, rootjQuery ); | |
| } |
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
| $(".main").get(0).constructor | |
| function HTMLDivElement() { [native code] } |
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
| boss@talia:cautela-staging(staging $)$ bundle install | |
| Fetching gem metadata from https://rubygems.org/......... | |
| Resolving dependencies... | |
| Installing rake (10.4.2) | |
| Errno::EACCES: Permission denied - /usr/lib/ruby/gems/2.0.0/build_info/rake-10.4.2.info | |
| An error occurred while installing rake (10.4.2), and Bundler cannot continue. | |
| Make sure that `gem install rake -v '10.4.2'` succeeds before bundling. | |
| boss@talia:cautela-staging(staging $)$ |