This is a recipe ingredient parser. Strings like:
2 cups whole pecans (8 ounces), toasted and chopped into small pieces
Should end up as:
{
units: 2,
unit: 'cups',
item: 'whole pecans (8 ounces)',
# install ruby | |
ENV RUBY_VERSION jruby-1.7.8 | |
ENV RBENV_VERSION $RUBY_VERSION | |
ENV CONFIGURE_OPTS --disable-install-doc | |
RUN curl https://raw.githubusercontent.com/fesplugas/rbenv-installer/master/bin/rbenv-installer | bash | |
ENV PATH $HOME/.rbenv/bin:$PATH | |
ENV PATH $HOME/.rbenv/shims:$PATH | |
RUN rbenv install $RUBY_VERSION | |
RUN rbenv global $RUBY_VERSION |
This is a recipe ingredient parser. Strings like:
2 cups whole pecans (8 ounces), toasted and chopped into small pieces
Should end up as:
{
units: 2,
unit: 'cups',
item: 'whole pecans (8 ounces)',
=Navigating= | |
visit('/projects') | |
visit(post_comments_path(post)) | |
=Clicking links and buttons= | |
click_link('id-of-link') | |
click_link('Link Text') | |
click_button('Save') | |
click('Link Text') # Click either a link or a button | |
click('Button Value') |
This is a guide to creating a basic API in Rails for consumption by Ember.js or your favorite framework. Key areas are support of CORS requests and Jbuilder for creating a self-documenting API.
Add these gems to your Gemfile
gem 'rack-cors', :require => 'rack/cors'
gem 'jbuilder'
require 'spec_helper' | |
describe 'validate FactoryGirl factories' do | |
FactoryGirl.factories.each do |factory| | |
context "with factory for :#{factory.name}" do | |
subject { FactoryGirl.build(factory.name) } | |
it "is valid" do | |
is_valid = subject.valid? | |
is_valid.should be_true, subject.errors.full_messages.join(',') |
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
# super handy stuff | |
brew install jq aq thefuck the_silver_searcher wget curl | |
# dev | |
brew install maven protobuf | |
# devops | |
brew install docker-machine |
#!/bin/bash | |
# super handy stuff | |
brew install jq aq thefuck the_silver_searcher wget curl | |
# dev | |
brew install maven protobuf | |
# devops | |
brew install docker-machine |