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
#!/bin/sh | |
FILE_COUNT=$(git status | grep 'modified:' | wc -l) | |
if [ $FILE_COUNT -gt 100 ] ; then | |
echo "File count is 100+, skipping pre-commit validation" | |
exit 0 | |
fi | |
# Check modified Javascript files with ESLint |
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
for one tag: | |
search for | |
<span\s?(.*?)\>(.*?)<\/span> | |
replace with | |
**$1** |
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
config/database.yml | |
config/app_config.yml | |
config/solr.yml | |
config/*.sphinx.conf | |
config/s3_credentials.yml | |
config/initializers/computer_specific_config.rb | |
config/initializers/secret_token.rb | |
*~ | |
*.cache | |
*.log |
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
config/database.yml | |
config/app_config.yml | |
config/solr.yml | |
config/*.sphinx.conf | |
config/s3_credentials.yml | |
config/initializers/computer_specific_config.rb | |
*~ | |
*.cache | |
*.log | |
*.log.* |
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
# for more information on solrmarc mappings, | |
# see http://code.google.com/p/solrmarc/w/list | |
# | |
# GenericBlacklight uses these conventions, mostly. | |
# _t for indexed fields (for searching) | |
# _display for stored fields (for display in UI) | |
# _facet for facet fields | |
# _sort for sorting fields (fields used to sort results) | |
# | |
# see jetty/solr/conf/schema.xml in Blacklight demo project |
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
# config/deploy.rb | |
set :default_stage, "vm_dev" | |
set :stages, %w(vm_dev vm_test vm_prod) | |
require 'capistrano/ext/multistage' | |
require 'bundler/capistrano' | |
require 'date' | |
default_run_options[:pty] = true |
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
# Change to your Google Web id | |
BlacklightGoogleAnalytics.web_property_id = case Rails.env.to_s | |
when 'development' | |
'UA-3-1' | |
when 'test' | |
nil | |
else | |
'UA-2-1' | |
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
self.blacklight_config = Blacklight::Configuration.new do |config| | |
config.add_search_field 'all_fields', :label => 'All Fields' | |
case source | |
when 'Databases' | |
default_catalog_config(config, :display_fields, :sorts) | |
config.default_solr_params = { | |
:qt => "search", | |
:per_page => 15, |
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
CatalogController.configure_blacklight do |config| | |
config.add_search_field 'all_fields', :label => 'All Fields' | |
case source | |
when 'Databases' | |
default_catalog_config(config, :display_fields, :sorts) | |
config.default_solr_params = { | |
:qt => "search", | |
:per_page => 15, |
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
def reset_configuration( config ) | |
if not config.methods.select { | method_name | | |
method_name =~ /^facet_fields|^index_fields|^search_fields|^show_fields|^sort_fields/ }.empty? | |
config.facet_fields = {} | |
config.index_fields = {} | |
config.search_fields = {} | |
config.show_fields = {} | |
config.sort_fields = {} | |
end | |
end |
NewerOlder