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
# Build a condition array from the provided keywords and a specific set of fields to search on | |
# Take out any keywords that are 2 chars or less | |
def self.find_by_keywords(keywords) | |
# Columns to do keyword searching on | |
fields = %w{ user_name email } | |
# Strip all words 2 chars or less, then split into an array | |
keywords = keywords.gsub(/\b\S{1,2}\b/, "").strip.downcase.split(/\s+/) | |
unless (keywords.nil? || keywords.empty?) |
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
# This is a simple descriptor on how I do topic development using git | |
# Some of the commands are java flavored (like ant), | |
# but that doesn't mean you can't use this with other languages. | |
# Step 1 - Synchronize master. | |
# 1.1 - Checkout master branch | |
# 1.2 - Get changes from origin | |
git checkout master | |
git pull |
NewerOlder