This file contains 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
# Basic text search with relevancy for MongoDB. | |
# See http://blog.tty.nl/2010/02/08/simple-ranked-text-search-for-mongodb/ | |
# Copythingie 2010 - Ward Bekker - [email protected] | |
#create (or empty) a docs collection | |
doc_col = MongoMapper.connection.db('example_db').collection('docs') | |
doc_col.remove({}) | |
#add some sample data | |
doc_col.insert({ "txt" => "it is what it is"}) |
This file contains 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
require 'aws' | |
class Rake::Task | |
def replace &block | |
@actions.clear | |
prerequisites.clear | |
enhance &block | |
end | |
end |
This file contains 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
var project_name = "YOUR_PROJECT_NAME", | |
project_url = 'YOUR_GIT_URL', | |
project_destination_server = 'USER@SERVER', | |
project_destination_dir = '/PROJECT_DIRECTORY', | |
webhookUri = "SLACK_TOKEN_URI", | |
Slack = require('slack-node'), | |
slack = new Slack(), | |
notify = function(text) { | |
slack.webhook({ | |
channel: "#notifications", |