I hereby claim:
- I am hugobarauna on github.
- I am hugobarauna (https://keybase.io/hugobarauna) on keybase.
- I have a public key ASA4xsKWRBSCGT6LH4iZCvyFFIkeaGX5FQNVZ7AudxK5Dgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
A Pen by Hugo Baraúna on CodePen.
# features/step_definitions/search_steps.rb | |
When /^I search for "([^"]*)"$/ do |search_term| | |
search_catalogue_with search_term, :using_direct_model_access | |
end | |
# features/support/search_support.rb | |
module SearchSupport | |
class SearchAutomator |
/** | |
* seta com animacao | |
*/ | |
span { | |
animation: bounce 0.7s infinite ease; | |
position: relative; | |
font-size: 3em; | |
} |
<div></div> |
/** | |
* Stacking context example - broken stacked menus | |
*/ | |
div { font: 12px Arial; } | |
span.bold { font-weight: bold; } | |
div.lev1 { | |
width: 250px; |
/** | |
* Simple example os stacking context | |
*/ | |
* { | |
margin: 0; | |
} | |
html { | |
padding: 20px; | |
font: 12px/20px Arial, sans-serif; |
2012-08-01T14:39:08+00:00 app[web.1]: [Wed Aug 01 2012 14:39:08 GMT+0000 (UTC)] ERROR Unable to load /app/node_modules/hubot-scripts/src/scripts/dilbert: Error: Cannot find module 'htmlparser' | |
2012-08-01T14:39:08+00:00 app[web.1]: Error: Cannot find module 'htmlparser' | |
2012-08-01T14:39:08+00:00 app[web.1]: at Function._resolveFilename (module.js:337:11) | |
2012-08-01T14:39:08+00:00 app[web.1]: at Function._load (module.js:279:25) | |
2012-08-01T14:39:08+00:00 app[web.1]: at Module.require (module.js:359:17) | |
2012-08-01T14:39:08+00:00 app[web.1]: at require (module.js:375:17) | |
2012-08-01T14:39:08+00:00 app[web.1]: at Object.<anonymous> (/app/node_modules/hubot-scripts/src/scripts/dilbert.coffee:4:16) | |
2012-08-01T14:39:08+00:00 app[web.1]: at Object.<anonymous> (/app/node_modules/hubot-scripts/src/scripts/dilbert.coffee:35:4) | |
2012-08-01T14:39:08+00:00 app[web.1]: at Module._compile (module.js:446:26) | |
2012-08-01T14:39:08+00:00 app[web.1]: at Object..coffee (/app/node_modules/hubot/node_modu |
If you're using Vagrant, you're probably using VirtualBox shared folders feature in order to access your files from inside the VM. The problem is, virtual box shared folders can get preeeety slow. But, the awesome vagrant guys already dealed with that: http://vagrantup.com/docs/nfs.html. The solution is to use NFS. | |
Here's my "bechmark" comparing using shared folder, native VM filesystem and NFS. | |
# Host machine: MacBook Pro, 8GB RAM | |
# Guest Machine: Ubuntu 10.04 LTS, 750MB RAM | |
# Putting the Rails app files in the Mac, using VirtuaBox shared folders, |
Tutorial geral sobre Rails: http://www.railstutorial.org/ | |
--------------------------------------------------------- | |
Esse tutorial é indicado para quem está começando com Rails. Ele ensina Rails através da construção de um aplicativo semelhante ao Twitter. O legal dele é que além de passar pela tecnologia, ele fala também de Git, TDD Restful controllers e outras coisas mais. | |
Rails Guides: http://guides.rubyonrails.org/ | |
-------------------------------------------- | |
Indicado para nível iniciante e médio. Guias sobre vários componentes do Rails. Explica muito bem coisas como associações entre models, rotas e outras coisas mais. Muito recomendado ler todos os guias. | |