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
$('#quick_entry form').live 'submit', (event) -> | |
event.preventDefault() # just moved up! | |
event.stopPropagation() # just moved up! | |
return false if @beenSubmitted | |
@beenSubmitted = true | |
clearNotice() | |
$.ajax({ | |
type: 'POST' | |
url: @action | |
dataType: 'json' |
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
# | |
# This core extension customizes XML and JSON serialization in Mongoid::Document | |
# objects: | |
# * Serializes BSON::ObjectIDs as strings in XML | |
# * Removes leading underscores from attributes (such as _id, _type) | |
# * Allows documents to customize serialization even further by declaring a | |
# `serialize_attributes!` method, e.g.: | |
# def serialize_attributes!(attribute_hash) | |
# attribute_hash.delete(:unnecessary_key) | |
# attribute_hash[:password] = '' |
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
REMOTE_CHEF_PATH = "/etc/chef" | |
SSH_PORT = XXX | |
desc "Test your cookbooks and config files for syntax errors" | |
task :test do | |
Dir[ File.join(File.dirname(__FILE__), "**", "*.rb") ].each do |recipe| | |
sh %{ruby -c #{recipe}} do |ok, res| | |
raise "Syntax error in #{recipe}" if not ok | |
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
log_level :debug | |
log_location STDOUT | |
validation_client_name 'channels-staging-validator' | |
validation_key './.chef/channels-staging-validator.pem' | |
chef_server_url 'https://api.opscode.com/organizations/channels-staging' | |
cache_options( :path => './.chef/channels-staging-checksums' ) |
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
package preloadagent; | |
/** | |
Copyright 2010 Sam Pullara | |
Licensed under the Apache License, Version 2.0 (the "License"); | |
you may not use this file except in compliance with the License. | |
You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 |