In React's terminology, there are five core types that are important to distinguish:
React Elements
class OrganizationCreator | |
# TODO: add avatar, email_signature_html, bio and facebook_page_uid | |
def self.create_all | |
create_meu_recife | |
create_minha_blumenau | |
create_minha_campinas | |
create_minha_curitiba | |
create_minha_garopaba | |
create_minha_ouro_preto |
In React's terminology, there are five core types that are important to distinguish:
React Elements
This should be one of the core features of Git, but for some reason it's impossible to figure out how to search for a string in your commit history and see the diffs that that string is in. Here's the best I've come up with:
To find which commits and which files a string was added or removed in:
git log -S'search string' --oneline --name-status
To see the diff of that
# This is a skeleton for testing models including examples of validations, callbacks, | |
# scopes, instance & class methods, associations, and more. | |
# Pick and choose what you want, as all models don't NEED to be tested at this depth. | |
# | |
# I'm always eager to hear new tips & suggestions as I'm still new to testing, | |
# so if you have any, please share! | |
# | |
# @kyletcarlson | |
# | |
# This skeleton also assumes you're using the following gems: |
# Committing changes to a repo via the Github API is not entirely trivial. | |
# The five-step process is outlined here: | |
# http://developer.github.com/v3/git/ | |
# | |
# Matt Swanson wrote a blog post translating the above steps into actual API calls: | |
# http://swanson.github.com/blog/2011/07/23/digging-around-the-github-api-take-2.html | |
# | |
# I was not able to find sample code for actually doing this in Ruby, | |
# either via the HTTP API or any of the gems that wrap the API. | |
# So in the hopes it will help others, here is a simple function to |
heroku pg:reset SHARED_DATABASE --confirm fasterfaster | |
heroku run rake db:migrate | |
heroku run console | |
Rails.cache.clear | |
heroku restart | |
- manually add one record to test | |
- run performance test | |